﻿/* ==========================================================================
   ANIMAÇÕES MODERNAS E FUTURISTAS
   ========================================================================== */

/* Animação de Surgimento por Scroll (Scroll Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

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

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

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

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

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* Delays escalonados para listas e grids */
.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; }

/* Efeito de Brilho Pulsante no CTA (Sutil e Elegante) */
@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.5), 0 10px 25px -5px rgba(0, 229, 153, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 229, 153, 0), 0 14px 30px -5px rgba(0, 229, 153, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0), 0 10px 25px -5px rgba(0, 229, 153, 0.4);
  }
}

.cta-pulse {
  animation: ctaPulse 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Efeito Shimmer / Raio de Luz que passa suavemente pelo botão */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmerPass 4.5s infinite ease-in-out;
}

@keyframes shimmerPass {
  0% { left: -70%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* Flutuação Suave (Floating element) */
@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.floating-element {
  animation: subtleFloat 5s ease-in-out infinite;
}

.floating-element-reverse {
  animation: subtleFloat 6s ease-in-out infinite reverse;
}

/* Ambient Glow Orb Animation */
@keyframes glowDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
    opacity: 0.5;
  }
}

.ambient-glow {
  animation: glowDrift 8s ease-in-out infinite;
}

/* Sticky Bottom Bar Slide-Up no Celular */
.sticky-mobile-cta {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Efeito de Card Glow ao passar o mouse */
.glass-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 15px 35px -10px rgba(0, 229, 153, 0.15), 0 0 20px 0 rgba(0, 229, 153, 0.05);
}

/* Suavidade para Accordion / Sanfona */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Modal Fade Animation */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}
