/* ══════════════════════════════════════════════════════════════
   portfolio.css — أنماط صفحة الأعمال
   ══════════════════════════════════════════════════════════════
   مستخرَج آلياً من portfolio.php (سبتمبر ٢٠٢٦): 2 كتلة <style>.

   ⚠️ الترتيب هو ترتيب المستند الأصلي حرفياً — لا تُعِد ترتيب
      الكتل، فالتتالي (cascade) يعتمد عليه.
   ══════════════════════════════════════════════════════════════ */


        :root {
            --orange: var(--vmp-orange);
            --orange-light: var(--vmp-orange-light);
            --black: var(--vmp-pure-black);
            --dark: var(--vmp-darkest);
            --dark-2: var(--vmp-dark-2b);
            --dark-3: var(--vmp-dark-3b);
            --gray-1: var(--vmp-gray-800);
            --gray-2: var(--vmp-gray-600);
            --gray-3: var(--vmp-gray-400);
            --gray-4: var(--vmp-gray-200);
            --white: var(--vmp-white);
            --card-bg: var(--vmp-dark-2b);
            --gradient: linear-gradient(135deg, var(--vmp-orange) 0%, var(--vmp-orange-light) 100%);
            --radius: 16px;
            --radius-sm: 10px;
            --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow: 0 8px 32px rgba(0,0,0,0.4);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        html { scroll-behavior: smooth; }
        
        body {
            font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
            background: var(--black);
            color: var(--white);
            line-height: 1.7;
            overflow-x: hidden;
        }

        /* ============ NAVBAR ============ */
        .nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 16px 40px;
            background: rgba(0,0,0,0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(255,78,0,0.08);
            transition: var(--transition);
        }
        
        .nav.hidden-nav {
    transform: translateY(-100%);
    opacity: 0;
}
        .nav.scrolled {
            padding: 10px 40px;
            background: rgba(0,0,0,0.98);
        }

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

        .nav-logo img {
            height: 36px;
            width: auto;
            transition: var(--transition);
        }

        .nav-logo:hover img { transform: scale(1.04); }

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

        .nav-links a {
            color: var(--gray-3);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.92rem;
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--orange);
            transition: width 0.3s;
        }

        .nav-links a:hover { color: var(--white); }
        .nav-links a:hover::after { width: 100%; }
        .nav-links a.active { color: var(--orange); }
        .nav-links a.active::after { width: 100%; }

        .nav-back {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--orange);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            padding: 8px 20px;
            border: 1px solid rgba(255,78,0,0.3);
            border-radius: 50px;
            transition: var(--transition);
        }

        .nav-back:hover {
            background: var(--orange);
            color: var(--white);
            border-color: var(--orange);
        }

        /* Mobile hamburger */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 5px;
            z-index: 1001;
        }
        .hamburger span {
            width: 24px;
            height: 2px;
            background: var(--white);
            transition: var(--transition);
            border-radius: 2px;
        }
        .hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
        .hamburger.active span:nth-child(2) { opacity: 0; }
        .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }


