        :root {
            --bg-color: #f8fafc;
            --text-color: #0f172a;
            --text-light: #64748b;
            --accent-color: #6366f1; /* Indigo */
            --accent-dark: #4f46e5;
            --accent-glow: rgba(99, 102, 241, 0.4);
            --secondary-bg: #ffffff;
            --card-bg: rgba(255, 255, 255, 0.8);
            --card-border: rgba(255, 255, 255, 0.9);
            --border-color: rgba(0, 0, 0, 0.08);
            --nav-bg: rgba(255, 255, 255, 0.85);
            
            --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
            --gradient-text: linear-gradient(135deg, #4f46e5, #9333ea);
            --gradient-overlay: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
            
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
            --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
            
            --backdrop-blur: 16px;
            --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        [data-theme="dark"] {
            --bg-color: #020617;
            --text-color: #f8fafc;
            --text-light: #94a3b8;
            --accent-color: #818cf8;
            --accent-dark: #6366f1;
            --accent-glow: rgba(129, 140, 248, 0.3);
            --secondary-bg: #0f172a;
            --card-bg: rgba(30, 41, 59, 0.7);
            --card-border: rgba(255, 255, 255, 0.08);
            --border-color: rgba(255, 255, 255, 0.08);
            --nav-bg: rgba(2, 6, 23, 0.85);
            
            --gradient-primary: linear-gradient(135deg, #818cf8, #c084fc);
            --gradient-text: linear-gradient(135deg, #a5b4fc, #e879f9);
            --gradient-overlay: linear-gradient(to bottom, rgba(2,6,23,0), rgba(2,6,23,1));
            
            --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
            --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
            --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.6);
            --shadow-glow: 0 0 25px rgba(129, 140, 248, 0.2);
        }

        /* --- GLOBAL RESET & UTILS --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.7;
            overflow-x: hidden;
            transition: background-color 0.5s ease, color 0.5s ease;
        }

        /* Subtle Noise Overlay */
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 999;
            opacity: 0.7;
        }

        ::selection {
            background: var(--accent-color);
            color: #fff;
        }

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

        ul {
            list-style: none;
        }

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

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* --- TYPOGRAPHY --- */
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            color: var(--text-color);
            line-height: 1.2;
        }

        /* Centered Titles */
        .section-title {
            font-size: 3.5rem;
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
            letter-spacing: -1px;
        }
        
        /* Decorative line for centered titles */
        .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--gradient-primary);
            margin: 1rem auto 0;
            border-radius: 2px;
        }

        /* ABOUT SECTION EXCEPTION */
        #about .section-title {
            text-align: left;
            margin-left: 0;
        }
        
        #about .section-title::after {
            margin: 1rem 0 0 0; /* Align line to left */
        }

        .gradient-text {
            background: var(--gradient-text);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
        }

        /* --- COMPONENTS --- */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            border-radius: 100px;
            font-weight: 600;
            font-family: 'Outfit', sans-serif;
            transition: var(--transition-speed);
            position: relative;
            overflow: hidden;
            z-index: 1;
            font-size: 1.05rem;
            letter-spacing: 0.5px;
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: #fff;
            box-shadow: 0 8px 20px var(--accent-glow);
            border: 1px solid transparent;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px var(--accent-glow);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }
        
        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-secondary {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            backdrop-filter: blur(4px);
        }

        .btn-secondary:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
            transform: translateY(-3px);
            background: var(--bg-color);
        }

        /* --- NAVIGATION --- */
        header {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 1200px;
            z-index: 100;
            border-radius: 100px;
            transition: all 0.4s ease;
        }

        .nav-glass {
            background: var(--nav-bg);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-color);
            padding: 0.8rem 2rem;
            border-radius: 100px;
            box-shadow: var(--shadow-md);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Outfit', sans-serif;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-color);
            letter-spacing: -0.5px;
        }

        .logo span {
            color: var(--accent-color);
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 2.5rem;
        }

        .nav-link {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--text-color);
            position: relative;
            opacity: 0.8;
            transition: all 0.3s;
        }

        .nav-link:hover {
            opacity: 1;
            color: var(--accent-color);
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 100%;
            height: 2px;
            background: var(--accent-color);
            transition: transform 0.3s;
        }
        
        .nav-link:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* Theme Toggle */
        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: transparent;
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-color);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background: var(--secondary-bg);
            color: var(--accent-color);
            transform: rotate(15deg);
        }

        .menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* --- LOADING ANIMATION --- */
        .loader {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: flex;
            pointer-events: none;
        }

        .loader-panel {
            width: 50%;
            height: 100%;
            background: #0f172a;
            transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
        }

        .loader-panel.left { transform-origin: left; }
        .loader-panel.right { transform-origin: right; }

        .loader.loaded .loader-panel.left {
            transform: translateX(-100%);
        }
        .loader.loaded .loader-panel.right {
            transform: translateX(100%);
        }

        .loader-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-family: 'Outfit', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            transition: opacity 0.4s;
            z-index: 10;
            letter-spacing: 2px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        /* New Simple Dots Animation */
        .loader-dots {
            display: flex;
            gap: 6px;
        }
        
        .loader-dots span {
            width: 8px;
            height: 8px;
            background-color: var(--accent-color);
            border-radius: 50%;
            animation: bounce 1.4s infinite ease-in-out both;
        }
        
        .loader-dots span:nth-child(1) { animation-delay: -0.32s; }
        .loader-dots span:nth-child(2) { animation-delay: -0.16s; }
        
        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }

        .loader.loaded .loader-content {
            opacity: 0;
        }

        /* --- HERO SECTION --- */
        .hero {
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 100px;
            overflow: hidden;
        }

        #hero-canvas {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1;
        }

        .hero-container {
            text-align: center;
            position: relative;
            z-index: 2;
            max-width: 900px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }


        .hero-text-block {
            display: inline-block;
            text-align: center; 
            margin-bottom: 1.5rem;
        }

        .hero-eyebrow {
            display: block; /* Block ensures it sits above */
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
            letter-spacing: 0.5px;
        }

        .hero-title {
            font-family: 'Syne', sans-serif; /* Updated Font */
            font-size: 5rem;
            line-height: 1;
            letter-spacing: -0.02em;
            margin: 0;
        }
        
        .glitch-wrapper {
            display: inline-block;
            position: relative;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-light);
            margin-bottom: 3rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            text-align: center; /* Keep subtitle centered */
        }

        .hero-btns {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
        }

        /* --- ABOUT SECTION --- */
        .about {
            padding: 8rem 0;
            background: var(--secondary-bg);
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 4rem;
            align-items: center;
        }

        .about-visual {
            position: relative;
        }

        .about-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            overflow: hidden;
            aspect-ratio: 1/1;
            position: relative;
            z-index: 2;
            box-shadow: var(--shadow-lg);
        }

        /* ANIMATION FOR ABOUT IMAGE */
        .about-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s;
        }

        .about-card:hover img {
            transform: scale(1.1) rotate(3deg);
            filter: brightness(1.05);
        }

        .about-badge {
            position: absolute;
            bottom: -20px;
            right: -20px;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            padding: 1.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow-md);
            z-index: 3;
            display: flex;
            align-items: center;
            gap: 1rem;
            max-width: 200px;
        }
        
        .badge-icon {
            width: 50px; height: 50px;
            background: var(--accent-glow);
            color: var(--accent-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .about-content p {
            font-size: 1.15rem;
            color: var(--text-light);
            margin-bottom: 1.5rem;
        }

        .stats-row {
            display: flex;
            gap: 3rem;
            margin-top: 2.5rem;
            padding-top: 2.5rem;
            border-top: 1px solid var(--border-color);
        }

        .stat-item h3 {
            font-size: 2.5rem;
            color: var(--accent-color);
            margin-bottom: 0.2rem;
        }
        
        .stat-item p {
            font-size: 0.9rem;
            margin: 0;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* --- SKILLS SECTION --- */
        .skills {
            padding: 8rem 0;
            background: var(--bg-color);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 1.5rem;
        }

        .skill-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.5rem;
            text-align: center;
            transition: var(--transition-speed);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .skill-card i {
            font-size: 2rem;
            color: var(--text-light);
            transition: 0.3s;
        }

        .skill-card span {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .skill-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent-color);
            box-shadow: var(--shadow-md);
        }

        .skill-card:hover i {
            color: var(--accent-color);
            transform: scale(1.2);
        }

        /* --- PROJECTS SECTION --- */
        .projects {
            padding: 8rem 0;
            background: var(--secondary-bg);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 2.5rem;
        }

        .project-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            overflow: hidden;
            transition: var(--transition-speed);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .project-thumb {
            height: 240px;
            width: 100%;
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid var(--border-color);
        }

        .project-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .project-card:hover .project-thumb img {
            transform: scale(1.1);
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.5);
            opacity: 0;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            backdrop-filter: blur(3px);
        }

        .project-card:hover .project-overlay {
            opacity: 1;
        }
        
        .icon-btn {
            width: 50px; height: 50px;
            border-radius: 50%;
            background: white;
            color: black;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: 0.3s;
        }
        
        .icon-btn:hover {
            transform: scale(1.1);
            color: var(--accent-color);
        }

        .project-body {
            padding: 2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .project-title {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
        }

        .project-desc {
            font-size: 0.95rem;
            color: var(--text-light);
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: auto;
        }

        .tech-pill {
            font-size: 0.75rem;
            padding: 0.3rem 0.8rem;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--text-light);
            font-weight: 600;
        }

        /* --- CONTACT SECTION --- */
        .contact {
            padding: 8rem 0 4rem;
            position: relative;
        }

        .cta-card {
            background: var(--gradient-primary);
            border-radius: 30px;
            padding: 5rem 2rem;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-glow);
        }

        /* Abstract shapes on CTA */
        .cta-shape {
            position: absolute;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
        .s1 { width: 300px; height: 300px; top: -100px; left: -100px; }
        .s2 { width: 200px; height: 200px; bottom: -50px; right: -50px; }

        .cta-content {
            position: relative;
            z-index: 2;
            max-width: 700px;
            margin: 0 auto;
        }

        .cta-title {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            color: white;
        }

        .cta-text {
            font-size: 1.2rem;
            margin-bottom: 3rem;
            opacity: 0.9;
        }

        .cta-btn-group {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .btn-white {
            background: white;
            color: var(--accent-dark);
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            transition: 0.3s;
        }

        .btn-white:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .btn-outline-white {
            background: transparent;
            border: 2px solid rgba(255,255,255,0.5);
            color: white;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            transition: 0.3s;
        }

        .btn-outline-white:hover {
            background: white;
            color: var(--accent-dark);
            border-color: white;
        }

        /* --- FOOTER --- */
        footer {
            padding: 3rem 0;
            text-align: center;
            border-top: 1px solid var(--border-color);
            margin-top: 4rem;
        }

        .footer-text {
            color: var(--text-light);
            font-weight: 500;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .about-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            #about .section-title {
                text-align: center; /* Center on mobile if stacked */
            }
            #about .section-title::after {
                margin: 1rem auto 0;
            }
            .about-badge {
                display: none; /* Hide complex badge on tablets/mobile */
            }
            .stats-row {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            header {
                width: 100%;
                top: 0;
                border-radius: 0;
            }
            .nav-glass {
                border-radius: 0;
                border: none;
                border-bottom: 1px solid var(--border-color);
                padding: 1rem 1.5rem;
            }
            .nav-menu {
                position: fixed;
                top: 70px; /* Header height */
                left: 0;
                width: 100%;
                background: var(--bg-color);
                flex-direction: column;
                padding: 2rem;
                gap: 2rem;
                border-bottom: 1px solid var(--border-color);
                transform: translateY(-150%);
                transition: 0.4s ease;
                z-index: 90;
            }
            .nav-menu.active {
                transform: translateY(0);
                box-shadow: var(--shadow-lg);
            }
            .menu-btn {
                display: block;
            }
            
            .hero-title {
                font-size: 3.5rem;
            }
            .section-title {
                font-size: 2.5rem;
            }
            .cta-title {
                font-size: 2.5rem;
            }
            .cta-btn-group {
                flex-direction: column;
                width: 100%;
            }
            .btn-white, .btn-outline-white {
                width: 100%;
                justify-content: center;
            }
            
            /* Adjust hero text block for mobile */
            .hero-text-block {
                text-align: center;
            }
        }