.top-bar {
    background: #f8f8f8;
    color: var(--text-dark);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.top-bar-item .icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.btn-quote {
    background: var(--color-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-quote:hover {
    background: #1A1548;
    transform: translateY(-1px);
}

.main-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.main-header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 5px 0;
}

.navbar {
    padding: 18px 0;
    transition: padding 0.3s ease;
}

.scrolled .navbar {
    padding: 12px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

.scrolled .logo {
    height: 45px;
}

.nav-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #4A4A4A;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

.nav-link:hover {
    color: #241D5E;
    background: rgba(36, 29, 94, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #241D5E;
    background: rgba(36, 29, 94, 0.1);
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.dropdown-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
    opacity: 0.6;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.08);
    list-style: none;
    padding: 8px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-right: none;
    border-bottom: none;
    transform: translateX(-50%) rotate(45deg);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #4A4A4A;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-menu a:hover {
    background: rgba(36,29,94,0.08);
    transform: translateX(2px);
}

.dropdown-title {
    display: block;
    font-weight: 600;
    color: #241D5E;
    margin-bottom: 2px;
    font-size: 13px;
}

.dropdown-desc {
    display: block;
    font-size: 11px;
    color: #8C8C8C;
    font-weight: 400;
    line-height: 1.3;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1c1645;
    color: white;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(28,22,69,0.2);
    border: 2px solid transparent;
}

.btn-header-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28,22,69,0.3);
    background: #241D5E;
    border-color: rgba(255,255,255,0.1);
}

.btn-header-contact i {
    font-size: 18px;
    margin-right: 8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: #0d1b4c;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(13, 27, 76, 0.08);
}

.mobile-menu-btn:hover i {
    color: #838280;
}

.mobile-menu-btn.active {
    background: rgba(13, 27, 76, 0.1);
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.off-canvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.off-canvas-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #f8f8f8;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.off-canvas-menu.active {
    right: 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.off-canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.off-canvas-logo {
    height: 40px;
}

.off-canvas-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.off-canvas-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.off-canvas-nav {
    flex-grow: 1;
    padding: 20px 0;
}

.off-canvas-list {
    list-style: none;
}

.off-canvas-list > li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.off-canvas-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.off-canvas-link:hover {
    background: var(--bg-light);
    color: var(--color-primary);
    padding-left: 25px;
}

.off-canvas-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.off-canvas-dropdown.active .dropdown-toggle svg {
    transform: rotate(180deg);
}

.off-canvas-submenu {
    list-style: none;
    background: #ffffff;
    display: none;
}

.off-canvas-dropdown.active .off-canvas-submenu {
    display: block;
}

.off-canvas-submenu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.off-canvas-submenu a:hover {
    color: var(--color-primary);
    padding-left: 45px;
}

.off-canvas-footer {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.off-canvas-contact {
    margin-top: 20px;
    text-align: center;
}

.off-canvas-contact p {
    margin: 5px 0;
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 1200px) {
    .nav-list {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: none;
    }
    
    .nav-menu,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .navbar-content {
        gap: 20px;
    }
    
    .logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .off-canvas-menu {
        width: 100%;
        right: -100%;
    }
}

.mega-menu {
    width: 900px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(13, 27, 76, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 27, 76, 0.1);
}

.mega-menu::before {
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 250, 0.98) 100%);
    border: 1px solid rgba(13, 27, 76, 0.1);
    border-right: none;
    border-bottom: none;
    transform: translateX(-50%) rotate(45deg);
}

.mega-menu-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(13, 27, 76, 0.08);
    background: linear-gradient(135deg, #0d1b4c 0%, #1a0f4a 100%);
    border-radius: 16px 16px 0 0;
    color: white;
    text-align: center;
}

.mega-menu-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.mega-menu-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 24px;
}

.mega-menu-item * {
    box-sizing: border-box;
}

.mega-menu-column {
    padding: 0 16px;
}

.mega-menu-column:first-child {
    padding-left: 0;
}

.mega-menu-column:last-child {
    padding-right: 0;
}

.mega-menu-column:not(:last-child) {
    border-right: 1px solid rgba(13, 27, 76, 0.06);
}

.column-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1b4c;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #0d1b4c, #4a38b3);
    border-radius: 2px;
}

.mega-menu-item {
    display: block;
    padding: 12px 0;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-menu-item:last-child {
    margin-bottom: 0;
}

.mega-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 27, 76, 0.05), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.mega-menu-item:hover::before {
    left: 100%;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, rgba(13, 27, 76, 0.08) 0%, rgba(13, 27, 76, 0.04) 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(13, 27, 76, 0.1);
}

.mega-item-content {
    width: 100%;
    display: block;
}

.mega-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.mega-menu-item:hover .mega-item-title {
    color: #0d1b4c;
}

.mega-item-desc {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-item-desc {
    color: #555;
}

.mega-menu-footer {
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(248, 248, 250, 0.8) 0%, rgba(240, 240, 245, 0.8) 100%);
    border-radius: 0 0 16px 16px;
    text-align: center;
    border-top: 1px solid rgba(13, 27, 76, 0.06);
}

.mega-menu-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d1b4c 0%, #1a0f4a 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 27, 76, 0.2);
    position: relative;
    overflow: hidden;
}

.mega-menu-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mega-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 27, 76, 0.3);
    background: white;
    color: #0d1b4c !important;
}

.mega-menu-cta:hover::before {
    left: 100%;
}

.mega-menu-cta i {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .mega-menu {
        width: 800px;
    }
    
    .mega-menu-grid {
        padding: 20px;
        gap: 0;
    }
    
    .mega-menu-column {
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .mega-menu {
        display: none !important;
    }
}