/* ===== Particle Loader ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--vmp-pure-black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,78,0,0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,78,0,0.03) 0%, transparent 50%);
    animation: bgShift 4s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.loader.slide-up {
    animation: slideUp 0.9s cubic-bezier(0.68, -0.15, 0.32, 1.1) forwards;
}
@keyframes slideUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 70px;
}
.particles-field {
    position: absolute;
    width: 220px;
    height: 66px;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    top: 50%;
    left: 50%;
}
.p1 { width: 7px; height: 7px; background: var(--vmp-orange); box-shadow: 0 0 12px rgba(255,78,0,0.6); animation: orbit1 3s ease-in-out infinite; }
.p2 { width: 7px; height: 7px; background: var(--vmp-orange); box-shadow: 0 0 12px rgba(255,78,0,0.6); animation: orbit2 3s 0.25s ease-in-out infinite; }
.p3 { width: 7px; height: 7px; background: var(--vmp-orange); box-shadow: 0 0 12px rgba(255,78,0,0.6); animation: orbit3 3s 0.5s ease-in-out infinite; }
.p4 { width: 7px; height: 7px; background: var(--vmp-orange); box-shadow: 0 0 12px rgba(255,78,0,0.6); animation: orbit4 3s 0.75s ease-in-out infinite; }
.p5 { width: 5px; height: 5px; background: var(--vmp-orange-light); box-shadow: 0 0 8px rgba(255,119,0,0.4); animation: orbit5 3s 0.5s ease-in-out infinite; }
.p6 { width: 5px; height: 5px; background: var(--vmp-orange-light); box-shadow: 0 0 8px rgba(255,119,0,0.4); animation: orbit6 3s 0.9s ease-in-out infinite; }
.p7 { width: 3px; height: 3px; background: rgba(255,78,0,0.4); animation: orbit7 3.5s 0.3s ease-in-out infinite; }
.p8 { width: 3px; height: 3px; background: rgba(255,78,0,0.4); animation: orbit8 3.5s 0.7s ease-in-out infinite; }

@keyframes orbit1 {
    0%, 100% { transform: translate(-80px, -10px) scale(0.4); opacity: 0.15; }
    25% { transform: translate(-20px, -70px) scale(1); opacity: 1; }
    50% { transform: translate(70px, -15px) scale(1.3); opacity: 0.9; }
    75% { transform: translate(10px, 55px) scale(0.7); opacity: 0.4; }
}
@keyframes orbit2 {
    0%, 100% { transform: translate(75px, 15px) scale(0.4); opacity: 0.15; }
    25% { transform: translate(25px, -60px) scale(1.2); opacity: 0.9; }
    50% { transform: translate(-65px, -20px) scale(1); opacity: 1; }
    75% { transform: translate(-15px, 60px) scale(0.5); opacity: 0.3; }
}
@keyframes orbit3 {
    0%, 100% { transform: translate(10px, 75px) scale(0.4); opacity: 0.15; }
    25% { transform: translate(65px, 20px) scale(1); opacity: 1; }
    50% { transform: translate(15px, -65px) scale(1.2); opacity: 0.8; }
    75% { transform: translate(-60px, 10px) scale(0.6); opacity: 0.4; }
}
@keyframes orbit4 {
    0%, 100% { transform: translate(-15px, -70px) scale(0.4); opacity: 0.15; }
    25% { transform: translate(-70px, 10px) scale(0.8); opacity: 0.7; }
    50% { transform: translate(-10px, 70px) scale(1.3); opacity: 1; }
    75% { transform: translate(65px, 5px) scale(0.5); opacity: 0.3; }
}
@keyframes orbit5 {
    0%, 100% { transform: translate(55px, -50px) scale(0.3); opacity: 0.1; }
    50% { transform: translate(-50px, 45px) scale(1.1); opacity: 0.7; }
}
@keyframes orbit6 {
    0%, 100% { transform: translate(-60px, 40px) scale(0.3); opacity: 0.1; }
    50% { transform: translate(55px, -45px) scale(1.1); opacity: 0.7; }
}
@keyframes orbit7 {
    0%, 100% { transform: translate(85px, 25px) scale(0.2); opacity: 0; }
    50% { transform: translate(-30px, -55px) scale(1); opacity: 0.4; }
}
@keyframes orbit8 {
    0%, 100% { transform: translate(-85px, -20px) scale(0.2); opacity: 0; }
    50% { transform: translate(35px, 50px) scale(1); opacity: 0.4; }
}

.loader-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    margin-top: -70px;
    animation: logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255,78,0,0.4));
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,78,0,0.3)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 30px rgba(255,78,0,0.6)); }
}
.loader-wordmark {
    height: 30px;
    width: auto;
    margin-top: 12px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: wordmarkIn 1s 0.6s ease forwards;
    filter: drop-shadow(0 0 10px rgba(255,78,0,0.2));
}
@keyframes wordmarkIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* ============ HERO ============ */
/* ============ HERO ============ */
.hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--vmp-pure-black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        40deg, transparent, transparent 10px,
        rgba(255,78,0,0.03) 10px, rgba(255,78,0,0.03) 20px
    );
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--vmp-pure-black) 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--vmp-white);
    animation: fadeUp 0.8s 0.3s ease both;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--vmp-gray-200);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeUp 0.8s 0.5s ease both;
}

.hero-scroll-hint {
    color: rgba(255,78,0,0.4);
    animation: fadeUp 0.8s 0.7s ease both, bounceDown 2s 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero { height: 70vh; }
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }
}

/* Scroll hint */
.hero-scroll-hint {
    margin-top: 40px;
    color: rgba(255,78,0,0.4);
    animation: fadeUp 0.8s 1s ease both, bounceDown 2s 2s ease-in-out infinite;
}

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

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (max-width: 768px) {
    .hero { padding: 120px 20px 40px; min-height: 60vh; }
    .hero-sub { font-size: 0.9rem; }
    .hero-counts { gap: 16px; }
    .hero-count-item strong { font-size: 1.4rem; }
    .hero-count-divider { height: 25px; }
}
        /* ============ FILTER SYSTEM ============ */
.filters-section {
    padding: 40px 40px 0;
    max-width: 1400px;
    margin: -60px auto 40px;
    position: relative;
    z-index: 3;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filters-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vmp-white);
}

