/* ==========================================================================
   Kickoff Abroad — Hero Section Component
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
}

.hero-section::after {
  content: none;
}

/* --------------------------------------------------------------------------
   2. Parallax Background
   -------------------------------------------------------------------------- */
.hero-parallax-bg {
  position: absolute;
  inset: -25% 0;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  will-change: transform;
  opacity: 0;
  mix-blend-mode: normal;
}

/* Fallback gradient when no image */
.hero-parallax-bg.no-image {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
}

/* --------------------------------------------------------------------------
   3. Overlay
   -------------------------------------------------------------------------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(3, 70, 148, 0.88) 0%, rgba(10, 22, 40, 0.76) 55%, rgba(3, 70, 148, 0.62) 100%);
}

.hero-overlay::before {
  content: none;
}

.hero-overlay::after {
  content: none;
}

/* --------------------------------------------------------------------------
   4. Hero Content
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  color: var(--color-white);
  max-width: var(--container-width);
  padding: var(--space-lg) var(--container-padding);
  padding-top: calc(var(--header-height) + var(--space-md));
}

.hero-title {
  max-width: 760px;
  font-size: clamp(2.35rem, 5.4vw, 4.75rem);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

/* Gold accent for key words */
.hero-title .accent {
  color: var(--color-secondary);
  display: inline;
}

.hero-subtitle {
  max-width: 620px;
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  margin-left: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   5. Hero CTA
   -------------------------------------------------------------------------- */
.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero-cta.btn-primary {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-cta.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(212, 168, 67, 0.4);
  color: var(--color-dark);
}

.hero-cta.btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.hero-cta.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   6. Scroll Indicator
   -------------------------------------------------------------------------- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: var(--container-padding);
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-base);
  z-index: 2;
}

.hero-scroll-indicator:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-secondary), transparent);
  animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Decorative Particles
   -------------------------------------------------------------------------- */
.hero-particles {
  display: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.hero-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 1.5s; animation-duration: 10s; }
.hero-particle:nth-child(6) { left: 15%; top: 80%; animation-delay: 3s; animation-duration: 7.5s; }
.hero-particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 2.5s; animation-duration: 8.5s; }
.hero-particle:nth-child(8) { left: 40%; top: 85%; animation-delay: 0.8s; animation-duration: 9.5s; }

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.15;
  }
  25% {
    transform: translate(20px, -30px) scale(1.5);
    opacity: 0.3;
  }
  50% {
    transform: translate(-10px, -50px) scale(1);
    opacity: 0.15;
  }
  75% {
    transform: translate(15px, -20px) scale(1.3);
    opacity: 0.25;
  }
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero-content {
    padding: var(--space-md) var(--container-padding);
    padding-top: calc(var(--header-height) + var(--space-sm));
    text-align: left;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    line-height: 1.7;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll-indicator {
    bottom: 1.5rem;
  }

  .hero-particles {
    display: none;
  }

  .hero-overlay::before,
  .hero-overlay::after,
  .hero-section::after {
    display: none;
  }
}
