/* ==================== VARIABLES ==================== */
        :root {
            --bg-light: #ffffff;
            --bg-dark: #18181b;
            --text-light: #09090b;
            --text-dark: #fafafa;
            --accent: #f97316;
            --secondary: #64748b;
            --border-light: #e5e7eb;
            --border-dark: #27272a;
            --card-light: #f9fafb;
            --card-dark: #1f1f23;
            
            --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
            
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 2rem;
            --spacing-lg: 4rem;
            --spacing-xl: 6rem;
            
            --radius: 0.5rem;
            --transition: 0.2s ease;
        }

        /* ==================== THEME DEFAULTS ==================== */
        [data-theme="light"] {
            --bg: var(--bg-light);
            --text: var(--text-light);
            --border: var(--border-light);
            --card: var(--card-light);
        }

        [data-theme="dark"] {
            --bg: var(--bg-dark);
            --text: var(--text-dark);
            --border: var(--border-dark);
            --card: var(--card-dark);
        }

        /* Default to light theme */
        :root {
            --bg: var(--bg-light);
            --text: var(--text-light);
            --border: var(--border-light);
            --card: var(--card-light);
        }

        /* Auto dark mode preference */
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --bg: var(--bg-dark);
                --text: var(--text-dark);
                --border: var(--border-dark);
                --card: var(--card-dark);
            }
        }

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

        /* ==================== BASE ==================== */
        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            transition: background var(--transition), color var(--transition);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            color: var(--accent);
            text-decoration: none;
            transition: opacity var(--transition);
        }

        a:hover {
            opacity: 0.8;
        }

        /* ==================== LAYOUT ==================== */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--spacing-md);
        }

        section {
            padding: var(--spacing-xl) 0;
        }

        /* ==================== HEADER ==================== */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg);
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--spacing-sm) 0;
        }

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

        .nav-controls {
            display: flex;
            gap: var(--spacing-sm);
            align-items: center;
        }

        .theme-toggle {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition);
            width: 40px;
            height: 40px;
        }

        .theme-toggle:hover {
            background: var(--border);
        }

        .lang-selector {
            position: relative;
        }

        .lang-button {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-family: var(--font-sans);
            color: var(--text);
            font-size: 0.875rem;
            transition: all var(--transition);
        }

        .lang-button:hover {
            background: var(--border);
        }

        .lang-menu {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: var(--spacing-xs);
            display: none;
            flex-direction: column;
            gap: 0.25rem;
            min-width: 150px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .lang-menu.active {
            display: flex;
        }

        .lang-option {
            padding: 0.5rem 1rem;
            border-radius: calc(var(--radius) * 0.75);
            cursor: pointer;
            transition: background var(--transition);
            font-size: 0.875rem;
        }

        .lang-option:hover {
            background: var(--border);
        }

        /* ==================== HERO ==================== */
        .hero {
            padding: var(--spacing-xl) 0;
            text-align: center;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 8vw, 4rem);
            font-weight: 800;
            margin-bottom: var(--spacing-sm);
            background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero .subtitle {
            font-size: clamp(1.25rem, 3vw, 1.5rem);
            color: var(--secondary);
            margin-bottom: var(--spacing-md);
            font-weight: 500;
        }

        .hero .description {
            max-width: 700px;
            margin: 0 auto var(--spacing-md);
            font-size: 1.125rem;
            color: var(--secondary);
            line-height: 1.8;
        }

        .hero .cta-group {
            display: flex;
            gap: var(--spacing-sm);
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: var(--spacing-md);
        }

        .btn {
            padding: 0.875rem 2rem;
            border-radius: var(--radius);
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all var(--transition);
            border: none;
            font-family: var(--font-sans);
        }

        .btn-primary {
            background: var(--accent);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
        }

        .btn-secondary {
            background: var(--card);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--border);
        }

        .social-links {
            display: flex;
            gap: var(--spacing-sm);
            justify-content: center;
            margin-top: var(--spacing-md);
        }

        .social-links a {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius);
            background: var(--card);
            border: 1px solid var(--border);
            transition: all var(--transition);
        }

        .social-links a:hover {
            background: var(--accent);
            border-color: var(--accent);
            transform: translateY(-2px);
            color: var(--bg-light);
        }

        .social-links img {
            width: 20px;
            height: 20px;
            filter: grayscale(1);
            transition: filter var(--transition);
        }

        .social-links a:hover img {
            filter: grayscale(0) brightness(0) invert(1);
        }

        /* ==================== SECTION HEADERS ==================== */
        .section-header {
            text-align: center;
            margin-bottom: var(--spacing-lg);
        }

        .section-header h2 {
            font-size: clamp(2rem, 5vw, 2.5rem);
            font-weight: 700;
            margin-bottom: var(--spacing-sm);
        }

        .section-header p {
            color: var(--secondary);
            font-size: 1.125rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* ==================== ABOUT ==================== */
        .about-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .about-content p {
            font-size: 1.125rem;
            line-height: 1.8;
            margin-bottom: var(--spacing-md);
            color: var(--secondary);
        }

        .about-content a {
            font-weight: 600;
            border-bottom: 2px solid var(--accent);
        }

        /* ==================== TECH STACK ==================== */
        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: var(--spacing-md);
            margin-top: var(--spacing-lg);
        }

        .tech-category h3 {
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--accent);
            margin-bottom: var(--spacing-sm);
            font-weight: 700;
        }

        .tech-list {
            display: flex;
            flex-wrap: wrap;
            gap: var(--spacing-xs);
        }

        .tech-tag {
            background: var(--card);
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: calc(var(--radius) * 2);
            font-size: 0.875rem;
            font-family: var(--font-mono);
            color: var(--text);
            transition: all var(--transition);
        }

        .tech-tag:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: white;
            transform: translateY(-2px);
        }

        /* ==================== TIMELINE ==================== */
        .timeline {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            padding-left: 2rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--border);
        }

        .timeline-item {
            position: relative;
            margin-bottom: var(--spacing-lg);
            padding-left: var(--spacing-md);
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 0.5rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent);
            border: 3px solid var(--bg);
            box-shadow: 0 0 0 3px var(--accent);
        }

        .timeline-item.current::before {
            box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px rgba(249, 115, 22, 0.2);
        }

        .timeline-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: var(--spacing-xs);
            margin-bottom: var(--spacing-sm);
        }

        .timeline-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text);
        }

        .timeline-company {
            color: var(--accent);
            font-weight: 600;
        }

        .timeline-date {
            color: var(--secondary);
            font-size: 0.875rem;
            font-family: var(--font-mono);
        }

        .timeline-description {
            color: var(--secondary);
            line-height: 1.8;
            margin-bottom: var(--spacing-sm);
        }

        .timeline-highlights {
            list-style: none;
            padding: 0;
        }

        .timeline-highlights li {
            color: var(--secondary);
            padding-left: 1.5rem;
            position: relative;
            margin-bottom: 0.5rem;
        }

        .timeline-highlights li::before {
            content: '▹';
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        /* ==================== PROJECTS ==================== */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--spacing-md);
        }

        .project-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: var(--spacing-md);
            transition: all var(--transition);
        }

        .project-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border-color: var(--accent);
        }

        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--spacing-sm);
        }

        .project-icon {
            width: 48px;
            height: 48px;
            background: var(--accent);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .project-links {
            display: flex;
            gap: var(--spacing-xs);
        }

        .project-link {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: calc(var(--radius) * 0.75);
            background: var(--bg);
            border: 1px solid var(--border);
            transition: all var(--transition);
        }

        .project-link:hover {
            background: var(--accent);
            border-color: var(--accent);
        }

        .project-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin: var(--spacing-sm) 0;
            color: var(--text);
        }

        .project-description {
            color: var(--secondary);
            line-height: 1.6;
            margin-bottom: var(--spacing-sm);
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: var(--spacing-xs);
            margin-top: var(--spacing-sm);
        }

        .project-tech span {
            font-size: 0.75rem;
            font-family: var(--font-mono);
            color: var(--accent);
            background: rgba(249, 115, 22, 0.1);
            padding: 0.25rem 0.75rem;
            border-radius: calc(var(--radius) * 2);
        }

        /* ==================== CONTACT ==================== */
        .contact-content {
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-content p {
            font-size: 1.125rem;
            color: var(--secondary);
            line-height: 1.8;
            margin-bottom: var(--spacing-md);
        }

        .contact-email {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent);
            display: inline-block;
            margin: var(--spacing-md) 0;
            border-bottom: 2px solid var(--accent);
        }

        /* ==================== FOOTER ==================== */
        footer {
            border-top: 1px solid var(--border);
            padding: var(--spacing-md) 0;
            text-align: center;
            color: var(--secondary);
            font-size: 0.875rem;
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 768px) {
            :root {
                --spacing-lg: 3rem;
                --spacing-xl: 4rem;
            }

            .timeline {
                padding-left: 1.5rem;
            }

            .timeline-item {
                padding-left: var(--spacing-sm);
            }

            .timeline-item::before {
                left: -1.5rem;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .tech-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ==================== UTILITIES ==================== */
        .text-gradient {
            background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ==================== DARK MODE ICONS ==================== */
        [data-theme="light"] .dark-icon {
            display: none;
        }

        [data-theme="dark"] .light-icon {
            display: none;
        }