/* Animation Styles */

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

/* Fade In (Staggered) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Delay classes for staggered animations */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

/* Scale Animation */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Pulse Animation (for CTA buttons) */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 87, 184, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 87, 184, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 87, 184, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Slide In From Right */
@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Number Counter Animation */
@keyframes countUp {
  from {
    content: "0";
  }
  to {
    content: attr(data-count);
  }
}

/* Service Card Hover Effect */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* Button Hover Animation */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.5s;
  transform: translate(-50%, -50%);
  border-radius: var(--border-radius-md);
}

.btn:hover::after {
  height: 300%;
}

/* Image Hover Effect */
.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
}

/* Testimonial Transition */
.testimonial-transition {
  animation: fadeIn 0.5s ease-out;
}

/* Form Focus Animation */
input:focus,
textarea:focus {
  transition: all 0.3s ease;
  transform: translateY(-2px);
}