    :root {
        --primary: #2d3748;
        --secondary: #4a5568;
        --accent: #969696;
        --light: #f7fafc;
        --dark: #1a202c;
        --text: #2d3748;
        --text-light: #718096;

    }

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

    body {

        font-family: 'Inter', sans-serif;
        color: var(--text);
        line-height: 1.6;
        background-color: var(--light);
        overflow-x: hidden;
        padding-top: 80px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }



    /* Hero Section */
    .project-hero {
        padding: 1em;

        position: relative;
        min-height: 70vh;
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.8) 100%),
            url('../../imgs/building/3.jpg') center center / cover no-repeat;
        color: white;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .project-title {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .project-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .project-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 30px;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.15);
        padding: 8px 20px;
        border-radius: 30px;
        backdrop-filter: blur(10px);
    }

    .meta-item i {
        color: var(--accent);
    }

    /* Project Content */
    .project-content {
        padding: 60px 0;
    }

    .section-title {

        margin-bottom: 40px;
        position: relative;
        padding-bottom: 15px;
    }

    .section-title::after {
        content: '';
        position: absolute;
        width: 80px;
        height: 4px;
        background-color: var(--accent);
        bottom: 0;
        left: 0;
    }

    /* Gallery */
    .gallery-container {
        margin-bottom: 60px;
    }

    .gallery-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 30px;
    }

    .gallery-tab {
        padding: 10px 20px;
        background: white;
        border: none;
        border-radius: 30px;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .gallery-tab.active {
        background: var(--accent);
        color: white;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-item {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        aspect-ratio: 4/3;
        content-visibility: auto;
        contain-intrinsic-size: 300px;
    }

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }


    .gallery-item:hover .gallery-caption {
        transform: translateY(0);
    }

    /* Before/After Slider */
    .slider-container {
        position: relative;
        width: 100%;
        height: 500px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin-bottom: 30px;
        cursor: ew-resize;
    }

    .before-image,
    .after-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        pointer-events: none;

    }

    .before-image img,
    .after-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .before-text,
    .after-text {
        position: absolute;
        font-family: system-ui;
        font-size: 14px;
        font-weight: 600;
        color: white;
        z-index: 4;
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 0.3rem;
        letter-spacing: 2px;
        pointer-events: none;
    }

    .before-text {
        left: 20px;
        top: 20px;
    }

    .after-text {
        right: 20px;
        top: 20px;
    }

    .slider-handle {
        position: absolute;
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background-color: white;
        cursor: ew-resize;
        z-index: 2;
        pointer-events: none;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    /* Blurred Background Effect */
    .before-image.has-blur-bg,
    .after-image.has-blur-bg {
        background-color: #1a1a1a;
    }

    .before-image.has-blur-bg::before,
    .after-image.has-blur-bg::before {
        content: "";
        position: absolute;
        top: -10%;
        left: -10%;
        width: 120%;
        height: 120%;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        filter: blur(15px) brightness(0.6);
        z-index: -1;
    }

    /* Ensure image sits on top */
    .before-image.has-blur-bg img,
    .after-image.has-blur-bg img {
        position: relative;
        z-index: 1;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        /* Optional: Adds pop */
    }

    .slider-line {
        position: absolute;
        top: 0;
        left: 50%;
        width: 0px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        z-index: 1;
        pointer-events: none;
    }

    .pulse-container {
        position: relative;
        display: inline-block;
        pointer-events: none;
    }

    .pulse-container::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background-color: #ffffff;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.6;
        }

        100% {
            transform: translate(-50%, -50%) scale(1.8);
            opacity: 0;
        }
    }

    .slider-line svg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        pointer-events: none;
    }

    /* Project Details */
    .project-details {
        background: white;
        border-radius: 15px;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        margin-bottom: 60px;
    }

    .detail-item {
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .detail-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .detail-title {
        font-weight: 600;
        color: var(--accent);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Contact CTA */
    .contact-cta {
        background: linear-gradient(135deg, rgba(128, 90, 213, 0.1) 0%, rgba(45, 55, 72, 0.1) 100%);
        padding: 80px 0;
        text-align: center;
        border-radius: 20px;
        margin: 60px 0;
    }

    .contact-cta h3 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .contact-cta p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        color: var(--text-light);
    }

    /* Footer */
    .footer {
        background: var(--dark);
        color: white;
        padding: 60px 0 30px;
    }

    .footer h5 {
        color: white;
        margin-bottom: 20px;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: white;
    }

    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: white;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background: var(--accent);
        transform: translateY(-3px);
    }

    .copyright {
        text-align: center;
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.6);
    }

    /* Modal */
    .modal-content {
        border-radius: 15px;
        overflow: hidden;
        border: none;
    }

    .modal-header {
        border-bottom: none;
        padding: 20px 30px 0;
    }

    .modal-body {
        padding: 0 30px 30px;
    }

    .modal-img {
        width: 100%;
        border-radius: 10px;
    }





    /* Fullscreen Image Viewer */
    .fullscreen-viewer {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }

    .viewer-image {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }

    .close-viewer {
        position: absolute;
        top: 25px;
        right: 35px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    .viewer-arrow {
        position: absolute;
        top: 50%;
        font-size: 60px;
        color: white;
        cursor: pointer;
        transform: translateY(-50%);
        user-select: none;
        padding: 10px;
    }

    .left-arrow {
        left: 30px;
    }

    .right-arrow {
        right: 30px;
    }

    .viewer-arrow:hover,
    .close-viewer:hover {
        color: #f0f0f0;
    }


    /* Footer */
    footer {
        background-color: var(--dark);
        color: white;
        padding: 40px 0 20px;
    }



    .copyright {
        text-align: center;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        margin-top: 20px;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .project-title {
            font-size: 2.2rem;
        }

        .slider-container {
            height: 300px;
        }

        @media (max-width: 576px) {
            .project-title {
                font-size: 2rem;
            }

            /* Force 2 columns on mobile for "Grid Photos" look */
            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            /* Adjust aspect ratio if needed, or keep 4/3 */
            .gallery-item {
                border-radius: 8px;
                /* slightly sharper corners for small grid */
            }

            /* Fix Before/After Slider: Override inline JS width (30%) on mobile */
            #mainSlider {
                width: 100% !important;
                margin: 0 0 30px 0 !important;
            }
        }
    }