@import url("variables.css");

.top-nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    position: fixed;
    gap: 10px;
    top: 0;
    left: 0;
    height: 40px;
    width: 100%;
    background-color: var(--blue-dark);
    z-index: 7000;
}

.top-nav-container a {
    color: var(--white);
    font-size: .9em;
    padding: 3px 20px;
    border-radius: 10px;
    transition: all .2s ease;
}

.top-nav-container a:hover {
    background-color: var(--white-light);
}

@media screen and (max-width: 900px) {
    .top-nav-container {
        display: flex;
        justify-content: space-between;
        gap: 0;
    }

    .top-nav-container a {
        text-align: center;
        padding: 3px 10px;
    }
}

header {
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--blue-dark-ten);
    align-items: center;
    color: var(--blue-dark);
    padding: 5px 20px;
    margin: 5px 2vw 0 2vw;
    position: fixed!important;
    width: calc(100% - 40px - 4vw);
    border-radius: 10px;
    top: 40px;
    z-index: 8000;
    box-shadow: 5px 5px 5px var(--blue-dark-ten);
}

a {
    text-decoration: none;
}

/* Left section */

.left-section {
    display: flex;
    align-items: center;
    gap: 0px;
    text-wrap: nowrap;
    transition: transform 0.3s ease-in-out;
}

.logo img {
    height: 30px;
    width: auto;
    margin: 0 15px;
    z-index: 9999999999;

    cursor: pointer;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 10px;
    position: relative;
}

header nav ul li a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1.1em;
}

header nav ul li .navMainItems {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-top: 3px solid var(--transparent);
    cursor: pointer;
    user-select: none;
}

header nav ul li .navMainItems .fa-chevron-right {
    font-size: 0.7em;
    margin-top: 5px;
    transition: all .2s ease;
}

header nav ul li.dropdown:hover .fa-chevron-right {
    transform: rotate(90deg);
}

header nav ul li:hover .navMainItems {
    border-top: 3px solid var(--orange);
}

header nav ul li .dropdown-content {
    position: fixed;
    top: 48px;
    left: 0;
    width: calc(100% - 152px);
    border-radius: 0 0 10px 10px;
    background-color: var(--white);
    z-index: 9999;
    text-wrap: wrap;
    overflow: hidden;
    max-height: 0;
    transition: all 0.1s ease; 
    padding-left: 152px;
}

header nav ul li .dropdown-content.qm10EqmsDrop,
header nav ul li .dropdown-content.servicesDrop,
header nav ul li .dropdown-content.partnersDrop,
header nav ul li .dropdown-content.resourcesDrop,
header nav ul li .dropdown-content.aboutUsDrop {
    display: grid;
    grid-template-columns: 400px 1fr 500px;
    gap: 20px;
    align-items: flex-start;
}

.dropdown-content a {
    font-size: 1.2em!important;
}

header nav ul li:hover .dropdown-content {
    max-height: 1000px; 
    opacity: 1;
    padding-top: 40px;
    padding-bottom: 40px;
    box-shadow: 5px 5px 5px var(--blue-dark-ten);
}

header nav ul li .dropdown-content a {
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    width: 350px;
}

header .navDropdownItem {
    padding: 40px;
    border-radius: 10px;
    font-weight: 100;
}

header .navDropdownItem:hover {
    background-color: var(--blue-dark-ten);
}

header .dropdownItemMain {
    color: var(--blue-dark);
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 20px;
}

header .dropdownItemMain i {
    color: var(--blue-flash);
    text-align: center;
}

header .dropdownItemSub {
    font-size: .8em;
    font-weight: 200;
    margin-top: 5px;
}

header nav ul li .dropdown-content .dropDownImage {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 20px 0 0;
    border-radius: 10px;
    height: -webkit-fill-available;
}

header nav ul li .dropdown-content.qm10EqmsDrop .dropDownImage {
    background-image: url('../images/header/qm10.png');
}

header nav ul li .dropdown-content.servicesDrop .dropDownImage {
    background-image: url('../images/header/services.png');
}

header nav ul li .dropdown-content.partnersDrop .dropDownImage {
    background-image: url('../images/header/partners.png');
}

header nav ul li .dropdown-content.resourcesDrop .dropDownImage {
    background-image: url('../images/header/ressources.jpg');
}

