/* --- TOP NAVIGATION --- */
.top-nav {
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between; /* better layout control */
    padding: 12px 25px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

/* Logo left */
.nav-logo {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Center links in desktop mode */
.top-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0 auto;
    padding: 0;
}

/* Links */
.nav-links li a {
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 4px;
    transition: 0.2s;
}

.nav-links li a:hover {
    background: #444;
    color: #fff;
}

.nav-links .active {
    background: #0073ff;
    color: #fff !important;
}

/* Hamburger icon on the right */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding-left: 10px;
}

/* ---- RESPONSIVE NAV ---- */
@media (max-width: 900px) {

    /* Make nav bar spacing normal on mobile */
    .top-nav {
        justify-content: space-between;
    }

    /* Hide desktop menu */
    .nav-links {
        display: none;
        position: fixed;   /* Stick under navbar */
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        padding: 15px 0;
        text-align: left;   /* Cleaner mobile look */
        border-bottom: 1px solid #333;
    }

    /* Show when toggled */
    .nav-links.show-menu {
        display: flex;
    }

    .nav-links li {
        padding: 12px 25px;
    }

    .nav-links li a {
        display: block;
        width: 100%;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: block;
    }
}

/* Push body below fixed navbar */
body {
    padding-top: 70px;
}
