    /* --- CSS Variables for Theming --- */
        :root {
            /* Light Mode (Default) */
            --bg-color: #f5f5f7;
            --card-bg: #ffffff;
            --text-primary: #1d1d1f;
            --text-secondary: #86868b;
            --accent-blue: #0066cc;
            --nav-bg: rgba(255, 255, 255, 0.72);
            --nav-border: rgba(0, 0, 0, 0.1);
            --shadow-card: 2px 4px 12px rgba(0,0,0,0.08);
            --shadow-hover: 0 14px 28px rgba(0,0,0,0.12);
            --transition-speed: 0.3s;
        }

        [data-theme="dark"] {
            /* Apple Dark Mode: True Black Backgrounds */
            --bg-color: #000000;
            --card-bg: #1c1c1e;
            --text-primary: #f5f5f7;
            --text-secondary: #a1a1a6;
            --accent-blue: #2997ff; /* Lighter blue for dark backgrounds */
            --nav-bg: rgba(0, 0, 0, 0.72);
            --nav-border: rgba(255, 255, 255, 0.1);
            --shadow-card: 0 4px 12px rgba(0,0,0,0.5);
            --shadow-hover: 0 0 20px rgba(255, 255, 255, 0.1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        /* --- Sticky Navigation with Glassmorphism --- */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            height: 52px;
            background: var(--nav-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--nav-border);
            display: flex;
            justify-content: space-between; /* Changed to space-between to push toggle right */
            align-items: center;
            padding: 0 max(20px, calc(50vw - 540px)); /* Keeps content centered like container */
            transition: background-color 0.5s ease, border-color 0.5s ease;
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        nav a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 12px;
            opacity: 0.8;
            transition: opacity 0.2s ease;
            font-weight: 400;
        }

        nav a:hover {
            opacity: 1;
        }

        /* Toggle Button */
        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-primary);
            padding: 5px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            background: rgba(128, 128, 128, 0.1);
        }

        /* --- Animation Utility --- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Apple's smooth easing */
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- Hero Section --- */
        header {
            padding: 140px 20px 80px;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        header h1 {
            font-size: 56px;
            line-height: 1.05;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 24px;
            color: var(--text-primary);
            background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        header p {
            font-size: 24px;
            line-height: 1.4;
            color: var(--text-secondary);
            font-weight: 400;
            max-width: 600px;
            margin: 0 auto;
        }

        /* --- Layout & Sections --- */
        .container {
            max-width: 1080px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            margin-bottom: 100px;
            padding-top: 60px;
        }

        section h2 {
            font-size: 40px;
            font-weight: 700;
            margin-bottom: 40px;
            letter-spacing: -0.01em;
            color: var(--text-primary);
        }

        /* --- About Section --- */
        .about-content {
            font-size: 21px;
            line-height: 1.5;
            color: var(--text-secondary);
            max-width: 800px;
            font-weight: 400;
        }
        
        .about-content p {
            margin-bottom: 24px;
        }

        /* --- Projects (Bento Grid) --- */
        .projects {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
        }

        .project-card {
            background: var(--card-bg);
            border-radius: 30px; /* More rounded corners */
            overflow: hidden;
            box-shadow: var(--shadow-card);
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .project-card:hover {
            transform: scale(1.02);
            box-shadow: var(--shadow-hover);
            z-index: 10;
        }

        .project-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

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

        .project-card h3 {
            font-size: 24px;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .project-card p {
            font-size: 17px;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }
        
        .project-link-fake {
            margin-top: auto;
            color: var(--accent-blue);
            font-size: 15px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
        }
        
        .project-link-fake::after {
            content: "›";
            font-size: 20px;
            margin-left: 4px;
            margin-top: -2px;
        }

        /* --- Skills --- */
        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .skill {
            background: var(--card-bg);
            color: var(--text-primary);
            padding: 12px 22px;
            border-radius: 100px; /* Pill shape */
            font-size: 15px;
            font-weight: 500;
            box-shadow: var(--shadow-card);
            transition: background 0.3s, color 0.3s;
        }
        
        .skill:hover {
            color: var(--accent-blue);
        }

        /* --- Contact --- */
        .contact-info {
            background: var(--card-bg);
            padding: 50px;
            border-radius: 30px;
            text-align: center;
            box-shadow: var(--shadow-card);
        }

        .contact-info p {
            font-size: 19px;
            margin-bottom: 12px;
            color: var(--text-secondary);
        }

        .contact-info a {
            color: var(--accent-blue);
            text-decoration: none;
        }
        
        .contact-info a:hover {
            text-decoration: underline;
        }

        footer {
            background: var(--bg-color);
            color: var(--text-secondary);
            text-align: center;
            padding: 60px 0 40px;
            font-size: 12px;
            border-top: 1px solid rgba(128, 128, 128, 0.2);
            margin-top: 60px;
        }

        /* Mobile Optimization */
        @media (max-width: 768px) {
            header h1 { font-size: 40px; }
            header p { font-size: 20px; }
            
            nav { padding: 0 20px; }
            .nav-links { gap: 15px; }
            nav a { font-size: 11px; }
            
            .project-image { height: 220px; }
        }