/* Custom styles for Orthopedic Health Center */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f2;
}
::-webkit-scrollbar-thumb {
  background: #941e1e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7a1b1b;
}

/* Service card hover glow */
.group:hover .absolute {
  opacity: 1;
}

/* Hero geometric animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(45deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

.hero-shape-1 {
  animation: float 6s ease-in-out infinite;
}
.hero-shape-2 {
  animation: floatSlow 8s ease-in-out infinite;
}

/* Button focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #dc4f4f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonial card hover */
.bg-burgundy-950:hover,
.bg-blush-500:hover,
.bg-burgundy-800:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(148, 30, 30, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-shape-1,
  .hero-shape-2 {
    animation: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  #navbar, #contactForm, #formSuccess {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
