/* ============================================================
   animations.css
   Landing Page — Academia INpacto
   Desenvolvido por: valesmr
   ============================================================ */

/* ============================================================
   1. KEYFRAMES — ANIMAÇÕES PRINCIPAIS
   ============================================================ */

/* Fade Up — aparece de baixo para cima */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fade In — aparece com transparência */
@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Slide In — da esquerda */
@keyframes slideInLeft {
  0%   { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Slide In — da direita */
@keyframes slideInRight {
  0%   { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Pulse — escala rítmica (para WhatsApp) */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Spin — rotação (para spinner de loading) */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Glow Pulse — brilho dourado pulsante */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--gold), 0 0 15px rgba(201, 168, 76, 0.2); }
  50%      { box-shadow: 0 0 25px var(--gold), 0 0 50px rgba(201, 168, 76, 0.4); }
}

/* Checkmark — animação de confirmação (escala + fade) */
@keyframes checkmark {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Bounce In — entrada com efeito de salto */
@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== NOVAS ANIMAÇÕES ===== */

/* Float Up — partículas a subir */
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-110vh) translateX(30px) scale(0.5); opacity: 0; }
}

/* Auto Zoom — zoom lento automático para a imagem Sobre */
@keyframes autoZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ============================================================
   2. CLASSES UTILITÁRIAS DE ANIMAÇÃO (Intersection Observer)
   ============================================================ */

/* Estado inicial (oculto) — ativado pelo JS */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Estado visível — ativado quando a secção entra no viewport */
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide In da esquerda */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In da direita */
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade In simples */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ============================================================
   3. ANIMAÇÕES ESPECÍFICAS
   ============================================================ */

/* Pulse infinito para o WhatsApp flutuante */
.pulse-whatsapp {
  animation: pulse 2s ease-in-out infinite;
}

/* Spinner para botão de loading */
.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
}

/* Contadores animados (números no hero) */
.hero-stat .counter {
  opacity: 0;
}

.hero-stat .counter.visible {
  animation: fadeUp 0.6s ease forwards;
}

/* Glow cursor no hero */
#glow-cursor {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* ============================================================
   4. DELAYS (para animações em cascata)
   ============================================================ */
.delay-100  { transition-delay: 0.1s; }
.delay-200  { transition-delay: 0.2s; }
.delay-300  { transition-delay: 0.3s; }
.delay-400  { transition-delay: 0.4s; }
.delay-500  { transition-delay: 0.5s; }
.delay-600  { transition-delay: 0.6s; }
.delay-700  { transition-delay: 0.7s; }
.delay-800  { transition-delay: 0.8s; }
.delay-900  { transition-delay: 0.9s; }
.delay-1000 { transition-delay: 1s; }

/* ============================================================
   5. ANIMAÇÃO DE SUCESSO (formulário)
   ============================================================ */
.form-feedback.success i {
  animation: bounceIn 0.5s ease forwards;
}

.form-feedback.success {
  animation: fadeUp 0.4s ease forwards;
}