header{
    font-size: var(--S-16);
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--BG-COLOR);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

header .container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .text-logo{
    font-weight: var(--W-700);
    color: #1E1E1E;
}

#primary-nav .menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary-nav .menu li {
    position: relative;
}

#primary-nav .menu li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: #000000;
    font-weight: var(--W-500);
}

#primary-nav .menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#primary-nav .menu li ul li a {
    padding: 10px;
    display: block;
    color: #333;
}

#primary-nav .menu li:hover > ul {
    display: block;
}

header .left-block {
    display: flex;
    align-items: center;
}

body.menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    z-index: 5;
    transition: background 5s ease-in-out, backdrop-filter 5s ease-in-out;
}

#mobile-menu-toggle {
    display: none;
}

.menu-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding-right: 10px;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: black;
    color: white;
    transition: left 0.5s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    padding-top: 60px;
    z-index: 1000;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-list li a {
    color: white;
    text-decoration: none;
    font-size: var(--S-18);
    display: block;
    transition: background 0.3s;
}

.mobile-menu-list li:hover {
    background: var(--green);
}

.mobile-menu.active {
    left: 0;
}

header .bnt-header-container{
    display: flex;
    flex-direction: row;
    gap: 15px;
}



/*-------- language switcher -------*/

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.selected-language {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #010504;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 2;
}

.language-dropdown {
    position: absolute;
    top: 50px;
    left: 38%;
    padding: 0 10px;
    min-width: 50px;
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.language-dropdown a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #010504;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin: 5px 0;
    transition: background 0.3s ease;
}

.language-dropdown a:hover {
    background: var(--green);
}

.language-switcher:hover .language-dropdown,
.language-switcher:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
}

.language-switcher .arrow {
    transition: transform 0.3s ease;
    color: #010504;
}

.language-switcher:hover .arrow{
    transform: rotate(180deg);
}

@media (max-width: 1000px) {

    header .text-logo {
        font-size: var(--S-24);
    }

    #primary-nav {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
    }

    #mobile-menu-toggle {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 500px){
    header .black-btn-main {
        display: none;
    }
}