header nav ul li .dropdown-content.aboutUsDrop .dropDownImage {
    background-image: url('../images/header/aboutus.jpg');
}

header nav ul li .dropdown-content .dropdownItemMainSubTitle {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--orange);
}

/* ----- HAMBURGER MENU ----- */
/* ----- HAMBURGER MENU ----- */

.hamburger-menu {
    display: none; 
    cursor: pointer;
    font-size: 1.3em;
    padding: 5px;
    color: var(--blue-dark);
}

.hamburger-menu i {
    color: var(--blue-dark);
    transition: all 0.3s ease;
}

.hamburger-menu.open i::before {
    content: "\f00d"; /* FontAwesome X icon */
}

.hamburger-menu.open i {
    color: var(--orange);
}



/* ----- MOBILE ----- */
/* ----- MOBILE ----- */

@media screen and (min-width: 1300px) {
    .left-section-mobile {
        display: none;
    }
}

@media screen and (max-width: 1299px) {
    .hamburger-menu {
        display: block; 
        z-index: 9999;
    }

    header .left-section,
    #lang-switcher-1 {
        display: none;
    }

    .left-section-mobile {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: calc(100% - 40px);
        height: calc(100vh - 200px);
        background-color: var(--white-light);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
        display: flex !important;
        flex-direction: column;
        z-index: 9999;
        transition: bottom 0.3s ease-in-out;
        overflow-y: auto;
        padding: 40px 20px 40px 20px;
        border-radius: 20px 20px 0 0;
    }

    /* When menu is toggled open */
    .left-section-mobile.open {
        bottom: 0 !important;
        transform: none !important;
    }

    /* Ensure mobile menu is always visible when hamburger is shown */
    @media screen and (max-width: 1299px) {
        .left-section-mobile {
            display: flex !important;
            visibility: visible !important;
        }
        
        /* Prevent body scrolling when mobile menu is open */
        body.no-scroll {
            overflow: hidden !important;
        }
    }


    .left-section-mobile nav ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding-left: 0;
        padding-bottom: 50px;
    }

    .left-section-mobile nav ul li.dropdown {
        border-bottom: var(--1px) solid var(--blue-dark-ten);
    }

    .left-section-mobile nav ul li .navMainItems {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: calc(100% - 40px);
        padding: 10px 20px;
        border-radius: 10px;
        justify-content: space-between;
        font-size: 1.3em;
        font-weight: 100;
        color: var(--blue-dark);
        cursor: pointer;
        user-select: none;
    }

    .left-section-mobile nav ul li .navMainItems:hover {
        background-color: var(--blue-dark-ten);
    }

    .left-section-mobile nav ul li .navMainItems i {
        font-size: .9em;
    }

    .left-section-mobile nav ul li .fa-chevron-right {
        transition: all .2s ease;
    }

    .left-section-mobile nav ul li .dropdown-content {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
        display: flex;
        flex-direction: column;
        margin: var(--0);
        font-size: 1.5em;
        color: var(--blue-dark)!important;
        padding-left: 0;
        padding-right: 0;
        transition: max-height 0.2s ease, margin 0.2s ease;
    }

    .left-section-mobile nav ul li.open .dropdown-content {
        max-height: 1000px; 
        margin: 10px 0 20px 40px; 
        padding: 0 0 0 10px;
        border-left: var(--2px) solid var(--white);
    }

    .left-section-mobile nav ul li.open .fa-chevron-right {
        transform: rotate(90deg);
    }

    .left-section-mobile nav ul li .dropdown-content .navDropdownItem {
        display: inline-block;
        padding: 10px;
        border-radius: 10px;
        color: var(--blue-dark);
        font-size: .8em!important;
    }

    .left-section-mobile nav ul li .dropdown-content .navDropdownItem:hover {
        background-color: var(--blue-dark-ten);
    }

    .dropdown-content a {
        font-size: 1em;
    }


    @keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    } }

    .left-section-mobile.open nav ul li {
        opacity: 0;
        animation: slideInFromBottom 0.4s forwards;
    }

    /* Add staggered delays using nth-child */
    .left-section-mobile.open nav ul li:nth-child(1) {
        animation-delay: 0.1s;
    }
    .left-section-mobile.open nav ul li:nth-child(2) {
        animation-delay: 0.2s;
    }
    .left-section-mobile.open nav ul li:nth-child(3) {
        animation-delay: 0.3s;
    }
    .left-section-mobile.open nav ul li:nth-child(4) {
        animation-delay: 0.4s;
    }
    .left-section-mobile.open nav ul li:nth-child(5) {
        animation-delay: 0.5s;
    }
    .left-section-mobile.open nav ul li:nth-child(6) {
        animation-delay: 0.6s;
    }
    .left-section-mobile.open nav ul li:nth-child(7) {
        animation-delay: 0.7s;
    }
    .left-section-mobile.open nav ul li:nth-child(8) {
        animation-delay: 0.8s;
    }
    .left-section-mobile.open nav ul li:nth-child(9) {
        animation-delay: 0.9s;
    }
    .left-section-mobile.open nav ul li:nth-child(10) {
        animation-delay: 1s;
    }
    .left-section-mobile.open nav ul li:nth-child(11) {
        animation-delay: 1.1s;
    }

}


