/* Animations Classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Header Animation */
.header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.header.scrolled {
  height: 70px;
}

/* Buttons Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Hero Image Animation */
.hero__image img {
  transition: transform 0.8s ease;
}

.hero:hover .hero__image img {
  transform: scale(1.03);
}

/* Benefits Icons Animation */
.benefit__icon {
  transition: transform 0.3s ease;
}

.benefit:hover .benefit__icon {
  transform: scale(1.2) rotate(5deg);
}

/* Testimonial Animation */
.testimonial__stars {
  display: inline-block;
}

.testimonial:hover .testimonial__stars {
  animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* FAQ Animation */
.faq__question {
  transition: color 0.3s ease;
}

.faq__item:hover .faq__question {
  color: var(--color-secondary);
}

/* CTA Button Animation */
.cta .btn--primary {
  animation: pulse 3s infinite;
}

/* Footer Social Icons Animation */
.footer__social-icons a {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer__social-icons a:hover {
  transform: translateY(-5px) rotate(5deg);
}