.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;

    padding: 16px;

    background-color: var(--black);
    border-bottom: 1px solid var(--darker-gray);

    z-index: 1000;
}

.desktop-nav {
    display: flex;

    gap: 18px;
}

.header a {
    display: inline-block;

    background-color: transparent;
    border-radius: 8px;

    padding: 8px 18px;

    color: white;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    text-align: center;

    transition: 0.3s ease;
}
.header a:hover {
    background-color: rgb(var(--white-rgb) / 10%);
}
.header i {
    opacity: 60%;
}

/* menu button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s ease;
}
.menu-toggle:hover {
    background-color: rgb(var(--white-rgb) / 10%);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    
    /* fallback */
    background: rgba(0, 0, 0, 0.2);

    /* blur for compatible devices */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* mobile menu panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 320px;

    display: flex;
    flex-direction: column;
    gap: 24px;

    background-color: var(--black);
    padding: 0px 24px;

    transition: right 0.35s ease;
    z-index: 1002;
}
.mobile-nav.active {
    right: 0;
}

.mobile-panel-upper {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 0px;
    border-bottom: 1px solid rgb(var(--white-rgb) / 25%);
}

.menu-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 8px 18px;

    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s ease;
}
.menu-close:hover {
    background-color: rgb(var(--white-rgb) / 10%);
}
.menu-close i {
    opacity: 30%;
}

.mobile-nav-btn-div {
    display: flex;
    justify-content: left;
    flex-direction: column;
    gap: 12px;
}
.mobile-nav-btn-div a {
    color: var(--white);
    font-size: 16px;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}
.mobile-nav-btn-div a:hover {
    background-color: rgb(var(--white-rgb) / 10%);
}


/* breakpoint: hide deaktop-nav and show the menu button */
@media (max-width: 1280px) {
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .header {
        justify-content: right;
        padding: 10px 16px;
    }
}