/* --- Sticky Glass Navbar --- */
.custom-navbar-wrapper {
    z-index: 1000;
    width: 100%;
    pointer-events: none;
    transition: none !important;
    /* Ensure GSAP controls animation instantly */
    /* Let clicks pass through outside the pill */
}

/* The actual "Pill" container */
.glass-menu-pill {
    pointer-events: auto;
    /* Re-enable clicks on the menu */
    font-family: 'Poppins', sans-serif;
    /* User Request: Poppins Font */
    background: rgba(80, 80, 80, 0.4);
    /* Dark semi-transparent grey */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.8rem 2rem !important;
    /* Taller and wider pill (User Request) */
    /* Override inline utility if needed */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Logo Sizing */
.nav-logo {
    height: 36px;
    width: auto;
    /* User Request: Original Logo Colors (Filter removed) */
}

/* --- Menu Links --- */
.pill-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pill-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* Active State (Black Pill) */
.pill-link.active {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 400;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991.98px) {
    .glass-menu-pill {
        border-radius: 20px;
        /* Less round when expanded/mobile */
        flex-direction: column;
        align-items: stretch;
        width: 90%;
        /* Use most of width on mobile */
        padding: 1rem !important;
    }

    .navbar-collapse {
        margin-top: 1rem;
        text-align: center;
    }

    /* Adjust logo/toggler row */
    .glass-menu-pill>.navbar-brand,
    .glass-menu-pill>.navbar-toggler {
        align-self: flex-start;
        /* Or center relative to row */
    }

    /* Reset header row layout inside flex-column */
    .glass-menu-pill {
        display: block;
        /* Switch to block to let floats/flex sub-containers work? No, let's use flex mechanics */
        display: flex;
    }

    /* We need a specific row for the Logo + Toggler on mobile since flex-direction is column */
    .glass-menu-pill {
        /* Resetting this is tricky in pure CSS without HTML change. 
           Standard Bootstrap navbar has container -> brand/toggler -> collapse.
           Our .glass-menu-pill IS the container effectively. 
           Let's rely on Wrap?
        */
        flex-wrap: wrap;
        flex-direction: row;
        /* Keep row */
        border-radius: 30px;
    }

    .navbar-collapse {
        width: 100%;
        /* Force full width on break */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        margin-top: 0.5rem;
    }
}