/* HEADER  ------------------------------------------------------------------ */

@font-face{
    font-family: 'Raleway-SemiBold';
    src: url('../fonts/Raleway-SemiBold.ttf') format('truetype');
}
@font-face{
    font-family: 'Raleway-Regular';
    src: url('../fonts/Raleway-Regular.ttf') format('truetype');
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
}

.header-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.header-search {
    position: absolute;
    right: 10px;
    top: 2%;
    width: 250px;
}

#searchInput {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Raleway-Regular';
    font-size: 14px;
}

#searchResults {
    font-family: 'Raleway-Regular';
    font-color: black;
    position: absolute;
    top: 40px;
    width: 100%;
    background: #fff;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.nav-left ul {
    list-style: none;
    margin-left: -50px;
    margin-top: 5%;
    padding: 0;
    display: flex;
}

.nav-left li {
    margin-right: 20px;
}

.nav-left li:last-child{
    margin-right: 0px;
}

.nav-left a {
    font-family: 'Raleway-SemiBold';
    font-size: 18px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-left a:hover {
    color: #666
}

.header-logo{
    position: absolute;
    transform: translateX(-50%);
    height: 60px;
    width: auto;
    margin-top: 2%;
    left: 50%;
}

/* MENU NAV BUTTON */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
    font-family: 'Raleway-SemiBold';
    font-size: 14px;
    color: #333;
}

/* SEARCH TOGGLE BUTTON */

.search-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 8px;
    z-index: 1001;
    font-family: 'Raleway-SemiBold';
    font-size: 14px;
    color: #333;
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 1000;
        padding: 20px 0;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        margin-left: 0 !important;
        transform: translateX(0) !important;
    }

    .header-wrapper {
        padding: 0 15px;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 1;
        position: relative;
    }
    
    .search-toggle {
        display: flex;
        order: 3;
        position: relative;
    }
    
    .search-toggle svg {
        display: block;
        width: 16px;
        height: 16px;
    }

    .header-logo {
        position: absolute;
        transform: translateX(-50%);
        height: 40px;
        width: auto;
        left: 50%;
        margin-left: 0;
    }
    
    .header-search {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: calc(100% - 30px);
        margin: 0 15px;
        z-index: 1002;
    }
    .header-search.active {
        display: block;
    }
    #searchInput {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
        border: none;
        border-radius: 4px;
    }
    #searchResults {
        top: 50px;
        border: none;
    }

    .nav-left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }

    .nav-left.active {
        left: 0;
    }

    .nav-left ul {
        flex-direction: column;
        margin-left: 0;
        padding: 0;
    }

    .nav-left a {
        display: block;
        padding: 20px 30px;
        font-size: 16px;
    }

    /* Overlay for when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }

    html, body {
        overflow-x: hidden;
    }
    
}