/* static/css/components.css */
.section-title {
  font-family: var(--font-primary);
  position: relative;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  text-align: center;
  line-height: 1.2;
}

.section-title .text-primary {
  position: relative;
  color: var(--primary) !important;
}

.section-title .text-primary::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(13, 110, 253, 0.3));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 2s ease-out 0.5s forwards;
}

.section-divider {
  width: clamp(50px, 12vw, 80px);
  height: clamp(3px, 0.8vw, 4px);
  background: linear-gradient(90deg, var(--primary), rgba(13, 110, 253, 0.3));
  border-radius: 2px;
  margin: clamp(0.75rem, 2vw, 1rem) auto clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

.lead {
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

.btn-primary {
  font-family: var(--font-primary);
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: #0a58ca;
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.btn-outline-primary {
  font-family: var(--font-primary);
  color: var(--primary);
  border-color: var(--primary);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary);
}

.tech-pill,
.tech-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.tech-pill:hover,
.tech-tag:hover {
  background: rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #0056b3);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: pulseIn 0.6s ease-out;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-success {
  background: var(--success);
}

.notification-info {
  background: var(--primary);
}

.notification-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0 0 12px;
  line-height: 1;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseIn {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  50% { transform: scale(1.1) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
  }

  .tech-pill,
  .tech-tag {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: clamp(1.2rem, 7vw, 1.6rem);
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }

  .tech-pill,
  .tech-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

@media (max-width: 375px) {
  .section-title {
    font-size: clamp(1rem, 8vw, 1.4rem);
  }

  .back-to-top {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .back-to-top:hover {
    transform: translateY(0);
  }
}