nav{
    position: fixed;
    display: flex;
    justify-content: center;
    font-size: 20px;
    background-color: var(--header-bg);
    height: 90px;
    padding: 0 30px;
    width: 100%;
    top:0px;
    z-index: 5; 
}

.nav-con{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
}

.right-side{
    display: flex;
    align-items: center;
    gap: 10px

}

nav *{
    transition-duration: 0.2s;
    transition-timing-function: ease-in;
}

nav ul{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    user-select: none;
}

nav .logo a{
    font-weight: 800;
    font-size: 25px;
    background: linear-gradient(120deg, var(--accent), #7c3aed);
    color: transparent;
    background-clip: text;
}


nav ul li{
    list-style: none;
    height: fit-content;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px;
}



nav a{
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}


.toggle-theme{
    background-color: transparent;
    /* border: 1px solid white; */
    border: none;
    border-radius: 50%;
    height: 40px;
    padding: 0px;
    aspect-ratio: 1/1;
    cursor: pointer;
}

nav ul li:hover, .toggle-theme:hover{
    background-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-5px);
    
}


@media (max-width: 900px) {
    nav{
        font-size: 16px;
    }
    nav .logo{
        font-size: 20px;
    }
}


#nav-username, #nav-logout{
    display: none;
}

nav .nav-checkbox{
    display: none;
}

nav .bars-icon{
    display: none;
    color: var(--text-secondary);
}


@media (max-width: 790px) {
    nav{
        overflow: hidden;
    }
    nav ul{
        /* display: none; */
        background-color: var(--header-bg);
        display: block;
        position: fixed;
        width: 80%;
        right: 0%;
        height: 100%;
        padding-top: 100px;
        transform: translate(100%, 50%);
        z-index: -1;
    }
    nav li{
        text-wrap: nowrap;
        display: flex;
        justify-content: center;
    }
    nav .bars-icon{
        display: block;
    }
    nav input:checked + ul{
        right: 80%;
    }
}