/* ========================================
   ANIMATION SYSTEM
   ======================================== */

/* Fade In */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.15s;
}

/* Stagger In */
.stagger-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hex floating animation */
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.hex {
  animation: hexFloat 6s ease-in-out infinite;
}

.hex-1 { animation-delay: 0s; }
.hex-2 { animation-delay: 0.8s; }
.hex-3 { animation-delay: 1.6s; }
.hex-4 { animation-delay: 2.4s; }
.hex-5 { animation-delay: 3.2s; }
.hex-6 { animation-delay: 4s; }
.hex-7 { animation-delay: 4.8s; }

/* Ambient glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(247,200,67,0.04); }
  50% { box-shadow: 0 0 60px rgba(247,200,67,0.08); }
}

.hero-panel {
  animation: glowPulse 5s ease-in-out infinite;
}

/* Subtle scale on hero image */
@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.hero-img {
  animation: slowZoom 20s ease-in-out alternate infinite;
}

/* Nav border glow */
@keyframes navGlow {
  0%, 100% { border-bottom-color: rgba(247, 200, 67, 0.08); }
  50% { border-bottom-color: rgba(247, 200, 67, 0.15); }
}

.glass-nav {
  animation: navGlow 4s ease-in-out infinite;
}

/* Stat number count feel */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .stagger-in {
    opacity: 1;
    transform: none;
  }
}