/* public/css/header.css */

header {
    z-index: 1000;
    /* Your styles for the header element */
    background-color: transparent;
    padding: 30px 100px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: 0.2s ease-in-out;
}

header.scrolled {
    background-color: var(--color_mode);
}

.header {
    display: flex;
    gap: 60px;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
}

nav.menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;

}

nav.menu>div.menu-bar {
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;

}

nav.menu>div.menu-mode {
    display: flex;
    flex: 1 1 auto;
    gap: 40px;
    justify-content: flex-end;
    align-items: center;

}


div.menu-item- {
    /* Your styles for the li elements in the ul */
    display: inline-block;
    margin-right: 10px;
    font-weight: 400;
    gap: 20px;
}

.menu-item- a{
    color: var(--secondary-color) !important;
}

div.menu-item-active>a {
    /* Your styles for the active li element */
    font-weight: bold;
    color: var(--main-color);
}

.menu-responsive {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 1010;
    top: 0;
    left: 0;
    transform: translateX(100%);
    background-color: var(--color_mode);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease-in-out;
    display: block;
}
#menu-icon{
    display: none;
}

.menu-responsive>div {
    padding: 60px;
}

#ToggleServices{
    opacity: 0;
    transform: translateX(-50%);
    padding: 20px;
    background-color: rgb(244 244 244);
    border-radius: 16px;
    margin-top: 20px;
    transition: 0.2s ease-in-out;
    pointer-events: none;
}

#ToggleServices.show{
    opacity: 1;
    transform: translateX(-25%);
    pointer-events: auto;
}

#ToggleServices>a:hover{
    color: var(--button_blue);
    font-weight: 600;
}

@media (max-width: 992px) {
    nav.menu>div.menu-bar {
        display: none;
    }
    #menu-icon{
        display: block;
    }

    .menu-responsive.responsive {
        transform: translateX(0%);
    }
    #mobile_ToggleServices {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.5s ease, max-height 0.5s ease;
    }
    
    #mobile_ToggleServices.show {
        opacity: 1;
        max-height: 500px; /* You can adjust this value to fit your content */
        display: flex;
    }
}

@media (max-width: 576px){
    header {
        padding: 30px 20px;
    }
    .header{
        justify-content: space-between;
    }

    #multilang{
        display: none;
    }
    nav.menu{
        justify-content: flex-end;
    }
}