/* ================================================================
   COMPONENTS.CSS
   JAD Group — Shared UI Components
   Includes: Page Loader, Top Bar, Navigation (Mega-Menu),
   Breadcrumb, Footer, Back to Top, Client Logos, CTA Banner
   ================================================================ */


/* ============================================
   1. PAGE LOADER
   ============================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
    transition: opacity 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.page-loader-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.page-loader-bar {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader-bar::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    animation: loader-progress 800ms ease forwards;
}

@keyframes loader-progress {
    0%   { width: 0%; }
    100% { width: 100%; }
}


/* ============================================
   2. TOP BAR
   ============================================ */

.top-bar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    fill: var(--gold);
    flex-shrink: 0;
}

.top-bar-item a:hover {
    color: var(--white);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}


/* ============================================
   3. NAVIGATION — BASE
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-logo span {
    color: var(--gold);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links > li > a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    padding: 4px 0;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links > li > a:hover {
    color: var(--white);
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* Active link state */
.nav-links > li > a.active {
    color: var(--white);
}

.nav-links > li > a.active::after {
    width: 100%;
}

/* CTA Button in Nav */
.nav-cta {
    padding: 10px 22px !important;
    background: var(--gold);
    color: var(--white) !important;
    border-radius: 6px;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 150, 62, 0.3);
}


/* ============================================
   3a. NAVIGATION — MEGA-MENU DROPDOWNS
   ============================================ */

.nav-item {
    position: relative;
}

/* Dropdown chevron indicator */
.nav-item.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-item.has-dropdown > a .nav-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease;
    margin-left: 2px;
}

.nav-item.has-dropdown:hover > a .nav-chevron,
.nav-item.has-dropdown > a.active .nav-chevron {
    transform: rotate(180deg);
}

/* No underline on parent dropdown links */
.nav-item.has-dropdown > a::after {
    display: none;
}

/* Mega-Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 32px;
    min-width: 500px;
    border-top: 3px solid var(--gold);
    z-index: 1001;
}

.mega-menu.active,
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Invisible bridge to prevent hover gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}


/* --- About Dropdown --- */

.mega-menu-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    min-width: 520px;
}

.mega-menu-about-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-about-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mega-menu-about-links a:hover {
    background: var(--off-white);
    color: var(--navy);
}

.mega-menu-about-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    flex-shrink: 0;
}

.mega-menu-about-links a span {
    display: flex;
    flex-direction: column;
}

.mega-menu-about-links a .mega-link-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.3;
}

.mega-menu-about-links a .mega-link-desc {
    font-size: 0.76rem;
    color: var(--grey-dark);
    font-weight: 400;
}

.mega-menu-about-image {
    background: var(--off-white);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 180px;
}

.mega-menu-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.85), transparent);
}

.mega-menu-about-image-overlay p {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
}


/* --- Services Dropdown --- */

.mega-menu-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    min-width: 520px;
}

.mega-menu-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mega-menu-service-item:hover {
    background: var(--off-white);
    color: var(--navy);
}

.mega-menu-service-item svg {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    flex-shrink: 0;
}

.mega-menu-service-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(200, 150, 62, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.mega-menu-service-item .service-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(200, 150, 62, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-menu-service-item .service-item-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.mega-menu-services-footer {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--grey-light);
    text-align: center;
}

.mega-menu-services-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mega-menu-services-footer a:hover {
    color: var(--gold-dark);
    gap: 10px;
}

.mega-menu-services-footer a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* --- Projects Dropdown --- */

.mega-menu-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 600px;
}

.mega-menu-project-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid var(--grey-light);
}

.mega-menu-project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mega-menu-project-thumb {
    width: 100%;
    height: 110px;
    background: var(--off-white);
    overflow: hidden;
}

.mega-menu-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-menu-project-card:hover .mega-menu-project-thumb img {
    transform: scale(1.05);
}

.mega-menu-project-info {
    padding: 12px 14px;
}

.mega-menu-project-info h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.mega-menu-project-info p {
    font-size: 0.72rem;
    color: var(--grey-dark);
    font-weight: 500;
}


/* ============================================
   3b. NAVIGATION — MOBILE TOGGLE & MENU
   ============================================ */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile close button (injected by JS) */
.mobile-nav-close {
    display: none;
}

/* Mobile submenu accordion */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 10px 0 10px 20px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.mobile-submenu a:hover {
    color: var(--gold) !important;
}

