/* ===========================================
   ANIMATIONS.CSS — Motion (Dark theme + Aurora)
   =========================================== */

/* -- Scroll-reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > [data-reveal]                  { transition-delay: 0ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(2)     { transition-delay: 60ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(3)     { transition-delay: 120ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(4)     { transition-delay: 180ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(5)     { transition-delay: 240ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(6)     { transition-delay: 300ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(7)     { transition-delay: 360ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(8)     { transition-delay: 420ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(9)     { transition-delay: 480ms; }
[data-reveal-stagger] > [data-reveal]:nth-child(10)    { transition-delay: 540ms; }

/* -- Hero entrance -- */
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate-1 { animation: heroFadeInUp 700ms var(--ease-out) forwards; }
.hero-animate-2 { animation: heroFadeInUp 700ms var(--ease-out) 150ms forwards; opacity: 0; }
.hero-animate-3 { animation: heroFadeInUp 700ms var(--ease-out) 300ms forwards; opacity: 0; }
.hero-animate-4 { animation: heroFadeInUp 700ms var(--ease-out) 450ms forwards; opacity: 0; }

/* -- Hero glow pulse -- */
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}
.hero-glow {
  animation: glowPulse 10s ease-in-out infinite;
}

/* -- Aurora glow orbs -- */
@keyframes auroraFloat1 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(40px, -30px); }
  50%  { transform: translate(-20px, 20px); }
  75%  { transform: translate(30px, 10px); }
  100% { transform: translate(0, 0); }
}
@keyframes auroraFloat2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-35px, 25px); }
  50%  { transform: translate(25px, -15px); }
  75%  { transform: translate(-15px, -25px); }
  100% { transform: translate(0, 0); }
}
@keyframes auroraFloat3 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(20px, 35px); }
  50%  { transform: translate(-30px, -10px); }
  75%  { transform: translate(10px, -30px); }
  100% { transform: translate(0, 0); }
}
@keyframes auroraPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* -- Background ambient glow (for body) -- */
@keyframes ambientGlow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.8; }
}
.ambient-glow {
  display: none; /* disabled — background image provides the glow */
}

/* -- Card glow on hover -- */
@keyframes cardGlow {
  0%   { box-shadow: 0 0 0 rgba(111,135,245,0); }
  100% { box-shadow: 0 0 20px rgba(111,135,245,0.15); }
}

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero-glow-orb,
  .ambient-glow {
    animation: none !important;
    opacity: 0.5;
  }
}
