/* Header */
.header-fo {
    transform: translate(0, 0);
    transition: all 0.3s ease-in-out;
    padding: 40px 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.header-fo-background {
    /* background: rgb(51, 116, 232);
    background: linear-gradient(10deg, rgba(51, 116, 232, 1) 0%, rgba(43, 113, 237, 1) 20%, rgba(77, 130, 242, 1) 40%, rgba(104, 154, 243, 1) 48%, rgba(85, 170, 245, 1) 52%, rgba(87, 179, 246, 1) 56%, rgba(90, 178, 244, 1) 60%, rgba(93, 176, 242, 1) 67%, rgba(111, 158, 236, 1) 75%, rgba(126, 142, 230, 1) 82%); */
    background: transparent;
}

.header-animation-container-background {
    background: #a3e0ff;
}

/* Header Container */
.header-fo-container {
    max-width: 1730px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Logo */
.header-fo .logo {
    width: fit-content;
    filter: brightness(0) saturate(100%) invert(1);
}

.header-fo .logo {
    height: 75px;
    width: auto;
    object-fit: cover;
}

/* Header Button */
.header-button {
    z-index: 12;
    height: 35px;
    width: 45px;
    cursor: pointer;
}

.header-button span,
.header-button span::before,
.header-button span::after {
    background: var(--white);
    border-radius: 3px;
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    margin-top: 16px;
    transition: .3s ease-in-out;
}

.header-button span::before {
    margin-top: -16px;
}

.header-button span::after {
    margin-top: 16px;
}

.header-button.active span {
    background: transparent;
}

.header-button.active span::before {
    margin-top: 0;
    transform: rotate(45deg);
}

.header-button.active span::after {
    margin-top: 0;
    transform: rotate(-45deg);
}

/* Header Button Inside of Drawer */
.header-button.inside {
    position: absolute;
    z-index: 11;
    right: 60px;
    top: 60px;
}

/* Navigation */
.header-navigation-container {
    height: 100vh;
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
}

.header-navigation-container.active {
    z-index: 11;
    visibility: visible;
    opacity: 1;
}

.header-navigation {
    position: absolute;
    right: 0;
    z-index: 12;
    width: 100%;
    max-width: 580px;
    height: 100%;
    background: var(--bs-primary);
    transition: transform 0.6s ease-in-out;
    transform: translate(100%, 0);
}

.header-navigation.active {
    transform: translate(0, 0);
}

.header-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-navigation>ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-navigation li {
    text-align: center;
}

.header-navigation a {
    font-family: var(--main-font);
    text-align: center;
    color: var(--white);
    font-size: 35px;
    font-weight: 200;
}

.header-navigation .header-sub-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.header-navigation .header-sub-menu.active {
    max-height: 400px;
    padding-top: 20px;
    opacity: 1;
}

.header-navigation .text-sub-menu {
    width: fit-content;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 36px;
}

.header-navigation .text-sub-menu::after {
    content: '';
    background: url('../images/icons/arrow-down.png') no-repeat center;
    background-size: cover;
    width: 12px;
    height: 12px;
    transform: scaleY(1);
    transition: transform 0.3s ease-in-out;
    filter: invert(100%);
}

.header-navigation .text-sub-menu.active::after {
    transform: scaleY(-1);
}

.header-fo-menu-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* CSS Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown .language-image {
    height: 37px;
    object-fit: cover;
    filter: invert(100%);
}

.language-dropdown .dropdown-language-image {
    height: 30px;
    width: 30px;
    object-fit: cover;
}

.language-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-dropdown button:after {
    content: '';
    display: block;
    background: url(../images/icons/arrow-down.png) no-repeat center/cover;
    width: 20px;
    height: 15px;
    object-fit: cover;
    filter: invert(100%);
    transform: scaleY(1);
    transition: transform 0.3s ease-in-out;
}

.language-dropdown.active button:after {
    transform: scaleY(-1);
}

.language-dropdown-content {
    font-family: var(--main-font);
    overflow: hidden;
    visibility: hidden;
    position: absolute;
    min-width: 170px;
    right: 0;
    top: 140%;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.language-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--white);
    background: var(--bs-primary);
    transition: all 0.3s ease-in-out;
}

.language-dropdown-content a:hover {
    background: var(--white);
    color: var(--bs-primary);
}

.language-dropdown.active .language-dropdown-content {
    visibility: visible;
    opacity: 1;
}

/* Responsiveness */
@media (max-width: 1440px) {
    .header-fo .logo {
        height: 60px;
    }

    .header-navigation a {
        font-size: 32px;
    }

    .header-button.inside {
        right: 40px;
        top: 40px;
    }
}

@media (max-width: 1024px) {
    .header-fo {
        padding: 30px 40px;
    }

    .header-button.inside {
        right: 30px;
        top: 40px;
    }

    .header-button span {
        margin-top: 14px;
    }

    .header-button span::before {
        margin-top: -15px;
    }

    .header-button span::after {
        margin-top: 15px;
    }

    .header-fo .logo {
        height: 48px;
    }

    .header-button {
        height: 30px;
        width: 40px;
    }

    .header-button span,
    .header-button span::before,
    .header-button span::after {
        width: 40px;
    }

    .header-navigation a {
        font-size: 29px;
    }

    /* CSS Dropdown */
    .language-dropdown .language-image {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header-fo {
        padding: 20px;
    }

    .header-fo-menu-container {
        gap: 30px;
    }

    .header-button.inside {
        right: 20px;
        top: 20px;
    }

    .header-navigation a {
        font-size: 26px;
    }

    /* CSS Dropdown */
    .language-dropdown button:after {
        display: none;
    }
}

@media (max-width: 425px) {
    .header-fo .logo {
        height: 40px;
    }
}