/* css/nav.css */

#main-content {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    z-index: 5;
}

/* =========================================
   Apple Liquid Glass Navigation Tube
   ========================================= */
.glass-nav {
    position: sticky;
    top: 30px;
    z-index: 100;

    /* Multi-layer liquid glass background */
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.08) 60%,
            rgba(255, 255, 255, 0.03) 100%);

    /* Heavy frosted blur — key to the liquid glass feel */
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);

    /* Soft glowing border — mimics light refracting at edges */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 6px 8px;

    /* Layered shadows for floating depth */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 12px 36px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);

    /* Specular highlight overlay */
    overflow: hidden;
}

/* Top-edge specular shine — the signature Apple touch */
.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 30%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.4) 70%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

/* Subtle inner glow on the top half */
.glass-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
    z-index: 0;
}

.nav-links {
    position: relative;
    display: flex;
    list-style: none;
    gap: 4px;
    z-index: 2;
}

.nav-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 30px;
    transition: color 0.35s ease, text-shadow 0.35s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 2;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* =========================================
   Liquid Glass Sliding Pill Indicator
   ========================================= */
.nav-indicator {
    position: absolute;
    top: 6px;
    left: 8px;
    height: calc(100% - 12px);

    /* Liquid glass pill — translucent with inner light */
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.12) 100%);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.35);
    border-radius: 30px;

    /* Smooth liquid motion */
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);

    z-index: 1;
    pointer-events: none;

    /* Inner glow for depth */
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Specular shine on the pill */
.nav-indicator::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 40%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 100%);
    border-radius: 30px 30px 50% 50%;
    pointer-events: none;
}