        /* =========================================
           0. CSS VARIABLES & THEME TOKENS
           ========================================= */
        :root {
            /* Light Theme (Default) */
            --bg-primary: #FFF6ED;
            --bg-secondary: #FFFFFF;
            --bg-tertiary: #F0E6DD;
            --text-primary: #050505;
            --text-secondary: #4A4A4A;
            --border-color: rgba(5, 5, 5, 0.1);
            
            /* Core Brand Colors (Slightly adjusted for contrast) */
            --brand-red: #FF2700;
            --brand-blue: #2668FD;
            --brand-yellow: #FDCB40;
            --brand-cyan: #00D7D2;
            --brand-green: #00B542;
            --brand-dark: #050505;
            --brand-light: #FFF6ED;
            
            /* Typography */
            --font-sans: 'Outfit', sans-serif;
            --font-mono: 'Outfit', sans-serif;
            
            /* Metrics & Radii */
            --pad-section: clamp(60px, 10vw, 150px);
            --rad-sm: 12px;
            --rad-md: 24px;
            --rad-lg: 40px;
            --rad-pill: 999px;
            
            /* Easing */
            --ease-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
            --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
            
            /* Z-Indexes */
            --z-back: -1;
            --z-base: 1;
            --z-ui: 100;
            --z-nav: 500;
            --z-preloader: 10000;
            --z-cursor: 10001;
        }

        /* Dark Theme Override */
        [data-theme="dark"] {
            --bg-primary: #0A0A0A;
            --bg-secondary: #141414;
            --bg-tertiary: #1F1F1F;
            --text-primary: #F5F5F5;
            --text-secondary: #A0A0A0;
            --border-color: rgba(255, 255, 255, 0.1);
        }

        /* Dark mode: hero blobs softer so text stays readable */
        [data-theme="dark"] .hero-blobs {
            opacity: 0.35;
        }

        /* Dark mode: subtle radial glow behind hero content */
        [data-theme="dark"] .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(38, 104, 253, 0.08) 0%, transparent 70%);
            z-index: 0;
            pointer-events: none;
        }

        /* Dark mode: bento section needs lighter bg for separation */
        [data-theme="dark"] .section-bento {
            background: #111111;
        }

        /* Dark mode: footer slightly lighter for separation */
        [data-theme="dark"] .footer {
            background: #0E0E0E;
        }

        /* Dark mode: marquee keeps yellow but borders soften */
        [data-theme="dark"] .marquee-section {
            border-color: rgba(253, 203, 64, 0.3);
        }

        /* Dark mode: project card dark variant needs visible border */
        [data-theme="dark"] .project-card:nth-child(2) {
            background: #141414;
            border-color: rgba(255, 255, 255, 0.15);
        }

        /* =========================================
           1. RESET & BASE
           ========================================= */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        input, textarea, button, select {
            font-family: inherit;
        }

        html {
            scrollbar-width: none; /* Firefox */
        }
        
        html::-webkit-scrollbar {
            display: none; /* Chrome, Safari */
        }

        body {
            font-family: var(--font-sans);
            background-color: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
        }

        ::selection {
            background-color: var(--brand-blue);
            color: #FFF;
        }

        img, svg {
            display: block;
            max-width: 100%;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* Utility Classes */
        .text-split { display: inline-block; }
        .char { display: inline-block; transform-origin: center bottom; will-change: transform, opacity; }
        .hidden { display: none !important; }
        .mono { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: -0.05em; }

        /* =========================================
           2. PRELOADER
           ========================================= */
        .preloader {
            position: fixed;
            inset: 0;
            background: var(--brand-dark);
            z-index: var(--z-preloader);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--brand-light);
        }

        .preloader-counter {
            font-size: clamp(4rem, 10vw, 8rem);
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .preloader-bar-wrap {
            width: 200px;
            height: 4px;
            background: rgba(255,255,255,0.1);
            margin-top: 20px;
            border-radius: var(--rad-pill);
            overflow: hidden;
        }

        .preloader-bar {
            width: 0%;
            height: 100%;
            background: var(--brand-yellow);
        }

        /* =========================================
           3. ELEGANT CURSOR
           ========================================= */
        @media (hover: hover) and (pointer: fine) {
            body, a, button, .hover-target, .btn-magnetic { cursor: none !important; }
            
            .cursor-elegant {
                position: fixed;
                top: 0; left: 0;
                width: 16px; height: 16px;
                background-color: #FFF;
                border-radius: 50%;
                pointer-events: none;
                z-index: var(--z-cursor);
                mix-blend-mode: difference;
                transform: translate(-50%, -50%);
                will-change: transform, width, height;
            }
        }
        @media (max-width: 768px) {
            .cursor-elegant { display: none !important; }
        }

        /* =========================================
           4. NAVIGATION & CONTROLS
           ========================================= */
        .navbar {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-secondary);
            padding: 10px 10px 10px 20px;
            border-radius: var(--rad-pill);
            display: flex;
            gap: 20px;
            align-items: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            border: 1px solid var(--border-color);
            z-index: var(--z-nav);
            transition: background 0.5s, border-color 0.5s;
        }

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

        .nav-link {
            font-weight: 700;
            font-size: 1rem;
            padding: 10px 20px;
            border-radius: var(--rad-pill);
            transition: background 0.3s, color 0.3s;
        }

        .nav-link:hover {
            background: var(--brand-blue);
            color: #FFF;
        }

        .theme-toggle {
            background: var(--bg-tertiary);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
        }

        .btn-magnetic {
            display: inline-block;
            background: var(--brand-red);
            color: #FFF;
            font-weight: 900;
            padding: 15px 35px;
            border-radius: var(--rad-pill);
            text-transform: uppercase;
            letter-spacing: 1px;
            will-change: transform;
            border: none;
            font-family: inherit;
            font-size: 1rem;
        }

        /* =========================================
           5. HERO SECTION (GOOEY BLOBS)
           ========================================= */
        .hero {
            position: relative;
            height: 100vh;
            min-height: 700px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: hidden;
            padding: 0 5vw;
        }

        /* Gooey Filter SVG Container - Hidden but active */
        .svg-filters {
            position: absolute;
            width: 0;
            height: 0;
        }

        .hero-blobs {
            position: absolute;
            inset: 0;
            z-index: var(--z-back);
            filter: url('#gooey');
            opacity: 0.8;
        }

        .blob {
            position: absolute;
            border-radius: 50%;
            will-change: transform;
            filter: blur(20px);
        }

        .blob-1 { top: 20%; left: 25%; width: 300px; height: 300px; background: var(--brand-yellow); }
        .blob-2 { bottom: 20%; right: 25%; width: 350px; height: 350px; background: var(--brand-cyan); }
        .blob-3 { top: 40%; left: 45%; width: 200px; height: 200px; background: var(--brand-red); }

        .hero-content {
            position: relative;
            z-index: var(--z-base);
        }

        .hero h1 {
            font-size: clamp(3.5rem, 10vw, 12rem);
            font-weight: 900;
            line-height: 0.85;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: -0.02em;
        }

        .hero p {
            font-size: clamp(1.1rem, 2vw, 1.8rem);
            font-weight: 400;
            max-width: 650px;
            margin: 0 auto;
            color: var(--text-secondary);
        }

        .scroll-indicator {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            opacity: 0; /* Animated in via GSAP */
        }

        .scroll-line {
            width: 2px;
            height: 50px;
            background: var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .scroll-line::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 50%;
            background: var(--brand-red);
            animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
        }

        @keyframes scrollDown {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(200%); }
        }

        /* =========================================
           6. BENTO ABOUT SECTION
           ========================================= */
        .section-bento {
            padding: var(--pad-section) 5vw;
            background: var(--brand-dark);
            color: #FFF;
            border-radius: var(--rad-lg) var(--rad-lg) 0 0;
            position: relative;
            z-index: var(--z-ui);
        }

        .section-header {
            font-size: clamp(2.5rem, 6vw, 6rem);
            margin-bottom: 60px;
            text-transform: uppercase;
            font-weight: 900;
            line-height: 1;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-auto-rows: minmax(280px, auto);
            gap: 20px;
            max-width: 1600px;
            margin: 0 auto;
        }

        .bento-item {
            border-radius: var(--rad-md);
            padding: 40px;
            position: relative;
            overflow: hidden;
            background: var(--bg-secondary);
            color: var(--text-primary);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            border: 1px solid var(--border-color);
            transition: box-shadow 0.4s;
            height: 100%;
        }

        .bento-item:hover {
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        /* Grid Spanning */
        .bento-frontend { grid-column: span 8; background: var(--brand-blue); color: #FFF; border: none; }
        .bento-perf { grid-column: span 4; background: var(--brand-yellow); border: none; color: var(--brand-dark); }
        .bento-backend { grid-column: span 8; background: var(--brand-red); color: #FFF; border: none; }
        .bento-design { grid-column: span 4; background: var(--brand-cyan); border: none; color: var(--brand-dark); }
        .bento-github { grid-column: span 12; background: var(--bg-primary); display: flex; flex-direction: row; align-items: center; justify-content: space-between; border: 1px solid var(--border-color);}
        .bento-item .tag { color: var(--text-primary); border-color: var(--border-color); background: rgba(0,0,0,0.05); }
        [data-theme="dark"] .bento-item .tag { background: rgba(255,255,255,0.1); }
        .bento-frontend .tag, .bento-backend .tag { color: #FFF; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.15); }
        .bento-item .project-tags { margin-top: auto !important; padding-top: 20px; }

        .bento-item h3 {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 900;
            margin-bottom: 15px;
            line-height: 1.1;
        }

        .bento-item p {
            font-size: clamp(1rem, 1.2vw, 1.2rem);
            font-weight: 400;
            line-height: 1.5;
            opacity: 0.9;
        }

        .bento-intro p { max-width: 80%; font-size: 1.5rem; }

        .stat-number {
            font-size: 5rem;
            font-weight: 900;
            line-height: 1;
            margin-bottom: 10px;
        }

        /* Draggable Element inside Bento */
        .draggable-sticker {
            position: absolute;
            top: 30px;
            right: 30px;
            width: 140px;
            height: 140px;
            background: #FFF;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-weight: 900;
            font-size: 1.2rem;
            color: var(--brand-dark);
            transform: rotate(-15deg);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
            z-index: 20;
            border: 4px solid var(--text-primary);
        }

        /* =========================================
           7. TIMELINE SECTION (EXPERIENCE)
           ========================================= */
        .section-timeline {
            padding: var(--pad-section) 5vw;
            background: var(--bg-primary);
            position: relative;
        }

        .timeline-container {
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
        }

        /* The drawn line */
        .timeline-line {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50px;
            width: 4px;
            background: var(--border-color);
            border-radius: var(--rad-pill);
        }

        .timeline-progress {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0%;
            background: var(--brand-red);
            border-radius: var(--rad-pill);
        }

        .timeline-item {
            position: relative;
            padding-left: 120px;
            margin-bottom: 80px;
        }

        .timeline-item:last-child { margin-bottom: 0; }

        .timeline-dot {
            position: absolute;
            left: 42px; /* 50 - 8 (half width) */
            top: 0;
            width: 20px;
            height: 20px;
            background: var(--bg-primary);
            border: 4px solid var(--brand-red);
            border-radius: 50%;
            z-index: 2;
            transition: background 0.3s;
        }

        .timeline-item.active .timeline-dot {
            background: var(--brand-red);
        }

        .timeline-date {
            font-family: var(--font-sans);
            font-weight: 700;
            color: var(--brand-red);
            margin-bottom: 10px;
            display: block;
        }

        .timeline-content h4 {
            font-size: 2rem;
            font-weight: 900;
            margin-bottom: 10px;
        }

        .timeline-content p {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
        }

        /* =========================================
           8. HORIZONTAL PROJECTS SCROLL
           ========================================= */
        .projects-wrapper {
            height: 100vh;
            display: flex;
            align-items: center;
            background: var(--bg-secondary);
            overflow: hidden;
            position: relative;
        }

        /* Progress indicator for horizontal scroll */
        .project-progress-wrap {
            position: absolute;
            bottom: 50px;
            left: 5vw;
            width: 90vw;
            height: 2px;
            background: var(--border-color);
            z-index: 10;
        }
        
        .project-progress {
            height: 100%;
            width: 0%;
            background: var(--text-primary);
        }

        .projects-container {
            display: flex;
            gap: 40px;
            padding: 0 5vw;
            width: max-content;
        }

        .project-card {
            width: 70vw;
            max-width: 1000px;
            height: 70vh;
            background: var(--brand-dark);
            border-radius: var(--rad-lg);
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 60px;
            position: relative;
            color: #FFF;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
        }

        /* Distinct Project Colors */
        .project-card:nth-child(1) { background: var(--brand-blue); }
        .project-card:nth-child(2) { background: var(--brand-dark); }
        .project-card:nth-child(3) { background: var(--brand-red); }
        .project-card:nth-child(4) { background: var(--brand-green); }

        .project-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.3;
            transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
            filter: grayscale(100%);
        }

        .project-card:hover .project-image {
            opacity: 0.6;
            transform: scale(1.05);
            filter: grayscale(0%);
        }

        .project-info {
            position: relative;
            z-index: 2;
            transform: translateY(20px);
            transition: transform 0.5s var(--ease-expo);
        }

        .project-card:hover .project-info {
            transform: translateY(0);
        }

        .project-tags {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tag {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            color: #FFF;
            padding: 8px 16px;
            border-radius: var(--rad-pill);
            font-family: var(--font-sans);
            font-size: 0.85rem;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .project-info h2 {
            font-size: clamp(3rem, 6vw, 6rem);
            font-weight: 900;
            margin-bottom: 15px;
            line-height: 0.9;
            letter-spacing: -0.03em;
        }

        .project-info p {
            font-size: 1.2rem;
            max-width: 600px;
            opacity: 0.8;
        }

        /* =========================================
           9. TESTIMONIALS (DRAGGABLE)
           ========================================= */
        .section-testimonials {
            padding: var(--pad-section) 0;
            background: var(--bg-tertiary);
            overflow: hidden;
        }

        .testi-track {
            display: flex;
            gap: 30px;
            padding: 0 5vw;
            width: max-content;
        }

        .testi-card {
            width: 450px;
            background: var(--bg-secondary);
            padding: 50px;
            border-radius: var(--rad-md);
            border: 1px solid var(--border-color);
            flex-shrink: 0;
            user-select: none;
        }

        .testi-card p {
            font-size: 1.2rem;
            font-style: italic;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .testi-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .testi-avatar {
            width: 50px;
            height: 50px;
            background: var(--brand-yellow);
            border-radius: 50%;
        }

        .testi-name { font-weight: 900; font-size: 1.1rem; }
        .testi-role { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-secondary); }

        /* =========================================
           10. MARQUEE INFINITE SCROLL
           ========================================= */
        .marquee-section {
            padding: 100px 0 180px;
            background: var(--brand-yellow);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 20px;
            border-top: 2px solid var(--brand-dark);
            border-bottom: none;
            position: relative;
        }

        .marquee-track {
            display: flex;
            width: max-content;
            white-space: nowrap;
            will-change: transform;
        }

        .marquee-text {
            font-size: clamp(4rem, 8vw, 8rem);
            font-weight: 900;
            text-transform: uppercase;
            padding: 0 40px;
            color: var(--brand-dark);
            line-height: 1;
            letter-spacing: 4px;
        }

        .marquee-text.outline {
            color: var(--brand-yellow);
            -webkit-text-stroke: 0;
            text-shadow: 
                -1.5px -1.5px 0 var(--brand-dark),
                 1.5px -1.5px 0 var(--brand-dark),
                -1.5px  1.5px 0 var(--brand-dark),
                 1.5px  1.5px 0 var(--brand-dark),
                 0px   -1.5px 0 var(--brand-dark),
                 0px    1.5px 0 var(--brand-dark),
                -1.5px  0px   0 var(--brand-dark),
                 1.5px  0px   0 var(--brand-dark);
        }

        /* =========================================
           11. CONTACT FORM & FOOTER
           ========================================= */
        .footer {
            background: var(--brand-dark);
            color: #FFF;
            padding: 150px 5vw 50px;
            position: relative;
            overflow: hidden;
            border-radius: var(--rad-lg) var(--rad-lg) 0 0;
            margin-top: -80px;
            z-index: var(--z-ui);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            max-width: 1600px;
            margin: 0 auto 100px;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .form-group {
            position: relative;
        }

        .form-input {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 2px solid rgba(255,255,255,0.2);
            padding: 15px 0;
            color: #FFF;
            font-size: 1.2rem;
            font-family: var(--font-sans);
            outline: none;
            transition: border-color 0.3s;
            resize: none;
        }

        .form-input:focus { border-color: var(--brand-yellow); }

        .form-label {
            position: absolute;
            left: 0;
            top: 15px;
            color: rgba(255,255,255,0.5);
            pointer-events: none;
            transition: transform 0.3s var(--ease-expo), color 0.3s;
            font-family: var(--font-sans);
        }

        /* Active Label State */
        .form-input:focus ~ .form-label,
        .form-input:not(:placeholder-shown) ~ .form-label {
            transform: translateY(-25px) scale(0.8);
            color: var(--brand-yellow);
            transform-origin: left;
        }

        .btn-submit {
            align-self: flex-start;
            background: var(--brand-yellow);
            color: var(--brand-dark);
            padding: 20px 50px;
            margin-top: 20px;
        }

        .footer-info h2 {
            font-size: clamp(4rem, 10vw, 12rem);
            font-weight: 900;
            line-height: 0.8;
            margin-bottom: 40px;
            letter-spacing: -0.05em;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .footer-link {
            font-size: 2.5rem;
            font-weight: 700;
            width: max-content;
            position: relative;
            overflow: hidden;
        }

        .footer-link span {
            display: inline-block;
            transition: transform 0.4s var(--ease-bouncy);
        }

        .footer-link::before {
            content: attr(data-text);
            position: absolute;
            top: 100%;
            left: 0;
            color: var(--brand-red);
            transition: transform 0.4s var(--ease-bouncy);
        }

        .footer-link:hover span { transform: translateY(-100%); }
        .footer-link:hover::before { transform: translateY(-100%); }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 40px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-family: var(--font-sans);
            font-size: 0.9rem;
            color: rgba(255,255,255,0.5);
        }

        /* =========================================
           12. RESPONSIVE DESIGN (MEDIA QUERIES)
           ========================================= */
        @media (max-width: 1024px) {
            .bento-intro { grid-column: span 12; }
            .bento-stats, .bento-stack, .bento-location { grid-column: span 6; }
            .bento-github { grid-column: span 12; }
            
            .project-card { width: 85vw; }
            
            .footer-grid { grid-template-columns: 1fr; gap: 60px; }
            .footer-info { order: -1; } /* Info goes above form on mobile */
        }

        @media (max-width: 768px) {
            .nav-links { display: none; } /* Mobile menu logic hidden for brevity */
            .navbar { width: calc(100% - 40px); justify-content: space-between; }
            
            .bento-grid { display: flex; flex-direction: column; }
            
            .timeline-item { padding-left: 60px; }
            .timeline-line { left: 20px; }
            .timeline-dot { left: 12px; }
            
            .draggable-sticker { display: none; } /* Hide on mobile due to touch conflicts */
            
            .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
        }
html.preloader-hidden .preloader { display: none !important; }
