header {
    position: absolute;
    top: 0;
    z-index: 999999;
    width: 100%;
}   
header#main-header * {
    z-index: 9999;
}
.logo img {
    height: 57px;
    width: auto;
}
.header_top_inner nav {
    display: inline-flex;
    column-gap: 57px;
}
.header_top_inner {
    display: flex;
    padding: 0px 0px;
    column-gap: 40px;
    justify-content: end;
}
/* Updated Search Styles */
.header_bottom {
    position: relative;
}

.search_overlay {
    display: flex;
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    align-items: center;
}

.search_overlay.active {
    opacity: 1;
    visibility: visible;
}

.search_bar_inner {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.search_bar_inner input {
    width: 100%;
    height: 50px;
    border: none;
    background: none;
    font-size: 24px;
    color: #000;
    padding: 0 50px 0 40px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.search_bar_inner input:focus {
    outline: none;
    border-color: #000;
}

.search_bar_inner input::placeholder {
    color: #999;
}

.close_search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close_search:hover {
    transform: translateY(-50%) rotate(90deg);
}

.close_search svg {
    width: 24px;
    height: 24px;
    color: #000;
}

/* Mobile adjustments */
@media screen and (max-width: 991px) {
    .search_bar_inner input {
        font-size: 20px;
        height: 40px;
    }
    
    .close_search svg {
        width: 20px;
        height: 20px;
    }
}
.header_top {
    background: #000;
}
.header_top {
    background: var(--theme-black);
    padding: 8px 0px;
}
.header_bottom_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navigation_main nav a {
    font-size: 19px;
    line-height: 29px;
}
.navigation_main nav ul {
    display: flex;  
}
.navigation_main ul li:last-child a {
    padding-right: 0;
}
.navigation_main ul li:first-child a {
    padding-left: 0;
}
.navigation_main ul li a {
    display: inline-block;
    padding: 27px 32px;
    transition: 0.3s linear;
    text-transform: uppercase;
}
.navigation_main {
    display: flex;
    align-items: center;
    column-gap: 76px;
}


.header-scrolled .navigation_main nav ul li a , .header-scrolled-up .navigation_main nav ul li a {
    color: #000;
}
/*.header-scrolled svg path , .header-scrolled-up svg path {*/
/*    fill: #000;*/
/*}*/
.header-scrolled {
    position: fixed;
    background: #fff;
    animation: header 0.5s ease  1 ;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
header#main-header .header_top_inner nav a {
    color: #fff;
}
.header-scrolled-up{
     transform: translateY(-100%);
    position: fixed;
    background: #fff;
    animation: headerup 0.2s ease  1 ;
}

@keyframes header {
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(0);
    }
}

@keyframes headerup {
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-100%);
    }
}

header.header-scrolled .header_top, header.header-scrolled-up .header_top {
    display: none;
}



/* Mobile Toggle Button Styles */
.mobile_toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 35px;
    height: 25px;
    margin-left: auto;
    margin-right: 15px;
}

.mobile_toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile_toggle span:nth-child(1) { top: 0; }
.mobile_toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile_toggle span:nth-child(3) { bottom: 0; }

/* Improved Mobile Styles */
@media screen and (max-width: 991px) {
    .mobile_toggle {
        display: block;
    }

    /* Toggle Animation */
    .mobile_toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        background: #000;
    }

    .mobile_toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile_toggle.active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
        background: #000;
    }

    /* Navigation Styles */
    .navigation_main {
        position: fixed;
        top: -100vh;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        transform: translateY(-100%);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navigation_main.active {
        transform: translateY(100%);
    }

    /* Navigation Links */
    .navigation_main nav {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .navigation_main nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }

    .navigation_main ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: calc(0.1s * var(--i, 0));
    }

    .navigation_main.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    .navigation_main ul li a {
        padding: 15px 0;
        color: #000 !important;
        width: 100%;
        font-size: 24px !important;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .navigation_main ul li a:hover {
        padding-left: 10px;
    }

    /* Submenu Styles */
    ul.sub_menu.mega {
        position: static;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .navigation_main nav ul li.active ul.sub_menu.mega {
        max-height: 2000px;
        padding: 20px 0;
    }

    .sub_menu_grid ul {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px !important;
    }

    .sub_menu_grid ul li a {
        border: none !important;
        background: rgba(0, 0, 0, 0.03);
        padding: 15px !important;
        border-radius: 8px;
    }

    .sub_menu_grid ul li a img {
        max-width: 60px;
        height: auto;
    }

    /* Search Icon */
    .search_icon {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        background: #000;
        padding: 15px;
        border-radius: 50%;
        z-index: 1001;
    }

    /* Disable body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Logo adjustment */
    .logo svg {
        width: 120px;
        height: auto;
    }
}

@media(max-width:576px){
    header#main-header:hover .navigation_main nav ul li a img {
    width: 100%;
    max-width: 100%;
}
.sub_menu_grid ul {
    padding: 0 !important;
}
}





header#main-header {
    padding: 20px 0px;
    border-bottom: 1px solid #ffffff9e;
}
header.header-scrolled .logo img {
    filter: brightness(0);
}