header {
    position: relative; /* Needed for absolute positioning of child elements */
    height: 200px;
    width: 100%;
    background: url('assets/icons/logo/pattern.png') repeat;
}

header nav {
    position: absolute;
    width: 100%;
    max-width: 906px;
    height: 70px;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.header-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white overlay */
}

nav a{
    width: 150px;
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    text-decoration: none;
}

nav a:hover{
    background-color: var(--primary-hover);
}

nav a.active{
    background-color: var(--primary-active);
}


html, body {
    height: 100%; /* Ensure the body takes up the full viewport height */
    margin: 0; /* Remove default margin */
}

.container {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    height: 100vh; /* Make container take up the full viewport height */
}

header {
    height: 200px; /* Fixed height for the header */
    /* background-color: blueviolet; */
}

.hero {
    flex: 1; /* Take up the remaining space */
    background-color: lightblue; /* Example background color */
}

@media (max-width: 768px) {
    header nav {
        position: absolute;
        width: 100%;
        max-width: 500px;
        height: 70px;
        left: 50%;
        bottom: -40px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: row;
        align-items: center;
        /* justify-content: space-between; */
        flex-wrap: wrap;
    }
    nav a {
        width: 70px;
        height: 70%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--primary-color);
        color: var(--text-on-primary);
        text-decoration: none;
        font-size: 9px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}