.filters-header .filter-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255,78,0,0.15));
}
.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

        .filter-label {
            font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
            font-size: 0.8rem;
            color: var(--gray-3);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .filter-chip {
            font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
            padding: 8px 20px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            color: var(--gray-3);
            border-radius: 50px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.88rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .filter-chip:hover {
            border-color: rgba(255,78,0,0.3);
            color: var(--white);
            background: rgba(255,78,0,0.06);
        }

        .filter-chip.active {
            background: var(--gradient);
            border-color: transparent;
            color: var(--white);
            box-shadow: 0 4px 20px rgba(255,78,0,0.3);
        }

        .filter-chip .chip-icon {
            margin-left: 4px;
        }

        /* Type toggle */
.type-toggle {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    width: fit-content;
}

.type-btn {
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            border-radius: 10px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .type-btn.active {
            background: var(--gradient);
            color: var(--white);
            box-shadow: 0 4px 16px rgba(255,78,0,0.3);
        }

        .type-btn:hover:not(.active) { color: var(--white); }

        .type-count {
            font-size: 0.75rem;
            background: rgba(255,255,255,0.15);
            padding: 2px 8px;
            border-radius: 20px;
        }

        .type-btn.active .type-count {
            background: rgba(255,255,255,0.2);
        }

        /* ============ PORTFOLIO GRID ============ */
        .portfolio-section {
            padding: 0 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-top: 16px;
}

        .results-count {
            color: var(--gray-3);
            font-size: 0.9rem;
        }

        .results-count strong {
            color: var(--orange);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 24px;
        }

        /* ============ PORTFOLIO CARD ============ */
        .p-card {
            position: relative;
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid rgba(255,255,255,0.04);
            height: 380px;
        }

        .p-card:hover {
            transform: translateY(-6px);
            border-color: rgba(255,78,0,0.15);
            box-shadow: 0 20px 60px rgba(255,78,0,0.12);
        }

        .p-card-img {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            overflow: hidden;
        }

        .p-card-img img {
            width: 100%; height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
            opacity: 0.7;
        }

        .p-card:hover .p-card-img img {
            transform: scale(1.08);
            opacity: 0.5;
        }

        /* Gradient overlay */
        .p-card::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(
                to bottom,
                rgba(0,0,0,0.1) 0%,
                rgba(0,0,0,0.4) 70%,
                rgba(0,0,0,0.95) 100%
            );
            z-index: 1;
            transition: var(--transition);
        }

        .p-card:hover::after {
            background: linear-gradient(
                to bottom,
                rgba(0,0,0,0.2) 0%,
                rgba(0,0,0,0.5) 40%,
                rgba(0,0,0,0.98) 100%
            );
        }

        /* Type badge */
        .p-card-badge {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 3;
            width: 38px;
            height: 38px;
            background: rgba(255,78,0,0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(255,78,0,0.4);
            transition: var(--transition);
        }

        .p-card:hover .p-card-badge {
            transform: scale(1.1) rotate(5deg);
        }

        .p-card-badge svg {
            width: 18px; height: 18px;
            color: var(--white);
        }

        /* Sector tags */
        .p-card-sectors {
            position: absolute;
            top: 16px;
            left: 16px;
            z-index: 3;
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            max-width: 60%;
            opacity: 0;
            transform: translateY(-8px);
            transition: var(--transition);
        }

        .p-card:hover .p-card-sectors {
            opacity: 1;
            transform: translateY(0);
        }

        .sector-tag {
            font-size: 0.7rem;
            padding: 3px 10px;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            color: var(--gray-4);
            border: 1px solid rgba(255,255,255,0.1);
        }

        /* Play button */
        .p-card-play {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            z-index: 3;
            width: 68px; height: 68px;
            background: rgba(255,78,0,0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
            box-shadow: 0 8px 30px rgba(255,78,0,0.4);
        }

        .p-card:hover .p-card-play {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .p-card-play svg {
            width: 26px; height: 26px;
            color: var(--white);
            margin-right: -2px;
        }

        /* Card content */
        .p-card-content {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            padding: 24px;
            z-index: 2;
        }

        .p-card-cats {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .p-card-cat {
            font-size: 0.72rem;
            padding: 3px 12px;
            background: var(--gradient);
            border-radius: 20px;
            color: var(--white);
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .p-card-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 6px;
            line-height: 1.4;
        }

        .p-card-desc {
            color: var(--gray-3);
            font-size: 0.85rem;
            line-height: 1.5;
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s;
        }

        .p-card:hover .p-card-desc {
            opacity: 1;
            max-height: 60px;
            margin-top: 4px;
        }

        /* ============ EMPTY STATE ============ */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--gray-3);
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 1.3rem;
            margin-bottom: 8px;
            color: var(--gray-2);
        }

        .empty-state-reset {
            margin-top: 20px;
            padding: 10px 28px;
            background: transparent;
            border: 1px solid var(--orange);
            color: var(--orange);
            border-radius: 50px;
            cursor: pointer;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .empty-state-reset:hover {
            background: var(--orange);
            color: var(--white);
        }

        /* ============ PHOTO MODAL ============ */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.96);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
        }

        .modal-overlay.active {
            display: flex;
            animation: fadeIn 0.25s;
        }

        .modal-overlay img {
            max-width: 92%;
            max-height: 92%;
            object-fit: contain;
            animation: zoomIn 0.3s;
            border-radius: 4px;
        }

        .modal-close {
            position: absolute;
            top: 20px; right: 30px;
            color: var(--white);
            font-size: 32px;
            cursor: pointer;
            width: 44px; height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.08);
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--orange);
            transform: rotate(90deg);
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

        /* ============ CTA SECTION ============ */
        .cta {
            margin: 100px 40px 0;
            padding: 60px 40px;
            background: var(--gradient);
            border-radius: var(--radius);
            text-align: center;
            position: relative;
            overflow: hidden;
            max-width: 1320px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: repeating-linear-gradient(
                45deg, transparent, transparent 10px,
                rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px
            );
            animation: moveBg 20s linear infinite;
        }

        @keyframes moveBg {
            0% { transform: translate(0,0); }
            100% { transform: translate(50px,50px); }
        }

        .cta-content { position: relative; z-index: 1; }

        .cta h2 {
            font-size: clamp(1.4rem, 3vw, 2rem);
            margin-bottom: 12px;
        }

        .cta p {
            font-size: 1.05rem;
            margin-bottom: 24px;
            opacity: 0.9;
        }

        .cta-btn {
            display: inline-block;
            padding: 14px 40px;
            background: var(--white);
            color: var(--orange);
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            border-radius: 50px;
            transition: var(--transition);
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        }

        .cta-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.25);
        }

        /* ============ FOOTER ============ */
        .footer {
            text-align: center;
            padding: 40px;
            color: var(--gray-2);
            font-size: 0.85rem;
            border-top: 1px solid rgba(255,255,255,0.05);
            margin-top: 60px;
        }

        .footer a {
            color: var(--orange);
            text-decoration: none;
        }

        /* ============ RESPONSIVE ============ */
        @media (max-width: 768px) {
            .nav { padding: 12px 20px; }
            .nav-links { 
                display: none;
                position: fixed;
                top: 0; right: 0;
                width: 260px; height: 100vh;
                background: rgba(0,0,0,0.98);
                flex-direction: column;
                padding: 80px 30px 30px;
                gap: 20px;
                border-left: 1px solid rgba(255,78,0,0.1);
            }
            .nav-links.open { display: flex; }
            .hamburger { display: flex; }
            
            .hero { padding: 120px 20px 50px; }
            .hero h1 { font-size: 1.8rem; }
            .hero-sub { font-size: 0.95rem; }

            .stats-bar { gap: 24px; padding: 0 20px 40px; }
            .stat-num { font-size: 1.5rem; }
            
.filters-section { padding: 30px 16px 0; margin-top: -40px; }
.filters-header h2 { font-size: 0.95rem; }
.filter-row { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
            .filter-chip { font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif); flex-shrink: 0; font-size: 0.8rem; padding: 6px 14px; }
            
            .portfolio-section { padding: 0 16px; }
            .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .p-card { height: 260px; }
            .p-card-content { padding: 14px; }
            .p-card-title { font-size: 0.95rem; }
            .p-card-cats { display: none; }
            .p-card-desc { display: none; }
            .p-card-badge { width: 30px; height: 30px; top: 10px; right: 10px; }
            .p-card-badge svg { width: 14px; height: 14px; }
            .p-card-play { display: none; width: 50px; height: 50px; opacity: 0.9; }
            .p-card-play svg { width: 20px; height: 20px; }
            .p-card-sectors { display: none; }
            
            .cta { margin: 40px 16px 0; padding: 40px 20px; }
            .footer { padding: 30px 20px; }
        }

        @media (max-width: 400px) {
            .portfolio-grid { gap: 8px; }
            .p-card { height: 220px; }
            .p-card-title { font-size: 0.85rem; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--dark); }
        ::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

        /* Animations */
        .fade-up {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s, transform 0.6s;
        }
        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Hide scrollbar for filter row on mobile */
        .filter-row::-webkit-scrollbar { height: 0; display: none; }
        .filter-row { -ms-overflow-style: none; scrollbar-width: none; }
    

