/* ==========================================================================
   animations.css — keyframes e animações de entrada (scroll reveal)
   As classes [data-reveal] só ficam ocultas quando o JS está ativo
   (html.js), garantindo conteúdo visível sem JavaScript.
   ========================================================================== */

@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollCue { 0% { top: -50%; } 100% { top: 100%; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Entrada do hero */
.hero__media img { animation: heroZoom 14s var(--ease) forwards; }
.hero__content > * { animation: fadeUp 1s var(--ease-out) both; }
.hero__content > *:nth-child(1) { animation-delay: .15s; }
.hero__content > *:nth-child(2) { animation-delay: .3s; }
.hero__content > *:nth-child(3) { animation-delay: .45s; }
.hero__content > *:nth-child(4) { animation-delay: .6s; }
.hero__content > *:nth-child(5) { animation-delay: .75s; }
.hero-card { animation: fadeUp 1s .9s var(--ease-out) both; }
.page-hero .container > * { animation: fadeUp .9s var(--ease-out) both; }
.page-hero .container > *:nth-child(2) { animation-delay: .1s; }
.page-hero .container > *:nth-child(3) { animation-delay: .2s; }
.page-hero .container > *:nth-child(4) { animation-delay: .3s; }
.about__badge { animation: float 6s ease-in-out infinite; }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="down"] { transform: translateY(-40px); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Preferência do usuário: reduzir movimento (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
