.header__wrapper {
    width: 100%;
    height: 90px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 900;
    padding: 0px 80px 0px 68px;
    background-color: rgba(255, 255, 255, 0); /* Fully transparent */
    transition: background-color 0.6s ease;
}

.header__wrapper.scrolled {
    background-color: rgba(72, 72, 72, 1); /* Equivalent to var(--basic-background-grey) */
}

/* Header logo */
.header__logo {
    width: 94px;
    height: 94px;
    position: absolute;
    top: 29px;
    left: 68px;
}

.header__logo button {
    background-color: transparent;
    width: 100%;
    height: 100%;
}

.header__logo img {
    width: 100%;
}

/* Header navigation */
.haeder__navigation {
    display: flex;
    width: 819px;
    justify-content: space-between;
}

.header__navigation__element button {
    background-color: transparent;
    color: var(--text-dark); /* Default color */
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    text-align: center;
    transition: color 0.3s ease; /* Smooth color transition */
}

.header__navigation__element button:hover {
    color: var(--white); /* Default hover color */
}

/* Dark theme button color and hover effect */
.header__navigation__element button.dark-theme-button {
    color: #000; /* Black color when dark theme is active */
}

.header__navigation__element button.dark-theme-button:hover {
    color: #DF0615; /* Hover color changes to red when dark theme is active */
}


/******* Header language changer *************/
.header__language {
    width: 73px;
    height: 40px;
    position: relative;
    margin-left: 103px;
}

/* Button styling */
.header__language button {
    width: 100%;
    height: 100%;
    background: var(--background-gradient-red-button);
    font-size: 16px;
    color: var(--white);
    font-weight: 600;
    line-height: 24px;
    border-radius: var(--button-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Active language dropdown hidden by default */
.language-dropdown {
    position: absolute;
    top: 40px;
    width: 73px;
    background: var(--background-gradient-red-button);
    border-radius: var(--button-radius);
    opacity: 0; /* Start with opacity 0 */
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Smooth fade with delay on hide */
}

.language-dropdown.visible {
    opacity: 1; /* Visible on hover */
    visibility: visible;
    transition: opacity 0.3s ease; /* Immediate opacity change */
}

/* Language button inside the dropdown */
.language-dropdown a {
    height: 40px;
    background: none;
    color: var(--white);
    width: 100%;
    border-radius: var(--button-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Rotate arrow with transition */
.active_language img {
    margin-left: 8px;
    transition: transform 0.3s ease; /* Smooth rotation */
}

/* Apply rotation on hover */
.header__language.hovered .active_language img {
    transform: rotate(180deg); /* Rotate 180 degrees on hover */
}
/************* Header theme changer *****************/
.header__theme {
    width: 58px;
    height: 32px;
    margin-left: 48px;
    position: relative;
    cursor: pointer; /* Add cursor pointer for indication */
}

.theme_surface {
    position: absolute;
    width: 49.34px;
    height: 27.7px;
    border-radius: 38px;
    background-color: #000; /* Default background color */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 5px;
    z-index: 100;
    transition: background-color 0.5s ease; /* Smooth background color change */
}

.circle__changer {
    width: 31.16px;
    height: 31.16px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    z-index: 200;
    left: 30px; /* Start at 30px by default */
    transition: left 0.5s ease; /* Smooth left position change */
}

.header__theme.active .theme_surface {
    background-color: #DF06154D; /* New background color on active */
}

.header__theme.active .circle__changer {
    left: -5px; /* Move to -5px on active */
}
.burger__menu{
    display: none;
    visibility: hidden;
}
.burger-menu-overlay{
    display: none;
    visibility: hidden;
}
@media only screen and (max-width: 770px) {
    .haeder__navigation{
        display: none;
        visibility: hidden;
    }
    .header__language{
        display: none;
        visibility: hidden;
    }

    .header__theme{
        margin-left: 0;
        margin-right: 50px;
    }


    .burger__menu{
        display: block;
        visibility: visible;

        height: 50px;
        width: 50px;

    }
    .header__logo{
        width: 50px;
        height: 50px;
        top: 15px;
        left: 21px;
    }
    .header__wrapper{
        padding: 0px 20px 0px 30px;
    }




    /* Initial burger icon */
/* Burger menu icon default style */
.burger__menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Animation for the "X" transformation */
.burger__menu.active .top {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger__menu.active .middle {
    opacity: 0; /* Hide the middle line */
}

.burger__menu.active .bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}





/* Return to original lines on close */
.burger__menu:not(.active) .burger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transform: none;
    opacity: 1;
}


.burger__menu .burger-icon {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

/* Burger menu overlay styles */
.burger-menu-overlay {
    position: fixed;
    visibility: visible;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #232323f7; /* Dark background */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Close button for the burger menu */
.burger-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
    background: var(--background-gradient-red-button);
    border-radius: 40px;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #ffffff88;

}

.burger-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: absolute;
    z-index: 200;
    margin-bottom: 150px;
}
.burger__menu__languages{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.burger__menu__languages a {
    color: #fff;
    font-size: 20px;
    display: flex;
    height: 40px;
    width: 60px;
    border-radius: var(--button-radius);
    justify-content: center;
    align-items: center;
    background: var(--background-gradient-red-button);

}

.burger__menu__languages a:nth-child(2){
    margin: 0px 20px;
}
.burdger__menu__navigation{
    display: flex;
    align-items: center;
    flex-direction: column;

    margin-top: 20px;
}

.burdger__menu__navigation button {
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;

}
.burger__menu__placeholder{
    position: absolute;
    z-index: 100;
    opacity: 0.2;
}
.burger__menu__placeholder1{
    right: 0;
    top: 10%;
}
.burger__menu__placeholder2{
    transform: rotate(180deg);
    left: 0;
    bottom: 10%;
}
/* Prevent body from scrolling */
.no-scroll {
    overflow: hidden;
}





}