/* ===== Gallery Modal — Vertical Scroll ===== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.gallery-modal.active {
    display: block;
}

.gm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    animation: gmIn 0.3s;
}
@keyframes gmIn { from { opacity: 0; } to { opacity: 1; } }

.gm-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--vmp-white);
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.gm-close:hover {
    background: var(--vmp-orange);
    border-color: var(--vmp-orange);
    transform: rotate(90deg);
}

.gm-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    z-index: 20;
    direction: ltr;
    font-weight: 500;
}

/* Scroll container */
.gm-scroll-wrap {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gm-scroll-wrap::-webkit-scrollbar { display: none; }

/* Track */
.gm-scroll-track {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Each slide */
.gm-slide {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 60px 20px;
    position: relative;
}

/* Image */
.gm-slide-media {
    max-width: 85vw;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-slide-media img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gm-slide-media iframe {
    width: 80vw;
    max-width: 850px;
    height: 50vh;
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Video play overlay for non-autoplay */
.gm-video-thumb {
    position: relative;
    cursor: pointer;
}

.gm-video-thumb img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
}

.gm-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,78,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(255,78,0,0.4);
    transition: transform 0.3s;
}

.gm-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.gm-play-btn svg {
    width: 28px;
    height: 28px;
    color: var(--vmp-white);
    margin-right: -3px;
}

/* Slide info */
.gm-slide-info {
    text-align: center;
    margin-top: 20px;
    max-width: 500px;
}

.gm-slide-info h3 {
    color: var(--vmp-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gm-slide-info p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.gm-slide-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.gm-slide-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(255,78,0,0.12);
    border: 1px solid rgba(255,78,0,0.2);
    border-radius: 20px;
    color: var(--vmp-orange);
}

/* Scroll Indicator */
.gm-scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}


.gm-scroll-indicator.show {
    opacity: 1;
}

.gm-indicator-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,78,0,0.5);
    border-radius: 14px;
    position: relative;
    display: flex;
    justify-content: center;
}

