/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-lg) var(--space-md);
  overflow: hidden;
  background-color: var(--color-hero-bg);
}

/* Static image background (visible first) */
.hero-static-bg {
  position: absolute;
  inset: 0;
  background: url('../images/background.webp') center / cover no-repeat;
  z-index: 0;
}

/* Video background (fades in over the static image) */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s linear;
}

.hero-video-bg.visible {
  opacity: 1;
}

.gate-bypass .hero-video-bg {
  opacity: 1;
}

.hero-video-bg::-webkit-media-controls {
  display: none !important;
}

.hero-video-bg::-webkit-media-controls-panel {
  display: none !important;
}

.hero-video-bg::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* Gradient overlay on top of video */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 23, 64, 0.72) 0%,
    rgba(181, 36, 62, 0.5) 40%,
    rgba(158, 124, 22, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
}

.hero-spacer {
  display: none;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-names {
  font-size: 8rem;
  color: var(--color-hero-text);
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  margin-bottom: var(--space-md);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 12px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.hero-amp {
  font-size: 0.6em;
}

.hero-date {
  font-size: 1.1rem;
  color: var(--color-hero-text);
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: none;
  margin-bottom: 0;
  text-shadow:
    0 2px 4px rgba(40, 0, 10, 0.7),
    0 5px 12px rgba(40, 0, 10, 0.5),
    0 10px 24px rgba(20, 0, 5, 0.35);
}


/* ---------- Countdown Widget (inside Hero) ---------- */
.countdown-widget {
  margin-top: 0.4rem;
}

.countdown-widget .countdown-display {
  justify-content: center;
  gap: var(--space-xs);
}

.countdown-widget .countdown-digit {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 2px 6px rgba(40, 0, 10, 0.6);
}

.countdown-widget .countdown-label {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(40, 0, 10, 0.5);
}

.countdown-widget .celebratory-message {
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(40, 0, 10, 0.5);
}

/* ---------- Add to Calendar ---------- */
.add-to-calendar {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 0.5rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.add-to-calendar:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-revealed .add-to-calendar {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
}


/* ---------- Scroll Hint ---------- */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  animation: bounceDown 2s ease-in-out infinite;
  opacity: 0;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
}

.hero-revealed .scroll-hint {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both,
             bounceDown 2s ease-in-out 2s infinite;
}

/* ---------- Hero Entrance Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-names,
.hero-date,
.countdown-widget {
  opacity: 0;
}

.hero-revealed .hero-names {
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-revealed .hero-date {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-revealed .countdown-widget {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

#main-nav {
  opacity: 0;
  transform: translateY(-100%);
}

#main-nav.nav-revealed {
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
}
