        /* Colors and Variables */
        :root {
            /* Core colors */
            --background: 0 0% 5%;
            --foreground: 0 0% 95%;
            /* Brighter for headings */
            --foreground-rgb: 242, 242, 242;
            --card: 0 0% 7%;
            --card-rgb: 18, 18, 18;
            --muted: 0 0% 65%;
            /* Reduced brightness for better eye comfort */

            /* Border and UI elements */
            --border-arrow: rgba(255, 255, 255, 0.15);
            --border-card: rgba(255, 255, 255, 0.08);
            --border-hover: rgba(255, 255, 255, 0.25);

            /* Component colors */
            --icon-bg: #1A1A1A;
            --arrow-inside-color: hsl(0 0% 10%);
            --ripple-color: rgba(255, 255, 255, 0.08);
            --accent-color: rgba(255, 255, 255, 0.25);

            /* Layout - Responsive spacing */
            --border-radius: 20px;
            --card-padding: clamp(24px, 4vw, 40px);
            --card-padding-mobile: clamp(16px, 3vw, 28px);
            --container-padding: clamp(16px, 3vw, 24px);
            --grid-gap: clamp(16px, 3vw, 24px);
            --section-spacing: clamp(12px, 2vw, 16px);
            /* Even smaller spacing */

            /* Typography */
            --font-family: 'Cal Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-size-h1: clamp(24px, 5vw, 42px);
            --font-size-h2: clamp(20px, 3.5vw, 28px);
            --font-size-h3: clamp(12px, 2vw, 14px);
            --font-size-p: clamp(14px, 2.2vw, 18px);
            --line-height-body: 1.6;
            --line-height-heading: 1.3;

            /* Animation */
            --transition-speed: 0.3s;
            --transition-function: ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .hide-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .hide-scrollbar::-webkit-scrollbar {
            display: none;
        }

        body {
            font-family: var(--font-family);
            font-weight: 300;
            background-color: hsl(var(--background));
            color: hsl(var(--foreground));
            transition: all var(--transition-speed) var(--transition-function);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: var(--line-height-body);
        }

        /* Typography */
        h1 {
            font-size: var(--font-size-h1);
            font-weight: 500;
            margin-bottom: clamp(8px, 2vw, 16px);
            line-height: var(--line-height-heading);
            color: hsl(var(--foreground));
            letter-spacing: 0.01em;
        }

        h2 {
            font-size: var(--font-size-h2);
            font-weight: 500;
            color: hsl(var(--foreground));
            line-height: var(--line-height-heading);
            margin-bottom: clamp(12px, 3vw, 24px);
            letter-spacing: 0.05em;
        }

        h3 {
            font-size: var(--font-size-h3);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: clamp(8px, 2vw, 16px);
            color: hsl(var(--foreground));
        }

        p {
            font-size: var(--font-size-p);
            line-height: var(--line-height-body);
            color: hsl(var(--muted));
            margin-bottom: clamp(8px, 2vw, 16px);
            letter-spacing: 1px;
        }

        p.muted,
        .muted {
            color: hsl(var(--muted));
        }

        a {
            color: hsl(var(--foreground));
            text-decoration: none;
            transition: all var(--transition-speed) var(--transition-function);
        }

        a:hover {
            opacity: 0.8;
        }

        .highlight {
            position: relative;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 4px;
        }

        /* Layout */
        .main-container {
            border: 1px solid var(--border-card);
            border-radius: var(--border-radius);
            width: min(95%, 1408px);
            padding: var(--container-padding);
            margin: clamp(16px, 3vw, 16px) auto;
            position: relative;
            padding-top: clamp(32px, 6vw, 48px);
        }

        .project-container {
            display: flex;
            flex-direction: column;
            max-width: 1100px;
            margin: 0 auto;
            padding: var(--card-padding);
            padding-top: clamp(60px, 10vw, 120px);
        }

        .section {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section:nth-child(1) {
            animation-delay: 0.1s;
        }

        .section:nth-child(2) {
            animation-delay: 0.2s;
        }

        .section:nth-child(3) {
            animation-delay: 0.3s;
        }

        .section:nth-child(4) {
            animation-delay: 0.4s;
        }

        .section:nth-child(5) {
            animation-delay: 0.5s;
        }

        .section:nth-child(6) {
            animation-delay: 0.6s;
        }

        .close-button {
            position: absolute;
            top: clamp(20px, 4vw, 32px);
            left: 50%;
            transform: translateX(-50%);
            width: clamp(40px, 6vw, 48px);
            height: clamp(40px, 6vw, 48px);
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--icon-bg);
            border-radius: 50%;
            border: 1px solid var(--border-card);
            cursor: pointer;
            transition: all var(--transition-speed) var(--transition-function);
            z-index: 10;
        }

        .close-button:hover {
            background-color: var(--border-card);
            transform: translateX(-50%) scale(1.05);
        }

        .close-button svg {
            width: clamp(16px, 3vw, 22px);
            height: clamp(16px, 3vw, 22px);
            transition: transform 0.3s var(--transition-function);
        }

        .close-button:hover svg {
            transform: rotate(90deg);
        }

        .project-title {
            width: 100%;
            margin-bottom: clamp(4px, 1vw, 6px);
            padding-bottom: clamp(4px, 1vw, 6px);
            margin-left: clamp(8px, 2vw, 16px);
        }

        .project-info-grid {
            display: grid;
            grid-template-columns: 1fr 1.8fr;
            gap: 16px;
            align-items: stretch;
            min-height: clamp(300px, 50vw, 400px);
        }

        /* Project Metadata */
        .project-metadata {
            display: flex;
            flex-direction: column;
            gap: clamp(20px, 4vw, 32px);
            border: 1px solid var(--border-card);
            border-radius: var(--border-radius);
            background-color: hsl(var(--card));
            padding: var(--card-padding);
            transition: all var(--transition-speed) var(--transition-function);
            height: 100%;
            justify-content: space-between;
        }

        .project-metadata:hover {
            transform: translateY(-2px);
            border-color: var(--border-hover);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .metadata-item {
            padding-bottom: clamp(16px, 3vw, 28px);
            border-bottom: 1px solid var(--border-card);
        }

        .metadata-item:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .metadata-item h3 {
            margin-bottom: clamp(8px, 2vw, 16px);
            color: hsl(var(--muted));
            font-size: var(--font-size-h3);
            letter-spacing: 0.1em;
        }

        .metadata-item p {
            color: hsl(var(--muted));
            line-height: var(--line-height-body);
            font-size: var(--font-size-p);
            font-weight: 300;
            margin-bottom: 0;
        }

        /* Project Description */
        .project-description {
            background-color: hsl(var(--card));
            border-radius: var(--border-radius);
            padding: var(--card-padding);
            border: 1px solid var(--border-card);
            transition: all var(--transition-speed) var(--transition-function);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .project-description:hover {
            transform: translateY(-2px);
            border-color: var(--border-hover);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .description-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: clamp(20px, 4vw, 32px);
        }

        .description-section {
            padding-bottom: clamp(16px, 3vw, 28px);
            border-bottom: 1px solid var(--border-card);
        }

        .description-section:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .project-description h3 {
            margin-bottom: clamp(8px, 2vw, 16px);
            color: hsl(var(--muted));
            font-size: var(--font-size-h3);
            letter-spacing: 0.1em;
        }

        .project-description p {
            margin-bottom: 0;
            color: hsl(var(--muted));
            line-height: var(--line-height-body);
            font-size: var(--font-size-p);
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: clamp(6px, 1.5vw, 8px);
            padding: clamp(12px, 2.5vw, 16px) clamp(20px, 4vw, 28px);
            background-color: transparent;
            border: 1px solid var(--border-card);
            border-radius: 40px;
            color: hsl(var(--foreground));
            font-size: clamp(14px, 2vw, 16px);
            transition: all 0.3s ease;
            cursor: pointer;
            margin-top: clamp(20px, 4vw, 32px);
            align-self: flex-start;
            width: auto;
        }

        .cta-button:hover {
            border-color: var(--border-hover);
            transform: translateY(-2px);
            background-color: var(--border-card);
        }

        /* Project Image */
        .project-image-container {
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            margin-bottom: clamp(8px, 2vw, 12px);
            background-color: hsl(var(--card));
            border: 1px solid var(--border-card);
            padding: clamp(24px, 5vw, 48px);
            display: flex;
            justify-content: center;
            align-items: center;
            height: clamp(300px, 60vw, 500px);
            margin-top: 16px;
        }

        .project-image-container:hover {
            transform: translateY(-2px);
            border-color: var(--border-hover);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .project-image {
            border-radius: 12px;
            object-fit: fill;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            transition: transform 0.5s ease;
            max-width: 100%;
            max-height: 100%;
        }

        .project-image:hover {
            transform: scale(1.02);
        }

        /* Challenge Section */
        .challenge-section,
        .process-section,
        .solution-section,
        .takeaway-section {
            padding: var(--card-padding);

        }

        .challenge-content,
        .process-content,
        .solution-content,
        .takeaway-content {
            margin-top: clamp(16px, 3vw, 24px);
        }

        .challenge-points,
        .process-steps {
            margin-top: clamp(20px, 4vw, 32px);
        }

        .challenge-point,
        .process-step {
            display: flex;
            margin-bottom: clamp(16px, 3vw, 24px);
        }

        .point-number,
        .step-number {
            flex-shrink: 0;
            margin-right: clamp(12px, 2.5vw, 20px);
            font-weight: 600;
            color: hsl(var(--muted));
            font-size: var(--font-size-p);
        }

        .point-text,
        .step-text {
            color: hsl(var(--muted));
            font-size: var(--font-size-p);
            line-height: var(--line-height-body);
            letter-spacing: 1px;
        }

        /* Solution content spacing */
        .solution-content p+p,
        .takeaway-content p+p {
            margin-top: clamp(12px, 2.5vw, 16px);
        }



        /* After Main Section */
        .after-main-section {
            max-width: 900px;
            place-content: center;
            margin: 0 auto;
            padding: 0 clamp(12px, 2vw, 16px);
        }

        /* Responsive Breakpoints */
        @media (max-width: 1400px) {
            .main-container {
                width: 98%;
            }
        }

        @media (max-width: 1200px) {
            .project-container {
                padding-top: clamp(80px, 12vw, 100px);
            }

            .project-image-container {
                height: auto;
                /* min-height: clamp(350px, 45vw, 400px); */
            }

            .project-info-grid {
                grid-template-columns: 1fr 1.5fr;
            }
        }

        @media (max-width: 900px) {
            :root {
                --section-spacing: clamp(20px, 3.5vw, 28px);
            }

            .project-info-grid {
                gap: clamp(16px, 3vw, 20px);
                grid-template-columns: 1fr 1.3fr;
            }

            .project-image-container {
                padding: clamp(20px, 4vw, 32px);
            }
        }

        @media (max-width: 768px) {
            :root {
                --section-spacing: clamp(18px, 3vw, 24px);
                --card-padding: clamp(20px, 4vw, 32px);
                --card-padding-mobile: clamp(16px, 3vw, 24px);
            }

            .project-info-grid {
                grid-template-columns: 1fr;
                gap: clamp(24px, 5vw, 32px);
                min-height: auto;
            }

            .project-metadata,
            .project-description {
                height: auto;
            }

            .project-container {
                padding: clamp(16px, 3vw, 24px);
                padding-top: clamp(60px, 10vw, 80px);
            }

            .project-image-container {
                padding: clamp(16px, 3vw, 24px);
                margin-bottom: clamp(32px, 6vw, 48px);
                height: clamp(250px, 50vw, 400px);
                aspect-ratio: 16/9;
            }

            .challenge-section,
            .process-section,
            .solution-section,
            .takeaway-section {
                padding: var(--card-padding-mobile);
            }

            .project-metadata,
            .project-description {
                padding: var(--card-padding-mobile);
            }

            .images-gallery {
                grid-template-columns: 1fr;
                gap: clamp(16px, 3vw, 24px);
            }

            .cta-button {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 600px) {
            :root {
                --section-spacing: clamp(16px, 2.8vw, 20px);
            }

            .challenge-point,
            .process-step {
                gap: clamp(6px, 1.5vw, 8px);
                margin-bottom: clamp(12px, 2.5vw, 16px);
            }

            .point-number,
            .step-number {
                margin-right: 0;
                margin-bottom: clamp(2px, 0.5vw, 4px);
            }
        }

        @media (max-width: 480px) {
            :root {
                --card-padding-mobile: clamp(14px, 3vw, 20px);
                --section-spacing: clamp(14px, 2.5vw, 18px);
            }

            .project-container {
                padding: clamp(12px, 2.5vw, 16px);
                padding-top: clamp(50px, 8vw, 60px);
            }

            .close-button {
                top: clamp(16px, 3vw, 20px);
            }

            .project-title {
                margin-bottom: clamp(16px, 3vw, 24px);
                padding-bottom: clamp(12px, 2.5vw, 20px);
            }

            .project-image-container {
                padding: clamp(12px, 2.5vw, 16px);
                margin-bottom: clamp(24px, 5vw, 40px);
                height: clamp(200px, 45vw, 300px);
            }

            .metadata-item,
            .description-section {
                padding-bottom: clamp(12px, 2.5vw, 20px);
            }

            .images-gallery {
                margin-top: clamp(24px, 5vw, 40px);
            }
        }

        @media (max-width: 360px) {
            :root {
                --section-spacing: clamp(12px, 2vw, 16px);
            }

            .main-container {
                width: 100%;
                margin: clamp(8px, 2vw, 12px) auto;
                border-radius: clamp(12px, 3vw, 16px);
            }

            .project-image-container {
                height: clamp(180px, 40vw, 250px);
            }
        }

        /* Add smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }

        /* Improve focus styles for accessibility */
        :focus {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }

        /* Add subtle animation for images loading */
        img {
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        img.loaded {
            opacity: 1;
        }

        /* Optimize for very large screens */
        @media (min-width: 1600px) {
            .main-container {
                max-width: 1500px;
            }

            .project-container {
                max-width: 1200px;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2),
        (min-resolution: 192dpi) {

            .project-image,
            .gallery-image {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }


        /* -------------------------------------------------------------------------------- */


        /* Images Gallery Slider - Add this to your existing CSS */
        .images-gallery-container {
            position: relative;
            margin-top: clamp(32px, 6vw, 48px);
            border-radius: 12px;
            overflow: hidden;
            background-color: hsl(var(--card));
            border: 1px solid var(--border-card);
            height: clamp(300px, 50vw, 500px);
            transition: all var(--transition-speed) var(--transition-function);
        }

        .images-gallery-container:hover {
            transform: translateY(-2px);
            border-color: var(--border-hover);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .images-gallery-slide {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(20px, 4vw, 40px);
        }

        .images-gallery-slide img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
            transition: opacity 0.3s ease;
        }

        .gallery-navigation {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            z-index: 2;
        }

        .gallery-nav-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 1px solid var(--border-arrow);
            background-color: var(--arrow-inside-color);
            transition: all 0.5s ease-in-out;
            opacity: 0.5;
            cursor: pointer;
        }

        .gallery-nav-dot:hover {
            opacity: 0.8;
        }

        .gallery-nav-dot.active {
            background-color: hsl(var(--foreground));
            opacity: 1;
            transform: scale(1.1);
            box-shadow: 0 0 5px rgba(var(--foreground-rgb), 0.3);
        }

        .gallery-nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--arrow-inside-color);
            opacity: 0.5;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            border: 1px solid var(--border-arrow);
            transition: opacity 0.3s ease;
        }

        .gallery-nav-arrow:hover {
            opacity: 0.8;
            transform: translateY(-50%) scale(1.05);
        }

        .gallery-nav-arrow.prev {
            left: 20px;
        }

        .gallery-nav-arrow.next {
            right: 20px;
        }

        /* Responsive adjustments for gallery */
        @media (max-width: 768px) {
            .gallery-nav-arrow {
                width: 35px;
                height: 35px;
            }

            .gallery-nav-arrow.prev {
                left: 15px;
            }

            .gallery-nav-arrow.next {
                right: 15px;
            }

            .images-gallery-container {
                height: clamp(250px, 45vw, 400px);
            }
        }

        @media (max-width: 480px) {
            .gallery-nav-arrow {
                width: 30px;
                height: 30px;
            }

            .gallery-nav-arrow.prev {
                left: 10px;
            }

            .gallery-nav-arrow.next {
                right: 10px;
            }

            .gallery-navigation {
                bottom: 15px;
            }

            .gallery-nav-dot {
                width: 8px;
                height: 8px;
            }
        }