/* =====================================================
   ANIMATION.CSS
   Keyframes + scroll-reveal utility classes
   ===================================================== */

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.35); }
  50% { box-shadow: 0 0 0 14px rgba(37,99,235,0); }
}

.hero-shape.one { animation: floatY 8s ease-in-out infinite; }
.hero-shape.two { animation: floatY 10s ease-in-out infinite reverse; }
.hero-badge { animation: floatY 5s ease-in-out infinite; }

/* Scroll reveal base states */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
[data-animate].in-view { opacity: 1; transform: none !important; }

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="slide-left"] { transform: translateX(60px); }
[data-animate="slide-right"]{ transform: translateX(-60px); }
[data-animate="zoom-in"]    { transform: scale(0.88); }

/* Stagger children helper via inline transition-delay set in JS using --d */
[data-animate] { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-shape, .hero-badge { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
