.navigation-bar {
    position: fixed;
    left: 50%;
    top: 0%;
    transform: translate(-50%, 0);

    width: 1280px;
    height: auto;

    display: flex;
    justify-content: space-between;

    margin: auto;
    margin-top: 16px;
    padding: 8px;

    box-shadow: 0 0 8px hsl(0 0% 100% / 0.2);

    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) brightness(1.1);

    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;

    box-sizing: border-box;

    pointer-events: none;

    /* transition: 0.2s ease;
    transition-property: background-color, border-color, box-shadow, border-radius, margin, margin-top, backdrop-filter, max-height; */

    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease, margin 0.2s ease, margin-top 0.2s ease, backdrop-filter .32s cubic-bezier(.4, 0, .6, 1), max-height .32s cubic-bezier(.4, 0, .6, 1);

    overflow: hidden;

    z-index: 100;
}

.navigation-bar ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.navigation-bar ul li {
    margin-right: 6px;
    pointer-events: auto;

    font-weight: 500;
}

.navigation-bar ul li a {
    /* Mai usor de dat click */
    padding: 8px;

    transition: color 0.2s ease;
    font-size: 1.1rem;
}

.navigation-bar ul li a:hover,
.navigation-bar ul li a:focus {
    color: var(--accent-color, #0ed75f);
}

.navigation-bar::before {
    width: auto;
    height: auto;

    content: 'ZUiK';

    font-family: "Kanit", sans-serif;
    font-weight: 500;
    font-size: 3rem;

    margin-left: 0.25rem;

    display: flex;
    justify-content: center;
    align-items: center;

    background: -webkit-linear-gradient(45deg, var(--navbar-color-1), var(--navbar-color-2));
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    transition: 0.2s ease;
    transition-property: --navbar-color-1, --navbar-color-2;

    pointer-events: auto;
}

.navigation-bar:hover::before,
.navigation-bar:focus::before {
    --navbar-color-1: #17FFCD;
    --navbar-color-2: var(--accent-color, #0ed75f);
}

.navigation-bar label {
    display: none;
    pointer-events: auto;
}

#nav-hamburger-checkbox {
    display: none;
}

@property --navbar-color-1 {
    syntax: '<color>';
    initial-value: white;
    inherits: false;
}

@property --navbar-color-2 {
    syntax: '<color>';
    initial-value: white;
    inherits: false;
}

@media screen and (max-width: 1312px) {
    .navigation-bar {
        width: calc(100vw - 32px);
    }
}

@media screen and (max-width: 768px) {
    .navigation-bar {
        margin: 0;

        border: 0;
        border-radius: 0;

        width: 100vw;

        height: 100vh;
        max-height: 4rem;

        box-shadow: 0 0 8px hsl(0 0% 100% / 0.2);

        align-items: start;
    }

    .navigation-bar ul {
        display: flex;

        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;

        position: fixed;
        margin-top: 3.5rem;
        left: 0;

        width: 100vw;

        transition: max-height .32s cubic-bezier(.4, 0, .6, 1);
        transition-delay: 0.1s;
    }

    .navigation-bar ul li {
        margin-left: 0.3rem;
        margin-top: 0.25rem;

        padding-top: 0.75rem;
        padding-bottom: 0.75rem;

        opacity: 0;

        transition: transform 0.2s ease, opacity 0.2s ease;

        transform: translateX(-100%);
    }

    .navigation-bar ul li:first-child {
        margin-top: 0.75rem;
    }

    .navigation-bar ul li a {
        font-size: 2rem;
        padding-right: 48px;
    }

    .navigation-bar ul li a::before {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        content: '->';

        margin-left: -2.25ch;
        margin-right: 0.25ch;

        font-size: 2rem;

        color: white;
        opacity: 0;

        transition: all 0.2s ease;
    }

    .navigation-bar ul li a:hover::before,
    .navigation-bar ul li a:focus::before {
        margin-left: -1.25ch;

        opacity: 1;
        color: var(--accent-color, #0ed75f);
    }

    /* Hamburger menu button */
    .navigation-bar label {
        display: flex;
        justify-content: center;
        align-items: flex-end;

        gap: 5px;

        margin-right: 0.75rem;

        cursor: pointer;
    }

    .nav-hamburger-label {
        margin-top: 0.8rem;

        flex-direction: column;
        justify-content: space-between;
    }

    .nav-hamburger-label span {
        width: 32px;
        height: 5px;

        background-color: white;

        transition: transform 0.3s ease, background-color 0.2s ease;
    }

    .nav-hamburger-label span:nth-child(even) {
        width: 24px;
    }

    #nav-hamburger-checkbox:checked~label span:nth-child(2) {
        background-color: rgb(0, 0, 0, 0);
    }

    #nav-hamburger-checkbox:checked~label span:nth-child(1) {
        transform: translateY(10px) rotate(-45deg);
    }

    #nav-hamburger-checkbox:checked~label span:nth-child(3) {
        transform: translateY(-10px) rotate(45deg);
    }

    #nav-hamburger-checkbox:checked~ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-hamburger-label:hover span,
    .nav-hamburger-label:focus span {
        background-color: var(--accent-color, #0ed75f);
    }

    /* #nav-hamburger-checkbox:checked~ul {
        max-height: calc(100vh - 3.5rem);
    } */

    .navigation-bar:has(#nav-hamburger-checkbox:checked) {
        max-height: 100vh;

        backdrop-filter: blur(24px) brightness(0.8);
    }
}

/* Light mode :( */
@media (prefers-color-scheme: light),
print {
    @property --navbar-color-1 {
        syntax: '<color>';
        initial-value: black;
        inherits: false;
    }

    @property --navbar-color-2 {
        syntax: '<color>';
        initial-value: black;
        inherits: false;
    }

    .navigation-bar {
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 0 8px hsl(0 0% 0% / 0.2);
        backdrop-filter: blur(12px) brightness(1.05);
    }

    @media screen and (max-width: 768px) {
        .navigation-bar:has(#nav-hamburger-checkbox:checked) {
            backdrop-filter: blur(20px) brightness(1.1);
        }

        .nav-hamburger-label span {
            background-color: black;
        }

        .navigation-bar ul li::before {
            color: black;
        }
    }
}

@media (prefers-reduced-motion: reduce),
print {

    .navigation-bar,
    .navigation-bar ul,
    .navigation-bar ul li a,
    .navigation-bar ul li,
    .navigation-bar label,
    .navigation-bar:before,
    .nav-hamburger-label span {
        transition: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .navigation-bar {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: none;
    }
}

@media print {
    .navigation-bar::before {
        background: black;
        color: black;
    }
}

/* :root {
    --accent-color: #ff0000;
} */