*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        :root {
            --primary: #0a2463;
            --primary-dark: #071940;
            --secondary: #d32f2f;
            --gold: #f5c518;
            --bg: #f8f9fb;
            --border: #e8ecf4;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: #111827;
            overflow-x: hidden;
            max-width: 100vw;
            -webkit-font-smoothing: antialiased;
        }

        /* ✅ Prevent grids from overflowing viewport */
        .infra-carwrap, .infra-marquee, .bulk-grid, .team-grid, .uniform-grid {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }

        /* ===== HERO ===== */
        .gallery-hero {
            background: radial-gradient(ellipse at 30% 50%, #1a3a8f 0%, #0d2060 40%, #071540 100%);
            position: relative;
            overflow: hidden;
            padding: 70px 20px 70px;
            text-align: center;
        }
        .gallery-hero::before {
            content: '';
            position: absolute; inset: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
            background-size: 26px 26px;
            pointer-events: none;
        }

        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            background: rgba(255,255,255,0.12);
            border: 1.5px solid rgba(255,255,255,0.25);
            color: rgba(255,255,255,0.92);
            padding: 8px 22px; border-radius: 50px;
            font-size: 13px; font-weight: 700;
            letter-spacing: 1.5px; text-transform: uppercase;
            margin-bottom: 24px;
            backdrop-filter: blur(8px);
        }

        .hero-title-white {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800; color: #fff;
            font-size: clamp(28px, 5.5vw, 66px);
            line-height: 1.1; display: block;
        }
        .hero-title-yellow {
            font-family: 'Montserrat', sans-serif;
            font-weight: 800; color: #f5c518;
            font-size: clamp(28px, 5.5vw, 66px);
            line-height: 1.2; display: block;
        }
        .hero-subtitle {
            color: rgba(255,255,255,0.78);
            font-size: clamp(13px, 1.8vw, 18px);
            margin: 16px auto 38px; max-width: 540px;
        }

        .hero-stats {
            display: flex; justify-content: center;
            gap: 12px; flex-wrap: wrap;
            position: relative; z-index: 2;
        }
        .hero-stat-box {
            background: rgba(255,255,255,0.10);
            border: 1.5px solid rgba(255,255,255,0.18);
            border-radius: 18px; padding: 18px 28px;
            min-width: 120px;
            backdrop-filter: blur(12px);
            transition: transform 0.3s ease, background 0.3s;
        }
        .hero-stat-box:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
        .hero-stat-box .stat-num {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(22px, 3vw, 38px); font-weight: 800;
            color: #f5c518; display: block; line-height: 1;
        }
        .hero-stat-box .stat-label {
            font-size: 12px; color: rgba(255,255,255,0.7);
            margin-top: 6px; font-weight: 500; display: block;
        }

        .breadcrumb-link {
            color: rgba(255,255,255,0.6); transition: color 0.2s;
            text-decoration: none; font-size: 13px;
        }
        .breadcrumb-link:hover { color: #fff; }

        /* ===================================================
           TAB BAR — FULLY RESPONSIVE WITH SCROLL
           =================================================== */
        .tab-bar {
            background: #fff;
            border-bottom: 2px solid var(--border);
            position: sticky; top: 68px; z-index: 30;
            box-shadow: 0 2px 8px rgba(10,36,99,0.07);
        }

        .tab-inner {
            max-width: 1180px; margin: 0 auto; padding: 0 16px;
            display: flex; align-items: center;
            justify-content: space-between; gap: 12px;
            min-height: 62px;
        }

        /* Scrollable tabs group */
        .tabs-group {
            display: flex;
            gap: 6px;
            flex-wrap: nowrap;           /* ✅ NO wrap — scroll instead */
            overflow-x: auto;            /* ✅ horizontal scroll */
            -webkit-overflow-scrolling: touch;
            padding: 10px 0;
            flex: 1;
            min-width: 0;               /* ✅ allows shrink inside flex */
            /* Hide scrollbar */
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .tabs-group::-webkit-scrollbar { display: none; }

        .tab-btn {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 8px 18px; border-radius: 50px;
            font-size: 13px; font-weight: 600;
            border: 2px solid var(--border);
            background: #fff; color: #6b7280;
            cursor: pointer; transition: all 0.22s ease;
            white-space: nowrap;         /* ✅ never wrap text */
            flex-shrink: 0;             /* ✅ never squeeze */
        }
        .tab-btn:hover { border-color: var(--primary); color: var(--primary); }
        .tab-btn.active {
            background: var(--primary); color: #fff;
            border-color: var(--primary);
            box-shadow: 0 4px 15px rgba(10,36,99,0.3);
        }
        .tab-btn .count {
            font-size: 10px; font-weight: 800;
            background: rgba(0,0,0,0.12);
            padding: 2px 6px; border-radius: 10px;
        }
        .tab-btn.active .count { background: rgba(255,255,255,0.2); }

        /* View toggle — shrinks on mobile */
        .view-toggle {
            display: flex; gap: 4px;
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: 8px; padding: 4px;
            flex-shrink: 0;
        }
        .vt-btn {
            width: 32px; height: 32px; border-radius: 6px;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; border: none; background: transparent;
            color: #9ca3af; transition: all 0.2s;
        }
        .vt-btn.active { background: var(--primary); color: #fff; }

        /* ===== CONTENT ===== */
        .content-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 16px 72px; }

        .panel { display: none; }
        .panel.active { display: block; }

        .sec-hd { margin-bottom: 24px; }
        .sec-pill {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 11px; font-weight: 800;
            letter-spacing: 2.5px; text-transform: uppercase;
            color: var(--secondary); margin-bottom: 10px;
        }
        .sec-pill::before, .sec-pill::after {
            content: ''; display: block;
            width: 28px; height: 2px;
            background: var(--secondary); border-radius: 2px;
        }
        .sec-hd h2 {
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(20px, 2.8vw, 30px);
            font-weight: 800; color: var(--primary);
            margin-bottom: 8px;
        }
        .sec-hd p { font-size: 13.5px; color: #6b7280; max-width: 560px; line-height: 1.65; }

        /* ===================================================
           GALLERY GRIDS — RESPONSIVE MASONRY STYLE
           =================================================== */

        /* Infrastructure: continuous auto-scrolling carousel (10 cards, seamless loop) */
        .infra-carwrap {
            position: relative;
            border-radius: 16px;
        }

        .infra-marquee {
            overflow: hidden;
            border-radius: 16px;
            -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
        }

        .infra-track {
            display: flex;
            width: max-content;
            gap: 18px;
            will-change: transform;
        }
        /* Smooth easing only while an arrow-triggered nudge is in flight —
           the continuous auto-scroll itself is driven frame-by-frame in JS. */
        .infra-track.is-nudging {
            transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
        }

        /* Reduced-motion fallback: no auto-scroll, swipe/scroll (or use the arrows) instead */
        .infra-marquee.is-static {
            overflow-x: auto;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-mask-image: none;
            mask-image: none;
        }
        .infra-marquee.is-static::-webkit-scrollbar { display: none; }

        .infra-mcard {
            position: relative;
            flex: 0 0 300px;
            width: 300px;
            height: 340px;
            border-radius: 14px;
            cursor: pointer;
            overflow: hidden;
            background: #d8dde5;
        }
        .infra-mcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
        .infra-mcard img {
            width: 100%; height: 100%;
            object-fit: cover; display: block;
        }

        .infra-arrow {
            position: absolute; top: 50%;
            width: 44px; height: 44px;
            transform: translateY(-50%);
            background: rgba(7,25,64,0.55);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.28);
            border-radius: 50%;
            color: #fff; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            z-index: 5;
            transition: background 0.2s, border-color 0.2s;
        }
        .infra-arrow:hover { background: var(--primary); border-color: var(--primary); }
        .infra-arrow.prev { left: 14px; }
        .infra-arrow.next { right: 14px; }

        .infra-hint {
            text-align: center;
            font-size: 12px; color: #9ca3af; font-weight: 500;
            margin-top: 14px;
        }

        /* Bulk: 4-col mosaic */
        .bulk-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: 210px 190px 175px;
            gap: 10px;
        }
        .bi-1 { grid-column: 1/3; grid-row: 1; }
        .bi-2 { grid-column: 3/5; grid-row: 1; }
        .bi-3 { grid-column: 1;   grid-row: 2; }
        .bi-4 { grid-column: 2/4; grid-row: 2; }
        .bi-5 { grid-column: 4;   grid-row: 2; }
        .bi-6 { grid-column: 1;   grid-row: 3; }
        .bi-7 { grid-column: 2;   grid-row: 3; }
        .bi-8 { grid-column: 3;   grid-row: 3; }
        .bi-9 { grid-column: 4;   grid-row: 3; }

        /* Team: 3-col */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: 250px 220px;
            gap: 10px;
        }
        .ti-1 { grid-column: 1/3; grid-row: 1; }
        .ti-2 { grid-column: 3;   grid-row: 1; }
        .ti-3 { grid-column: 1;   grid-row: 2; }
        .ti-4 { grid-column: 2;   grid-row: 2; }
        .ti-5 { grid-column: 3;   grid-row: 2; }

        /* Uniform view mode */
        .uniform-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 10px;
        }
        .uniform-grid .gc { height: 185px !important; }

        /* ===== GALLERY CARD ===== */
        .gc {
            position: relative; border-radius: 12px; overflow: hidden;
            cursor: pointer; background: #d8dde5;
            transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s;
        }
        .gc:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(10,36,99,0.18); }
        .gc img {
            width: 100%; height: 100%; object-fit: cover; display: block;
            transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
        }
        .gc:hover img { transform: scale(1.07); }

        .gc-ov {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(7,25,64,0.88) 0%, rgba(7,25,64,0.18) 50%, transparent 75%);
            opacity: 0.3; transition: opacity 0.3s;
            display: flex; flex-direction: column;
            justify-content: flex-end; padding: 16px;
        }
        .gc:hover .gc-ov, .gc.feat .gc-ov { opacity: 1; }

        .gc-title {
            font-family: 'Montserrat', sans-serif;
            font-size: 13px; font-weight: 700; color: #fff; line-height: 1.35;
            transform: translateY(8px); transition: transform 0.3s;
        }
        .gc:hover .gc-title, .gc.feat .gc-title { transform: translateY(0); }
        .gc-title small {
            display: block; font-size: 11px; font-weight: 400;
            color: rgba(255,255,255,0.6); margin-top: 3px;
        }

        .gc-bdg {
            position: absolute; top: 10px; left: 10px;
            font-size: 9px; font-weight: 800;
            letter-spacing: 1.2px; text-transform: uppercase;
            padding: 4px 10px; border-radius: 5px; z-index: 2;
        }
        .gc-bdg.red  { background: var(--secondary); color: #fff; }
        .gc-bdg.navy { background: var(--primary); color: #fff; }
        .gc-bdg.gold { background: #f5c518; color: #071940; }

        .gc-zico {
            position: absolute; top: 10px; right: 10px;
            width: 32px; height: 32px;
            background: rgba(255,255,255,0.12);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; transform: scale(0.8); transition: all 0.25s; z-index: 3;
        }
        .gc:hover .gc-zico { opacity: 1; transform: scale(1); }

        /* ===== STATS ROW ===== */
        .stats-row {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 12px; margin-bottom: 32px;
        }
        .stat-card {
            background: #fff; border: 1.5px solid var(--border);
            border-radius: 12px; padding: 16px 18px;
            display: flex; align-items: center; gap: 12px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .stat-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(10,36,99,0.1); }
        .stat-icon {
            width: 42px; height: 42px; border-radius: 10px;
            background: rgba(10,36,99,0.08);
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .stat-card-num {
            font-family: 'Montserrat', sans-serif;
            font-size: 20px; font-weight: 800; color: var(--primary);
        }
        .stat-card-label { font-size: 11px; color: #9ca3af; font-weight: 500; margin-top: 1px; }

        /* ===== CTA ===== */
        .cta-section {
            background: linear-gradient(135deg, #071940 0%, #0a2463 60%, #1e3a8a 100%);
            border-radius: 16px; position: relative; overflow: hidden;
            padding: 32px 28px;
            display: flex; align-items: center;
            justify-content: space-between; gap: 20px; flex-wrap: wrap;
            margin-top: 48px;
        }
        .cta-section::before {
            content: '';
            position: absolute; inset: 0;
            background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
        }

        /* ===== LIGHTBOX ===== */
        .lb {
            position: fixed; inset: 0;
            background: rgba(2,5,18,0.97);
            z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden;
            transition: opacity 0.3s, visibility 0s 0.3s;
        }
        .lb.on { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s 0s; }
        .lb-box {
            max-width: 88vw; max-height: 88vh;
            display: flex; flex-direction: column; align-items: center;
            transform: scale(0.92); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        .lb.on .lb-box { transform: scale(1); }
        .lb-box img {
            max-width: 88vw; max-height: 70vh;
            object-fit: contain; border-radius: 10px; display: block;
        }
        .lb-cap {
            margin-top: 16px; text-align: center;
            font-family: 'Montserrat', sans-serif;
            font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.88);
        }
        .lb-cap small {
            display: block; font-size: 11.5px; font-weight: 400;
            color: rgba(255,255,255,0.4); margin-top: 4px;
        }
        .lb-x {
            position: fixed; top: 20px; right: 24px;
            width: 40px; height: 40px; border-radius: 50%;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.14);
            color: #fff; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background 0.2s; z-index: 10000;
        }
        .lb-x:hover { background: var(--secondary); border-color: var(--secondary); }
        .lb-nav {
            position: fixed; top: 50%; transform: translateY(-50%);
            width: 46px; height: 46px; border-radius: 50%;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.14);
            color: #fff; font-size: 24px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s; z-index: 10000;
        }
        .lb-nav:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
        .lb-prev { left: 18px; }
        .lb-next { right: 18px; }
        .lb-ctr {
            position: fixed; top: 28px; left: 50%; transform: translateX(-50%);
            font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
            color: rgba(255,255,255,0.35); text-transform: uppercase;
            background: rgba(255,255,255,0.05);
            padding: 5px 14px; border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.1); z-index: 10000;
        }

        .lb-thumbs {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
            display: flex; gap: 7px;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(14px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px; padding: 8px 12px;
            z-index: 10000;
            max-width: 90vw; overflow-x: auto;
        }
        .lb-thumbs::-webkit-scrollbar { display: none; }
        .lb-thumb {
            width: 48px; height: 34px; border-radius: 5px;
            object-fit: cover; cursor: pointer; opacity: 0.4;
            border: 2px solid transparent;
            transition: all 0.2s; flex-shrink: 0;
        }
        .lb-thumb.active { opacity: 1; border-color: var(--gold); }
        .lb-thumb:hover { opacity: 0.8; }

        /* scroll top */
        #scrollTop {
            position: fixed; bottom: 24px; right: 24px;
            width: 48px; height: 48px;
            background: var(--primary); color: #fff;
            border-radius: 50%; border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 20px rgba(10,36,99,0.4);
            opacity: 0; transform: translateY(20px);
            transition: all 0.3s; z-index: 999;
        }
        #scrollTop.visible { opacity: 1; transform: translateY(0); }
        #scrollTop:hover { background: var(--secondary); }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .gc { animation: fadeUp 0.5s ease both; }

        /* ==============================================
           RESPONSIVE BREAKPOINTS — PROPERLY FIXED
           ============================================== */

        /* Tablet: 768px - 1024px */
        @media (max-width: 1024px) {
            .infra-mcard { flex-basis: 260px; width: 260px; height: 300px; }
            .stats-row { grid-template-columns: repeat(2, 1fr); }
        }

        /* =====================================================
           TABLET: 768px - 1024px
           ===================================================== */
        @media (max-width: 768px) {
            .gallery-hero { padding: 60px 16px 110px; }
            .tab-inner { padding: 0 12px; gap: 8px; }
            .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
            .stat-card { padding: 12px 14px; gap: 10px; }
            .cta-section { padding: 24px 20px; flex-direction: column; align-items: flex-start; }

            .infra-mcard { flex-basis: 220px; width: 220px; height: 250px; }
            .infra-track { gap: 12px; }

            /* ✅ BULK — 2 col, ALL spans reset to 1 */
            .bulk-grid {
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: auto !important;
            }
            .bi-1, .bi-2, .bi-3, .bi-4, .bi-5,
            .bi-6, .bi-7, .bi-8, .bi-9 {
                grid-column: span 1 !important;
                grid-row: auto !important;
                height: 150px !important;
            }

            /* ✅ TEAM — 2 col, all spans reset */
            .team-grid {
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: auto !important;
            }
            .ti-1 { grid-column: 1 / 3 !important; grid-row: auto !important; height: 200px !important; }
            .ti-2, .ti-3, .ti-4, .ti-5 {
                grid-column: span 1 !important;
                grid-row: auto !important;
                height: 160px !important;
            }
        }

        /* =====================================================
           MOBILE: < 480px
           ===================================================== */
        @media (max-width: 480px) {
            .gallery-hero { padding: 50px 14px 100px; }
            .hero-stat-box { padding: 14px 18px; min-width: 90px; }
            .hero-stats { gap: 8px; }

            .tab-btn { padding: 7px 12px; font-size: 12px; gap: 5px; }
            .tab-btn svg { display: none; }

            .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
            .stat-card-num { font-size: 17px; }

            .infra-mcard { flex-basis: 180px; width: 180px; height: 210px; }
            .infra-track { gap: 10px; }
            .infra-arrow { width: 36px; height: 36px; }
            .infra-arrow.prev { left: 8px; }
            .infra-arrow.next { right: 8px; }

            /* ✅ BULK — 2 col on small mobile */
            .bulk-grid {
                grid-template-columns: 1fr 1fr !important;
                grid-template-rows: auto !important;
            }
            .bi-1, .bi-2, .bi-3, .bi-4, .bi-5,
            .bi-6, .bi-7, .bi-8, .bi-9 {
                grid-column: span 1 !important;
                grid-row: auto !important;
                height: 130px !important;
            }

            /* ✅ TEAM — single col on small mobile */
            .team-grid {
                grid-template-columns: 1fr !important;
                grid-template-rows: auto !important;
            }
            .ti-1, .ti-2, .ti-3, .ti-4, .ti-5 {
                grid-column: 1 !important;
                grid-row: auto !important;
                height: 175px !important;
            }

            .lb-nav { width: 36px; height: 36px; font-size: 18px; }
            .lb-prev { left: 8px; }
            .lb-next { right: 8px; }
            .cta-section { padding: 20px 16px; }
            .hint-text { display: none !important; }
        }
        /* =====================================================
           VERY SMALL: < 360px
           ===================================================== */
        @media (max-width: 360px) {
            .tab-btn { padding: 6px 10px; font-size: 11px; }
            .hero-title-white, .hero-title-yellow { font-size: 24px; }
            .infra-mcard { flex-basis: 155px; width: 155px; height: 185px; }
            .bi-1, .bi-2, .bi-3, .bi-4, .bi-5,
            .bi-6, .bi-7, .bi-8, .bi-9 { height: 115px !important; }
        }