.header-layer {
    background: linear-gradient( #00000091, #00000010);
    z-index: 11;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.header_wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(to right, #184241, #278585);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.589);
    z-index: 10;
}

header {
    position: relative;
    overflow-x: clip;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.header-spacer {
    cursor: pointer;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 10px;
    background: linear-gradient(to right, #184241, #278585);
    transform: translateX(calc(100% + 12px));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: top right;
    pointer-events: none;
    width: 120px;
    height: 120px;
    text-align: center;
    border-radius: 5px 0px 0px 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.959);
}

.header-spacer li {
    margin-bottom: 5px;
}

.header-spacer.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-spacer a {
    text-decoration: none;
    list-style: none;
    padding: 2px 0;
    color: white;
    font-size: 18px;
    transition: background-color 0.3s ease-in-out;
}
.header-spacer a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 2px 5px;
}

.header-spacer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.menu-toggle{
    display: block;
    cursor: pointer;
}

.menu-toggle:hover{
    transform: scale(1.1);
}

.menu-toggle span{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: rgb(0, 0, 0);
    box-shadow: 0 2px 5px rgba(252, 252, 252, 0.3);
    border-radius: 2px;
}

header img{
    width: 150px;
    height: 80px;
}

body.dark-theme .header_wrapper {
    background: linear-gradient(to right, #0f2d2c, #184241);
}

body.dark-theme .header-spacer {
    background: linear-gradient(to right, #0f2d2c, #184241);
}

@media (max-width: 1024px) {
    .header_wrapper {
        padding: 10px 14px;
    }

    .header-spacer {
        width: 160px;
        height: auto;
        min-height: 128px;
        padding: 12px 8px;
    }

    .header-spacer a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header_wrapper {
        padding: 8px 12px;
    }

    header img {
        width: 120px;
        height: 64px;
    }

    .nav-controls {
        gap: 8px;
    }

    .theme-toggle {
        font-size: 13px;
        padding: 5px 8px;
    }

    .header-spacer {
        width: 170px;
        border-radius: 0 0 0 8px;
    }
}