nav {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    top: 0;
    /* margin-bottom: 100px; */
    font-family: "Montserrat", sans-serif;
    height: 100px;
    background-color: black;
    padding: 0 5%;
    max-width: 100vw;
}

nav .logo {
    float: left;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #fff;
}

nav .links {
    float: right;
    padding: 0;
    margin: 0;
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav .links li {
    list-style: none;
}

nav .links a {
    display: block;
    padding: 0;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.os {
    color: white !important;
}

nav .links a:hover {
    color: white;
}

nav .links a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}

nav .links a:hover::before {
    visibility: visible;
    transform: scaleX(1);
    color: white;
}

#nav-toggle {
    position: absolute;
    top: -100px;
}

nav .icon-burger {
    display: none;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

nav .icon-burger .line {
    width: 30px;
    height: 5px;
    background-color: #fff;
    margin: 5px;
    border-radius: 3px;
    transition: all 0.5s ease-in-out;
}

@media screen and (max-width: 850px) {
    nav .logo {
        float: none;
        width: auto;

        justify-content: left;
    }

    nav .links {
        float: none;
        position: fixed;
        z-index: 9;
        left: 0;
        right: 0;
        width: 100%;
        top: 100px;
        height: 0;
        /* Initial height */
        flex-direction: column;
        justify-content: space-evenly;
        background-color: rgba(0, 0, 0, 0.9);
        overflow: hidden;
        transition: all 0.5s ease-in-out;
    }

    nav .links a {
        font-size: 16px;
        padding: 15px;
        /* Add padding for better touch targets */
    }

    nav :checked~.links {
        height: 100%;
        /* Show menu when checked */
        row-gap: 37px;
        justify-content: flex-start;
    }

    nav .icon-burger {
        display: block;
    }

    nav :checked~.icon-burger .line:nth-child(1) {
        transform: translateY(10px) rotate(225deg);
    }

    nav :checked~.icon-burger .line:nth-child(3) {
        transform: translateY(-10px) rotate(-225deg);
    }

    nav :checked~.icon-burger .line:nth-child(2) {
        opacity: 0;
    }

    .dropdown {
        bottom: 0px;
        /* top: 30%; */
        left: 75%;
        transform: translate(-75%);
    }

    ul li ul.dropdown {
        position: relative !important;
    }
}

ul li ul.dropdown li {
    display: block;
    margin: 10px 0px;

}
ul li ul.dropdown {
    background-color: black !important;
    width: auto;
    border-radius: 5%;
    padding: .5rem !important;
    position: absolute;
    z-index: 999;
    display: none;
    font-size: 50px;
}

ul li a:hover {
    background: #222;
}

ul li:hover ul.dropdown {
    display: block;
    background-color:#222;
}