/**
 * Filmistaan - Keyframes & Micro-Animations
 * ----------------------------------------
 * Cinematic entrance choreography, ambient breathing, dynamic sheens, and scroll reveals
 */

/* ==========================================================================
   Page Load Hero Entrance Choreography
   ========================================================================== */

/* Header fade down */
.site-header {
  animation: fadeInDown 0.8s var(--ease-smooth) both;
}

/* 1. Kicker badge entrance */
.kicker-badge {
  animation: kickerEntrance 0.7s var(--ease-smooth) 0.15s both;
}

/* 2. Hero logo dramatic cinematic zoom */
.hero-logo-wrap {
  animation: logoEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both,
             floatGentle 7s ease-in-out 1.4s infinite alternate;
}

/* 3. Hero headline */
.hero-title {
  animation: riseUp 0.8s var(--ease-smooth) 0.45s both;
}

/* 4. Hero description */
.hero-description {
  animation: riseUp 0.8s var(--ease-smooth) 0.6s both;
}

/* 5. Hero CTA buttons */
.hero-actions {
  animation: riseUp 0.8s var(--ease-smooth) 0.75s both;
}

/* 6. Scroll cue */
.scroll-cue {
  animation: fadeIn 1s ease 1s both;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes kickerEntrance {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* Subtle continuous floating levitation */
@keyframes floatGentle {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Radar pulse for kicker dot */
@keyframes pulseRadar {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70% {
    transform: scale(3.2);
    opacity: 0;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Gradient shimmer across "Coming soon." */
@keyframes shimmerGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Button light sweep sheen */
@keyframes buttonSheen {
  0%, 60% {
    left: -75%;
    opacity: 0;
  }
  65% {
    opacity: 0.75;
  }
  75% {
    left: 125%;
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Chevron scroll cue bounce */
@keyframes chevronBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Ambient halo breathe */
@keyframes haloBreathe {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Status banner entrance */
@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Scroll-Triggered Reveals (via IntersectionObserver in JS)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child items */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  #particles-canvas {
    display: none !important;
  }

  .hero-logo-wrap {
    transform: none !important;
  }
}
