        /* CSS Reset & Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --bg-color: #fcfcfc;
            --bg-alt: #ffffff;
            --text-main: #1a202c;
            --text-muted: #4a5568;
            --text-light: #718096;
            --accent: #2e8b7c;
            --accent-hover: #236b5f;
            --border: #e2e8f0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--text-main);
            background-color: var(--bg-color);
            line-height: 1.7;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 5%;
        }

        h1, h2, h3, h4 {
            color: var(--text-main);
            line-height: 1.2;
        }

        h2 {
            font-family: "Georgia", serif;
            font-size: clamp(2rem, 4vw, 2.5rem);
            font-weight: 400;
            margin-bottom: 1rem;
        }

        p {
            margin-bottom: 1.5rem;
            color: var(--text-muted);
        }

        /* Shared Components */
        .eyebrow {
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--accent);
            color: white;
            padding: 0.875rem 1.5rem;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.2s ease, transform 0.2s ease;
            border: 1px solid transparent;
        }

        .cta-button:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

        .cta-button.secondary {
            background-color: transparent;
            color: var(--accent);
            border-color: rgba(46, 139, 124, 0.35);
        }

        .cta-button.secondary:hover {
            background-color: rgba(46, 139, 124, 0.08);
            transform: translateY(-2px);
        }

        /* Navigation */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--text-main);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--text-main);
        }

        /* Hero Section */
        .hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4rem 5%;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 80vh;
            gap: 4rem;
        }

        .hero-content {
            flex: 1;
            max-width: 650px;
        }

        .hero h1 {
            font-family: "Georgia", serif;
            font-size: clamp(2.5rem, 5vw, 4rem);
            line-height: 1.1;
            margin-bottom: 1.5rem;
            font-weight: 400;
        }

        .hero h1 .highlight {
            color: var(--accent);
            font-style: italic;
        }

        .hero .subtitle {
            font-size: 1.125rem;
            margin-bottom: 2.5rem;
        }

        .hero-ctas {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .cta-strip {
            padding-top: 2rem;
        }

        .cta-panel {
            border: 1px solid var(--border);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(46, 139, 124, 0.06), rgba(255, 255, 255, 0));
            padding: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1.25rem;
            flex-wrap: wrap;
        }

        .cta-panel h3 {
            font-family: "Georgia", serif;
            font-weight: 400;
            font-size: 1.5rem;
        }

        .cta-panel p {
            margin-bottom: 0;
            max-width: 55ch;
        }

        .hero-image-container {
            flex: 1;
            position: relative;
            display: flex;
            justify-content: center;
        }

        .hero-image-container img {
            width: 100%;
            max-width: 500px;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.08);
            object-fit: cover;
            aspect-ratio: 4/5;
        }

        /* Section Spacing */
        .section {
            padding: 6rem 0;
        }
        
        .section.bg-white {
            background-color: var(--bg-alt);
        }

        /* Projects Section - Horizontal Scrolling Update */
        .projects-header-flex {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .section-header {
            max-width: 600px;
            margin-bottom: 0; /* Reset for flex container */
        }

        .swipe-hint {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-light);
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
        }

        .swipe-hint svg {
            animation: slideX 2s infinite ease-in-out;
        }

        @keyframes slideX {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(5px); }
        }

        /* The Carousel Container */
        .project-carousel {
            display: flex;
            gap: 2rem;
            overflow-x: auto;
            padding-bottom: 2rem;
            padding-top: 1rem;
            /* Scroll Snapping */
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            /* Hide scrollbar for a cleaner look */
            -ms-overflow-style: none;  
            scrollbar-width: none;  
            /* Make it clear it's draggable */
            cursor: grab;
        }

        .project-carousel:active {
            cursor: grabbing;
        }

        .project-carousel::-webkit-scrollbar {
            display: none;
        }

        /* Edge padding so the first/last items aren't stuck to the screen edge */
        .carousel-wrapper {
            /* This breaks the container bounds to allow full bleed scrolling */
            width: 100vw;
            margin-left: 50%;
            transform: translateX(-50%);
            padding: 0 5%;
        }

        .project-card {
            background: var(--bg-alt);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.5rem;
            /* Card sizing: min 300px, max 400px, but defaults to 85vw on mobile so the next card peeks in */
            width: clamp(300px, 85vw, 400px);
            flex-shrink: 0;
            scroll-snap-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
            /* Prevent text selection while dragging */
            user-select: none; 
        }

        .project-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0,0,0,0.06);
        }

        /* Portrait Image Container */
        .project-image {
            width: 100%;
            /* Standard mobile screenshot ratio (9:16) */
            aspect-ratio: 9/16; 
            background-color: #f1f5f9;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            border: 1px solid #e2e8f0;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top; /* Ensures the top of the screenshot (header/nav) is visible */
            pointer-events: none; /* Prevents image dragging issues */
        }

        .project-content {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent);
            margin-bottom: 0.75rem;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--accent);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(46, 139, 124, 0.4); }
            70% { box-shadow: 0 0 0 6px rgba(46, 139, 124, 0); }
            100% { box-shadow: 0 0 0 0 rgba(46, 139, 124, 0); }
        }

        .project-card h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .project-card p {
            font-size: 0.95rem;
            flex-grow: 1;
            margin-bottom: 0;
        }

        .card-footer {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .tag-meta {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-main);
        }
        
        .tag-category {
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .project-site-link {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }

        .project-site-link:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }

        /* Split Sections (Thesis & About) */
        .split-layout {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 4rem;
        }

        .split-sidebar {
            position: sticky;
            top: 2rem;
            height: fit-content;
        }

        .split-sidebar h3 {
            font-size: 1.25rem;
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .split-content p {
            font-size: 1.125rem;
        }

        /* Tags List */
        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .skill-tag {
            background-color: #edf2f7;
            color: var(--text-main);
            padding: 0.4rem 1rem;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Footer */
        footer {
            background-color: var(--bg-alt);
            border-top: 1px solid var(--border);
            padding: 4rem 5%;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .footer-brand {
            max-width: 400px;
        }

        .footer-brand h4 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }

        .footer-brand p {
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .footer-links {
            display: flex;
            gap: 2rem;
        }

        .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .copyright {
            max-width: 1200px;
            margin: 3rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
            color: var(--text-light);
            font-size: 0.85rem;
            text-align: center;
        }

        /* Mobile Responsiveness */
        @media (max-width: 968px) {
            .hero {
                flex-direction: column;
                padding-top: 2rem;
                text-align: center;
            }

            .hero-ctas {
                justify-content: center;
            }

            .cta-panel {
                justify-content: center;
                text-align: center;
            }
            .hero-image-container {
                width: 100%;
            }
            .split-layout {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .split-sidebar {
                position: relative;
                top: 0;
            }
            .footer-content {
                flex-direction: column;
            }
            .project-card {
                scroll-snap-align: start; /* Better for mobile edges */
            }
        }
        
        @media (max-width: 600px) {
            .nav-links {
                display: none;
            }
            h2 {
                font-size: 1.75rem;
            }
        }
    
