/* Custom styles for Narsinhbhai Ahir Medical */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

/* Scroll reveal with JS enhancement (only when JS is enabled and reduced motion is off) */
@media (prefers-reduced-motion: no-preference) {
    .js-enabled .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .js-enabled .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .js-enabled .scroll-reveal[data-delay="50"] { transition-delay: 50ms; }
    .js-enabled .scroll-reveal[data-delay="100"] { transition-delay: 100ms; }
    .js-enabled .scroll-reveal[data-delay="150"] { transition-delay: 150ms; }
    .js-enabled .scroll-reveal[data-delay="200"] { transition-delay: 200ms; }
    .js-enabled .scroll-reveal[data-delay="250"] { transition-delay: 250ms; }
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
    padding-bottom: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #back-to-top, .scroll-reveal { display: none; }
    body { color: #000; background: #fff; }
    section { page-break-inside: avoid; }
}
