/* ============================================
   Dr. Ronak Chaudhari — Premium Dark Luxury
   Medical & Health Website
   Colors: Terracotta + Sand on Deep Dark
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0A0A0A;
    color: #F5E6D3;
    overflow-x: hidden;
}

::selection {
    background: rgba(184, 93, 72, 0.4);
    color: #FDF8F3;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(245, 230, 211, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #E26A52, #D4956A);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #F5BFB0;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 230, 211, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ---------- Hero Glow Animations ---------- */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 25px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.12); }
}

.hero-glow {
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.hero-glow-1 {
    animation-name: float-slow;
    background: radial-gradient(circle, rgba(184, 93, 72, 0.6) 0%, transparent 70%);
}

.hero-glow-2 {
    animation-duration: 25s;
    animation-name: float-medium;
    background: radial-gradient(circle, rgba(212, 149, 106, 0.5) 0%, transparent 70%);
}

.hero-glow-3 {
    animation-duration: 18s;
    animation-name: float-fast;
    background: radial-gradient(circle, rgba(154, 74, 56, 0.4) 0%, transparent 70%);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-up {
        transform: translateY(40px);
    }

    .reveal-left {
        transform: translateX(-40px);
    }

    .reveal-right {
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }

    /* Stagger children */
    .service-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Service Cards ---------- */
.service-card {
    /* Default state: always visible for accessibility */
}

/* ---------- Smooth scroll offset for anchored links ---------- */
[id] {
    scroll-margin-top: 80px;
}

/* ---------- Button hover glow ---------- */
a[href^="tel"] {
    position: relative;
}

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #B85D48, #9A4A38);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E26A52, #B85D48);
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E26A52;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Print ---------- */
@media print {
    #navbar, .hero-glow, [class*="glow"] {
        display: none !important;
    }
    
    body {
        background: white;
        color: #1a1a1a;
    }
    
    a {
        color: #B85D48;
    }
}
