header {
    /* background-color: var(--box-color1); */
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    z-index: 10001;
}

.header {

    width: 100%;
    height: 4rem;

    /* border-bottom: 2px double var(--border-color1); */

    background: var(--header-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    display: flex;
    align-items: center;
    justify-content: space-around;
}

.logo-text {
    font-family: "Honk", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "MORF" 15,
        "SHLN" 50;
    font-size: 2.5rem;
    color: var(--text-sec-title);
}

/* = = = Nav bar section = = = */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-bar ul {
    display: flex;
    gap: 4rem;
    list-style: none;
}

.nav-bar a {
    text-decoration: none;
    font-family: "Lilita One", sans-serif;
    font-size: 1.5rem;
    /* font-weight: bold; */
    color: var(--text-sec-title);

    position: relative;

    transition: color 0.3s;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--hover-letter);
    transition: width 0.3s ease-out;
}

.nav-bar a:hover {
    color: var(--hover-letter);
    cursor: pointer;
}

.nav-bar a:hover::after {
    width: 100%;
}

/* = = = = = = = = = */

.color-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.colors-icon {
    height: 2rem;
}

.colors-icon:hover {
    animation: spinIcon 0.2s ease forwards;
}

@keyframes spinIcon {
    to {
        transform: rotate(360deg);
    }
}

#themeSelector {
    padding: 0.4rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color1);
    background: linear-gradient(45deg, var(--box-color1), var(--bg-color1));
    color: var(--text-sec-title);
    cursor: pointer;
    outline: none;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* On hover/focus for better interactivity */
#themeSelector:hover,
#themeSelector:focus {
    background-color: var(--box-color2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------ */
/* ----------> HAMBURGER MENU <- <-------- */
#checkbox {
    display: none;
}

.hamb-menu-box {
    width: 3rem;
    height: 3rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 6px;

    cursor: pointer;
    transition-duration: 0.5s;

    z-index: 10001;
}

.line {
    height: 4px;
    width: 70%;
    background-color: var(--border-color1);
    border-radius: 2.5px;
}

#hamb-line-1,
#hamb-line-3 {
    width: 55%;
}

#hamb-line-2 {
    transition-duration: 0.8s
}

#checkbox:checked+.hamb-menu-box .line {
    position: absolute;
    transition-duration: 0.5s;
    background-color: var(--border-color2);
}

#checkbox:checked+.hamb-menu-box #hamb-line-2 {
    transform: scaleX(0);
    transition-duration: 0.5s;
}

#checkbox:checked+.hamb-menu-box #hamb-line-1 {
    width: 60%;
    transform: rotate(45deg);
    transition-duration: 0.5s;
}

#checkbox:checked+.hamb-menu-box #hamb-line-3 {
    width: 60%;
    transform: rotate(-45deg);
    transition-duration: 0.5s;
}

#checkbox:checked+.hamb-menu-box {
    transition-duration: 0.5s;
    transform: rotate(180deg);
}

#checkbox:checked+.hamb-menu-box {
    transition: 0.5s;
    border-radius: 1.5rem;
}

/* ------------------------------------------ */
/* ----------> RESPONSIVE DESIGN <- <-------- */
@media (max-width: 1040px) {
    .nav-bar {
        display: none;
    }

    .logo-text {
        display: none;
    }

    .header {
        align-items: center;
    }

    /* Hide menu by default */
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: var(--bg-color1);
        /* Change to your desired background */
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Show menu when checkbox is checked */
    #checkbox:checked~.dropdown-menu {
        transform: translateY(0);
    }

    /* UL Layout */
    .dropdown-ul {
        list-style: none;
        top: 70px;
        padding: 0;
        margin: 0;
        text-align: center;
        color: var(--text-2);

        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    /* Base state for each menu item */
    .dropdown-li {
        opacity: 0;
        transform: translateX(-50%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        cursor: pointer;

        padding-right: 5px;

        /* border-right: 3px solid white; */
        /* border-bottom: 3px solid white; */

        box-shadow: none;
        /* color: var(--dropdown-text); */
        color: var(--box-color2);
        font-family: "Rubik Wet Paint", system-ui;
        font-weight: 400;
        font-style: normal;
        font-size: 2.5rem;

        /* 
        background: linear-gradient(to right, rgb(216, 147, 20), var(--));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent; */

        /* transition: color 0.3s ease-in; */
    }

    .dropdown-li:hover {
        color: var(--dropdown-text-active);
    }

    /* Animate in each LI when menu is open */
    #checkbox:checked~.dropdown-menu .dropdown-li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger animation delay */
    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(1) {
        transition-delay: 0.3s;
    }

    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(2) {
        transition-delay: 0.4s;
    }

    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(3) {
        transition-delay: 0.5s;
    }

    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(4) {
        transition-delay: 0.6s;
    }

    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(5) {
        transition-delay: 0.7s;
    }

    #checkbox:checked~.dropdown-menu .dropdown-li:nth-child(6) {
        transition-delay: 0.8s;
    }
}

@media (min-width: 1040px) {
    .hamb-menu-box {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }
}