.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--color1);
}

.logo img {
    height: 40px;
}

.header nav {
    width: calc(50% + (320px /2));
    display: flex;
    justify-content: start;
    
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    background-color: #18141a;
    padding: 10px 25px;
    border: 1px solid #f7f0f045;
    border-radius: 100px;
    width: 320px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: #9e9c9c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 10px;
}

.hamburger span {
    background: #fff;
    width: 35px;
    height: 2px;
    display: block;
    transition: opacity 0.8s ease;
}

.hamburger.closing span:nth-child(1) {
    animation: forwards hamb1reverse .8s ease
}

.hamburger.closing span:nth-child(2) {
    opacity: 1;
}

.hamburger.closing span:nth-child(3) {
    animation: forwards hamb3reverse .8s ease
}

.hamburger.active span:nth-child(1) {
    animation: forwards hamb1 .8s ease;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    animation: forwards hamb3 .8s ease;
}

@keyframes hamb1 {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(calc(24px / 2));
    }
    100% {
        transform: translateY(calc(24px / 2)) rotate(45deg);
    }
    
}

@keyframes hamb1reverse {
    0% {
        transform: translateY(calc(24px / 2)) rotate(45deg);
    }
    50% {
        transform: translateY(calc(24px / 2));
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes hamb3 {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(calc(-24px / 2));
    }
    100% {
        transform: translateY(calc(-24px / 2)) rotate(-45deg);
    }
    
}

@keyframes hamb3reverse {
    0% {
        transform: translateY(calc(-24px / 2)) rotate(-45deg);
    }
    50% {
        transform: translateY(calc(-24px / 2));
    }
    100% {
        transform: translateY(0) rotate(0);
    }
}

.nav-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    color: white;
    overflow: hidden;
    max-height: 0;
    min-height: 0;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.8s ease, opacity 0.8s ease, transform 0.8s ease, min-height 0.8s ease;
}

.nav-links-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-links-mobile li {
    width: 90%;
    line-height: 4rem;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.nav-links-mobile li:first-child {
    border-top: 2px solid #fff;
}

.nav-links-mobile li:last-child {
    border-bottom: 2px solid #fff;
}

.nav-mobile.active {
    max-height: calc(90lvh - 87px);
    min-height: calc(90lvh - 87px);
    opacity: 1;
    transform: scaleY(1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #111;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        text-align: center;
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 980px) {
    .header nav {
        width: 320px;
    }
}