/* ===== Ultra-Premium Glass Wall-to-Wall Navbar ===== */
#pill-nav-container {
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.pill-nav {
    --nav-h: 72px;
    --logo-size: 40px;

    /* Wider Island */
    width: auto;
    min-width: 1250px;
    /* Force it wider on desktop */
    max-width: 96%;
    height: var(--nav-h);

    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread content out */

    /* More breathing room */
    padding: 12px 32px;
    gap: 32px;

    box-sizing: border-box;

    /* Frosty Premium Glass */
    background: linear-gradient(180deg,
            rgba(50, 63, 87, 0.681) 0%,
            rgba(22, 61, 75, 0.729) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    /* Interactive Border Glow */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Top highlight */
    border-radius: 100px;

    /* Premium Shadow */
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        /* Deep drop shadow */
        0 0 0 1px rgba(255, 255, 255, 0.05),
        /* Subtle ring */
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    /* Inner top light */

    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover state for the whole island - interactive feel */
.pill-nav:hover {
    background: linear-gradient(180deg,
            rgba(67, 87, 125, 0.681) 0%,
            rgba(7, 57, 75, 0.729) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 13px 6px -30px rgba(3, 76, 81, 0.318),
        0 3px 6px -10px rgba(204, 252, 255, 0.152),
        0 0 0 1px rgba(55, 124, 139, 0.888),
        inset 0 1px 1px rgba(122, 213, 225, 0.347);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .pill-nav {
        padding: 0 20px;
        --nav-h: 64px;
        gap: 0;
        justify-content: space-between;
        width: 94%;
        min-width: 0;
        /* Reset desktop constraint */
    }
}

@media (max-width: 768px) {
    .pill-nav {
        padding: 0 20px;
        --nav-h: 64px;
        background: rgba(10, 10, 15, 0.8);
    }
}

/* === Branding === */
.nav-branding {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 0;
}

.nav-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
}

.pill-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 12px;
    background: linear-gradient(135deg, #6365f1c9, #090f43);
    backdrop-filter: blur(14px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.pill-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.336), transparent);
    /*transform: rotate(45deg);*/
    transition: 0.5s;
    opacity: 0;
}

/*.pill-logo:hover {
    /*transform: scale(1.05) rotate(3deg);*/

.pill-logo:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.pill-logo .logo-emoji {
    font-size: 22px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* === Navigation Items (Center) === */
.pill-nav-items {
    position: static;
    transform: none;
    height: 100%;
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .pill-nav-items {
        display: none;
    }
}

.pill-list {
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 6px;
    background: rgba(107, 101, 101, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    gap: 4px;
    backdrop-filter: blur(5px);
}

.nav-slider-pill {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    width: 0;
    background: rgba(180, 239, 236, 0.274);
    box-shadow: inset 0 0 0 1px rgba(159, 140, 140, 0.399), 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.pill-link-item {
    position: relative;
    z-index: 2;
    display: block;
}

.pill {
    display: block;
    padding: 10px 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: 100px;
}

.pill:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.367);
    border-color: rgba(255, 255, 255, 0.678);
    border-radius: 1px;
}

.pill.is-active {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* === CTA Button === */
.nav-cta-container {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-button {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.cta-button:hover::after {
    left: 100%;
}

/* === Mobile === */
.mobile-menu-button {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .nav-cta-container .cta-button {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }
}

/* Mobile Popover */
.mobile-menu-popover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-popover.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-menu-link {
    display: inline-block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
}

.mobile-menu-link.is-active,
.mobile-menu-link:hover {
    color: transparent;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.05);
}