/* =========================================================
   LINUX PROJECTS LAB - TOP NAVIGATION
   ========================================================= */

#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 9999;

    display: flex;
    align-items: center;
}

#top-nav .nav-inner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#top-nav .logo {
    color: #ffffff;
    text-decoration: none;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    white-space: nowrap;
}

#top-nav .links {
    display: flex;
    align-items: center;
    gap: 8px;
}

#top-nav .links a {
    color: #a7b0c0;
    text-decoration: none;

    padding: 10px 15px;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    border-radius: 5px;

    transition: all 0.2s ease;
}

#top-nav .links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

#top-nav .links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}


/* Keep content below fixed navigation */

#wrapper {
    margin-left: 0 !important;
    padding-top: 70px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 900px) {

    #top-nav {
        height: auto;
        min-height: 64px;
    }

    #top-nav .nav-inner {
        padding: 10px 15px;

        flex-direction: column;
        gap: 8px;
    }

    #top-nav .links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #top-nav .links a {
        padding: 7px 9px;
        font-size: 0.58rem;
    }

    #wrapper {
        padding-top: 105px !important;
    }
}

/* =========================================================
   PREVENT CONTENT FROM HIDING UNDER FIXED TOP NAV
   ========================================================= */

body {
    padding-top: 70px !important;
}

@media screen and (max-width: 900px) {
    body {
        padding-top: 105px !important;
    }
}
/* =========================================================
   MOBILE NAVIGATION FIX
   Let the multi-row mobile navigation occupy its real height
   instead of overlapping the page content.
   ========================================================= */

@media screen and (max-width: 900px) {

    #top-nav {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body {
        padding-top: 0 !important;
    }

    #wrapper {
        padding-top: 0 !important;
    }
}

