        :root {
            --bg-color: #0b0b0b;
            --text-color: #ffffff;
            --accent-gray: #b0b0b0;
            --fade-speed: 1.2s;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        .contentdiv {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* Header */
        header {
            text-align: center;
            margin-bottom: 80px;
            padding-top: 40px;
        }

        header h1 {
            font-size: 2.2rem;
            font-weight: 300;
            margin-bottom: 20px;
        }

        header p {
            max-width: 600px;
            margin: 0 auto;
            color: var(--accent-gray);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* Project Layouts */
        .project-row {
            display: flex;
            align-items: center;
            margin-bottom: 120px;
            width: 100%;
        }

        /* The Slideshow Container */
        .image-slot {
            flex: 0 0 60%;
            height: 400px; /* Desktop height */
            position: relative;
            background: #1a1a1a;
            overflow: hidden;
        }

        .image-slot img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity var(--fade-speed) ease-in-out;
        }

        .image-slot img.active {
            opacity: 1;
        }

        /* Text Overlays */
        .project-text {
            flex: 0 0 50%;
            padding: 40px;
            margin-left: -10%; /* Desktop overlap */
            z-index: 2;
            background: rgba(11, 11, 11, 0.85);
            backdrop-filter: blur(8px);
        }

        .project-row.reverse {
            flex-direction: row-reverse;
        }

        .project-row.reverse .project-text {
            margin-left: 0;
            margin-right: -10%;
        }

        .project-text h2 {
            font-size: 1.6rem;
            font-weight: 400;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .project-text p {
            font-size: 0.85rem;
            line-height: 1.2;
            color: var(--accent-gray);
            margin: 0;
        }

        .showdetails{
            color: var(--accent-gray);
        }

        /* --- Fix for Mobile Disappearance --- */
        @media (max-width: 768px) {
            .contentdiv {
                padding: 20px 15px;
            }

            .project-row, .project-row.reverse {
                flex-direction: column; /* Stack them */
                margin-bottom: 60px;
                align-items: flex-start;
            }

            .image-slot {
                flex: none; 
                width: 100%; /* Full width on mobile */
                height: 250px; /* Reduced height for mobile screens */
                margin-bottom: 20px;
            }

            .project-text {
                flex: none;
                width: 100%;
                margin: 0 !important; /* Remove negative margins/overlaps */
                padding: 10px 0;
                background: transparent;
                backdrop-filter: none;
            }

            header h1 {
                font-size: 1.8rem;
            }
        }