/* --- CSS VARIABLES & RESET --- */
        :root {
            --bg-color: #0f0f11;
            --surface-color: #1a1a1d;
            --surface-hover: #252529;
            --primary-color: #6366f1; /* Indigo */
            --accent-color: #a855f7; /* Purple */
            --text-main: #ffffff;
            --text-muted: #9ca3af;
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --border-radius: 16px;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --font-main: 'Outfit', sans-serif;
        }

        /* Light Mode Variables */
        [data-theme="light"] {
            --bg-color: #f3f4f6;
            --surface-color: #ffffff;
            --surface-hover: #f9fafb;
            --text-main: #111827;
            --text-muted: #4b5563;
            --glass-bg: rgba(255, 255, 255, 0.6);
            --glass-border: rgba(0, 0, 0, 0.05);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            cursor: none; /* Hiding default cursor for custom one */
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-color);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background-color 0.5s ease;
            padding-bottom: 6.5rem;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* --- CUSTOM CURSOR --- */
        .cursor-dot,
        .cursor-outline {
            position: fixed;
            top: 0;
            left: 0;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            z-index: 9999;
            pointer-events: none;
        }

        .cursor-dot {
            width: 8px;
            height: 8px;
            background-color: var(--primary-color);
        }

        .cursor-outline {
            width: 40px;
            height: 40px;
            border: 1px solid var(--primary-color);
            transition: width 0.2s, height 0.2s, background-color 0.2s;
        }

        body:hover .cursor-outline.hovered {
            width: 60px;
            height: 60px;
            background-color: rgba(99, 102, 241, 0.1);
            border-color: transparent;
        }

        /* --- LAYOUT UTILITIES --- */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 6rem 0;
            position: relative;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
            text-align: center;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            opacity: 0; /* For animation */
            transform: translateY(20px);
        }

        /* --- NAVIGATION (Floating Dock) --- */
        .nav-dock {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            padding: 0.8rem 2rem;
            border-radius: 50px;
            display: flex;
            gap: 2rem;
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: var(--transition);
        }

        .nav-link {
            color: var(--text-muted);
            font-size: 1.2rem;
            position: relative;
            transition: var(--transition);
        }

        .nav-link:hover, .nav-link.active {
            color: var(--primary-color);
            transform: translateY(-3px);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after, .nav-link.active::after {
            width: 100%;
        }

        /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            top: 2rem;
            right: 2rem;
            background: var(--surface-color);
            border: 1px solid var(--glass-border);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            font-size: 1.2rem;
            z-index: 1000;
            transition: var(--transition);
        }

        .theme-toggle:hover {
            background: var(--surface-hover);
            transform: rotate(15deg);
        }

        /* --- HERO SECTION --- */
        #home {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-top: 4rem;
        }

        .hero-content h1 {
            font-size: 4rem;
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -1px;
        }

        .hero-content h1 span {
            color: var(--primary-color);
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            min-height: 1.6em; /* Prevent layout shift on typing */
        }

        .cta-btn {
            display: inline-block;
            padding: 1rem 2.5rem;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
            transition: var(--transition);
        }

        .cta-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
        }

        .scroll-indicator {
            position: absolute;
            bottom: 6rem;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            opacity: 0.7;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
            40% {transform: translateY(-10px) translateX(-50%);}
            60% {transform: translateY(-5px) translateX(-50%);}
        }

        /* --- ABOUT SECTION --- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .about-img-wrapper {
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .about-img {
            width: 100%;
            display: block;
            border-radius: var(--border-radius);
            filter: grayscale(100%);
            transition: var(--transition);
        }

        .about-img-wrapper:hover .about-img {
            filter: grayscale(0%);
            transform: scale(1.03);
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        .stats {
            display: flex;
            gap: 2rem;
            margin-top: 2rem;
        }

        .stat-item h3 {
            font-size: 2rem;
            color: var(--primary-color);
        }

        .stat-item p {
            font-size: 0.9rem;
            margin: 0;
        }

        /* --- EXPERIENCE TIMELINE --- */
        .timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: var(--glass-border);
        }

        .timeline-item {
            margin-bottom: 3rem;
            width: 100%;
            position: relative;
        }

        .timeline-content {
            background: var(--surface-color);
            padding: 2rem;
            border-radius: var(--border-radius);
            width: 45%;
            position: relative;
            transition: var(--transition);
            border: 1px solid transparent;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            border-color: var(--glass-border);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-left: auto;
        }

        .timeline-dot {
            width: 16px;
            height: 16px;
            background: var(--primary-color);
            border-radius: 50%;
            position: absolute;
            top: 2rem;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 0 4px var(--bg-color);
        }

        .timeline-date {
            font-size: 0.9rem;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
            display: block;
            font-weight: 600;
        }

        /* --- SKILLS --- */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .skill-card {
            background: var(--surface-color);
            padding: 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            transition: var(--transition);
            border: 1px solid var(--glass-border);
        }

        .skill-card:hover {
            background: var(--surface-hover);
            transform: translateY(-5px);
        }

        .skill-icon {
            font-size: 2.5rem;
            color: var(--accent-color);
            margin-bottom: 1rem;
        }

        .skill-bar {
            background: var(--bg-color);
            height: 6px;
            border-radius: 3px;
            margin-top: 1rem;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            width: 0; /* Animated via JS */
            transition: width 1.5s ease-out;
        }

        /* --- PROJECTS --- */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
        }

        .project-card {
            background: var(--surface-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            /* group: ; */
        }

        .project-card:hover {
            transform: translateY(-10px);
        }

        .project-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid var(--glass-border);
        }

        .project-info {
            padding: 1.5rem;
        }

        .project-tags {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .tag {
            font-size: 0.75rem;
            background: var(--glass-bg);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            color: var(--text-muted);
        }

        .project-links {
            margin-top: 1.5rem;
            display: flex;
            gap: 1rem;
        }

        .link-icon {
            color: var(--text-main);
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .link-icon:hover {
            color: var(--primary-color);
        }

        /* --- CONTACT --- */
        .contact-container {
            max-width: 600px;
            margin: 0 auto;
            background: var(--surface-color);
            padding: 3rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--glass-border);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .form-control {
            width: 100%;
            padding: 1rem;
            background: var(--bg-color);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            color: var(--text-main);
            font-family: var(--font-main);
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        /* --- FOOTER --- */
        footer {
            text-align: center;
            padding: 2rem 0;
            color: var(--text-muted);
            font-size: 0.9rem;
            border-top: 1px solid var(--glass-border);
            margin-top: 4rem;
        }

        /* --- ANIMATION UTILS --- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- TOAST NOTIFICATION --- */
        #toast {
            visibility: hidden;
            min-width: 250px;
            background-color: var(--surface-color);
            color: var(--text-main);
            text-align: center;
            border-radius: 8px;
            padding: 16px;
            position: fixed;
            z-index: 2000;
            left: 50%;
            bottom: 100px;
            transform: translateX(-50%);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            border-left: 4px solid var(--primary-color);
            opacity: 0;
            transition: opacity 0.3s, bottom 0.3s;
        }

        #toast.show {
            visibility: visible;
            opacity: 1;
            bottom: 120px;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .hero-content h1 { font-size: 2.5rem; }
            .about-grid { grid-template-columns: 1fr; }
            .timeline::before { left: 0; }
            .timeline-content { width: 90%; margin-left: 1.5rem !important; }
            .timeline-dot { left: 0; }
            .nav-dock { width: 90%; justify-content: space-around; padding: 1rem; gap: 0; }
            .cursor-dot, .cursor-outline { display: none; } /* Hide custom cursor on touch */
            * { cursor: auto; }
        }