:root {
            --primary: #0033ff;
            --primary-glow: rgba(0, 51, 255, 0.4);
            --bg-dark: #010010;
            --card-bg: rgba(10, 10, 35, 0.8);
            --text-main: #ffffff;
            --text-dim: #aeb5d9;
            --accent: #3b82f6;
            --sidebar-width: clamp(240px, 20vw, 300px);
        }

        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
            font-family: 'Poppins', sans-serif; 
        }
        
        body {
            background: var(--bg-dark);
            color: var(--text-main);
            overflow-x: hidden;
            min-height: 100vh;
            display: flex;
            flex-direction: column; /* Mobile first stack */
        }

        /* --- Ambient Background --- */
        .bg-glow {
            position: fixed;
            inset: 0;
            background: 
                radial-gradient(circle at 15% 20%, #1a1a50aa, transparent 40%),
                radial-gradient(circle at 85% 70%, #0033ff44, transparent 40%);
            filter: blur(80px); /* Slightly reduced blur for mobile performance */
            z-index: -2;
        }

        .grid-overlay {
            position: fixed;
            inset: 0;
            background-image: linear-gradient(rgba(10, 10, 42, 0.2) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(10, 10, 42, 0.2) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: -1;
        }

        /* --- Mobile Overlay (Active when menu is open) --- */
        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }

        /* --- Sidebar (Mobile First) --- */
        nav.sidebar {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: 280px; /* Fixed reasonable width for mobile off-canvas */
            background: rgba(2, 2, 20, 0.9);
            backdrop-filter: blur(15px);
            border-right: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            padding: 2.5rem 1.5rem;
            z-index: 1000;
            transform: translateX(-100%); /* Hidden by default on mobile */
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
        }

        nav.sidebar.active {
            transform: translateX(0);
        }

        .profile-container {
            text-align: center;
            margin-bottom: 2rem;
        }

        .profile-img {
            width: 100%;
            max-width: 100px;
            aspect-ratio: 1 / 1;
            border-radius: 50%;
            border: 3px solid var(--primary);
            padding: 5px;
            box-shadow: 0 0 20px var(--primary-glow);
            object-fit: cover;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            color: var(--text-dim);
            text-decoration: none;
            border-radius: 12px;
            transition: 0.3s;
            font-size: 0.95rem;
        }

        .nav-links a i { width: 25px; font-size: 1.1rem; }
        .nav-links a span { margin-left: 10px; }

        .nav-links a:hover, .nav-links a.active {
            background: rgba(0, 51, 255, 0.15);
            color: #fff;
            transform: translateX(5px);
        }

        /* --- Mobile Toggle Button --- */
        .mobile-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 2000;
            background: var(--primary);
            width: 3rem;
            height: 3rem;
            border-radius: 12px;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 15px var(--primary-glow);
            transition: transform 0.2s;
        }

        .mobile-toggle:active {
            transform: scale(0.95);
        }

        /* --- Main Content (Mobile First) --- */
        main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5rem 1.5rem 6rem 1.5rem; /* Extra top/bottom padding for mobile toggle & footer */
            width: 100%;
        }

        .hero-card {
            width: 100%;
            max-width: 100%;
            background: var(--card-bg);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 2.5rem 1.5rem;
            backdrop-filter: blur(20px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            position: relative;
            animation: slideUp 0.8s ease-out;
            text-align: center; /* Center text on mobile */
        }

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

        .terminal-dots {
            position: absolute;
            top: 1.2rem;
            left: 1.5rem;
            display: flex;
            gap: 8px;
        }

        .dot { width: 12px; height: 12px; border-radius: 50%; }
        .red { background: #ff5f56; }
        .yellow { background: #ffbd2e; }
        .green { background: #27c93f; }

        .code-snippet {
            font-family: 'JetBrains Mono', monospace;
            color: var(--accent);
            font-size: 0.85rem;
            margin: 1.5rem 0;
            opacity: 0.7;
            text-align: left; /* Keep code left-aligned even if text is centered */
        }

        .hero-card h1 {
            font-size: 2rem; /* Scaled down for mobile */
            font-weight: 600;
            margin: 0.5rem 0 1rem;
            line-height: 1.2;
        }

        .hero-card h1 span#profession {
            color: var(--accent);
            border-right: 3px solid var(--accent);
            padding-right: 5px;
            animation: cursorBlink 1s infinite;
        }

        @keyframes cursorBlink { 50% { border-color: transparent; } }

        .hero-card p {
            color: var(--text-dim);
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        /* --- Buttons --- */
        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: var(--primary);
            color: white;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            transition: 0.3s;
            box-shadow: 0 10px 20px var(--primary-glow);
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px var(--primary-glow);
            background: #1a4aff;
        }

        /* --- Particles --- */
        .particle {
            position: fixed;
            background: var(--primary);
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
            opacity: 0.4;
        }

        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 1rem;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-dim);
            background: rgba(1, 0, 16, 0.8);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.05);
            z-index: 100;
        }

        /* =========================================
           RESPONSIVE BREAKPOINTS
           ========================================= */

        /* --- Tablet (768px and up) --- */
        @media (min-width: 768px) {
            .hero-card {
                padding: 3.5rem;
                text-align: left; /* Align back to left for larger screens */
            }

            .hero-card h1 {
                font-size: 2.8rem;
            }

            .hero-card p {
                font-size: 1.1rem;
            }

            .code-snippet {
                font-size: 1rem;
            }
        }

        /* --- Desktop (1024px and up) --- */
        @media (min-width: 1024px) {
            body {
                flex-direction: row; /* Switch back to side-by-side layout */
            }

            .mobile-toggle {
                display: none; /* Hide hamburger menu on desktop */
            }

            .sidebar-overlay {
                display: none !important; /* Never show overlay on desktop */
            }

            nav.sidebar {
                transform: translateX(0); /* Always show sidebar */
                width: var(--sidebar-width);
            }
 /* d */
            main {
                margin-left: var(--sidebar-width); /* Push content to right of sidebar */
                padding: 3rem;
            }

            .hero-card {
                max-width: 850px;
            }

            .hero-card h1 {
                font-size: 3.5rem;
            }

            footer {
                width: calc(100% - var(--sidebar-width));
                left: var(--sidebar-width);
            }
            
            .bg-glow {
                filter: blur(120px); /* Restore full blur on powerful devices */
            }
        }