/* ==========================================
   HEXACORE ENHANCED DUAL NAVIGATION STYLES
   Version 4.0 - Clean & Working
   ========================================== */

/* CSS Variables */
:root {
    --primary-blue: #2196F3;
    --dark-navy: #0D1B2A;
    --light-gray: #F5F7FA;
    --medium-gray: #6B7280;
    --green-accent: #10B981;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(13, 27, 42, 0.12);
    --shadow-lg: 0 8px 32px rgba(13, 27, 42, 0.16);
    --shadow-xl: 0 12px 48px rgba(13, 27, 42, 0.2);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-navy);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   TOP NAVBAR STYLES
   ========================================== */

.top-navbar {
    background: var(--dark-navy);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
    z-index: 1001;
    transition: transform var(--transition-smooth);
}

.top-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.contact-item:hover {
    color: var(--primary-blue);
    transform: translateX(2px);
}

.contact-item i {
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.contact-item.location {
    cursor: default;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-2px) scale(1.05);
    color: var(--white);
}

.quick-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.quick-link:hover {
    color: var(--primary-blue);
}

.quick-link i {
    font-size: 0.9rem;
}

/* ==========================================
   MAIN HEADER STYLES
   ========================================== */

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.main-navbar {
    width: 100%;
    padding: 1rem 0;
    transition: padding var(--transition-smooth);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   LOGO STYLES
   ========================================== */

.navbar-brand {
    flex-shrink: 0;
    z-index: 1001;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-smooth);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-navy);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================
   DESKTOP NAVIGATION
   ========================================== */

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-link i:first-child {
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(33, 150, 243, 0.08);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover i:first-child {
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-blue);
    background-color: rgba(33, 150, 243, 0.12);
    font-weight: 700;
}

.nav-link.active::after {
    width: 70%;
}

/* Dropdown Icon Styles */
.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform var(--transition-fast);
}

/* ==========================================
   DROPDOWN MENU STYLES (SERVICES)
   ========================================== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
    z-index: 1000;
    pointer-events: none;
}

/* FIXED: Show dropdown when .show class is present */
.nav-item.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--dark-navy);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
}

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

.dropdown-item i {
    font-size: 1.25rem;
    color: var(--primary-blue);
    width: 28px;
    min-width: 28px;
    text-align: center;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.dropdown-item div {
    flex: 1;
}

.dropdown-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.2rem;
}

.dropdown-item small {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 400;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* ==========================================
   MEGA MENU STYLES (SOLUTIONS)
   ========================================== */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 900px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1000;
    pointer-events: none;
}

/* FIXED: Show mega-menu when .show class is present */
.nav-item.mega-dropdown.show .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-item.mega-dropdown.show .dropdown-icon {
    transform: rotate(180deg);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mega-menu-column.highlighted {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(33, 150, 243, 0.1);
}

.mega-menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.mega-menu-title i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.mega-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mega-menu-list li a {
    display: block;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.mega-menu-list li a:hover {
    color: var(--primary-blue);
    background-color: rgba(33, 150, 243, 0.08);
    padding-left: 1rem;
}

/* ==========================================
   CTA BUTTONS
   ========================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-quote:hover::before {
    opacity: 1;
}

.btn-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
    color: var(--white);
}

.btn-quote:active {
    transform: translateY(-1px);
}

.btn-quote i {
    font-size: 0.9rem;
}

/* ==========================================
   HAMBURGER MENU
   ========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    transition: transform var(--transition-fast);
    position: relative;
}

.hamburger:hover {
    transform: scale(1.05);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-navy);
    border-radius: 3px;
    transition: all var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--primary-blue);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: var(--primary-blue);
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -8px 0 32px rgba(13, 27, 42, 0.2);
    z-index: 999;
    overflow-y: auto;
    transition: right var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    background: var(--dark-navy);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.mobile-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mobile-logo-text .logo-text {
    font-size: 1.25rem;
    color: var(--white);
}

.mobile-logo-text .logo-tagline {
    font-size: 0.7rem;
    color: var(--primary-blue);
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.25rem;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 1002;
}

.close-menu:hover {
    background: var(--primary-blue);
    transform: rotate(90deg);
}

.close-menu:active {
    transform: rotate(90deg) scale(0.95);
}

.close-menu i {
    pointer-events: none;
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--dark-navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-fast);
    position: relative;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-link i:first-child {
    font-size: 1.25rem;
    color: var(--primary-blue);
    width: 28px;
    flex-shrink: 0;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    color: var(--primary-blue);
}

.mobile-nav-link .toggle-icon {
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.mobile-nav-item.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item.active .mobile-submenu {
    max-height: 1000px;
}

.submenu-category {
    margin-bottom: 1rem;
}

.category-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.submenu-category ul {
    list-style: none;
    padding: 0;
}

.mobile-submenu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.mobile-submenu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 1.5rem;
}

.mobile-cta-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.btn-primary-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
    transition: all var(--transition-smooth);
}

.btn-primary-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.4);
    color: var(--white);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-contact-item:hover {
    color: var(--primary-blue);
}

.mobile-contact-item i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    width: 24px;
}

.mobile-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--light-gray);
    border-radius: 12px;
    color: var(--dark-navy);
    text-decoration: none;
    transition: all var(--transition-smooth);
    font-size: 1.1rem;
}

.mobile-social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.125rem;
    }

    .nav-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .mega-menu {
        width: 800px;
    }

    .mega-menu-content {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .top-navbar {
        display: none;
    }

    .nav-wrapper {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-content {
        padding: 0 1.5rem;
    }

    .logo-image {
        height: 42px;
    }

    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 0 1rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .logo-text-wrapper {
        display: none;
    }

    .logo-image {
        height: 38px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }

    .mobile-logo-text {
        display: none;
    }

    .close-menu {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
}

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* Custom Scrollbar for Mobile Menu */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #1976D2;
}

/* Print Styles */
@media print {
    .top-navbar,
    .header {
        position: static;
        box-shadow: none;
    }

    .mobile-menu,
    .mobile-menu-overlay,
    .hamburger {
        display: none !important;
    }
}