/* ==========================================================================
   Animations — Keyframes, Reveal, Marquee, Pulse
   ========================================================================== */

/* ── Hero Blur-In ── */
@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-blur-in {
  opacity: 0;
  animation: blurIn 0.8s var(--ease-smooth) forwards;
}

.hero-blur-in:nth-child(1) { animation-delay: 0.1s; }
.hero-blur-in:nth-child(2) { animation-delay: 0.25s; }
.hero-blur-in:nth-child(3) { animation-delay: 0.4s; }
.hero-blur-in:nth-child(4) { animation-delay: 0.55s; }
.hero-blur-in:nth-child(5) { animation-delay: 0.7s; }

/* ── Scroll Reveal ── */
.reveal {
  transition: transform var(--duration-reveal) var(--ease-smooth),
              opacity var(--duration-reveal) var(--ease-smooth);
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(60px);
}

body.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger .reveal:nth-child(6) { transition-delay: 0.5s; }

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

/* ── CTA Pulse Ring ── */
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* ── WhatsApp Bounce ── */
@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.whatsapp-float.visible {
  animation: whatsappBounce 2s ease-in-out 3s infinite;
}

/* ── Float animation for decorative elements ── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

/* ── Gradient Shift ── */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Counter animation class ── */
.counter-animate {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Smooth section transitions ── */
.section-transition {
  position: relative;
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-white));
  pointer-events: none;
}
