/* Animações para o website AIGENIA */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In Right */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Zoom In */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(123, 44, 191, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.3);
  }
}

/* Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Typing Indicator Animation */
@keyframes typingBounce {
  0%, 80%, 100% { 
    transform: scale(0);
  }
  40% { 
    transform: scale(1);
  }
}

/* Classes de animação para aplicar aos elementos */
.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

.animate-floating {
  animation: floating 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Delays para animações em sequência */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Animações para elementos específicos */

/* Hero Section */
.hero-section h1 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-section h2 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-section .hero-cta {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

/* Floating Highlights */
.floating-highlights span {
  animation: floating 3s ease-in-out infinite;
}

.floating-highlights span:nth-child(2) {
  animation-delay: 0.5s;
}

.floating-highlights span:nth-child(3) {
  animation-delay: 1s;
}

.floating-highlights span:nth-child(4) {
  animation-delay: 1.5s;
}

/* WhatsApp Demo */
.whatsapp-demo-section .phone-frame {
  animation: zoomIn 1s ease forwards;
}

/* Typing Animation for Chat */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 8px 15px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: rgba(123, 44, 191, 0.7);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.03);
}

/* WhatsApp Button */
.whatsapp-button .whatsapp-cta {
  animation: pulse 2s infinite;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(123, 44, 191, 0.05);
}

.toggle-icon {
  transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Form Inputs */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.2);
}

/* Preferência de usuário para reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
