/* ==========================================================================
   animations.css  |  Keyframes + animation helper classes
   All animations are pure CSS (no JS animation library needed).
   ========================================================================== */


/* 1. KEYFRAMES ------------------------------------------------------------- */

/* aurora blobs drifting slowly in the fixed background */
@keyframes drift-a {
  0%, 100% { transform: translate(0) scale(1); }
  50%      { transform: translate(6vw, 4vh) scale(1.15); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0) scale(1.1); }
  50%      { transform: translate(-5vw, -4vh) scale(.95); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0) scale(1); }
  50%      { transform: translate(4vw, -6vh) scale(1.2); }
}

/* hero image gently floating up and down */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* infinite horizontal story slider (track holds the cards twice) */
@keyframes marquee-x {
  from { transform: translate(0); }
  to   { transform: translate(-50%); }
}


/* 2. HELPER CLASSES -------------------------------------------------------- */
.animate-drift-a { animation: drift-a 18s ease-in-out infinite; }
.animate-drift-b { animation: drift-b 22s ease-in-out infinite; }
.animate-drift-c { animation: drift-c 26s ease-in-out infinite; }
.animate-float-y { animation: float-y 6s ease-in-out infinite; }
.animate-marquee { animation: marquee-x 45s linear infinite; }

/* hover over the slider = pause it (hover devices only, like the original) */
@media (hover: hover) {
  .animate-marquee:hover { animation-play-state: paused; }
}
