:root {
            --primary: #fbbf24;
            --primary-glow: rgba(251, 191, 36, 0.5);
            --bg-color: #030303;
            --card-bg: rgba(15, 15, 15, 0.85);
            --card-border: rgba(255, 255, 255, 0.1);
            --text-color: #a0a0a0;
            --text-light: #ffffff;
            
            --font-main: 'Inter', sans-serif;
            --font-heading: 'Space Grotesk', sans-serif;
            --font-mono: 'Fira Code', monospace;
        }

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

        /* NEURAL BACKGROUND */
        #neural-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1; 
            pointer-events: none; 
            background: #050505;
        }

        h1, h2, h3, h4, h5, h6, p, span, a {
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); 
        }

        /* Loading Screen */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: var(--bg-color);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        .loading-screen.fade-out {
            opacity: 0;
            visibility: hidden;
        }

        .loading-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .loading-logo {
            font-family: var(--font-heading);
            font-size: clamp(40px, 8vw, 80px);
            font-weight: 700;
            color: #fff;
            letter-spacing: -2px;
            margin-bottom: 30px;
            animation: glitch 3s infinite;
        }

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

        @keyframes glitch {
            0%, 90%, 100% { transform: translateX(0); text-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
            92% { transform: translateX(-2px); text-shadow: 2px 0 var(--primary), -2px 0 #00fff2; }
            94% { transform: translateX(2px); text-shadow: -2px 0 var(--primary), 2px 0 #00fff2; }
        }

        .loading-bar-container {
            width: 300px;
            height: 3px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin: 0 auto;
            position: relative;
        }

        .loading-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), #ff7a5c);
            width: 0%;
            animation: loadProgress 2s ease-out forwards;
            box-shadow: 0 0 20px var(--primary-glow);
        }

        @keyframes loadProgress {
            0% { width: 0%; }
            100% { width: 100%; }
        }

        .loading-text {
            font-family: var(--font-mono);
            color: var(--primary);
            font-size: 14px;
            margin-top: 20px;
            letter-spacing: 2px;
        }

        .loading-text::after {
            content: '';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes dots {
            0%, 20% { content: ''; }
            40% { content: '.'; }
            60% { content: '..'; }
            80%, 100% { content: '...'; }
        }

        html { scroll-behavior: smooth; }
        body {
            background-color: transparent;
            color: var(--text-color);
            font-family: var(--font-main);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
        h1, h2, h3, h4, h5, h6 { color: var(--text-light); font-family: var(--font-heading); font-weight: 600; }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
        .section-padding { padding: 100px 0; }
        .mono-text { font-family: var(--font-mono); font-size: 0.9em; color: var(--primary); }

        /* Navbar */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            padding: 20px 0;
            transition: all 0.3s ease;
        }

        header.scrolled {
            background: rgba(3, 3, 3, 0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--card-border);
            padding: 15px 0;
        }

        .header-inner { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: #fff; }
        .logo span { color: var(--primary); }

        nav { display: flex; gap: 30px; }
        .nav-link { font-family: var(--font-mono); font-size: 14px; color: var(--text-color); font-weight: 500;}
        .nav-link:hover { color: #fff; }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 80px; 
        }

        /* Hero Layout Grid */
        .hero-layout {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 40px;
            align-items: center;
            width: 100%;
        }

        .hero-text-content {
            position: relative;
            z-index: 2;
        }

        .hero-subtitle {
            font-family: var(--font-mono);
            color: var(--primary);
            font-size: 18px;
            display: block;
            margin-bottom: 20px;
            opacity: 0;
            animation: fadeInUp 0.6s ease forwards;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-title {
            font-size: clamp(40px, 8vw, 90px); 
            line-height: 1.1;
            margin-bottom: 30px;
            font-weight: 700;
            opacity: 0;
            animation: fadeInUp 0.6s ease 0.2s forwards;
        }

        .typing-container {
            font-size: clamp(24px, 4vw, 42px);
            min-height: 60px;
            margin-bottom: 30px;
            font-family: var(--font-heading);
            font-weight: 600;
            color: var(--text-light);
            opacity: 0;
            animation: fadeInUp 0.6s ease 0.4s forwards;
        }

        #typing {
            border-right: 3px solid var(--primary);
            padding-right: 8px;
        }

        .hero-desc {
            font-size: 18px;
            line-height: 1.8;
            max-width: 600px;
            margin-bottom: 40px;
            opacity: 0;
            color: #e0e0e0;
            animation: fadeInUp 0.6s ease 0.6s forwards;
        }

        .hero-actions {
            display: flex;
            gap: 20px;
            align-items: center;
            flex-wrap: wrap;
            opacity: 0;
            animation: fadeInUp 0.6s ease 0.8s forwards;
        }

        /* portrait box */
        .hero-image-wrapper {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            animation: fadeInUp 0.8s ease 1s forwards; /* Delays appearance */
        }

        .cyber-frame {
            /* desktop */
            width: 400px;
            height: 500px;
            position: relative;
            z-index: 10;
        }

        /* The main image box */
        .cyber-frame-inner {
            width: 100%;
            height: 100%;
            border: 2px solid var(--primary); /* Gold border */
            border-radius: 4px;
            overflow: hidden;
            position: relative;
            background: rgba(10, 10, 10, 0.5);
            box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .cyber-frame-inner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(20%) contrast(110%); 
            transition: all 0.5s ease;
        }

        .cyber-frame:hover .cyber-frame-inner img {
            filter: grayscale(0%) contrast(100%);
            transform: scale(1.03);
        }
        
        .cyber-frame:hover .cyber-frame-inner {
            transform: translate(-5px, -5px);
            box-shadow: 5px 5px 30px rgba(251, 191, 36, 0.3);
        }

        /* Decorative offset outline */
        .cyber-frame::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            width: 100%;
            height: 100%;
            border: 1px solid rgba(255, 255, 255, 0.2);
            z-index: -1;
            transition: transform 0.4s ease;
        }

        .cyber-frame:hover::before {
            transform: translate(5px, 5px);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* Corner accents for tech feel */
        .corner-accent {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--primary);
            z-index: 20;
            box-shadow: 0 0 10px var(--primary);
        }
        .corner-tl { top: -2px; left: -2px; }
        .corner-br { bottom: -2px; right: -2px; }

        /* buttonss */
        .btn {
            padding: 14px 28px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 2px solid var(--primary);
            color: var(--primary);
            background: rgba(0,0,0,0.5);
            transition: all 0.3s ease;
            display: inline-block;
        }

        .btn:hover {
            background: var(--primary);
            color: #000;
            box-shadow: 0 0 20px var(--primary-glow);
            text-shadow: none;
        }

        .social-links { display: flex; gap: 15px; }
        .social-link {
            width: 44px;
            height: 44px;
            border: 1px solid rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            background: rgba(0,0,0,0.5);
        }
        
        .social-link:hover {
            border-color: var(--primary);
            background: var(--primary);
            color: #000;
            transform: translateY(-3px);
            text-shadow: none;
        }

        /* Glass Cards */
        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 30px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        }
        .glass-card:hover {
            border-color: rgba(251, 191, 36, 0.5);
            transform: translateY(-5px);
            background: rgba(30, 30, 30, 0.95);
        }

        /* Skills Grid */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 50px;
        }
        .skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
        .tag {
            font-family: var(--font-mono);
            font-size: 12px;
            padding: 6px 14px;
            background: rgba(251, 191, 36, 0.15);
            border: 1px solid rgba(251, 191, 36, 0.4);
            border-radius: 4px;
            color: var(--primary);
            font-weight: 500;
        }

        /* Projects */
        .projects-grid { display: grid; gap: 40px; margin-top: 50px; }
        .project-item { 
            display: grid; 
            grid-template-columns: 1fr; 
            gap: 30px; 
            transition: all 0.3s ease;
            background: rgba(10, 10, 10, 0.8);
            border: 1px solid var(--card-border);
            padding: 30px;
            border-radius: 16px;
        }
        @media (min-width: 768px) { .project-item { grid-template-columns: 1fr 1fr; } }
        
        .project-visual {
            height: 300px;
            background: #000;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255,255,255,0.05);
        }
        
        .project-content h3 { font-size: 28px; margin-bottom: 10px; color: #fff; }
        .project-content p { color: #ccc; margin-bottom: 20px; line-height: 1.7; }
        .project-links { margin-top: 25px; display: flex; gap: 15px; }

        /* Timeline */
        .timeline {
            border-left: 2px solid rgba(255,255,255,0.1);
            margin-left: 10px;
            padding-left: 40px;
            margin-top: 50px;
        }
        .timeline-item { position: relative; margin-bottom: 50px; }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -47px;
            top: 5px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #000;
            border: 2px solid var(--primary);
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(0,0,0,1);
        }
        .timeline-item:hover::before { background: var(--primary); box-shadow: 0 0 15px var(--primary); }
        .timeline-date { font-family: var(--font-mono); color: var(--primary); font-size: 14px; margin-bottom: 5px; font-weight: 600; }
        .timeline-title { font-size: 22px; margin-bottom: 5px; color: #fff; }
        .timeline-org { font-size: 16px; color: #aaa; margin-bottom: 15px; }

        /* Footer */
        footer {
            border-top: 1px solid var(--card-border);
            padding: 80px 0 40px;
            text-align: center;
            background: rgba(3, 3, 3, 0.9);
            backdrop-filter: blur(10px);
        }
        .footer-big-text {
            font-size: clamp(40px, 12vw, 120px);
            font-family: var(--font-heading);
            font-weight: 700;
            color: transparent;
            -webkit-text-stroke: 1px rgba(255,255,255,0.5);
            line-height: 1;
            margin: 30px 0 40px;
            transition: all 0.3s ease;
        }
        .footer-big-text:hover { color: var(--primary); -webkit-text-stroke: 1px var(--primary); }

        /* Reveal Animation */
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
        .reveal.visible { opacity: 1; transform: translateY(0); }

        /* mobile site */
        @media (max-width: 992px) {
            .hero-layout {
                grid-template-columns: 1fr; 
                text-align: center;
                gap: 50px;
            }

            .hero-text-content {
                order: 1; 
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .hero-desc { margin-left: auto; margin-right: auto; }
            .hero-actions { justify-content: center; }

            .hero-image-wrapper {
                order: 2; 
                margin-top: 0;
            }
            
            /* Mobile Image Size */
            .cyber-frame {
                width: 300px;
                height: 350px;
            }
        }
        /* --- RESUME EXTRACTION MODULE --- */
        .resume-container {
            display: flex;
            justify-content: center;
            margin-bottom: 50px;
            width: 100%;
        }

        .resume-box {
            position: relative;
            background: rgba(10, 10, 10, 0.6);
            border: 1px solid rgba(251, 191, 36, 0.3);
            padding: 20px 40px;
            backdrop-filter: blur(5px);
            /* Tech corners using clip-path */
            clip-path: polygon(
                0 0, 
                100% 0, 
                100% calc(100% - 15px), 
                calc(100% - 15px) 100%, 
                0 100%
            );
            transition: all 0.3s ease;
        }

        .resume-box:hover {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
        }

        /* The Animated Scan Line */
        .scan-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
            opacity: 0.5;
            animation: scan 3s linear infinite;
            pointer-events: none;
        }

        @keyframes scan {
            0% { top: 0%; opacity: 0; }
            10% { opacity: 0.8; }
            90% { opacity: 0.8; }
            100% { top: 100%; opacity: 0; }
        }

        @media (max-width: 768px) {
            .section-padding { padding: 80px 0; }
            nav { display: none; }
            .timeline { margin-left: 40px; }
        }
    