#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

#navbar.hide-nav {
    transform: translateY(-100%);
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 2%;
    width: 100%;
    border-bottom: 4px solid transparent;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10.4px);
    -webkit-backdrop-filter: blur(10.4px);
    transition: all 333ms ease-in-out;
    background-color: rgba(4, 65, 136, 0.75);
}

nav:hover {
    background-color: rgba(4, 65, 136, 1);
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #ffd100;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 2;
}

.nav-list {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 2;
    margin: 0;
}

.nav-list a {
    font-size: 1.25rem;
    font-weight: bolder;
}

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

nav a {
    position: relative;
    display: block;
    color: var(--nav);
    font-family: "IBM Plex Sans Condensed", sans-serif;
    font-weight: 300;
    text-decoration: none;
    font-weight: 1px;
    font-size: 1rem;
    padding: 14px 16px;
    transition: all 250ms ease-in-out;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--nav);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%) scaleX(0.75);
}

nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
    background-color: #fff;
}

@media (min-width: 2100px) {
    nav a {
        font-size: 1.5rem;
        padding: 18px 22px;
    }

    .nav-list {
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
        margin-left: auto;
        cursor: pointer;
    }

    .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);
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 84px;
        gap: 0;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        transform: none;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-list.active {
        left: 0;
    }
}