.gm-indicator-wheel {
    width: 4px;
    height: 8px;
    background: var(--vmp-orange);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    animation: gmWheel 1.8s ease-in-out infinite;
}

@keyframes gmWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}

/* Type indicator on slide */
/*.gm-slide-type {*/
/*    position: absolute;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    width: 36px;*/
/*    height: 36px;*/
/*    background: rgba(255,78,0,0.15);*/
/*    border: 1px solid rgba(255,78,0,0.2);*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    color: #FF4E00;*/
/*}*/

/* Scroll hint */
/*.gm-scroll-hint {*/
/*    position: fixed;*/
/*    bottom: 30px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    z-index: 20;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    gap: 6px;*/
/*    color: rgba(255,255,255,0.35);*/
/*    font-size: 0.78rem;*/
/*    pointer-events: none;*/
/*    transition: opacity 0.5s;*/
/*}*/

/*.gm-hint-icon {*/
/*    animation: hintBounce 1.5s ease-in-out infinite;*/
/*}*/

/*@keyframes hintBounce {*/
/*    0%, 100% { transform: translateY(0); }*/
/*    50% { transform: translateY(6px); }*/
/*}*/

/*.gm-scroll-hint.hidden {*/
/*    opacity: 0;*/
/*}*/

/* Scroll progress dots */
/*.gm-dots {*/
/*    position: fixed;*/
/*    left: 16px;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    z-index: 20;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 6px;*/
/*}*/

/*.gm-dot {*/
/*    width: 6px;*/
/*    height: 6px;*/
/*    border-radius: 50%;*/
/*    background: rgba(255,255,255,0.15);*/
/*    transition: all 0.3s;*/
/*}*/

/*.gm-dot.active {*/
/*    background: #FF4E00;*/
/*    transform: scale(1.4);*/
/*    box-shadow: 0 0 8px rgba(255,78,0,0.5);*/
/*}*/

/* Responsive */
/*@media (max-width: 768px) {*/
/*    .gm-slide { padding: 50px 12px; }*/
/*    .gm-slide-media { max-width: 95vw; }*/
/*    .gm-slide-media iframe { width: 94vw; height: 35vh; }*/
/*    .gm-close { top: 10px; right: 10px; width: 38px; height: 38px; }*/
/*    .gm-counter { top: 14px; left: 14px; font-size: 0.78rem; }*/
/*    .gm-slide-info h3 { font-size: 1rem; }*/
/*    .gm-dots { left: 8px; gap: 4px; }*/
/*    .gm-dot { width: 5px; height: 5px; }*/
/*    .gm-slide-type { top: 12px; right: 12px; width: 30px; height: 30px; }*/
/*}*/





/* Project button in gallery */
.gm-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255,78,0,0.1);
    border: 1px solid rgba(255,78,0,0.25);
    border-radius: 50px;
    color: var(--vmp-orange);
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.gm-project-btn:hover {
    background: rgba(255,78,0,0.2);
    border-color: var(--vmp-orange);
    transform: translateY(-2px);
}

.gm-project-header {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    background: rgba(255,78,0,0.12);
    border: 1px solid rgba(255,78,0,0.2);
    border-radius: 50px;
    color: var(--vmp-orange);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
}



.made-in-saudi {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.made-in-saudi img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.made-in-saudi img:hover {
    opacity: 1;
}

/* ============ CINEMATIC CTA ============ */
.cta-cinematic {
    position: relative;
    max-width: 1100px;
    margin: 100px auto 0;
    background: linear-gradient(135deg, var(--vmp-darkest) 0%, var(--vmp-dark-3b) 50%, var(--vmp-darkest) 100%);
    border: 1px solid rgba(255, 78, 0, 0.2);
    border-radius: 24px;
    overflow: hidden;
    padding: 70px 50px;
}

.cta-cinematic-spotlight {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 78, 0, 0.18) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 50%;
    transition: all 0.2s ease-out;
    top: -250px;
    left: -250px;
    z-index: 1;
}

.cta-cinematic-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-cinematic-particles span {
    position: absolute;
    border-radius: 50%;
    animation: ctaFloat 4s ease-in-out infinite;
}

