/* ========================================
   Dr. Sunita Ravikumar — Custom Styles
   ======================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: #3D3230;
    background-color: #FDFBF9;
}

.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Selection Color */
::selection {
    background-color: #7B2D3B;
    color: #FDFBF9;
}

/* ========================================
   Header Styles
   ======================================== */
#header {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#header.scrolled {
    background-color: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* ========================================
   Mobile Menu
   ======================================== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
    animation: fadeInUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Animation */
.menu-line {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
    margin-left: 0;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal.revealed {
        animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .reveal-delay-1 { animation-delay: 0.1s; }
    .reveal-delay-2 { animation-delay: 0.2s; }
    .reveal-delay-3 { animation-delay: 0.3s; }
    .reveal-delay-4 { animation-delay: 0.4s; }
    .reveal-delay-5 { animation-delay: 0.5s; }
    .reveal-delay-6 { animation-delay: 0.6s; }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
textarea:focus {
    border-color: #d4456a !important;
    box-shadow: 0 0 0 3px rgba(212, 69, 106, 0.08);
}

/* ========================================
   Map Hover
   ======================================== */
iframe:hover {
    filter: grayscale(0);
}

/* ========================================
   Smooth Scroll Offset for Fixed Header
   ======================================== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    #header,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
