/* --- Strict Reset only for Header Context --- */
.main-header, .main-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'roboto slab', sans-serif;
}

:root {
    --text-header-primary: #f8fafc;
    --text-header-muted: #94a3b8;
    --header-blue: #38bdf8;
    --header-indigo: #818cf8;
    --header-glass-bg: rgba(15, 23, 42, 0.85);
    --header-glass-border: rgba(255, 255, 255, 0.08);
}

/* --- Navigation Container Bar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Page ke upar rahega hamesha */
    
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--header-glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo a {
    font-size: 26px;
    font-weight: 800;
    color: #002f60;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a span {
    color: var(--header-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* --- Nav Links Layout --- */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-item {
    color: #002f60;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover, .nav-item.active {
    color: #005c47;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--header-blue), var(--header-indigo));
    transition: width 0.3s ease;
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

/* --- Desktop Dropdown Card --- */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-header-muted);
    border-bottom: 2px solid var(--text-header-muted);
    transform: rotate(45deg);
    margin-top: -3px;
    transition: all 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: var(--header-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 220px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--header-glass-border);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li a {
    color: var(--text-header-muted);
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--header-blue);
    padding-left: 18px;
}

/* --- Buttons Visibility Guards --- */
.enquiry-btn {
    background: linear-gradient(135deg, var(--header-blue), var(--header-indigo));
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.enquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Base Desktop Settings: Force hide mobile element, force show desktop element */
.mobile-menu-btn {
    display: none !important; 
}

.desktop-menu-btn {
    display: inline-block !important;
}

/* --- Mobile Menu Configuration --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-header-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-spacer {
    height: 80px;
}

/* --- RESPONSIVE WORKSPACE (Width 991px or lower) --- */
@media (max-width: 991px) {
    .desktop-menu-btn {
        display: none !important; /* Desktop button force close */
    }

    .mobile-menu-toggle {
        display: flex !important; /* Burger trigger active */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Default right side se out of screen */
        width: 300px;
        height: 100vh;
        background: #0b0f19 !important; /* Solid Dark Theme on mobile drawer */
        border-left: 1px solid var(--header-glass-border);
        padding: 100px 30px;
        transition: right 0.4s ease-in-out;
        display: block !important;
    }

    .nav-menu.active {
        right: 0 !important; /* Click hone par pure visible dashboard par aayega */
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 24px;
    }

    .nav-item {
        font-size: 18px;
        width: 100%;
        display: block;
    }

    /* Mobile panel drawer buttons trigger */
    .mobile-menu-btn {
        display: block !important;
        width: 100%;
        margin-top: 15px;
    }

    .inside-drawer-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px;
        text-align: center;
    }

    /* Mobile view drop down accordion */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        padding-top: 10px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown .arrow {
        margin-left: auto;
    }

    /* Cross animation for Burger lines */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}