/* =============================================
   ANIMATIONS.CSS — Keyframes, Reveal, Transitions
   Alana Amorim | Nutricionista
   ============================================= */

/* =============================================
   REVEAL ON SCROLL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay helpers */
.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; }

/* =============================================
   FLOAT ANIMATION (elementos decorativos)
   ============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* =============================================
   PULSE (botão CTA WhatsApp)
   ============================================= */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(169, 72, 139, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(169, 72, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 72, 139, 0); }
}

.pulse {
  animation: pulse-ring 2.2s cubic-bezier(0.66, 0, 0, 1) infinite;
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: pulse-green 2.5s cubic-bezier(0.66, 0, 0, 1) infinite;
}

/* =============================================
   FADE IN (hero inicial)
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image-wrapper {
  animation: fadeInUp 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =============================================
   COUNTER ANIMATION (JS controlled)
   ============================================= */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* =============================================
   CREATIVE MORPH AND FLOAT ANIMATIONS
   ============================================= */
@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes profileFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    box-shadow: 0 12px 40px rgba(169, 72, 139, 0.15); 
  }
  50% { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 20px 50px rgba(169, 72, 139, 0.25); 
  }
}
