/* ============================================
   HERO SECTION
   Full-screen with parallax and animations
   ============================================ */

/* ---------- HERO SECTION WRAPPER ---------- */
#hero {
  position: relative;
  overflow: hidden;
}

/* ---------- HERO IMAGE ---------- */
.hero-img {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */

  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: var(--space-24);

  /* Background image */
  background-position: center 20%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */

  overflow: hidden;
}

/* Gradient overlay - bottom fade */
.hero-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to top,
    var(--color-black) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Subtle vignette effect */
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ---------- HERO TEXT ---------- */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-4);
  max-width: 1200px;

  /* Fade in animation */
  animation: heroTextReveal 1.2s var(--ease-out) forwards;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--color-white);

  /* Text shadow for depth */
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 8px 40px rgba(0, 0, 0, 0.3);

  /* Subtle text glow */
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.1));
}

.hero-line {
  display: block;
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);

  color: var(--color-white);
  opacity: 0.6;
  transition: var(--transition-base);
  cursor: pointer;

  animation: fadeIn 1s ease-out 1s forwards;
  opacity: 0;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--color-white),
    transparent
  );
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- ANIMATIONS ---------- */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0%, 100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ---------- RESPONSIVE ---------- */

/* Large desktop */
@media (min-width: 1440px) {
  .hero-img {
    padding-bottom: var(--space-32);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-img {
    min-height: 90vh;
    padding-bottom: var(--space-16);
    background-attachment: scroll; /* Disable parallax on tablet */
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-img {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-16) var(--space-8) var(--space-16);
    background-position: center top;
    align-items: center;
    justify-content: flex-start;
  }

  .hero-text {
    padding: 0;
    text-align: left;
    margin-top: 10vh;
  }

  .hero-img::after {
    height: 70%;
    background: linear-gradient(
      to top,
      var(--color-black) 0%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 0.3) 70%,
      transparent 100%
    );
  }

  .hero-text h1 {
    font-size: clamp(3.5rem, 15vw, 6rem);
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.5),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .scroll-indicator {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-img {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-12) var(--space-4) var(--space-12);
  }
}

/* Landscape mobile - reduce hero height */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-img {
    min-height: 100vh;
    padding-bottom: var(--space-8);
  }
}
