/* Custom styles for Dr. Arya Medical Website */

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 31, 60, 0.08);
}

#navbar.scrolled .font-display,
#navbar.scrolled span,
#navbar.scrolled a:not(.bg-navy-800) {
    color: #111f3c !important;
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #111f3c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a2d54;
}

/* Selection color */
::selection {
    background: #d49a32;
    color: #0a1628;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fade-in animation for below-fold content */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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