.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
    max-width: 100%;
}

.main-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 100%;
}

.container1 {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
}

.logo span {
    color: #2a1a5e;
    font-size: 1.6rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #2a1a5e;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 14px;
    display: inline-block;
    position: relative;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Underline Effect */
.nav-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff000e, #e5d118);
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

/* Gradient hover effect for main nav */
.nav-menu ul li a:hover,
.nav-menu ul li.active a {
    background: linear-gradient(to right, #ff000e, #e5d118);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item.active a {
    font-weight: 700;
}

.plus-icon {
    margin-left: 6px;
    font-size: 0.8em;
}

.nav-item.services-dropdown {
    position: relative;
}

.nav-item.services-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 1003;
}

.nav-item.services-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
}

.nav-item.services-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 15px 0;
    z-index: 1004;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    pointer-events: none;
}

.nav-item.services-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.2s;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.dropdown-menu a {
    display: block;
    color: #2a1a5e;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    text-align: left;
    pointer-events: auto;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Gradient hover for dropdown links */
.dropdown-menu a:hover {
    background: #f5f5f5;
    color: transparent;
    background-image: linear-gradient(to right, #ff000e, #e5d118);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header.scrolled .nav-item a {
    color: #2a1a5e;
}

.hamburger {
    display: none;
    background: linear-gradient(to right, #ff000e, #e5d118);
    color: #fff;
    padding: 8px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger:hover {
    background: linear-gradient(to right, #ff000e, #e5d118);
}

.hamburger i {
    color: black;
    font-size: 28px;
}

.main-header.scrolled .hamburger i {
    color: #fff;
}

@media (max-width: 767px) {
    .main-header {
        height: 80px;
    }

    .container1 {
        padding: 0 15px;
    }

    .logo img {
        max-width: auto;
        margin-left: -43px;
    }

    .logo span {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 10px 0;
        z-index: 999;
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
        padding: 0 15px;
    }

    .nav-item {
        width: 100%;
        position: static;
    }

    .nav-item a {
        color: #2a1a5e;
        font-size: 1rem;
        font-weight: 500;
        padding: 10px 15px;
        width: 100%;
        text-align: left;
        pointer-events: auto;
    }

    .nav-item.active a {
        background: linear-gradient(to right, #ff000e, #e5d118);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 600;
    }

    .nav-item.services-dropdown .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        background: #f8fafc;
        border: none;
        box-shadow: none;
        padding: 0 15px;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        pointer-events: auto;
    }

    .nav-item.services-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 30px;
        font-size: 0.95rem;
        color: #2a1a5e;
        font-weight: 500;
        text-align: left;
        pointer-events: auto;
        border-radius: 0;
    }

    .dropdown-menu a:hover {
        background: #f0f0f0;
        color: transparent;
        background-image: linear-gradient(to right, #ff000e, #e5d118);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    body.menu-open {
        overflow-y: hidden;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        max-height: none;
        overflow-y: visible;
        background: transparent;
        padding: 0;
    }

    .nav-menu ul {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

    .nav-item .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-item.services-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
