:root {
            /* PERMANENT DARK THEME */
            --primary: #00f3ff;
            --secondary: #bc13fe;
            --accent: #ffd700;
            --bg-dark: #050510;
            --glass: rgba(10, 20, 40, 0.85);
            --glass-border: rgba(0, 243, 255, 0.3);
            --text-main: #e0e6ed;
            --card-bg: rgba(0, 0, 0, 0.5);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
        }

        /* CUSTOM CURSOR */
        #cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary);
            border-radius: 50%;
            pointer-events: none;
            z-index: 10000;
            transform: translate(-50%, -50%);
            transition: width 0.2s, height 0.2s;
            mix-blend-mode: difference;
        }

        #cursor.hover {
            width: 50px;
            height: 50px;
            background: rgba(0, 243, 255, 0.2);
            border-color: var(--secondary);
        }

        body {
            font-family: 'Rajdhani', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            overflow-x: hidden;
            overflow-y: auto;
            width: 100vw;
        }

        /* 3D CANVAS */
        #canvas-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

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

        /* LOADING SCREEN */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 1s ease;
        }

        .loader-ring {
            width: 80px;
            height: 80px;
            border: 4px solid transparent;
            border-top: 4px solid var(--primary);
            border-right: 4px solid var(--secondary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
            box-shadow: 0 0 20px var(--primary);
        }

        #start-btn {
            margin-top: 20px;
            padding: 10px 30px;
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--primary);
            font-family: 'Orbitron';
            font-size: 1.2rem;
            cursor: none;
            display: none;
            transition: 0.3s;
        }

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

        /* UI OVERLAYS */
        #content-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
        }

        /* NAVIGATION */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(5, 5, 16, 0.95);
            border-bottom: 1px solid rgba(0, 243, 255, 0.1);
            backdrop-filter: blur(10px);
            z-index: 1000;
        }

        .logo {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.5rem;
            font-weight: 900;
            color: var(--primary);
            text-shadow: 0 0 10px var(--primary);
        }

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

        .nav-btn {
            background: transparent;
            border: 1px solid transparent;
            color: rgba(255, 255, 255, 0.7);
            font-family: 'Orbitron', sans-serif;
            cursor: none;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            padding: 8px 12px;
            transition: all 0.3s;
        }

        .nav-btn:hover,
        .nav-btn.active {
            color: #fff;
            border-bottom: 2px solid var(--primary);
            text-shadow: 0 0 8px var(--primary);
        }

        /* SECTIONS */
        section {
            min-height: 100vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 100px 20px;
            position: relative;
            /* CRITICAL FIX FOR NAVIGATION: Ensures nav bar doesn't cover content */
            scroll-margin-top: 80px;
        }

        .section-content {
            width: 100%;
            max-width: 1100px;
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
            filter: blur(10px);
        }

        .section-content.visible {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }

        .glass-panel {
            background: var(--glass);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
        }

        /* HOME SPECIFIC */
        #home .glass-panel {
            background: transparent;
            border: none;
            box-shadow: none;
            text-align: left;
            max-width: 1200px;
            width: 100%;
            padding-top: 120px;
        }

        /* HERO GRID LAYOUT */
        .hero-layout {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 50px;
            align-items: center;
            margin-bottom: 60px;
        }

        .hero-text {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero-visual {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .home-photo-frame {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            border: 4px solid var(--primary);
            overflow: hidden;
            box-shadow: 0 0 40px var(--primary);
            position: relative;
            background: #000;
            z-index: 2;
        }

        .home-photo-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* EYES ANIMATION */
        .eyes-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            position: absolute;
            top: -60px;
            z-index: 3;
        }

        .eye {
            width: 50px;
            height: 50px;
            background: #fff;
            border-radius: 50%;
            position: relative;
            box-shadow: 0 0 15px var(--primary);
            overflow: hidden;
        }

        .pupil {
            width: 20px;
            height: 20px;
            background: #000;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 2px solid var(--primary);
        }

        .timeline-item {
            border-left: 2px solid var(--primary);
            padding-left: 20px;
            margin-bottom: 30px;
            position: relative;
            text-align: left;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -6px;
            top: 0;
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary);
        }

        .quote-box {
            margin-top: 40px;
            padding: 30px;
            border: 1px solid var(--secondary);
            background: rgba(188, 19, 254, 0.1);
            position: relative;
            font-style: italic;
            text-align: center;
        }

        .quote-box i {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: #000;
            padding: 0 10px;
            color: var(--secondary);
            font-size: 1.5rem;
        }

        /* TYPOGRAPHY */
        h1 {
            font-size: 4rem;
            color: #fff;
            text-shadow: 0 0 20px var(--primary);
            line-height: 1.1;
            font-family: 'Orbitron';
            margin-bottom: 10px;
        }

        h2 {
            font-size: 2.2rem;
            color: var(--secondary);
            border-bottom: 2px solid var(--secondary);
            display: inline-block;
            margin-bottom: 20px;
            font-family: 'Orbitron';
        }

        h3 {
            color: var(--accent);
            margin: 15px 0 10px;
            font-family: 'Orbitron';
            letter-spacing: 1px;
        }

        p,
        li {
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        }

        /* BUTTONS */
        .action-btn {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 25px;
            background: rgba(0, 243, 255, 0.1);
            border: 1px solid var(--primary);
            color: #fff;
            font-family: 'Orbitron';
            text-transform: uppercase;
            font-size: 0.9rem;
            transition: 0.3s;
            cursor: none;
        }

        .action-btn:hover {
            background: var(--primary);
            color: #000;
            box-shadow: 0 0 15px var(--primary);
        }

        .action-btn.secondary {
            border-color: var(--secondary);
            background: rgba(188, 19, 254, 0.1);
        }

        .action-btn.secondary:hover {
            background: var(--secondary);
            box-shadow: 0 0 15px var(--secondary);
        }

        /* SKILLS */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 15px;
        }

        .skill-item {
            background: rgba(255, 255, 255, 0.03);
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            transition: 0.3s;
        }

        .skill-item:hover {
            border-color: var(--primary);
            transform: translateY(-5px);
            background: rgba(0, 243, 255, 0.05);
        }

        .skill-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        /* PROJECTS & GAMES */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .project-card {
            background: var(--card-bg);
            border: 1px solid #333;
            border-radius: 8px;
            overflow: hidden;
            transition: 0.4s;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            border-color: var(--primary);
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
        }

        .card-img {
            height: 160px;
            background: #111;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: #333;
            border-bottom: 1px solid #333;
            position: relative;
        }

        .card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
        }

        .card-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .card-content p {
            font-size: 0.9rem;
            color: #aaa;
            margin-bottom: 15px;
            flex-grow: 1;
            /* IMPROVED ALIGNMENT */
            text-align: justify;
            text-justify: inter-word;
        }

        .tech-stack {
            font-size: 0.75rem;
            color: var(--primary);
            margin-bottom: 15px;
            text-align: left;
        }

        .card-links {
            display: flex;
            gap: 10px;
            margin-top: auto;
        }

        /* CERTIFICATES */
        .cert-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .cert-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--accent);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            transition: 0.3s;
        }

        .cert-card:hover {
            background: rgba(255, 215, 0, 0.1);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
        }

        .cert-img-placeholder {
            width: 100%;
            height: 140px;
            background: #222;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 2rem;
            border: 1px dashed #444;
        }

        /* ABOUT / PROFILE */
        .profile-layout {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
        }

        .profile-img-container {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            border: 4px solid var(--primary);
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
            flex-shrink: 0;
            background: #222;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-info {
            max-width: 600px;
        }

        .social-links {
            display: flex;
            gap: 20px;
            margin-top: 20px;
            font-size: 1.5rem;
        }

        .social-icon {
            color: #fff;
            transition: 0.3s;
        }

        .social-icon:hover {
            color: var(--primary);
            transform: translateY(-3px);
            text-shadow: 0 0 10px var(--primary);
        }

        /* EXPERIENCE SECTION STYLES */
        .experience-timeline {
            position: relative;
            padding-left: 30px;
            border-left: 2px solid rgba(0, 243, 255, 0.3);
        }

        .experience-item {
            position: relative;
            margin-bottom: 40px;
        }

        .experience-item::before {
            content: '';
            position: absolute;
            left: -36px;
            top: 5px;
            width: 14px;
            height: 14px;
            background: var(--bg-dark);
            border: 2px solid var(--primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary);
        }

        .experience-date {
            color: var(--primary);
            font-size: 0.9rem;
            margin-bottom: 5px;
            font-family: 'Orbitron', sans-serif;
        }

        .experience-role {
            font-size: 1.4rem;
            color: #fff;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .experience-company {
            color: var(--secondary);
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: inline-block;
            border-bottom: 1px dashed var(--secondary);
        }

        .experience-desc {
            color: #ccc;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* CHARACTER DIALOGUE */
        #character-dialogue {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 320px;
            background: rgba(0, 10, 20, 0.95);
            border: 1px solid var(--primary);
            border-left: 4px solid var(--primary);
            color: var(--primary);
            padding: 15px;
            font-family: 'Rajdhani', monospace;
            border-radius: 0 15px 0 0;
            box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
            transform: translateY(150%);
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 200;
            pointer-events: none;
        }

        #character-dialogue.visible {
            transform: translateY(0);
        }

        /* ANIMATIONS */
        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            h1 { font-size: 2.8rem; text-align: center; }
            h2 { font-size: 1.5rem; display: block; text-align: center; border: none; }
            h4 { text-align: center; }
            
            #home .glass-panel {
                text-align: center;
                padding-top: 100px;
            }

            .hero-layout {
                grid-template-columns: 1fr; /* Stack vertically */
                gap: 40px;
            }

            .hero-visual {
                order: -1; /* Move photo to top on mobile */
                margin-bottom: 20px;
            }
            
            .home-photo-frame {
                width: 200px;
                height: 200px;
            }
            
            .eyes-container {
                position: relative; /* Reset position for mobile flow */
                top: 0;
            }

            .action-btn-container {
                display: flex;
                justify-content: center;
                gap: 15px;
            }
            
            p { text-align: center; }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .profile-layout {
                flex-direction: column;
                text-align: center;
            }

            #character-dialogue {
                width: calc(100% - 40px);
                bottom: 20px;
                right: 20px;
            }

            section {
                padding: 80px 15px;
            }

            .glass-panel {
                padding: 25px 15px;
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .projects-grid {
                display: flex;
                flex-direction: column;
                width: 100%;
                max-width: 400px;
                gap: 20px;
                margin: 0 auto;
            }

            .project-card {
                width: 100%;
            }

            h2,
            h3 {
                text-align: center;
            }

            .section-content {
                width: 100%;
            }
        }

        #mobile-menu-btn {
            display: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 101;
        }

        @media (max-width: 768px) {
            #mobile-menu-btn {
                display: block;
            }

            .nav-links.mobile-active {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 0;
                right: 0;
                width: 220px;
                height: 100vh;
                background: #000;
                padding-top: 80px;
                border-left: 1px solid var(--primary);
            }
        }