/* Hamburger icon */

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Navbar */

.navbar {
    position: absolute;
    z-index: 4;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    top: 0;
    left: 0;
}

.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

.list-item {
    margin-left: 5rem;
}

.list-item a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    opacity: 0.6;
    transition: opacity 0.3s linear;
}

.list-item a:hover {
    opacity: 1;
}

.nav-logo {
    font-size: 2.1rem;
    font-weight: bold;
}

.nav-logo a {
    color: white;
    text-decoration: none;
}

@media only screen and (max-width: 1100px) {
    .nav-list {
        position: absolute;
        left: -100%;
        top: 0rem;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 37, 97, 0.8);
        backdrop-filter: blur(10px);
        width: 100%;
        transition: 0.3s;
    }
    .nav-list.active {
        left: 0;
        margin: 0;
        padding: 5rem 0 0 0;
    }
    .list-item {
        margin: 1rem 0;
    }
    .hamburger {
        display: block;
        cursor: pointer;
    }
}