.header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 36px;
    z-index: 100;
    transition: transform 0.3s ease-in-out, background-color .3s ease;
    background-color: transparent;
}

.header.header-dark {
    background-color: var(--background-color);
}

.navbar-inner {
    display: flex;
    gap: 76px;
    align-items: center;
}

.logo {
    width: 68px;
    min-width: 68px;
}

.navbar-links-outer {
    width: 100%;
}

.navbar-links-inner {
    display: flex;
    align-items: center;
    gap: 76px;
}

.navbar-links-inner .nav {
    margin-left: auto;
    margin-right: auto;
}

.menu-button {
    display: none;
}

.menu-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    color: var(--background-color);
    transition: opacity .1s ease;
}

.menu-icon.close {
    opacity: 0;
}

.header[isopen="true"] .menu-icon.close {
    opacity: 1;
}   

.header[isopen="true"] .menu-icon.open {
    opacity: 0;
}   

.desktop-navbar {
    display: block !important;
    opacity: 1 !important;
}

@media screen and (max-width: 1080px) {
    .navbar-links-outer {
        text-align: center;
        position: absolute;
        background-color: var(--background-color);
        height: calc(100dvh);
        left: 0;
        right: 0;
        top: 0;
        display: none;
        opacity: 0;
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
    }

     .navbar-links-inner {
        padding-top: 15vh;
        padding-bottom: 16vh;
        flex-direction: column;
        row-gap: 30px;
        overflow-y: auto;
    }

    .header .nav {
        flex-direction: column;
        row-gap: 23px;
        min-width: 260px;
        border-bottom: 1px solid var(--text-color);
        padding-bottom: 25px;
    }

    .header .nav a {
        font-size: 20px;
        width: fit-content;
    }

    .menu-button {
        margin-left: auto;
        display: flex;
        width: 56px;
        height: 56px;
        background-color: var(--ghost-accent-color);
        color: var(--background-color);
        min-width: 56px;
        border-radius: 100%;
    }
}

@media screen and (max-width: 767px) { 
    .header {
        padding: 16px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}