/* Hero section animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-tagline {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

/* Service card hover effects */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Testimonial rotation (CSS-only) */
@keyframes testimonialRotate {
  0%, 20% {
    opacity: 1;
    transform: translateX(0);
  }
  25%, 95% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial:nth-child(1) {
  animation: testimonialRotate 12s infinite;
  opacity: 1;
}

.testimonial:nth-child(2) {
  animation: testimonialRotate 12s infinite 4s;
}

.testimonial:nth-child(3) {
  animation: testimonialRotate 12s infinite 8s;
}

/* Button hover animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 0;
  padding-bottom: 120%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  background-color: rgba(255,255,255,0.1);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Form field focus animation */
.form-field input,
.form-field select {
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Benefit items hover effect */
.benefit-item {
  transition: transform 0.3s;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

/* Case study image zoom effect on hover */
.case-study {
  overflow: hidden;
}

.case-study img {
  transition: transform 0.5s;
}

.case-study:hover img {
  transform: scale(1.05);
}