/* Header background and container */
header {
    width: 100%;
    background-color: #111111b3;
    -webkit-backdrop-filter: blur(5px) saturate(2.5);
    backdrop-filter: blur(5px) saturate(2.5);
    transition: transform .3s;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: .5rem;
    padding-top: .5rem;
    font-size: 15px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 1em 2em!important;
    
    flex-direction: row;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.2em 0;
}
.logo img {
    display: block;
    max-width: 120px;
    height: auto;
}

/* Hamburger styles */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}
.header-hamburger span {
    display: block;
    height: 2px;
    width: 28px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.header-hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.header-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.header-hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation styles */
header nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #111;
    box-shadow: 0 2px 8px #0005;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    padding: 1em 0;
    transition: all 0.3s;
}
header nav.open {
    display: flex;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
header nav ul li {
    margin: 0.5em 0;
    text-align: center;
}
header nav ul li a {
    color: #ffffffdd;
    text-decoration: none;
    padding: 0.7em 1.2em;
    display: block;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
header nav ul li a.active,
header nav ul li a:hover {
    color: #fff;
    text-decoration: none;

}

/* Desktop styles */
@media (min-width: 900px) {
    .header-container {
        flex-direction: row;
    }
    .header-hamburger {
        display: none;
    }
    header nav {
        position: static;
        display: flex !important;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        height: auto;
        align-items: center;
    }
    header nav ul {
        display: flex;
        flex-direction: row;
        gap: 0.5em;
        width: auto;
    }
    header nav ul li {
        margin: 0;
        text-align: left;
    }
    header nav ul li a {
        font-size: 1em;
        padding: 0.5em 0.8em;
    }
}
