/* ============================================
   Animations — Keyframes & Scroll Animations
   ============================================ */

/* --- Keyframes --- */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Scroll-triggered Animation Classes --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.animate-on-scroll--left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll--right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-on-scroll--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll--scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero Animations */
.hero__title {
  animation: slide-up 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero__subtitle {
  animation: slide-up 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero__buttons {
  animation: slide-up 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero__scroll-indicator {
  animation: bounce-down 2s ease infinite;
  animation-delay: 1.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

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

  .animate-on-scroll,
  .animate-on-scroll--left,
  .animate-on-scroll--right,
  .animate-on-scroll--scale {
    opacity: 1;
    transform: none;
  }

  .hero__title,
  .hero__subtitle,
  .hero__buttons {
    opacity: 1;
  }
}
