/* =============================================
   SPILAT.COM - Animations
   ============================================= */

/* --- Floating animation (hero badges) --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.anim-float {
  animation: float 4s ease-in-out infinite;
}

.anim-float--delayed {
  animation: float-delayed 5s ease-in-out 1s infinite;
}

/* --- Pulse animation (CTA buttons) --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 45, 120, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(255, 45, 120, 0.5); }
}

.anim-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* --- Marquee animation --- */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__track {
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* --- Fade In Up (scroll reveal) --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scale In --- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Slide In Left --- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Slide In Right --- */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Counter number roll --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Gradient shift (CTA section background) --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.anim-gradient {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* --- Spin (loading) --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.anim-spin {
  animation: spin 1s linear infinite;
}

/* --- Hero entrance animations --- */
.hero__content {
  animation: fadeInUp 0.8s ease-out;
}

.hero__visual {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__float-badge--top {
  animation: float 4s ease-in-out infinite, fadeInUp 0.8s ease-out 0.5s both;
}

.hero__float-badge--bottom {
  animation: float-delayed 5s ease-in-out 1s infinite, fadeInUp 0.8s ease-out 0.7s both;
}

/* --- Navbar entrance --- */
.navbar {
  animation: fadeInUp 0.5s ease-out;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