/* Mobile dropdown trigger arrow */
.mobile-dropdown-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.mobile-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.5);
    transition: transform 0.25s ease;
}

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


/* ============================================
   4. BREADCRUMB
   ============================================ */

.breadcrumb {
    background: var(--off-white);
    padding: 16px 0;
    border-bottom: 1px solid var(--grey-light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li::after {
    content: '/';
    color: var(--gold);
    font-weight: 500;
}

.breadcrumb-list li:last-child::after {
    content: none;
}

.breadcrumb-list a {
    color: var(--text-body);
    transition: color var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--gold);
}

.breadcrumb-list li:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb-list li:last-child a {
    color: var(--text-dark);
    pointer-events: none;
}

/* Breadcrumb home icon */
.breadcrumb-home-icon {
    width: 16px;
    height: 16px;
    fill: var(--grey-dark);
    vertical-align: middle;
    transition: fill var(--transition);
}

.breadcrumb-list a:hover .breadcrumb-home-icon {
    fill: var(--gold);
}


/* ============================================
   5. FOOTER
   ============================================ */

.footer {
    background: var(--navy);
    padding: 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer .geo-pattern {
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    opacity: 0.015;
}


/* --- Newsletter Strip --- */

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
}

.footer-newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-newsletter-text h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-newsletter-text p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    width: 100%;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.footer-newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
}

.footer-newsletter-form button {
    padding: 14px 24px;
    background: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
    border-radius: 0 6px 6px 0;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all var(--transition);
}

.footer-newsletter-form button:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}


/* --- Footer Main Grid --- */

.footer-main {
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 20px;
}

.footer-brand .nav-logo {
    margin-bottom: 4px;
}

.footer-ncdmb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.footer-ncdmb svg {
    width: 16px;
    height: 16px;
    fill: var(--gold);
    flex-shrink: 0;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}


/* --- Social Icons --- */

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.3);
    transition: fill var(--transition);
}

.footer-social a:hover svg {
    fill: var(--white);
}


/* --- Footer Bottom --- */

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================
   6. BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    transition: fill var(--transition);
}

.back-to-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}

.back-to-top:hover svg {
    fill: var(--white);
}


/* ============================================
   7. CLIENT LOGOS STRIP
   ============================================ */

.client-logos {
    padding: 48px 0;
    background: var(--off-white);
    overflow: hidden;
}

.client-logos-title {
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    width: 100%;
    justify-content: center;
}

.client-logos-title::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.client-logos-track {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-content: center;
}

