/* CSS Animations */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide In Animation */
@keyframes slideInFromBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Apply animations to elements */
.hero-content {
  animation: slideInFromLeft 1s ease forwards;
}

.hero-image {
  animation: slideInFromRight 1s ease forwards;
}

.service-card {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.2s);
  opacity: 0;
}

.service-card:nth-child(1) {
  --animation-order: 1;
}

.service-card:nth-child(2) {
  --animation-order: 2;
}

.service-card:nth-child(3) {
  --animation-order: 3;
}

.audit-type {
  animation: fadeIn 0.8s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.2s);
  opacity: 0;
}

.audit-type:nth-child(1) {
  --animation-order: 1;
}

.audit-type:nth-child(2) {
  --animation-order: 2;
}

.audit-type:nth-child(3) {
  --animation-order: 3;
}

.process-step {
  animation: slideInFromLeft 0.6s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.15s);
  opacity: 0;
}

.process-step:nth-child(1) {
  --animation-order: 1;
}

.process-step:nth-child(2) {
  --animation-order: 2;
}

.process-step:nth-child(3) {
  --animation-order: 3;
}

.process-step:nth-child(4) {
  --animation-order: 4;
}

.process-step:nth-child(5) {
  --animation-order: 5;
}

.process-step:nth-child(6) {
  --animation-order: 6;
}

.benefit-item {
  animation: slideInFromBottom 0.6s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.15s);
  opacity: 0;
}

.benefit-item:nth-child(1) {
  --animation-order: 1;
}

.benefit-item:nth-child(2) {
  --animation-order: 2;
}

.benefit-item:nth-child(3) {
  --animation-order: 3;
}

.benefit-item:nth-child(4) {
  --animation-order: 4;
}

.benefit-item:nth-child(5) {
  --animation-order: 5;
}

.benefit-item:nth-child(6) {
  --animation-order: 6;
}

.cta-button:hover {
  animation: pulse 0.8s infinite;
}

/* Animate section titles on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}