@media (max-width: 968px) {
    body {
        padding-top: 0 !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: 400;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    padding-top: 0 !important;
}

/* Hide mobile-specific elements on desktop/tablet */
.mobile-header-logo,
.mobile-help-section,
.mobile-bottom-logo {
    display: none;
}

/* Main Header */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.nav-link i {
    display: none; /* Hide icons by default on desktop/tablet */
    color: transparent;
}

.nav-link i.fa-home,
.nav-link i.fa-info-circle,
.nav-link i.fa-building,
.nav-link i.fa-book,
.nav-link i.fa-globe,
.nav-link i.fa-briefcase,
.nav-link i.fa-phone {
    display: none; /* Hide icons by default on desktop/tablet */
    color: transparent;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
}

.nav-link:hover {
    color: #d32f2f;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: -2px;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Prevent desktop hover on mobile */
@media (max-width: 968px) {
    .nav-item:hover .dropdown-arrow {
        transform: rotate(0deg);
    }
}

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 15px;
    min-width: 600px;
    overflow: hidden;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: flex;
}

/* Left Categories Column */
.mega-menu-categories {
    width: 200px;
    background-color: #f8f8f8;
    padding: 20px 0;
    border-right: 1px solid #e5e5e5;
}

.mega-category {
    padding: 12px 25px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mega-category:hover,
.mega-category.active {
    background-color: #fff;
    color: #d32f2f;
    border-left-color: #d32f2f;
}

.mega-category::after {
    content: '›';
    position: absolute;
    right: 20px;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.mega-category:hover::after,
.mega-category.active::after {
    opacity: 1;
}

/* Right Projects Column */
.mega-menu-projects {
    width: 400px;
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Hide project lists by default - IMPORTANT for desktop */
.project-list {
    display: none !important;
}

/* Show only the active project list */
.project-list.active {
    display: block !important;
}

/* Mobile sublist styling */
.mobile-sublist {
    display: none;
    padding: 10px 0;
    background: #f8f8f8;
}

.mobile-sublist.expanded {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-item {
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.project-item:hover {
    background-color: #f8f8f8;
    color: #d32f2f;
    border-left-color: #d32f2f;
    padding-left: 30px;
}

.project-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 600;
}

.status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-ongoing {
    background-color: #fff3e0;
    color: #e65100;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f5f5f5;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: transparent;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
}

/* Scrollbar Styling */
.mega-menu-projects::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-projects::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mega-menu-projects::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.mega-menu-projects::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Demo Content */
.demo-content {
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.demo-content h1 {
    color: #333;
    margin-bottom: 20px;
}

.demo-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Desktop mega menu - ensure projects show */
@media (min-width: 969px) {
    .mega-menu-projects {
        display: block !important;
    }

    .project-list.active {
        display: block !important;
    }
}

/* Responsive - Mobile Navigation from Left */
@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    .header-logo img {
        height: 40px;
    }

    /* Mobile Header Logo - Show only on mobile */
    .mobile-header-logo {
        display: block !important;
        padding: 20px 20px 15px 20px;
        /* border-bottom: 1px solid #f0f0f0; */
        margin-bottom: 10px;
    }

    .mobile-header-logo h2 {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
        text-align: left;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    }

    /* Left Side Slide Navigation */
    .header-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: -300px; /* Hidden off-screen to the left */
        bottom: 0;
        width: 300px;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        gap: 0;
        overflow-y: auto;
        transition: left 0.4s ease-in-out;
        z-index: 999;
    }

    .header-nav.active {
        left: 0; /* Slide in from left */
    }

    /* Overlay background when menu is open */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
        z-index: 998;
        pointer-events: none;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        padding: 15px 20px;
        width: 100%;
        justify-content: flex-start;
        font-size: 15px;
    }

    .nav-link i {
        display: block; /* Show icons on mobile */
        font-size: 16px;
        color: transparent;
        width: 20px;
        text-align: center;
    }

    .nav-link i.fa-home,
    .nav-link i.fa-info-circle,
    .nav-link i.fa-building,
    .nav-link i.fa-book,
    .nav-link i.fa-globe,
    .nav-link i.fa-briefcase,
    .nav-link i.fa-phone {
        display: block; /* Show icons on mobile */
        color: transparent;
        -webkit-text-stroke: 1px #000;
        text-stroke: 1px #000;
    }

            .dropdown-arrow {
                margin-left: auto;
            }

            /* Mobile Mega Menu */
            .mega-menu {
                position: static;
                transform: none !important;
                box-shadow: none;
                min-width: 100%;
                margin-top: 0;
                border-radius: 0;
                max-height: 0;
                opacity: 1;
                visibility: visible;
                background-color: #f8f8f8;
                overflow: hidden;
                transition: max-height 0.4s ease-in-out;
            }

            .nav-item:hover .mega-menu {
                max-height: 0;
            }

            .nav-item.mobile-expanded .mega-menu {
                max-height: 500px;
            }

            .nav-item.mobile-expanded .dropdown-arrow {
                transform: rotate(180deg) !important;
            }

            .mega-menu-content {
                flex-direction: column;
            }

            .mega-menu-categories,
            .mega-menu-projects {
                width: 100%;
            }

            .mega-menu-categories {
                background-color: #fff;
                border-right: none;
                border-bottom: 1px solid #e5e5e5;
                padding: 10px 0;
            }

            .mega-menu-projects {
                display: none !important;
            }

            .mega-category {
                padding: 12px 20px;
                font-size: 13px;
            }

            .project-item {
                padding: 12px 20px;
                font-size: 13px;
            }

            /* Inline sublist that opens under the tapped category */
            .mobile-sublist {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                background: #f8f8f8;
                border-top: 1px solid #e5e5e5;
            }

            .mobile-sublist.expanded {
                max-height: 500px;
                display: block;
            }

            .mobile-sublist .project-item {
                padding: 12px 24px;
                border-left: 0;
            }

            /* Help & Support Section - Show only on mobile */
            .mobile-help-section {
                display: block !important;
                width: 100%;
                padding: 20px 0 10px 0;
                border-top: 5px solid #e5e5e5;
                /* margin-top: 10px; */
            }

            .mobile-help-section h3 {
                font-size: 12px;
                font-weight: 500;
                color: #999;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin: 0 0 15px 20px;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            }

            .mobile-help-section .nav-item {
                border-bottom: none;
            }

            .mobile-help-section .nav-link {
                padding: 12px 20px;
                font-size: 15px;
            }

            /* Bottom Logo Section - Show only on mobile */
            .mobile-bottom-logo {
                display: block !important;
                width: 100%;
                padding: 30px 20px 20px 20px;
                text-align: center;
                margin-top: auto;
                border-top: 1px solid #e5e5e5;
            }

            .logo-symbol {
                margin-bottom: 15px;
            }

            .red-h-symbol {
                width: 50px;
                height: 50px;
                background-color: #d32f2f;
                color: white;
                font-size: 24px;
                font-weight: bold;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto;
                border-radius: 4px;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            }

            .mobile-bottom-logo h2 {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin: 0 0 8px 0;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            }

            .mobile-bottom-logo .tagline {
                font-size: 12px;
                color: #999;
                font-style: italic;
                margin: 0;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            }

            .mobile-menu-btn {
                display: block;
            }

            .demo-content {
                margin-top: 90px;
            }
        }