.client-logo {
    height: 40px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all var(--transition);
    flex-shrink: 0;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Marquee variant for continuous scroll */
.client-logos-marquee {
    display: flex;
    gap: 48px;
    animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================
   8. CTA BANNER
   ============================================ */

.cta-banner {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner .geo-pattern {
    inset: 0;
    opacity: 0.02;
}

.cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-banner .btn-primary {
    background: var(--gold);
    color: var(--white);
}

.cta-banner .btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}

/* CTA accent lines */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(200, 150, 62, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(200, 150, 62, 0.06);
    border-radius: 50%;
    pointer-events: none;
}


/* ============================================
   RESPONSIVE — 1024px
   ============================================ */

@media (max-width: 1024px) {

    /* Mega-menus: reduce widths */
    .mega-menu {
        min-width: 420px;
        padding: 24px;
    }

    .mega-menu-about {
        min-width: 420px;
    }

    .mega-menu-services {
        min-width: 420px;
    }

    .mega-menu-projects {
        min-width: 480px;
        gap: 14px;
    }

    .mega-menu-project-thumb {
        height: 90px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-newsletter .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter-form {
        max-width: 100%;
    }

    /* Client Logos */
    .client-logos-track {
        gap: 36px;
    }

    .client-logo {
        height: 34px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 64px 0;
    }
}


/* ============================================
   RESPONSIVE — 768px
   ============================================ */

@media (max-width: 768px) {

    /* Top Bar: hidden */
    .top-bar {
        display: none;
    }

    /* Navigation: mobile layout */
    body {
        padding-top: 72px;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 2;
    }

    .nav-logo {
        position: relative;
        z-index: 2;
    }

    /* Mobile mega-menu: convert to accordion */
    .mega-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        min-width: 0 !important;
        border-top: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        width: 100%;
    }

    .mega-menu::before {
        display: none;
    }

    /* When JS adds .active AND sets inline max-height via scrollHeight */
    .mega-menu.active {
        max-height: none;
    }

    /* Kill ALL desktop hover effects on mega-menu */
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu {
        max-height: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .nav-item:hover > .mega-menu.active,
    .nav-item:focus-within > .mega-menu.active {
        max-height: none;
    }

    /* Mobile mega-menu inner layout overrides */
    .mega-menu-about {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .mega-menu-about-image {
        display: none;
    }

    .mega-menu-about-links a {
        padding: 10px 0 10px 16px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 0;
    }

    .mega-menu-about-links a:hover {
        background: transparent;
        color: var(--gold);
    }

    .mega-menu-about-links a svg {
        display: none;
    }

    .mega-menu-about-links a .mega-link-label {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
    }

    .mega-menu-about-links a:hover .mega-link-label {
        color: var(--gold);
    }

    .mega-menu-about-links a .mega-link-desc {
        display: none;
    }

    .mega-menu-services {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .mega-menu-service-item {
        padding: 10px 0 10px 16px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 0;
    }

    .mega-menu-service-item:hover {
        background: transparent;
        color: var(--gold);
    }

    .mega-menu-service-item .service-item-icon {
        display: none;
    }

    .mega-menu-services-footer {
        padding: 10px 0 10px 16px;
        margin-top: 0;
        border-top: none;
        text-align: left;
    }

    .mega-menu-services-footer a {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
    }

    .mega-menu-services-footer a:hover {
        color: var(--gold);
    }

    .mega-menu-services-footer a svg {
        display: none;
    }

    .mega-menu-projects {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .mega-menu-project-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0 10px 16px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .mega-menu-project-card:hover {
        box-shadow: none;
        transform: none;
    }

    .mega-menu-project-thumb {
        display: none;
    }

    .mega-menu-project-info {
        padding: 0;
    }

    .mega-menu-project-info h4 {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
    }

    .mega-menu-project-card:hover .mega-menu-project-info h4 {
        color: var(--gold);
    }

    .mega-menu-project-info p {
        display: none;
    }

    /* Chevron rotation for mobile accordion */
    .nav-item.has-dropdown > a .nav-chevron {
        border-top-color: rgba(255, 255, 255, 0.5);
        transition: transform 0.25s ease;
    }

    .nav-item.has-dropdown.mobile-submenu-active > a .nav-chevron {
        transform: rotate(180deg);
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        background: #0a1628;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 24px 40px;
        gap: 0;
        overflow-y: auto;
        z-index: 9990;
        -webkit-overflow-scrolling: touch;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Close button visible inside mobile nav */
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 40px;
        height: 40px;
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        color: var(--white);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        margin-bottom: 16px;
        flex-shrink: 0;
    }

    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        padding: 16px 0;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links > li > a::after {
        display: none;
    }

    /* Mobile nav-item with dropdown: row layout */
    .nav-item.has-dropdown {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-item.has-dropdown > a {
        flex: 1;
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        display: block !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 12px 0;
    }

    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 6px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-newsletter .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 0;
    }

    .footer-newsletter-form input[type="email"] {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px 6px 0 0;
    }

    .footer-newsletter-form button {
        border-radius: 0 0 6px 6px;
    }

    /* Client Logos: enable marquee on mobile */
    .client-logos-track {
        justify-content: flex-start;
        animation: marquee-scroll 25s linear infinite;
    }

    .client-logo {
        height: 32px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 56px 0;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}


/* ============================================
   RESPONSIVE — 480px
   ============================================ */

@media (max-width: 480px) {

    /* Navigation */
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    .nav-links {
        padding: 16px 16px 28px;
    }

    /* Breadcrumb */
    .breadcrumb-list {
        font-size: 0.76rem;
        gap: 4px;
    }

    .breadcrumb-list li {
        gap: 4px;
    }

    /* Footer */
    .footer-newsletter {
        padding: 28px 0;
    }

    .footer-newsletter-text h3 {
        font-size: 1.1rem;
    }

    .footer-main {
        padding: 48px 0 0;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-social {
        margin-top: 20px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Client Logos */
    .client-logos {
        padding: 32px 0;
    }

    .client-logos-title {
        margin-bottom: 24px;
        font-size: 0.7rem;
    }

    .client-logo {
        height: 28px;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 48px 0;
    }

    .cta-banner h2 {
        font-size: 1.4rem;
    }

    .cta-banner p {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}