.cta-cinematic-particles span:nth-child(1) { width: 4px; height: 4px; top: 15%; left: 10%; background: var(--vmp-orange); opacity: 0.7; box-shadow: 0 0 12px var(--vmp-orange); }
.cta-cinematic-particles span:nth-child(2) { width: 3px; height: 3px; top: 25%; left: 85%; background: var(--vmp-orange-light); opacity: 0.6; box-shadow: 0 0 10px var(--vmp-orange-light); animation-delay: 0.4s; }
.cta-cinematic-particles span:nth-child(3) { width: 5px; height: 5px; top: 60%; left: 8%; background: var(--vmp-orange); opacity: 0.6; box-shadow: 0 0 14px var(--vmp-orange); animation-delay: 0.8s; }
.cta-cinematic-particles span:nth-child(4) { width: 3px; height: 3px; top: 75%; left: 80%; background: var(--vmp-orange-light); opacity: 0.5; box-shadow: 0 0 10px var(--vmp-orange-light); animation-delay: 1.2s; }
.cta-cinematic-particles span:nth-child(5) { width: 4px; height: 4px; top: 40%; left: 50%; background: var(--vmp-orange); opacity: 0.4; box-shadow: 0 0 12px var(--vmp-orange); animation-delay: 1.6s; }
.cta-cinematic-particles span:nth-child(6) { width: 3px; height: 3px; top: 20%; left: 60%; background: var(--vmp-orange-light); opacity: 0.5; box-shadow: 0 0 10px var(--vmp-orange-light); animation-delay: 2s; }
.cta-cinematic-particles span:nth-child(7) { width: 2px; height: 2px; top: 85%; left: 40%; background: var(--vmp-orange); opacity: 0.7; box-shadow: 0 0 8px var(--vmp-orange); animation-delay: 2.4s; }
.cta-cinematic-particles span:nth-child(8) { width: 3px; height: 3px; top: 50%; left: 25%; background: var(--vmp-orange-light); opacity: 0.4; box-shadow: 0 0 10px var(--vmp-orange-light); animation-delay: 0.6s; }
.cta-cinematic-particles span:nth-child(9) { width: 4px; height: 4px; top: 30%; left: 30%; background: var(--vmp-orange); opacity: 0.5; box-shadow: 0 0 12px var(--vmp-orange); animation-delay: 1.4s; }
.cta-cinematic-particles span:nth-child(10) { width: 2px; height: 2px; top: 65%; left: 70%; background: var(--vmp-orange-light); opacity: 0.6; box-shadow: 0 0 8px var(--vmp-orange-light); animation-delay: 2.2s; }

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-12px) translateX(6px); }
}

.cta-cinematic-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-cinematic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 78, 0, 0.1);
    border: 1px solid rgba(255, 78, 0, 0.3);
    border-radius: 50px;
    color: var(--vmp-orange);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cta-cinematic-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--vmp-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--vmp-orange);
    animation: ctaPulse 1.5s infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.cta-cinematic-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 18px;
    background: linear-gradient(135deg, var(--vmp-white) 0%, var(--vmp-orange) 60%, var(--vmp-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--vmp-white);
}

.cta-cinematic-desc {
    color: var(--vmp-gray-250);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto 30px;
    max-width: 600px;
}

.cta-cinematic-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 78, 0, 0.1);
    border-bottom: 1px solid rgba(255, 78, 0, 0.1);
}

.cta-cinematic-stat {
    text-align: center;
}

.cta-cinematic-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--vmp-orange), var(--vmp-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.cta-cinematic-stat-label {
    font-size: 0.75rem;
    color: var(--vmp-gray-450);
    margin-top: 6px;
}

.cta-cinematic-btn {
    position: relative;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--vmp-orange), var(--vmp-orange-light));
    border: none;
    border-radius: 50px;
    color: var(--vmp-white);
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 78, 0, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-cinematic-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 78, 0, 0.6);
}

.cta-cinematic-btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: ctaShimmer 2.5s infinite;
}

@keyframes ctaShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============ MOBILE OPTIMIZATION ============ */
@media (max-width: 768px) {
    .cta-cinematic {
        margin: 50px 16px 0;
        padding: 40px 22px;
        border-radius: 18px;
    }
    
    .cta-cinematic-spotlight {
        display: none;
    }
    
    .cta-cinematic-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 14px;
    }
    
    .cta-cinematic-title {
        font-size: 1.5rem !important;
        margin-bottom: 12px;
    }
    
    .cta-cinematic-desc {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }
    
    .cta-cinematic-stats {
        gap: 20px;
        margin-bottom: 24px;
        padding: 14px 0;
    }
    
    .cta-cinematic-stat-num {
        font-size: 1.4rem;
    }
    
    .cta-cinematic-stat-label {
        font-size: 0.65rem;
    }
    
    .cta-cinematic-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-cinematic-particles span {
        animation-duration: 5s;
    }
}

