/* ===== Custom Styles for Sireesha Veeranki Medical Practice ===== */

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

/* Selection color */
::selection {
    background-color: #0f766e;
    color: white;
}

/* ===== Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Animated state: only applied when JS adds the class */
.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1e293b !important;
}

.navbar-scrolled .nav-link:hover {
    color: #0f766e !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Button focus styles ===== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Input focus styles ===== */
input:focus,
textarea:focus {
    outline: none;
}

/* ===== Smooth image loading ===== */
img {
    display: block;
    max-width: 100%;
}

/* ===== Print styles ===== */
@media print {
    nav, #backToTop, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* ===== Mobile menu transitions ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Hero image parallax-like subtle effect ===== */
@media (prefers-reduced-motion: no-preference) {
    #hero img {
        transition: transform 0.6s ease;
    }
}

/* ===== Service card hover glow ===== */
.group:hover .group-hover\:bg-teal-100 {
    box-shadow: 0 0 20px rgba(14, 116, 144, 0.15);
}
