:root {
    --primary: #0D3B66;
    --secondary: #0B6E99;
    --accent: #19B5FE;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --dark-text: #1E293B;
    --gray: #64748B;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 15px -3px rgba(13, 59, 102, 0.08), 0 4px 6px -2px rgba(13, 59, 102, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(13, 59, 102, 0.1), 0 10px 10px -5px rgba(13, 59, 102, 0.04);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Core Mechanics & Base Resets */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary);
    font-weight: 600;
}

/* Custom Scrollbar & Loading Layer */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    width: 0%;
    z-index: 9999;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Typography & Layout Accents */
.section-padding {
    padding: 100px 0;
}

.section-title-wrapper {
    margin-bottom: 45px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--secondary), var(--accent));
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Premium Micro-Interactions */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    font-family: var(--font-headings);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-premium:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px rgba(13, 59, 102, 0.2);
        color: var(--white);
        opacity: 0.95;
    }

.btn-outline-premium {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-outline-premium:hover {
        background: var(--primary);
        color: var(--white);
        transform: translateY(-3px);
    }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

/* Sticky Navigation Architecture */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition);
    z-index: 1030;
    padding: 15px 0;
}

    .navbar-custom.scrolled {
        padding: 10px 0;
        box-shadow: var(--shadow-sm);
        background: rgba(255, 255, 255, 0.95);
    }

.navbar-brand-custom {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .navbar-brand-custom span {
        color: var(--accent);
    }

.nav-link-custom {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text) !important;
    padding: 8px 16px !important;
    transition: var(--transition);
    border-radius: 20px;
}

    .nav-link-custom:hover, .nav-link-custom.active {
        color: var(--secondary) !important;
        background: rgba(11, 110, 153, 0.05);
    }

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger-icon {
    font-size: 1.35rem;
    color: var(--primary);
}

/* ==========================================
           APPLE PARALLAX HERO - SCREEN COMPRESSION
           ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(25, 181, 254, 0.08) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(13, 59, 102, 0.04) 0%, transparent 50%), var(--white);
    padding: 120px 0 80px 0;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.hero-img-main {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* Absolute Floating Metric Badges (Desktop Only) */
.floating-stat-card {
    position: absolute;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.f-stat-1 {
    top: 12%;
    left: -5%;
    animation-delay: 0s;
}

.f-stat-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.f-stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(25, 181, 254, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.f-stat-num {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.f-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-stats-grid {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Trust Strip Matrix */
.trust-strip {
    background: var(--primary);
    padding: 35px 0;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

    .trust-item i {
        font-size: 1.6rem;
        color: var(--accent);
        flex-shrink: 0;
    }

.trust-text h5 {
    font-size: 0.95rem;
    color: var(--white);
    margin: 0 0 2px 0;
    font-weight: 600;
}

.trust-text p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Timelines & Procedures */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

    .timeline-container::after {
        content: '';
        position: absolute;
        width: 4px;
        background: rgba(11, 110, 153, 0.15);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
        border-radius: 2px;
    }

.timeline-block {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-block-left {
    left: 0;
    text-align: right;
}

.timeline-block-right {
    left: 50%;
    text-align: left;
}

.timeline-pointer {
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    top: 6px;
    background: var(--white);
    border: 4px solid var(--secondary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-block-right .timeline-pointer {
    left: -9px;
}

.timeline-block:hover .timeline-pointer {
    background: var(--accent);
    transform: scale(1.2);
}

.timeline-date {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Specialities Grid Engine */
.spec-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 59, 102, 0.05) 0%, rgba(25, 181, 254, 0.05) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.glass-card:hover .spec-icon-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    transform: rotateY(180deg);
}

/* Floating Controls & Interactivity Layer */
.sticky-action-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.3rem;
    border: none;
}

.fab-whatsapp {
    background-color: #25D366;
}

    .fab-whatsapp:hover {
        background-color: #20ba5a;
        transform: scale(1.05);
        color: var(--white);
    }

.fab-top {
    background-color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}

    .fab-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .fab-top:hover {
        background-color: var(--secondary);
        transform: scale(1.05);
        color: var(--white);
    }

/* ==========================================
           MOBILE ARCHITECTURE & COMPRESSION RULES
           ========================================== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-custom {
        padding: 12px 0;
    }

    .navbar-collapse {
        background: var(--white);
        margin-top: 12px;
        border-radius: 16px;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-link-custom {
        padding: 10px 20px !important;
        margin-bottom: 5px;
    }

    .navbar-nav .btn-premium {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }

    /* CRITICAL SPACING FIX FOR DOCTOR HERO SECTION */
    .hero-section {
        min-height: auto !important;
        padding: 40px 0 30px 0 !important; /* Heavily compressed header footprint */
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 24px auto;
    }

    .hero-section .d-flex {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        gap: 10px !important;
    }

    .btn-premium, .btn-outline-premium {
        width: 100%;
    }

    /* Compact Image Adaptation */
    .hero-img-wrapper {
        margin-top: 25px;
        padding: 0;
    }

    .hero-img-main {
        max-width: 90%;
        border-radius: 20px;
        object-fit: cover;
    }

    /* Responsive Adaptive Stats Grid Substitution */
    .floating-stat-card {
        display: none !important;
    }

    .mobile-stats-grid {
        display: flex;
        margin-top: 20px;
    }

    .mobile-stat-box {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        background: var(--white);
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: var(--shadow-sm);
        text-align: left;
        width: 100%;
    }

    .trust-item {
        justify-content: flex-start;
        padding: 5px 0;
    }

    /* Native Vertical Timeline Conversion */
    .timeline-container::after {
        left: 16px;
    }

    .timeline-block {
        width: 100%;
        padding-left: 36px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 30px;
    }

    .timeline-block-right {
        left: 0;
    }

    .timeline-pointer {
        left: 8px !important;
        top: 4px;
    }

    .glass-card {
        padding: 30px 20px !important;
    }

    .sticky-action-bar {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .floating-action-btn {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 0px 0 20px 0 !important;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .trust-strip {
        padding: 20px 0;
    }

    .navbar-custom {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 5px 0;
        transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
    }
    .mview {
    margin-top:60px;
    }
}