@media (max-width: 400px) {
    .cta-cinematic {
        padding: 35px 18px;
    }
    
    .cta-cinematic-title {
        font-size: 1.3rem !important;
    }
    
    .cta-cinematic-stats {
        gap: 14px;
    }
    
    .cta-cinematic-stat-num {
        font-size: 1.2rem;
    }
}

/* ============ NEW FILTERS - 3 LAYERS (REDESIGNED) ============ */
.nf-section {
    padding: 30px 40px 0;
    max-width: 1400px;
    margin: -60px auto 30px;
    position: relative;
    z-index: 3;
}

.nf-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.nf-search {
    position: relative;
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: all 0.3s;
}

.nf-search:focus-within {
    border-color: rgba(255, 78, 0, 0.4);
    background: rgba(255, 78, 0, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 78, 0, 0.08);
}

.nf-search svg {
    color: var(--vmp-orange);
    flex-shrink: 0;
}

.nf-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--vmp-white);
    padding: 14px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    direction: rtl;
    min-width: 0;
}

.nf-search input::placeholder {
    color: var(--vmp-gray-600);
}

.nf-search-clear {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--vmp-gray-450);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nf-search-clear.visible {
    display: flex;
}

.nf-search-clear:hover {
    background: rgba(255, 78, 0, 0.2);
    color: var(--vmp-orange);
}

.nf-count-pill {
    background: linear-gradient(135deg, rgba(255, 78, 0, 0.1), rgba(255, 78, 0, 0.04));
    border: 1px solid rgba(255, 78, 0, 0.2);
    border-radius: 14px;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nf-count-pill .lbl {
    color: var(--vmp-gray-450);
    font-size: 0.85rem;
}

.nf-count-pill strong {
    color: var(--vmp-orange);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 900;
}

.nf-count-pill .sfx {
    color: var(--vmp-gray-600);
    font-size: 0.85rem;
}

.nf-group {
    margin-bottom: 22px;
}

.nf-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.nf-group-label-bar {
    width: 4px;
    height: 16px;
    background: var(--vmp-orange);
    border-radius: 2px;
}

.nf-group-label span {
    color: var(--vmp-white);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
}

.nf-group-label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255, 78, 0, 0.1));
}

/* ===== LAYER 1: Type Cards - "All" wide on top ===== */
.nf-type-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nf-type-all {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.nf-type-all:hover {
    background: rgba(255, 78, 0, 0.05);
    border-color: rgba(255, 78, 0, 0.2);
}

.nf-type-all.active {
    background: linear-gradient(135deg, var(--vmp-orange) 0%, var(--vmp-orange-light) 100%);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(255, 78, 0, 0.3);
}

.nf-type-all-icon {
    color: var(--vmp-orange);
    display: flex;
    align-items: center;
}

.nf-type-all.active .nf-type-all-icon {
    color: var(--vmp-white);
}

.nf-type-all-label {
    color: var(--vmp-white);
    font-size: 0.9rem;
    font-weight: 700;
}

.nf-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.nf-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.nf-type-card:hover {
    background: rgba(255, 78, 0, 0.05);
    border-color: rgba(255, 78, 0, 0.2);
    transform: translateY(-2px);
}

.nf-type-card.active {
    background: linear-gradient(135deg, var(--vmp-orange) 0%, var(--vmp-orange-light) 100%);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(255, 78, 0, 0.3);
}

.nf-type-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 78, 0, 0.1);
    border: 1px solid rgba(255, 78, 0, 0.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vmp-orange);
    flex-shrink: 0;
    transition: all 0.3s;
}

.nf-type-card.active .nf-type-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: transparent;
    color: var(--vmp-white);
}

.nf-type-text-title {
    color: var(--vmp-white);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.nf-type-text-sub {
    color: var(--vmp-gray-450);
    font-size: 0.7rem;
    margin-top: 2px;
}

.nf-type-card.active .nf-type-text-sub {
    color: rgba(255, 255, 255, 0.85);
}

/* ===== LAYER 2: Service Cards (Off-White) ===== */
.nf-service-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nf-service-all {
    background: linear-gradient(135deg, var(--vmp-orange) 0%, var(--vmp-orange-light) 100%);
    border-radius: 11px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(255, 78, 0, 0.3);
}

.nf-service-all:not(.active) {
    background: var(--vmp-cream);
    box-shadow: none;
}

.nf-service-all-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vmp-white);
}

.nf-service-all:not(.active) .nf-service-all-icon {
    background: var(--vmp-cream-2);
    color: var(--vmp-dark-3b);
}

.nf-service-all-label {
    color: var(--vmp-white);
    font-size: 0.85rem;
    font-weight: 700;
}

.nf-service-all:not(.active) .nf-service-all-label {
    color: var(--vmp-dark-3b);
}

