/* ===============================
   HEADER / NAVBAR / SIDEBAR ONLY
   =============================== */

/* Fix header stacking only on home page */
.home-page .navbar {
    background: rgba(255, 255, 255, 0.98);
    transform: translateZ(0);   /* force GPU layer */
    will-change: transform;
}

.navbar {
    position: fixed !important; /* Force sticky position */
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    
    /* Layering issues fix karne ke liye */
    z-index: 2000; 
    
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    
    /* Scroll jump rokne ke liye */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}


/* Navbar container */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Brand */
.navbar-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 750;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.brand-design {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 150;
    font-size: 1.1rem;
    margin-left: 6px;
    color: #475569;
}

/* Nav links */
.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    font-size: 0.9rem;
    margin: 0 10px;
}

/* Desktop tweak */
@media (min-width: 992px) {
    .navbar-brand { font-size: 1.4rem; }
    .navbar { padding: 12px 0; }
}

/* Mobile menu icon */
.menu-icon-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
    width: 22px;
    cursor: pointer;
}

.menu-icon-bars span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 5px;
}

/* ===============================
   MOBILE SIDEBAR
   =============================== */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1200;
    transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.close-circle {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f8fafc;
}

.sidebar-links li a i {
    width: 30px;
    color: var(--primary);
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1150;
    display: none;
}

.sidebar-overlay.visible {
    display: block;
}