/* Navigation Bar CSS */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(2, 6, 23, 0.95);
    /* Slightly more opaque */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    z-index: 999999 !important;
    /* Force on top */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    color: #00f3ff;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.nav-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: #00ff41;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff41;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (max-width: 900px) {
    #main-nav {
        padding: 0 15px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-item {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 768px) {
    #main-nav {
        justify-content: space-between;
        /* Keep spaced out */
        height: auto;
        min-height: 60px;
        padding: 10px 15px;
        flex-wrap: wrap;
        /* Allow wrapping if really needed */
    }

    .nav-links {
        order: 3;
        /* Move links to bottom row on super small screens if needed, or hide */
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        display: flex;
        /* Keep visible but stacked */
        gap: 10px;
    }

    .nav-brand {
        margin-right: auto;
    }

    .nav-status {
        margin-left: auto;
        /* Push to right */
    }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 0.7rem;
        padding: 3px 5px;
    }

    .nav-links {
        gap: 5px;
    }
}