/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Applying animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInFromRight 0.8s forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInFromLeft 0.8s forwards;
}

.slide-in-bottom {
  opacity: 0;
  animation: slideInFromBottom 0.8s forwards;
}

/* Staggered animations for children */
.staggered-animation > * {
  opacity: 0;
}

.staggered-animation > *:nth-child(1) {
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.1s;
}

.staggered-animation > *:nth-child(2) {
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.2s;
}

.staggered-animation > *:nth-child(3) {
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.3s;
}

.staggered-animation > *:nth-child(4) {
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.4s;
}

.staggered-animation > *:nth-child(5) {
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.5s;
}

/* CSS-only slider animation */
.testimonials-slider {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  animation: testimonialSlide 20s infinite;
}

@keyframes testimonialSlide {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(-100%);
  }
  50%, 70% {
    transform: translateX(-200%);
  }
  75%, 95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

/* CSS-only accordions for FAQ */
.accordion-item {
  margin-bottom: 10px;
}

.accordion-header {
  background-color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: var(--text);
}

.accordion-header:hover {
  background-color: rgba(0,95,96,0.05);
}

.accordion-header:after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 20px;
}

/* We'll use PHP to add this class when accordion is active */
.accordion-item.active .accordion-header:after {
  content: '-';
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  padding: 20px;
}
