/* animations.css
 * Keyframes CSS e classes de transição reutilizáveis
 * APENAS animações CSS puras (hover transitions, keyframes de loop)
 * Animações com Anime.js ficam em js/animations.js — NÃO misturar
 */

/* === Animation utility classes === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-up {
  animation: slideUp 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scale-in {
  animation: scaleIn 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50%       { box-shadow: var(--shadow-glow-lg); }
}

/* === Scroll-triggered section entrance === */
.animate-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Reduced motion override (ANIM-04) === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
