/* ============================================================
   animations.css — Keyframes e classes de animação
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50%      { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6); }
}

/* marquee: cada grupo (min-width:100%) rola a própria largura + o gap do
   container → o grupo seguinte assume exatamente a posição inicial = loop
   contínuo, sem vão vazio em nenhuma resolução. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 70px)); }
}

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

/* ---------- Animação ao scroll (IntersectionObserver) ---------- */
.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);
}

/* Stagger: atraso progressivo entre cards irmãos */
.mvv__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.12s; }
.mvv__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.24s; }

.produtos__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.produtos__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.produtos__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.produtos__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.produtos__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* Hero: entrada em cascata */
.hero__content .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.hero__content .animate-on-scroll:nth-child(2) { transition-delay: 0.18s; }
.hero__content .animate-on-scroll:nth-child(3) { transition-delay: 0.31s; }
.hero__content .animate-on-scroll:nth-child(4) { transition-delay: 0.44s; }
