/* Pure CSS Animations - No GSAP Required */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation Classes */
.fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

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

/* Stagger delays for multiple elements */
.fade-up:nth-child(1) { animation-delay: 0s; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }
.fade-up:nth-child(6) { animation-delay: 0.5s; }

.scale-in:nth-child(1) { animation-delay: 0s; }
.scale-in:nth-child(2) { animation-delay: 0.15s; }
.scale-in:nth-child(3) { animation-delay: 0.3s; }
.scale-in:nth-child(4) { animation-delay: 0.45s; }
.scale-in:nth-child(5) { animation-delay: 0.6s; }
.scale-in:nth-child(6) { animation-delay: 0.75s; }

/* Scroll-triggered animations using Intersection Observer */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Product cards animation */
.product-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }
.product-card:nth-child(7) { animation-delay: 0.6s; }
.product-card:nth-child(8) { animation-delay: 0.7s; }

/* Feature cards animation */
.feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.24s; }
.feature-card:nth-child(4) { animation-delay: 0.36s; }
.feature-card:nth-child(5) { animation-delay: 0.48s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Category cards animation */
.category-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }
.category-card:nth-child(6) { animation-delay: 0.5s; }
.category-card:nth-child(7) { animation-delay: 0.6s; }
.category-card:nth-child(8) { animation-delay: 0.7s; }
.category-card:nth-child(9) { animation-delay: 0.8s; }
.category-card:nth-child(10) { animation-delay: 0.9s; }

/* Trust items animation */
.trust-item {
  animation: fadeInUp 0.6s ease-out forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.2s; }
.trust-item:nth-child(2) { animation-delay: 0.3s; }
.trust-item:nth-child(3) { animation-delay: 0.4s; }
.trust-item:nth-child(4) { animation-delay: 0.5s; }

/* Hero animations */
.hero-inner > * {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.6s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.8s; }

/* Continuous animations */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* About page specific animations */
.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
  animation: scaleIn 0.8s ease-out forwards;
}

.animate-scale:nth-child(1) { animation-delay: 0s; }
.animate-scale:nth-child(2) { animation-delay: 0.15s; }
.animate-scale:nth-child(3) { animation-delay: 0.3s; }

.value-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.value-card:nth-child(1) { animation-delay: 0s; }
.value-card:nth-child(2) { animation-delay: 0.1s; }
.value-card:nth-child(3) { animation-delay: 0.15s; }
.value-card:nth-child(4) { animation-delay: 0.2s; }
.value-card:nth-child(5) { animation-delay: 0.25s; }
.value-card:nth-child(6) { animation-delay: 0.3s; }

.doctor-card {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* Contact page animations */
.gsap-fade {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
