*,
*::after,
*::before{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.html{
    font-size: 62.5%;
}

.navbar input[type="checkbox"],
.navbar .hamburger-lines{
    display: none;
}

.navbar{
    box-shadow: 0px 5px 10px 0px #e8e7f1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    color: #2802b0;
    z-index: 100;
}

.navbar .container{
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

.navbar-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.menu-items{
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-items li{
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.3rem;
}

.navbar a{
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover{
    color: #7e80ed;
    border-bottom: 2px solid #cc0000;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-logos .logo {
    width: 50px;
    height: auto;
}

@media (max-width: 768px){
    .navbar-container input[type="checkbox"],
    .navbar-container .hamburger-lines{
        display: block;
    }

    .navbar-container{
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 64px;
        position: relative;
    }

    .navbar-container input[type="checkbox"]{
        position: absolute;
        display: block;
        height: 32px;
        width: 30px;
        top: 16px;
        left: 16px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
        margin: 0;
    }

    .navbar-container .hamburger-lines{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 28px;
        position: absolute;
        top: 20px;
        left: 18px;
        z-index: 2;
    }

    .navbar-container .hamburger-lines .line{
        display: block;
        height: 3px;
        width: 100%;
        border-radius: 10px;
        background: #333;
        transition: all 0.3s ease-in-out;
    }

    .navbar-container .hamburger-lines .line1{
        transform-origin: 0% 0%;
    }

    .navbar-container .hamburger-lines .line3{
        transform-origin: 0% 100%;
    }

    .navbar .menu-items{
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        padding: 90px 30px 30px;
        background: #fff;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.35s ease-in-out;
        z-index: 99;
        overflow-y: auto;
    }

    .navbar .menu-items li{
        margin: 0 0 1.5rem 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .nav-logos {
        margin-left: auto;
        position: static;
        gap: 6px;
    }

    .nav-logos .logo {
        width: 38px;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items{
        transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1{
        transform: rotate(45deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2{
        opacity: 0;
        transform: scaleX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3{
        transform: rotate(-45deg);
    }
}

@media (max-width: 500px){
    .nav-logos .logo {
        width: 32px;
    }
}