/* ----- RIGHT SECTION ----- */
/* ----- RIGHT SECTION ----- */
/* ----- RIGHT SECTION ----- */

.right-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.right-section li {
    margin: 0 0px;
    position: relative;
    list-style-type: none; 
    padding-left: 0; 
} 

.right-section li a span{
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1.1em;
}

.right-section li a i{
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1.1em;
}

.fa-user {
    font-size: 1.4em;
}

.login-icon {
    margin-left: 0px;
    -webkit-text-fill-color: var(--blue-dark);
    padding: 10px;
    border-radius: 6px;
}

.login-icon:hover{
    background-color: var(--blue-dark-ten);
}

.bookADemoHeader {
    background-color: var(--blue-flash);
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .5s ease;
    user-select: none;
}

.bookADemoHeader:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 10px 20px -6px inset, rgba(0, 0, 0, 0.3) 0px 9px 18px -9px inset;
}

.login-icon {
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    color: var(--white)!important;
    background-color: var(--blue-flash);
}

.login-icon span {
    font-size: 1.5em;

}

/* ----- LOGIN DROPDOWN ----- */
.right-section li .navMainItems {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-top: 3px solid var(--transparent);
    user-select: none;
}

.right-section li .navMainItems:hover {
    border-top: 3px solid var(--orange);
}

.right-section li .dropdown-content {
    display: none;
    position: absolute;
    width: 500px;
    background-color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    max-width: 90vw;
    z-index: 1;
    text-wrap: wrap;
    border-radius: 20px;
    transition: max-height 0.3s ease-out; 
    right: -20px; 
    top: 45px; 
    padding: 10px 0;
}

.right-section li:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
}

.right-section li .dropdown-content .navDropdownItem {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.right-section li .dropdown-content a {
    padding: 20px 20px;
    text-decoration: none;
    display: block;
    font-size: 1.3em;
}

.right-section li .dropdown-content .navDropdownItem .dropdownItemMainLogin {
    font-weight: 700;
    font-size: .8em!important;
}

.right-section li .dropdown-content .navDropdownItem .dropdownItemMainSecond {
    font-weight: 700;
    color: var(--blue-dark-fifty);
}

.right-section li .dropdown-content .navDropdownItem textarea {
    display: flex;
    resize: none;
    border-radius: 6px;
    font-size: 1em;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
}

.right-section li .dropdown-content .navDropdownItem .dropdownLoginButton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #000;
    background-color: var(--blue-light);
    width: 100%;
    border-radius: 6px;
    font-size: .8em;
    font-weight: 400;
    user-select: none;
    cursor: pointer;
}

.right-section li .dropdown-content .navDropdownItem .dropdownItemSub {
    color: var(--blue-dark);
}

#lang-switcher-1 button {
    border: none;
    background-color: var(--transparent);
    font-size: 1.2em;
    width: 60px;
    height: 30px;
    border-radius: 50px;
    justify-items: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 2px 10px, rgba(0, 0, 0, 0.23) 0px 3px 3px;
    transition: all .2s ease;
    color: var(--blue-dark-fifty);
    font-weight: 700;
}

#lang-switcher-2 {
    margin: 40px 0 0 0;
    justify-self: center;
}

