
header {
    margin-top: 40px;
    position: fixed;
    width: 100%;
    z-index: 9999999;
    top: 0;
}

header .container {
    position: relative;
}

header .navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    margin-top: -10px;
}


header .navbar .navCont {
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

header .navbar .navLogo {
    width: 200px;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%) translateY(-50%);
    transition: all 0.3s ease-in-out;
}

header .navbar .navLogo svg {
    width: 100%;
    height: auto;
}

header .logoBack {
    content: '';
    position: absolute;
    left: 50%;
    top: -42px;
    transform: translateX(-50%);
    width: 500px;
    height: 115px;
    z-index: -1;
    background-image: url('/uploads/designAssets/logoBack.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease-in-out;
    filter:brightness(0.96);
}

header .logoBack svg {
    display: none;
}

header .navbar .navMenu .navList {
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease-in-out;
    height: 50px;
    position: relative;

}

header .navbar .navList,
header .navbar .navSocial,
header .navbar .navContact {
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logoBack,
 header .logoBack {
    filter:none;
}

header .logoBack,
header .logoBack {
    margin-top: -10px;
}

header .navLogo,
header .navLogo {
    margin-top: -6px;
}

header .navbar .navList a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}



header .navbar .navList .navMegaLogo svg {
    width: 200px;
    height: auto;
}

header .navbar .navSocial {
    transition: all 0.3s ease-in-out;
    height: 50px;
}

/* Nav Right Container */
header .navbar .navRight {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Contact Info */
header .navbar .navContact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    height: 50px;
    justify-content: center;
}

header .navbar .navContact .contactItem {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

header .navbar .navContact .contactItem i {
    font-size: 0.7rem;
    width: 10px;
    color: var(--primary-color);
}

header .navbar .navSocial ul {
    display: flex;
    gap: 10px;
}

header .navbar .navSocial ul i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}


/* Mega Menu */


header .navbar .navList .megaMenu .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

header .navbar .navList .megaMenu:hover .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header .navbar .navList .megaMenu .menu .menuParts {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
}

/* Smooth curved connector between parts */
header .navbar .navList .megaMenu .menu .menuParts::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 240px;
    right: calc(100% - 260px);
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: -1;
}

header .navbar .navList .megaMenu .menu .menuPart {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 240px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header .navbar .navList .megaMenu .menu .menuPart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


header .navbar .navList .megaMenu .menu .menuPart .partTitle {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 74, 144, 226), 0.2);
    position: relative;
}

header .navbar .navList .megaMenu .menu .menuPart:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 80%;
    background: var(--card-bg);
    z-index: -1;
}

header .navbar .navList .megaMenu .menu .menuPart .partTitle::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

header .navbar .navList .megaMenu .menu .menuPart .partItems {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

header .navbar .navList .megaMenu .menu .menuPart .partItems a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

header .navbar .navList .megaMenu .menu .menuPart .partItems a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb, 74, 144, 226), 0.1), transparent);
    transition: left 0.6s ease;
}

header .navbar .navList .megaMenu .menu .menuPart .partItems a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
    transform: translateX(4px);
}

header .navbar .navList .megaMenu .menu .menuPart .partItems a:hover::before {
    left: 100%;
}


/* responsive */

@media (max-width: 1550px) {
    header .navbar {
        padding: 0;
    }
    
    header .navbar .navContact .contactItem {
        font-size: 0.7rem;
    }
}

@media (max-width: 1350px) {
    header .navbar .navContact {
        display: none;
    }
}

@media (max-width: 1199px) {
    header .logoBack {
        display: none;
    }

    header .navbar .navList a {
        font-size: 0.95rem;
    }

    header .navbar .navLogo {
        position: unset;
        left: unset;
        top: unset;
        transform: unset;
    }

    header .navbar {
        justify-content: start;
        align-items: center;
        background: var(--card-bg);
        border-radius: 5px;
        padding: 5px 10px;
        padding-top: 8px;
    }

    header .navbar .navMenu {
        margin-right: auto;
    }

    header {
        margin-top: 25px;
    }

    header .navbar .navMenu .navList,
    header .navbar .navMenu,
    header .navbar .navSocial,
    header .navbar .navContact {
        box-shadow: unset!important;
    }
    
    header .navbar .navRight {
        gap: 8px;
    }
}

@media (max-width: 991px) {
    /* navActions removed */
}

/* Mobile Menu Button */


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn:hover span {
    background: var(--secondary-color, #5a8fd8);
}

/* Mobile Menu Button Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    
}

@media (max-width: 768px) {
    header {
        margin-top: 23px;
    }
    
    header .navbar {
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px;
        height: 60px;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
        z-index: 10001;
    }
    
    header .navbar .navLogo {
        order: 1;
        width: 150px;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    header .navbar .navLogo .relativeDiv {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    header .navbar .navLogo svg {
        width: 100%;
        height: auto;
        max-height: 40px;
    }
    
    header .navbar .navMenu,
    header .navbar .navRight {
        display: none;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Menu Container */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--card-bg);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 10000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding: 80px 0 40px;
        display: flex;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    /* Mobile Menu Content */
    .mobile-menu-content {
        padding: 0 30px;
    }
    
    /* Mobile Menu Logo */
    .mobile-menu-logo {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
    }
    
    .mobile-menu-logo img {
        width: 120px;
        height: auto;
    }
    
    /* Mobile Menu Items */
    .mobile-menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-items li {
        margin-bottom: 8px;
    }
    
    .mobile-menu-items a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-menu-items a:hover,
    .mobile-menu-items a.active {
        background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
        transform: translateX(5px);
    }
    
    .mobile-menu-items a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--primary-color);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        border-radius: 0 4px 4px 0;
    }
    
    .mobile-menu-items a:hover::before,
    .mobile-menu-items a.active::before {
        transform: scaleY(1);
    }
    
    /* Mobile Mega Menu */
    .mobile-mega-menu {
        margin-top: 10px;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-mega-menu.active {
        max-height: 300px;
        opacity: 1;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .mobile-mega-menu-section {
        margin-bottom: 20px;
    }
    
    .mobile-mega-menu-title {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--primary-color);
        margin-bottom: 8px;
        padding-left: 15px;
    }
    
    .mobile-mega-menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-mega-menu-items a {
        padding: 8px 15px;
        font-size: 0.95rem;
        font-weight: 400;
        color: #666;
    }
    
    .mobile-mega-menu-items a:hover {
        color: var(--primary-color);
        background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
    }
    
    /* Mobile Menu Toggle Icon */
    .mobile-menu-toggle {
        display: none;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-left: 10px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle i {
        font-size: 0.8rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
    }
    
    .mobile-mega-menu-parent {
        position: relative;
    }
    
    .mobile-mega-menu-parent > a {
        justify-content: space-between;
    }
    
    .mobile-mega-menu-parent .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-mega-menu-parent.active .mobile-menu-toggle i {
        transform: rotate(180deg);
    }
    
    /* Mobile Contact & Social */
    .mobile-menu-footer {
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
    }
    
    .mobile-contact-items {
        margin-bottom: 30px;
    }
    
    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 20px;
        margin-bottom: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .mobile-contact-item:hover {
        background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.05);
    }
    
    .mobile-contact-item i {
        font-size: 1rem;
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }
    
    .mobile-contact-item span {
        font-size: 0.9rem;
        color: var(--primary-color);
    }
    
    .mobile-social-items {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    .mobile-social-items a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(var(--primary-color-rgb, 74, 144, 226), 0.1);
        color: var(--primary-color);
        transition: all 0.3s ease;
    }
    
    .mobile-social-items a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }
}