/* FADE IN ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* CLIENTS CAROUSEL ANIMATION */
@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* FAQ ANIMATIONS */
@keyframes faqContentExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* APPLY ANIMATIONS */
.hero-content {
  animation: fadeIn 0.8s ease-out;
}

.hero-content h1 {
  animation: slideInDown 0.8s ease-out 0.1s both;
}

.hero-content p {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-content .button {
  animation: scaleUp 0.6s ease-out 0.3s both;
}

.client-logo {
  animation: fadeIn 0.6s ease-out both;
}

.client-logo:nth-child(1) { animation-delay: 0.1s; }
.client-logo:nth-child(2) { animation-delay: 0.2s; }
.client-logo:nth-child(3) { animation-delay: 0.3s; }
.client-logo:nth-child(4) { animation-delay: 0.4s; }
.client-logo:nth-child(5) { animation-delay: 0.5s; }
.client-logo:nth-child(6) { animation-delay: 0.6s; }
.client-logo:nth-child(7) { animation-delay: 0.7s; }
/* Duplicate logos use same delays */
.client-logo:nth-child(8) { animation-delay: 0.1s; }
.client-logo:nth-child(9) { animation-delay: 0.2s; }
.client-logo:nth-child(10) { animation-delay: 0.3s; }
.client-logo:nth-child(11) { animation-delay: 0.4s; }
.client-logo:nth-child(12) { animation-delay: 0.5s; }
.client-logo:nth-child(13) { animation-delay: 0.6s; }
.client-logo:nth-child(14) { animation-delay: 0.7s; }

.activity-card {
  animation: scaleUp 0.6s ease-out both;
}

.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }

.step {
  animation: slideInLeft 0.6s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.faq-item {
  animation: fadeIn 0.6s ease-out both;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }

.faq h3 {
  animation: fadeIn 0.6s ease-out 0.35s both;
}

.faq > .container > a.button {
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.news-card {
  animation: scaleUp 0.6s ease-out both;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }

/* SCROLL ANIMATIONS */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  opacity: 1;
}

/* BUTTON EFFECTS */
.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:active::before {
  width: 300px;
  height: 300px;
}

/* SMOOTH TRANSITIONS */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a, button {
  transition: all 0.3s ease;
}
