/* Services Page Custom Styles */

/* Ken Burns Animation for Hero Image */
@keyframes ken-burns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.animate-ken-burns {
  animation: ken-burns 20s ease-in-out infinite alternate;
}

/* Background Size and Position for Gradient Animations */
.bg-size-200 {
  background-size: 200% auto;
}

.bg-pos-0 {
  background-position: 0% center;
}

.bg-pos-100 {
  background-position: 100% center;
}

/* Hover effect for gradient buttons */
.group:hover .bg-pos-0 {
  background-position: 100% center;
}

/* Service Card Animations */
.service-card {
  transition: all 0.3s ease-in-out;
}

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

/* Shadow utilities */
.shadow-3xl {
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom backdrop blur for Safari */
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

/* Procedure card pulse animation on hover */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(14, 116, 144, 0);
  }
  50% {
    box-shadow: 0 0 20px 0 rgba(14, 116, 144, 0.3);
  }
}

.group:hover .animate-pulse-glow {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Loading skeleton for images */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Stagger animation for service cards */
.service-card:nth-child(1) {
  animation-delay: 0s;
}

.service-card:nth-child(2) {
  animation-delay: 0.1s;
}

.service-card:nth-child(3) {
  animation-delay: 0.2s;
}

.service-card:nth-child(4) {
  animation-delay: 0.3s;
}

.service-card:nth-child(5) {
  animation-delay: 0.4s;
}

.service-card:nth-child(6) {
  animation-delay: 0.5s;
}

.service-card:nth-child(7) {
  animation-delay: 0.6s;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 1rem;
  }
}
