/* ============================================================
   RUNNERS — animations.css
   Keyframe animations, transitions, and motion utilities
   ============================================================ */

/* ----------------------------------------------------------
   1. HERO ANIMATIONS
   ---------------------------------------------------------- */

/* Hero text entrance */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero badge */
.hero__badge {
  animation: slideUpFade 0.6s ease-out both;
  animation-delay: 0.1s;
}

/* Hero title */
.hero__title {
  animation: slideUpFade 0.7s ease-out both;
  animation-delay: 0.2s;
}

/* Hero subtitle */
.hero__subtitle {
  animation: slideUpFade 0.7s ease-out both;
  animation-delay: 0.35s;
}

/* Hero CTA buttons */
.hero__actions {
  animation: slideUpFade 0.7s ease-out both;
  animation-delay: 0.5s;
}

/* Hero visual */
.hero__visual {
  animation: slideUpFade 0.8s ease-out both;
  animation-delay: 0.4s;
}


/* ----------------------------------------------------------
   2. FLOATING CARD ANIMATIONS
   ---------------------------------------------------------- */

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-14px) rotate(0deg); }
}


/* ----------------------------------------------------------
   3. SCROLL INDICATOR
   ---------------------------------------------------------- */

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}


/* ----------------------------------------------------------
   4. WHATSAPP FAB PULSE
   ---------------------------------------------------------- */

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  70%  { transform: scale(1.8);  opacity: 0; }
  100% { transform: scale(1.8);  opacity: 0; }
}


/* ----------------------------------------------------------
   5. PAGE-LEVEL ENTRANCE
   ---------------------------------------------------------- */

/* Nav logo reveal */
@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav__logo {
  animation: logoReveal 0.5s ease-out both;
  animation-delay: 0.1s;
}

.nav__links,
.nav__actions {
  animation: slideUpFade 0.5s ease-out both;
  animation-delay: 0.2s;
}


/* ----------------------------------------------------------
   6. HOVER EFFECTS
   ---------------------------------------------------------- */

/* Icon scale on card hover */
.card--service:hover .card__icon-wrap svg,
.card--biz:hover .biz__icon svg {
  transform: scale(1.12);
  transition: transform var(--transition-spring);
}

/* Arrow link nudge */
.card__link svg {
  transition: transform var(--transition-fast);
}

.card--service:hover .card__link svg {
  transform: translateX(4px);
}

/* Button icon nudge */
.btn:hover .btn__icon {
  transform: translateX(2px);
  transition: transform var(--transition-fast);
}


/* ----------------------------------------------------------
   7. CUSTOM AOS OVERRIDES
   ---------------------------------------------------------- */

/* Increase smoothness for card waves */
[data-aos="fade-up"] {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-aos="fade-in"] {
  transition-timing-function: ease-out !important;
}


/* ----------------------------------------------------------
   8. LOADING STATE
   ---------------------------------------------------------- */

@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-100) 25%,
    var(--color-gray-200) 50%,
    var(--color-gray-100) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}


/* ----------------------------------------------------------
   9. SCROLL-TRIGGERED COUNTER (for stats)
   ---------------------------------------------------------- */

.stat-item__number {
  display: inline-block;
  transition: transform 0.3s var(--transition-spring);
}

.stat-item:hover .stat-item__number {
  transform: scale(1.08);
}


/* ----------------------------------------------------------
   10. REDUCED MOTION
   ---------------------------------------------------------- */

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

  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__visual,
  .nav__logo,
  .nav__links,
  .nav__actions {
    animation: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
