﻿.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75); /* fallback */
    background: var(--primary-bg, rgba(0,0,0,0.75));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 0 30px var(--button-glow);
    animation: navFadeIn 0.6s ease;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent) !important;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--button-glow), 0 0 15px var(--accent);
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: var(--text-color);
        font-weight: 600;
        text-decoration: none;
        position: relative;
        padding-bottom: 2px;
        text-shadow: 0 0 6px var(--accent);
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            color: var(--accent);
            text-shadow: 0 0 10px var(--button-glow), 0 0 20px var(--accent);
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 0%;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

/* Burger stays as-is */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

    .nav-toggle div {
        width: 26px;
        height: 3px;
        background: var(--accent);
    }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary-bg);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        width: 220px;
    }

    .nav-toggle {
        display: flex;
    }

    body.nav-open .nav-links {
        display: flex;
    }
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
