.project-page {
            background: var(--bg-light, #F8FAFC);
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        .page-hero {
            padding: 180px 0 80px;
            background: linear-gradient(135deg, rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.7)),
                url('https://images.unsplash.com/photo-1565610222536-ef125c59da2e?auto=format&fit=crop&w=1200&q=40');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            text-align: center;
            color: white;
        }

        .page-hero h1 {
            font-size: 3rem;
            color: white;
            margin-bottom: 15px;
        }

        .page-hero .breadcrumb {
            color: #94A3B8;
            font-size: 0.95rem;
        }

        .page-hero .breadcrumb span {
            color: var(--primary);
            font-weight: 600;
        }

        .project-section {
            padding: 20px 0;
        }

        .filter-bar {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 18px;
            position: relative;
            z-index: 2;
        }

        /* Controls box (sticky, frosted) - copied exactly from Color Index */
        .controls-container {
            max-width: 1200px;
            margin: -50px auto 6px;
            padding: 0 20px;
            position: sticky;
            top: 20px;
            z-index: 100;
        }

        .controls-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 20px;
            border-radius: 50px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            border: 1px solid rgba(255,255,255,0.5);
        }

        .filter-group {
            display: flex;
            gap: 5px;
            overflow-x: auto;
            padding-bottom: 0;
            scrollbar-width: none;
        }

        .search-wrapper {
            position: relative;
            min-width: 250px;
        }

        .search-input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border: 1px solid #E2E8F0;
            border-radius: 30px;
            background: #F8FAFC;
            font-family: 'Inter';
            transition: var(--transition);
        }

        .search-input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
            outline: none;
        }

        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }

        .filter-btn {
            padding: 10px 25px;
            border: 1px solid #CBD5E1;
            background: white;
            border-radius: 50px;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: 0.3s;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: #ff6600;
            color: white;
            box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
        }

        .project-search {
            max-width: 480px;
            margin: 12px auto 40px auto;
            position: relative;
        }

        .project-search input {
            width: 100%;
            padding: 14px 48px 14px 20px;
            border-radius: 40px;
            border: 1px solid #CBD5E1;
            background: white;
            font-size: 1rem;
            box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
        }

        .project-search input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 12px 35px -10px rgba(249, 115, 22, 0.35);
        }

        .project-search i {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
            font-size: 1rem;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
        }

        .gallery-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid #E2E8F0;
            transition: 0.4s;
            cursor: pointer;
        }

        .gallery-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary);
        }

        .card-img {
            height: 240px;
            position: relative;
            overflow: hidden;
        }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.6s ease;
        }

        .gallery-card:hover .card-img img {
            transform: scale(1.08);
        }

        .card-overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: 0.3s;
        }

        .gallery-card:hover .card-overlay {
            opacity: 1;
        }

        .view-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.2rem;
        }

        .card-body {
            padding: 25px;
        }

        .project-cat {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 5px;
            display: block;
        }

        .card-body h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .card-body p {
            font-size: 0.95rem;
            color: var(--text-light);
            margin-bottom: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.show {
            opacity: 1;
        }

        .modal-content {
            background: white;
            width: 100%;
            max-width: 1000px;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            max-height: 95vh;
            transform: translateY(20px);
            transition: transform 0.3s ease;
            position: relative;
        }

        .modal-overlay.show .modal-content {
            transform: translateY(0);
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.92);
            color: var(--secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 25;
            border: 1px solid rgba(15, 23, 42, 0.12);
        }

        .close-modal:hover {
            background: var(--primary);
            color: white;
        }

        .modal-gallery-container {
            position: relative;
            width: 100%;
            height: 500px;
            background: #000;
            overflow: hidden;
        }

        .modal-gallery-track {
            display: flex;
            height: 100%;
            transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .gallery-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-slide img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .modal-nav:hover {
            background: var(--primary);
        }

        .modal-nav.prev {
            left: 20px;
        }

        .modal-nav.next {
            right: 20px;
        }

        .modal-dots {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .modal-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: 0.3s;
        }

        .modal-dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        .modal-body-content {
            overflow-y: auto;
            flex: 1;
        }

        .modal-loader {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.9);
            z-index: 50;
            opacity: 1;
            transition: opacity 0.2s ease;
        }

        .modal-loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .spinner {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 6px solid rgba(0,0,0,0.08);
            border-top-color: var(--primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .modal-details {
            padding: 40px;
        }

        .modal-meta {
            display: flex;
            gap: 40px;
            margin-bottom: 30px;
            border-bottom: 1px solid #E2E8F0;
            padding-bottom: 20px;
        }

        .modal-meta .meta-item strong {
            display: block;
            font-size: 0.85rem;
            color: var(--secondary);
            text-transform: uppercase;
        }

        .modal-meta .meta-item span {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        .modal-desc h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .modal-desc p {
            margin-bottom: 20px;
            color: var(--text-main);
            text-align: justify;
        }

        /* WYSIWYG content styles inside modal */
        .modal-html-body {
            color: var(--text-main);
            line-height: 1.7;
            font-size: 0.98rem;
        }

        .modal-html-body p { margin: 0 0 1rem; }
        .modal-html-body h1, .modal-html-body h2, .modal-html-body h3, .modal-html-body h4 { margin: 0 0 .75rem; font-weight: 700; }
        .modal-html-body strong, .modal-html-body b { font-weight: 700; }
        .modal-html-body em, .modal-html-body i { font-style: italic; }
        .modal-html-body ul, .modal-html-body ol { padding-left: 1.15rem; margin: .6rem 0; }
        .modal-html-body li { margin: .25rem 0; }
        .modal-html-body img { max-width: 100%; height: auto; display: block; margin: .6rem 0; }
        .modal-html-body blockquote { margin: .6rem 0; padding-left: 1rem; border-left: 3px solid rgba(0,0,0,0.06); color: var(--text-light); }

        .modal-close-secondary {
            margin-top: 20px;
            width: 100%;
            display: none;
            justify-content: center;
        }

        @media (max-width: 992px) {
            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .modal-gallery-container {
                height: 320px;
            }

            .modal-meta {
                flex-direction: column;
                gap: 15px;
            }

            .filter-bar {
                overflow-x: auto;
                flex-wrap: nowrap;
                justify-content: flex-start;
                padding-bottom: 10px;
                margin-bottom: 12px;
            }

            .filter-btn {
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            .controls-box {
                flex-direction: column;
                align-items: stretch;
                padding: 15px;
                border-radius: 20px;
            }

            .search-wrapper {
                width: 100%;
            }
        }

        @media (max-width: 576px) {
            .page-hero h1 {
                font-size: 2.3rem;
            }

            .close-modal {
                top: 8px;
                right: 8px;
                width: 46px;
                height: 46px;
                font-size: 1.3rem;
            }

            .modal-close-secondary {
                display: inline-flex;
            }
        }