/* ── NAV RAIL ── */

.nav-rail {

    position: fixed;

    right: 24px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    flex-direction: column;

    gap: 16px;

    z-index: 100;

}



.nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(0,0,0,0.3) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    color: var(--text-white);
    will-change: transform;
    /* Base 3D raised look */
    box-shadow:
        4px 4px 10px rgba(0,0,0,0.6),
        -1px -1px 4px rgba(255,255,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.3);
}

.nav-btn:hover {
    background: linear-gradient(145deg, rgba(0,229,255,0.15) 0%, rgba(0,100,150,0.2) 100%);
    border-color: rgba(0,229,255,0.5);
    transform: perspective(300px) rotateX(-8deg) rotateY(8deg) translateZ(6px) scale(1.08);
    box-shadow:
        6px 8px 18px rgba(0,0,0,0.7),
        -2px -2px 8px rgba(0,229,255,0.08),
        inset 0 1px 0 rgba(0,229,255,0.25),
        0 0 22px rgba(0,229,255,0.3);
    backdrop-filter: blur(16px);
}

.nav-btn.active {
    background: linear-gradient(145deg, rgba(0,229,255,0.18) 0%, rgba(0,80,120,0.25) 100%);
    border-color: rgba(0,229,255,0.6);
    transform: perspective(300px) rotateX(-4deg) translateZ(3px);
    box-shadow:
        3px 5px 14px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(0,229,255,0.3),
        0 0 20px rgba(0,229,255,0.35),
        0 0 40px rgba(0,229,255,0.15);
    backdrop-filter: blur(12px);
    color: var(--text-white);
    animation: navGlowRing 1.8s ease-out infinite;
}

/* ── Material Symbols — 3D Nav Icon Styles ── */
.nav-btn .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease, font-variation-settings 0.3s ease;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Hover: 3D extrude depth + cyan fill */
.nav-btn:hover .material-symbols-outlined {
    color: #00E5FF;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    filter:
        drop-shadow(0 2px 0 rgba(0, 100, 140, 0.9))
        drop-shadow(0 0 8px rgba(0, 229, 255, 0.8))
        drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
    transform: translateZ(8px) scale(1.12);
}

/* Active: bright cyan filled — raised 3D glow */
.nav-btn.active .material-symbols-outlined {
    color: #00E5FF;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 50, 'opsz' 24;
    filter:
        drop-shadow(0 1px 0 rgba(0, 80, 120, 0.8))
        drop-shadow(0 0 10px rgba(0, 229, 255, 1))
        drop-shadow(0 0 24px rgba(0, 229, 255, 0.5));
    transform: translateZ(4px);
}


/* Nav Tooltips */
.nav-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(10, 15, 22, 0.95);
    border: 1px solid var(--cyan);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    pointer-events: none;
    z-index: 1000;
}

.nav-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--cyan);
}

.nav-btn:hover .nav-tooltip,
.nav-btn.active .nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Nav Instruction Popup — positioned cleanly above BURHAN_OS AI button */
.nav-popup {
    position: fixed;
    bottom: 92px;
    right: 96px;
    background: rgba(6, 15, 26, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    padding: 10px 20px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.25);
}

.nav-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-popup-icon {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
    40% {transform: translateX(10px);}
    60% {transform: translateX(5px);}
}

.nav-popup-text {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}





/* ── 9. NAV BUTTON — pulsing glow ring ── */

@keyframes navGlowRing {

    0%   { box-shadow: 0 0 0 0 rgba(124,58,237,0.7), 0 0 25px rgba(124,58,237,0.6); }

    70%  { box-shadow: 0 0 0 10px rgba(124,58,237,0), 0 0 25px rgba(124,58,237,0.6); }

    100% { box-shadow: 0 0 0 0 rgba(124,58,237,0), 0 0 25px rgba(124,58,237,0.6); }

}

.nav-btn.active {

    /* navGlowRing is already set in the base .nav-btn.active rule above */

}