.nf-service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.nf-service-card {
    background: var(--vmp-cream);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.nf-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nf-service-card.active {
    background: var(--vmp-orange);
    box-shadow: 0 6px 20px rgba(255, 78, 0, 0.35);
}

.nf-service-icon {
    width: 30px;
    height: 30px;
    background: var(--vmp-cream-2);
    border-radius: 8px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vmp-dark-3b);
    transition: all 0.3s;
}

.nf-service-card.active .nf-service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--vmp-white);
}

.nf-service-label {
    color: var(--vmp-dark-3b);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
}

.nf-service-card.active .nf-service-label {
    color: var(--vmp-white);
}

/* ===== LAYER 3: Sector CIRCLES ===== */
.nf-sector-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.nf-sector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.nf-sector-item:hover {
    transform: translateY(-3px);
}

.nf-sector-circle {
    width: 56px;
    height: 56px;
    background: var(--vmp-cream-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nf-sector-item:hover .nf-sector-circle {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nf-sector-item.active .nf-sector-circle {
    background: linear-gradient(135deg, var(--vmp-orange), var(--vmp-orange-light));
    box-shadow: 0 6px 18px rgba(255, 78, 0, 0.4);
    transform: scale(1.05);
}

.nf-sector-item[data-sector="all"] .nf-sector-circle {
    background: linear-gradient(135deg, var(--vmp-orange), var(--vmp-orange-light));
    box-shadow: 0 4px 14px rgba(255, 78, 0, 0.3);
}

.nf-sector-item[data-sector="all"]:not(.active) .nf-sector-circle {
    opacity: 0.6;
    box-shadow: none;
}

.nf-sector-item[data-sector="all"].active .nf-sector-circle {
    opacity: 1;
    box-shadow: 0 6px 18px rgba(255, 78, 0, 0.5);
    transform: scale(1.05);
}

.nf-sector-label {
    color: var(--vmp-gray-200);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--jf, 'Thmanyah Sans', -apple-system, 'Segoe UI', Tahoma, sans-serif);
    transition: color 0.3s;
}

.nf-sector-item.active .nf-sector-label {
    color: var(--vmp-orange);
    font-weight: 700;
}

.nf-sector-item[data-sector="all"]:not(.active) .nf-sector-label {
    color: var(--vmp-gray-450);
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .nf-section {
        padding: 24px 14px 0;
        margin-top: -40px;
    }
    
    .nf-search-row {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .nf-search {
        padding: 0 14px;
        border-radius: 12px;
    }
    
    .nf-search input {
        padding: 11px 8px;
        font-size: 0.85rem;
    }
    
    .nf-count-pill {
        padding: 8px 14px;
        border-radius: 12px;
        gap: 6px;
    }
    
    .nf-count-pill .lbl,
    .nf-count-pill .sfx {
        display: none;
    }
    
    .nf-count-pill strong {
        font-size: 1rem;
    }
    
    .nf-group-label span {
        font-size: 0.7rem;
    }
    
    .nf-group-label-bar {
        height: 12px;
    }
    
    /* Layer 1: Type - "All" full width + 2 cards below */
    .nf-type-wrapper {
        gap: 5px;
    }
    
    .nf-type-all {
        padding: 10px;
        border-radius: 10px;
    }
    
    .nf-type-all svg {
        width: 14px;
        height: 14px;
    }
    
    .nf-type-all-label {
        font-size: 0.8rem;
    }
    
    .nf-type-grid {
        gap: 5px;
    }
    
    .nf-type-card {
        padding: 10px 8px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
        border-radius: 10px;
    }
    
    .nf-type-icon {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }
    
    .nf-type-icon svg {
        width: 13px;
        height: 13px;
    }
    
    .nf-type-text-title {
        font-size: 0.72rem;
    }
    
    .nf-type-text-sub {
        display: none;
    }
    
    /* Layer 2: Service - "All" full width + 3 in row */
    .nf-service-container {
        padding: 6px;
        border-radius: 12px;
        gap: 5px;
    }
    
    .nf-service-all {
        padding: 8px;
        border-radius: 9px;
    }
    
    .nf-service-all-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }
    
    .nf-service-all-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .nf-service-all-label {
        font-size: 0.75rem;
    }
    
    .nf-service-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .nf-service-card {
        padding: 7px 3px;
        border-radius: 9px;
    }
    
    .nf-service-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        margin: 0 auto 3px;
    }
    
    .nf-service-icon svg {
        width: 11px;
        height: 11px;
    }
    
    .nf-service-label {
        font-size: 0.62rem;
    }
    
    /* Layer 3: Sector CIRCLES - 4 in row */
    .nf-sector-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .nf-sector-circle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .nf-sector-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 400px) {
    .nf-sector-grid {
        gap: 8px;
    }
    
    .nf-sector-circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .nf-sector-label {
        font-size: 0.58rem;
    }
    
    .nf-type-text-title {
        font-size: 0.68rem;
    }
    
    .nf-service-label {
        font-size: 0.58rem;
    }
}


@media (max-width: 400px) {
    .nf-service-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nf-type-text-title {
        font-size: 0.7rem;
    }
}

