        :root {
            --bg-dark: #1a1a22;
            --bg-header: rgba(25, 25, 35, 0.9);
            --bg-window: rgba(22, 22, 32, 0.92);
            --text-main: #e0e0e8;
            --text-dim: #8888a0;
            --accent-blue: #5ba0f5;
            --accent-green: #4eca8b;
            --accent-orange: #f0a050;
            --accent-red: #f06060;
            --dock-bg: rgba(20, 20, 30, 0.55);
            --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
            --shadow-active: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
            --radius-win: 12px;
            --radius-icon: 14px;
        }

        /* ===== SEO ===== */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

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

        /* Allow text selection in terminal output and resume */
        .terminal-output, .text-view-container, .profile-card {
            user-select: text;
        }

        /* Focus-visible for keyboard navigation */
        .dock-item:focus-visible, .mobile-app:focus-visible {
            outline: 2px solid var(--accent-blue);
            outline-offset: 3px;
            border-radius: var(--radius-icon);
        }

        body {
            font-family: 'Inter', system-ui, sans-serif;
            background: #000;
            color: var(--text-main);
            overflow: hidden;
            height: 100vh;
            width: 100vw;
        }

        /* ===== BOOT SCREEN ===== */
        #boot-screen {
            position: fixed;
            inset: 0;
            background: #000;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-family: 'JetBrains Mono', monospace;
            transition: opacity 1s ease;
        }


        .boot-log {
            color: #888;
            margin-top: 20px;
            font-size: 14px;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            text-align: center;
        }

        .boot-log span {
            animation: fadeLine 0.2s forwards;
            opacity: 0;
        }

        @keyframes fadeLine {
            to {
                opacity: 1;
            }
        }

        /* ===== DESKTOP ENV (≥769px) ===== */
        #desktop-env {
            height: 100%;
            display: flex;
            flex-direction: column;
            background: #000;
            position: relative;
            overflow: hidden;
        }

        /* Wallpaper Overlay — disabled to remove dark borders */

        /* ===== DESKTOP CLOCK WIDGET ===== */
        #desktop-clock {
            position: absolute;
            top: 40px;
            left: 40px;
            z-index: 5;
            pointer-events: none;
            color: rgba(255, 255, 255, 0.85);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        #clock-time {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 64px;
            font-weight: 600;
            letter-spacing: -2px;
            line-height: 1;
        }

        #clock-date {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 16px;
            font-weight: 500;
            margin-top: 6px;
            opacity: 0.7;
            letter-spacing: 0.5px;
        }

        #clock-greeting {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 14px;
            font-weight: 400;
            margin-top: 4px;
            opacity: 0.5;
            font-style: italic;
        }

        #clock-identity {
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 13px;
            font-weight: 500;
            margin-top: 12px;
            opacity: 0.55;
            letter-spacing: 0.8px;
            padding-top: 8px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            width: fit-content;
        }

        /* ===== ENVIRONMENT ENGINE ===== */
        #environment {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
            visibility: hidden;
        }

        #environment.dimmed {
            filter: brightness(0.55);
            opacity: 0.85;
        }

        .env-layer {
            position: absolute;
            inset: 0;
            will-change: transform;
            transform: translate3d(0, 0, 0);
            pointer-events: none;
            background-repeat: no-repeat;
        }

        .env-particles {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .env-particle {
            position: absolute;
            border-radius: 50%;
            will-change: transform, opacity;
            pointer-events: none;
        }

        /* Vignette overlay — disabled to remove dark borders */

        /* Top Bar */
        #top-bar {
            height: 36px;
            background: rgba(240, 241, 237, 0.5);
            backdrop-filter: blur(24px) saturate(150%);
            -webkit-backdrop-filter: blur(24px) saturate(150%);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            font-size: 13.5px;
            font-weight: 500;
            z-index: 500;
            position: relative;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            color: rgba(0, 0, 0, 0.85);
        }

        .bar-left {
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bar-logo {
            font-size: 16px;
            font-weight: 400;
            opacity: 0.8;
            font-family: serif;
        }

        .bar-center {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-weight: 500;
        }

        .bar-right {
            display: flex;
            align-items: center;
            gap: 12px;
            font-feature-settings: "tnum";
            font-variant-numeric: tabular-nums;
        }

        .bar-right .material-symbols-rounded {
            font-size: 16px;
            opacity: 0.7;
        }

        .battery-pct {
            font-size: 12px;
            font-weight: 500;
            opacity: 0.8;
        }

        /* Left Sidebar */
        #left-sidebar {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 72px;
            background: rgba(240, 241, 237, 0.75);
            backdrop-filter: blur(24px) saturate(150%);
            -webkit-backdrop-filter: blur(24px) saturate(150%);
            border-radius: 20px;
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
            z-index: 500;
        }

        .sidebar-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            background: transparent;
            border: none;
            cursor: pointer;
            width: 100%;
            transition: transform 0.2s cubic-bezier(0.3, 2, 0.6, 1);
        }

        .sidebar-item:hover {
            transform: scale(1.1);
        }

        .sidebar-item .app-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            font-size: 24px;
        }

        .sidebar-label {
            font-size: 9px;
            font-weight: 600;
            color: #555;
        }

        /* System Status Widget */
        #sys-widget {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 180px;
            background: rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(16px) saturate(120%);
            -webkit-backdrop-filter: blur(16px) saturate(120%);
            border-radius: 16px;
            padding: 12px 14px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 9px;
            color: rgba(255, 255, 255, 0.5);
            z-index: 5;
            line-height: 1.7;
            pointer-events: none;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        }

        /* Workspace & Windows */
        #workspace {
            flex: 1;
            position: relative;
            overflow: hidden;
            z-index: 10;
        }

        .window {
            position: absolute;
            width: 680px;
            height: 450px;
            background: var(--bg-window);
            backdrop-filter: blur(40px) saturate(150%);
            -webkit-backdrop-filter: blur(40px) saturate(150%);
            border-radius: var(--radius-win);
            box-shadow: var(--shadow-lg);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, 0.06);
            animation: winOpen 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            min-width: 300px;
            min-height: 200px;
            resize: both;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
        }

        .window:not(.active) .win-header {
            opacity: 0.65;
        }

        .window.maximized {
            left: 0 !important;
            top: 0 !important;
            width: 100% !important;
            height: 100% !important;
            border-radius: 0;
            resize: none;
        }

        .window.minimized {
            transform: scale(0.2) translateY(100vh) !important;
            opacity: 0 !important;
            pointer-events: none;
        }

        .window.active {
            box-shadow: var(--shadow-active);
            border-color: rgba(255, 255, 255, 0.08);
        }

        @keyframes winOpen {
            from {
                opacity: 0;
                transform: scale(0.95) translateY(10px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .win-header {
            height: 46px;
            background: var(--bg-header);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            cursor: move;
        }

        .win-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
        }

        .win-controls {
            position: absolute;
            right: 10px;
            display: flex;
            gap: 8px;
        }

        .win-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: var(--text-dim);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.1s;
        }

        .win-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .win-btn.close:hover {
            background: var(--accent-red);
            color: white;
        }

        .win-content {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        /* Dock */
        #dock-container {
            position: absolute;
            bottom: 16px;
            width: 100%;
            display: flex;
            justify-content: center;
            z-index: 500;
            pointer-events: none;
            /* Let clicks pass through empty areas */
        }

        #dock {
            background: var(--dock-bg);
            backdrop-filter: blur(40px) saturate(180%);
            -webkit-backdrop-filter: blur(40px) saturate(180%);
            padding: 10px 16px;
            border-radius: 22px;
            display: flex;
            gap: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
            pointer-events: auto;
        }

        .dock-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: transform 0.2s cubic-bezier(0.3, 2, 0.6, 1);
            position: relative;
            background: transparent;
            border: none;
            outline: none;
        }

        .dock-item:hover {
            transform: translateY(-8px) scale(1.1);
        }

        .dock-item:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 14px);
            background: rgba(20, 20, 30, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: rgba(255, 255, 255, 0.9);
            font-size: 12px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 8px;
            white-space: nowrap;
            pointer-events: none;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .app-icon {
            width: 52px;
            height: 52px;
            border-radius: 22.5%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 26px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
            background: #fff;
            transition: box-shadow 0.2s ease, transform 0.2s ease;
        }

        .dock-item:active .app-icon, .mobile-app:active .app-icon {
            transform: scale(0.92);
        }

        .icon-term {
            background: linear-gradient(135deg, #434343 0%, #000000 100%);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
        }

        .icon-files {
            background: linear-gradient(135deg, #FFD000 0%, #F59600 100%);
            box-shadow: 0 8px 20px rgba(245, 150, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .icon-profile {
            background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
            box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .icon-brain {
            background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
            box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .icon-code {
            background: linear-gradient(135deg, #64748B 0%, #334155 100%);
            box-shadow: 0 8px 20px rgba(51, 65, 85, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .icon-trash {
            background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
            color: #64748B;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -1px 2px rgba(0, 0, 0, 0.05);
        }

        .icon-settings {
            background: linear-gradient(135deg, #9CA3AF 0%, #4B5563 100%);
            box-shadow: 0 8px 20px rgba(75, 85, 99, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .icon-mail {
            background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
        }

        .dock-sub-dot {
            width: 4px;
            height: 4px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 50%;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .dock-item.running .dock-sub-dot {
            opacity: 1;
        }

        /* ===== SPECIFIC APP STYLES ===== */
        /* Terminal */
        .term-container {
            height: 100%;
            background: #12121a;
            color: #c8d0d8;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            cursor: text;
        }

        .term-output {
            flex: 1;
            overflow-y: auto;
            white-space: pre-wrap;
            margin-bottom: 8px;
        }

        .term-line {
            margin-bottom: 2px;
            line-height: 1.4;
        }

        .cmd-line {
            display: flex;
            align-items: center;
        }

        .prompt {
            color: var(--accent-green);
            margin-right: 8px;
            font-weight: bold;
        }

        .term-input {
            background: transparent;
            border: none;
            color: #d0d8e0;
            font-family: inherit;
            font-size: inherit;
            outline: none;
            flex: 1;
            caret-color: #44805e;
        }

        /* ===== AI TERMINAL MESSAGES ===== */
        .ai-msg {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            line-height: 1.6;
            margin: 4px 0;
            animation: aiFadeIn 0.3s ease;
        }

        .ai-msg .ai-prefix {
            color: #56d6c2;
            font-weight: 700;
        }

        .ai-msg .ai-body {
            color: #8899aa;
        }

        .ai-msg.ai-ready .ai-prefix {
            color: #4eca8b;
        }

        .ai-msg.ai-ready .ai-body {
            color: #4eca8b;
        }

        .ai-msg.ai-error .ai-body {
            color: #f06060;
        }

        .ai-msg.ai-response .ai-prefix {
            color: #ffb86c;
        }

        .ai-msg.ai-response .ai-body {
            color: #d0d8e0;
            white-space: pre-wrap;
        }

        .ai-msg.ai-thinking .ai-body {
            color: #56d6c2;
            opacity: 0.6;
        }

        .ai-thinking-text {
            animation: aiPulse 1.2s ease-in-out infinite;
        }

        /* AI Progress Bar */
        .ai-msg.ai-progress {
            margin: 2px 0;
        }

        .ai-progress-bar {
            font-family: 'JetBrains Mono', monospace;
            color: #56d6c2;
            font-size: 12px;
            letter-spacing: -0.5px;
        }

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

        @keyframes aiPulse {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        /* ===== SYSTEM NOTIFICATIONS ===== */
        .sys-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(22, 22, 32, 0.85);
            backdrop-filter: blur(20px) saturate(150%);
            -webkit-backdrop-filter: blur(20px) saturate(150%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 14px 18px;
            font-family: 'Inter', system-ui, sans-serif;
            font-size: 13px;
            color: var(--text-main);
            z-index: 9000;
            animation: notifSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
            max-width: 320px;
            pointer-events: auto;
        }

        .sys-notification.dismiss {
            animation: notifDismiss 0.3s ease forwards;
        }

        @keyframes notifSlide {
            from { opacity: 0; transform: translateX(80px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes notifDismiss {
            to { opacity: 0; transform: translateX(80px); }
        }

        /* Files */
        .files-container {
            height: 100%;
            background: var(--bg-window);
            padding: 16px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            grid-auto-rows: 100px;
            gap: 16px;
            overflow-y: auto;
        }

        .file-icon-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            border-radius: 8px;
            padding: 8px;
            transition: background 0.15s;
            cursor: pointer;
            text-align: center;
        }

        .file-icon-item:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .f-icon {
            font-size: 40px;
        }

        .f-name {
            font-size: 12px;
            color: #ddd;
            word-break: break-word;
            line-height: 1.3;
        }

        .color-folder {
            color: var(--accent-blue);
        }

        .color-file {
            color: #f0f0f0;
        }

        /* Projects */
        .projects-container {
            height: 100%;
            background: var(--bg-window);
            padding: 24px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            overflow-y: auto;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: transform 0.2s, background 0.2s, max-height 0.3s;
            cursor: pointer;
            overflow: hidden;
            aspect-ratio: 1 / 1;
        }

        .project-card:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateY(-4px);
        }

        .project-card.expanded {
            transform: none;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .project-title {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .project-tags span {
            font-size: 11px;
            background: rgba(53, 132, 228, 0.2);
            color: #8cb8f1;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
        }

        .project-desc {
            font-size: 13px;
            color: #aaa;
            line-height: 1.5;
            flex: 1; /* Pushes links to bottom */
        }

        .project-links {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }

        .project-details {
            display: none;
            margin-top: 12px;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 13px;
            color: #ccc;
            line-height: 1.6;
        }

        .project-details ul {
            margin: 8px 0;
            padding-left: 20px;
        }
        
        .project-details li {
            margin-bottom: 6px;
        }

        .project-card.expanded .project-details {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        .research-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(230, 126, 34, 0.15);
            color: #ffb86c;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-left: auto;
        }

        .p-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #fff;
            text-decoration: none;
            background: rgba(255, 255, 255, 0.1);
            padding: 6px 12px;
            border-radius: 6px;
            transition: background 0.15s;
        }

        .p-link:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .p-link .material-symbols-rounded {
            font-size: 16px;
        }

        /* Text Viewer */
        .text-view-container {
            height: 100%;
            background: #1a1a1a;
            color: #ccc;
            padding: 24px;
            font-family: 'JetBrains Mono', monospace;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.6;
            white-space: pre-wrap;
        }

        /* Boot Progress Bar */
        .boot-progress {
            width: 200px;
            height: 3px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            margin-top: 24px;
            overflow: hidden;
        }

        .boot-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #3584e4, #33d17a);
            border-radius: 2px;
            transition: width 0.4s ease;
        }

        /* Profile Card */
        .profile-card {
            height: 100%;
            padding: 32px;
            overflow-y: auto;
            background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%);
        }

        .profile-header {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-bottom: 28px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, #33d17a, #26a269);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            flex-shrink: 0;
            box-shadow: 0 4px 16px rgba(51, 209, 122, 0.2);
        }

        .profile-info h2 {
            color: #fff;
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .profile-info .tagline {
            color: #888;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .profile-info .location {
            color: #666;
            font-size: 13px;
        }

        .profile-links {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

        .profile-links a {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #aaa;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.15s;
        }

        .profile-links a:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .profile-section {
            margin-bottom: 20px;
        }

        .profile-section-title {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #6bb5ff;
            margin-bottom: 10px;
        }

        .profile-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .profile-skills span {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            color: #bbb;
        }

        .profile-edu {
            font-size: 14px;
            color: #ccc;
            line-height: 1.5;
        }

        .profile-edu .school {
            font-weight: 600;
            color: #fff;
        }

        .profile-edu .degree {
            color: #999;
            font-size: 13px;
        }

        /* ===== MOBILE MODE (≤768px) ===== */
        #mobile-env {
            display: none;
            height: 100%;
            flex-direction: column;
            background: #000;
            position: relative;
            overflow: hidden;
        }

        /* Mobile wallpaper background */
        #mobile-env::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url('../assets/wallpaper/mobile_bg.jpg');
            background-size: cover;
            background-position: center;
            z-index: -1;
            transition: opacity 3s ease-in-out;
        }

        @media (max-width: 768px) {
            #desktop-env {
                display: none;
            }

            #mobile-env {
                display: flex;
            }

            /* iOS-style status bar */
            .mobile-status-bar {
                height: 50px;
                display: flex;
                justify-content: space-between;
                align-items: flex-end;
                padding: 0 24px 8px;
                color: white;
                font-size: 14px;
                font-weight: 600;
                z-index: 50;
                background: transparent;
            }

            .mobile-status-right {
                display: flex;
                align-items: center;
                gap: 4px;
            }

            /* App grid — centered with glass cards */
            .app-grid {
                flex: 1;
                padding: 32px 28px;
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 24px;
                align-content: center;
                justify-items: center;
            }

            .mobile-app {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                color: white;
                cursor: pointer;
                -webkit-tap-highlight-color: transparent;
                transition: transform 0.15s;
            }

            .mobile-app:active {
                transform: scale(0.9);
            }

            .mobile-app .app-icon {
                width: 64px;
                height: 64px;
                border-radius: 18px;
                font-size: 32px;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
            }

            .mobile-app span {
                font-size: 13px;
                font-weight: 500;
                text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            }

            /* Mobile home indicator */
            .mobile-home-indicator {
                width: 134px;
                height: 5px;
                background: rgba(255, 255, 255, 0.3);
                border-radius: 3px;
                margin: 8px auto 12px;
            }

            /* Mobile Windows — slide up from bottom */
            .window {
                width: 100% !important;
                height: 100% !important;
                inset: 0 !important;
                border-radius: 0;
                box-shadow: none;
                border: none;
                z-index: 900 !important;
                animation: mobileWinOpen 0.3s ease-out;
            }

            @keyframes mobileWinOpen {
                from {
                    transform: translateY(100%);
                    opacity: 0.5;
                }

                to {
                    transform: translateY(0);
                    opacity: 1;
                }
            }

            .win-header {
                padding: 0 16px;
                justify-content: flex-start;
                height: 48px;
                background: var(--bg-dark);
            }

            .win-title {
                font-size: 16px;
            }

            .win-controls {
                display: none;
            }

            .back-btn {
                margin-right: 12px;
                font-size: 22px;
                cursor: pointer;
                display: block !important;
            }

            /* Hide desktop widgets on mobile */
            #sys-widget,
            #desktop-clock {
                display: none;
            }
        }

        .back-btn {
            display: none;
        }

        /* Hidden on desktop */

        /* Utility */
        .hidden {
            display: none !important;
        }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dock-item:active, .sidebar-item:active {
    transform: translateY(-4px) scale(0.95) !important;
}

/* ===== CSS LANDSCAPE ART ===== */
.css-tree {
    position: absolute;
    left: 12%;
    bottom: 20px;
    width: 300px;
    height: 400px;
    z-index: 10;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 130px;
    width: 40px;
    height: 180px;
    background: linear-gradient(to right, #4a3b32, #5c4a3d);
    border-radius: 5px 5px 0 0;
    z-index: 1;
}

.tree-leaves {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: #4a6b44;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 
        -70px 30px 0 -10px #3d5e38,
        70px 50px 0 -10px #52754b,
        -50px 90px 0 -20px #385433,
        50px 100px 0 -20px #4a6b44,
        0 120px 0 -30px #3d5e38,
        -30px -30px 0 -20px #52754b,
        30px -20px 0 -10px #4a6b44;
}

.css-lake {
    position: absolute;
    bottom: 220px;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to bottom, #89a8b5, #a3c1cc);
    z-index: -1;
    opacity: 0.7;
}

.css-path {
    position: absolute;
    bottom: 0;
    right: 40%;
    width: 180px;
    height: 200px;
    background: linear-gradient(to bottom, #a69986, #8c7e6c);
    clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
    opacity: 0.85;
}

.css-track {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #555;
    box-shadow: 0 8px 0 #444;
}

.css-train {
    position: absolute;
    bottom: 68px;
    right: 25%;
    display: flex;
    gap: 6px;
    opacity: 0.9;
}

.train-engine {
    width: 60px;
    height: 35px;
    background: linear-gradient(to bottom, #a33b3b, #7a2828);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.train-engine::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
}

.train-car {
    width: 80px;
    height: 35px;
    background: linear-gradient(to bottom, #a33b3b, #7a2828);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.train-car::before,
.train-car::after {
    content: '';
    width: 18px;
    height: 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    #environment,
    .env-layer,
    .env-particle {
        transition: none !important;
        animation: none !important;
    }

    .env-particles {
        display: none;
    }
}
