
        /* --- 1. HERO SECTION --- */
        #gallery-hero {
            position: relative;
            min-height: 50vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--color-dark);
            overflow: hidden;
        }

        #gallery-hero-bg {
            position: absolute;
            inset: 0;
            background-image: url('../assets/images/g-7.webp');
            background-size: cover;
            background-position: center;
            opacity: 0.3;
            transform: scale(1.05);
            transition: transform 10s ease-out;
        }

        .hero-active #gallery-hero-bg {
            transform: scale(1);
        }

        .animated-item {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .animated-item.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- 2. FILTER BAR --- */
        #filter-bar {
            /* position: sticky; */
            /* top: 80px; */
            /* z-index: 30; */
            /* Sticky below navbar */
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #eee;
        }

        .filter-btn {
            position: relative;
            padding: 0.5rem 1.25rem;
            color: var(--color-dark);
            font-weight: 600;
            transition: all 0.3s ease;
            border-radius: 999px;
        }

        .filter-btn:hover {
            color: var(--color-secondary);
        }

        .filter-btn.active {
            background-color: var(--color-primary);
            color: var(--color-light);
            box-shadow: 0 4px 12px rgba(20, 85, 131, 0.3);
        }

        /* --- 3. GALLERY GRID --- */
        .project-card {
            position: relative;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            cursor: pointer;
            transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
            background-color: var(--color-light);
            display: block;
            /* Default display */
        }

        .project-card.hidden {
            display: none;
        }

        .project-card.fade-in {
            animation: fadeIn 0.5s forwards;
        }

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

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .project-img-wrapper {
            overflow: hidden;
            height: 300px;
            position: relative;
        }

        .project-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .project-card:hover .project-img {
            transform: scale(1.1);
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(20, 85, 131, 0.95), transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 2rem;
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .project-info {
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.4s ease 0.1s;
        }

        .project-card:hover .project-info {
            transform: translateY(0);
            opacity: 1;
        }


        /* --- 4. LIGHTBOX MODAL --- */
        #lightbox-modal {
            background-color: rgba(43, 42, 41, 0.95);
            z-index: 5000;
            transition: opacity 0.3s ease;
        }

        /* State helpers */
        .lightbox-hidden {
            display: none !important;
            opacity: 0;
            pointer-events: none;
        }

        .lightbox-visible {
            display: flex !important;
            opacity: 1;
            pointer-events: auto;
        }

        #lightbox-panel {
            background-color: var(--color-light);
            max-width: 1000px;
            width: 95%;
            height: 80vh;
            border-radius: 1rem;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr;
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @media(min-width: 768px) {
            #lightbox-panel {
                grid-template-columns: 1.5fr 1fr;
            }
        }

        #lightbox-modal.open #lightbox-panel {
            transform: scale(1);
            opacity: 1;
        }

        .lb-image-col {
            background-color: #000;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lb-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .lb-details-col {
            padding: 2.5rem;
            overflow-y: auto;
            position: relative;
            background: white;
        }

        /* --- 5. CTA SECTION --- */
        #final-cta {
            background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
            padding: 5rem 1rem;
            text-align: center;
            color: var(--color-light);
            position: relative;
            overflow: hidden;
        }

        #final-cta::after {
            content: '';
            position: absolute;
            right: -50px;
            bottom: -50px;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        /* --- QUOTE MODAL (Reused) --- */
        #quote-modal {
            background-color: rgba(43, 42, 41, 0.85);
            z-index: 5000;
        }

        #quote-modal-content {
            background-color: var(--color-light);
            width: 90%;
            max-width: 500px;
            border-radius: 1rem;
            border-top: 6px solid var(--color-secondary);
            transform: scale(0.95);
            opacity: 0;
            transition: all 0.3s;
        }

        #quote-modal.open #quote-modal-content {
            transform: scale(1);
            opacity: 1;
        }

        /* Blur background */
        .main-content-blurred {
            filter: blur(5px);
            transition: filter 0.3s;
        }