#lang-switcher-2 button {
    border: none;
    background-color: var(--transparent);
    font-size: 1.2em;
    justify-self: flex-end;
    width: 50vw;
    height: 50px;
    border-radius: 50px;
    justify-items: center;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 2px 10px, rgba(0, 0, 0, 0.23) 0px 3px 3px;
    transition: all .2s ease;
    color: var(--blue-dark-fifty);
    font-weight: 700;
}

#lang-switcher-1 button:active,
#lang-switcher-2 button:active {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 10px -2px inset, rgba(0, 0, 0, 0.3) 0px 2px 5px -2px inset;
}

/* ----- FOOTER -----*/
/* ----- FOOTER -----*/
/* ----- FOOTER -----*/

.footer {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    background: var(--blue-dark);
    background: linear-gradient(9deg,rgba(26, 176, 222, 1) 0%, rgba(23, 120, 153, 1) 0%, rgba(21, 66, 85, 1) 23%, rgba(20, 54, 70, 1) 30%, rgba(19, 41, 54, 1) 53%, rgba(20, 61, 79, 1) 75%, rgba(22, 105, 134, 1) 100%, rgba(26, 176, 222, 1) 100%);
    position: relative;
    bottom: 0;
    padding: 50px 100px 100px 100px;
    z-index: 4500;
}

@media screen and (max-width: 950px) {
    .footer {
        padding: 50px 50px 100px 50px;
    }
}

.topFooter {
    display: flex;
    flex-direction: row;
    align-items: start;
    width: 100%;
    justify-content: space-between;
    padding: 40px 0 0 0;
}

@media screen and (max-width: 950px) {
    .topFooter {
        flex-direction: column;
        gap: 50px;
    }
}

.topRightFooter {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

@media screen and (max-width: 950px) {
    .topRightFooter {
        justify-content: space-between;
        width: 100%;
        gap: 50px;
    }
}

.footer .footerLogoContainer {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    gap: 80px;
    color: var(--blue-light);
    font-size: 3vw;
    font-weight: 100;
    user-select: none;
}

@media screen and (max-width: 950px) {
    .footer .footerLogoContainer {
        font-size: 2em;
    }
}

.footerSocials,
.footerContact {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;

    .socials,
    .contact {
        color: var(--white-light);
        font-size: 1.5em;
        font-weight: 700;
    }

    a {
        text-decoration: none;
        color: var(--white-light);
        font-size: 1.2em;

    }

    a:hover {
        text-decoration: underline;
    }

    .footerSocialsItem,
    .footerContactItem {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

}

@media screen and (max-width: 1440px) {

    .footerSocials,
    .footerContact {
        gap: 10px;
    }

    .footerSocials .socials,
    .footerContact .contact {
        font-size: 1.5em;
    }
    
    .footerSocials a,
    .footerContact a {
        font-size: 1em;
    }
}

.bottomFooter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 50px;

    img {
        width: 200px;
        height: auto;
        filter: invert(1);
    }
}

@media screen and (max-width: 950px) {
    .bottomFooter img {
        width: 10vh;
    }
}

.bottomFooterCopyright {
    display: flex;
    text-align: right;
    width: 100%;
    justify-content: end;
    color: var(--white-light);
    user-select: none;
}

@media screen and (max-width: 950px) {
    .bottomFooterCopyright {
        font-size: 0.5em;
    }
}

/* Autocomplete styles */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--white);
    border-top: none;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    box-shadow: 0 2px 4px var(--blue-dark-ten);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    background: var(--white);
    font-size: .9em;
    font-weight: 100;
    color: var(--orange);
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: var(--blue-dark-ten);
    font-weight: 100;
}

.suggestion-item.selected {
    background-color: var(--blue-dark-ten);
    font-weight: bold;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Ensure the textarea container has relative positioning */
.right-section li .dropdown-content .navDropdownItem {
    position: relative;
}

/* Textarea styling for login */
.textareaLogin {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0;
    border: 1px solid var(--blue-dark-ten);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    background: var(--white);
    color: var(--blue-dark);
}

.textareaLogin:focus {
    outline: none;
    border-color: var(--blue-flash);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.textareaLogin::placeholder {
    color: var(--blue-dark-fifty);
    font-style: italic;
}
