.navbar{
    width: 100%;
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: solid 1px #e5e5e5;
}

#mobile-nav{
    padding: 15px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar>div:nth-child(3){
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#mobile-nav>a{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#mobile-nav>a>span{
    font-size: 18px;
    font-weight: bold;
}

#logo{
    width: 60px;
}

#open-navbar>i, #close-nav>i{
}

#container-nav{
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#container-nav.is-active{
    opacity: 1;
    visibility: visible;
}

#navbar-content{
    position: fixed;
    width: 80%;
    display: flex;
    background: white;
    flex-direction: column;
    justify-content: space-between;
    height: 100dvh;
    right: 0;
    top: 0;
    border-left: solid 1px #e5e5e5;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

#container-nav.is-active #navbar-content {
    transform: translateX(0);
}

#dropdown{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: solid 1px #e5e5e5;
    align-items: center;
}

#close-nav, #open-navbar{
    padding: 14px 14px;
    color: #0a0a0a;
}

#close-nav{
    font-size: 30px;
}

#close-nav:hover,#open-navbar:hover{
    background-color: #e5e5e5;
    border-radius: 18px;
}

#title-nav, #follow>span:nth-child(1) {
    color: #7a7a7a;
}


.container-nav{
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-bottom: solid 1px #e5e5e5;
}

.navbar-brand>ul {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.navbar-brand>ul>li{
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    border-radius: 16px;
}

.navbar-brand>ul>li>a{
    width: 80%;
    padding: 20px 15px;
    border-radius: 16px;
}

.navbar-brand>ul>li>a:hover{
    background-color: #e5e5e5;
}


#follow{
    padding: 25px 20px;
}


#mobile-nav>div:nth-child(2){
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 10px;
}

#navbar-content.is-active{
    display: none;
}

#navbar-content.is-active{
    display: block;
}


.language-dropdown {
    position: relative;
}

#lang-btn {
    display: flex;
    background-color: transparent;
    align-items: center;
    gap: 8px;
    color: black;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

#lang-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #ffffff;
    border-radius: 20px;
    list-style: none;
    padding: 15px 10px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

#lang-menu li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    color: black;
    transition: 0.2s;
    border-radius: 20px;
}

#lang-menu li:hover, #lang-btn:hover {
    background-color: #e5e5e5;
}

.hidden {
    display: none;
}

@media screen and (min-width: 1024px) {

    #dropdown,
    #follow,
    #open-navbar{
        display: none;
    }

    .navbar{
        margin-top: 30px;
        width: 100%;
        max-width: 1440px;
        position: relative;
        top: 0;
        height: 85px;
        align-items: center;
        justify-content: space-between;
        padding: 0 60px;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        border-radius: 15px;
    }

    #mobile-nav{
        position: static;
        width: auto;
        border: none;
    }

    #container-nav{
        width: 100%;
        opacity: 1;
        visibility: visible;
    }

    #navbar-content{
        position: static;
        transform: none;
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        align-items: center;
    }

    .container-nav{
        height: auto;

        padding: 0;

        border: none;

        display: flex;
        align-items: center;
    }

    .navbar-brand > ul{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .navbar-brand > ul > li{
        width: auto;
    }

    .navbar-brand > ul > li > a{
        width: auto;
        padding: 12px 18px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 14px;
        transition: 0.25s ease;
    }

    .navbar-brand > ul > li > a:hover{
        background-color: #f2f2f2;
    }

    #mobile-nav{
        flex-shrink: 0;
    }

    #mobile-nav > a{
        align-items: center;
        gap: 10px;
    }

    #logo{
        width: 52px;
    }

    #mobile-nav > a > span{
        font-size: 18px;
        font-weight: 700;
    }

    #mobile-nav > div:nth-child(2){
        margin-left: 30px;
        display: flex;
        align-items: center;
    }

    #lang-btn{
        padding: 10px 16px;
        border-radius: 14px;
    }

    #mobile-nav > div:nth-child(2){
        display: flex;
        align-items: center;
    }

    #lang-btn:hover{
        background-color: #f2f2f2;
    }

    #lang-menu{
        top: 120%;
        right: 0;
        border: 1px solid #e5e5e5;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }
}