#gui-mode-toggle {
    position: fixed;
    top: 50px;
    right: 25px;
    z-index: 10001;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

#gui-mode-toggle:hover {
    background: rgba(0, 255, 136, 0.18);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
}

body.gui-mode #gui-mode-toggle {
    background: rgba(0, 120, 215, 0.15);
    border-color: rgba(0, 120, 215, 0.5);
    color: #4cc2ff;
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

body.gui-mode #gui-mode-toggle:hover {
    background: rgba(0, 120, 215, 0.3);
    box-shadow: 0 0 12px rgba(0, 120, 215, 0.3);
}

body.gui-mode .top-bar,
body.gui-mode nav,
body.gui-mode .hero,
body.gui-mode .section,
body.gui-mode footer,
body.gui-mode .matrix-bg,
body.gui-mode::before {
    display: none !important;
}

body.gui-mode {
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

#win-desktop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    flex-direction: column;
}

body.gui-mode #win-desktop {
    display: flex;
}

.win-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, #1b3a5c 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, #0c2d48 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, #102a43 0%, transparent 50%),
        linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #132e53 55%, #0a1929 100%);
    z-index: 0;
}

.win-wallpaper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(125deg, transparent 20%, rgba(0, 120, 215, 0.06) 40%, transparent 60%),
        linear-gradient(240deg, transparent 30%, rgba(0, 180, 255, 0.04) 50%, transparent 70%);
    pointer-events: none;
}

.win-desktop-icons {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-template-rows: repeat(auto-fill, 95px);
    grid-auto-flow: column;
    gap: 4px;
    align-content: start;
    user-select: none;
}

.win-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.1s;
    text-align: center;
    gap: 4px;
}

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

.win-icon:active,
.win-icon.selected {
    background: rgba(255, 255, 255, 0.12);
    outline: 1px solid rgba(255, 255, 255, 0.2);
}

.win-icon-img {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.win-icon-label {
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    word-break: break-word;
    max-width: 80px;
}

.win-taskbar {
    position: relative;
    z-index: 9000;
    height: 40px;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.win-start-btn {
    width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.win-start-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.win-start-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.win-search {
    height: 30px;
    width: 260px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    cursor: text;
    flex-shrink: 0;
}

.win-search svg {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.win-search span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.win-taskbar-apps {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    padding-left: 4px;
    gap: 1px;
}

.win-taskbar-app {
    height: 40px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    padding: 0 4px;
}

.win-taskbar-app:hover {
    background: rgba(255, 255, 255, 0.08);
}

.win-taskbar-app.active {
    background: rgba(255, 255, 255, 0.06);
}

.win-taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #4cc2ff;
    border-radius: 1px;
}

.win-taskbar-app span {
    font-size: 20px;
}

.win-systray {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    padding-right: 4px;
    gap: 0;
}

.win-systray-icon {
    height: 40px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: default;
}

.win-systray-icon svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
}

.win-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 40px;
    cursor: default;
    border-radius: 3px;
    transition: background 0.15s;
}

.win-clock:hover {
    background: rgba(255, 255, 255, 0.08);
}

.win-clock-time {
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

.win-clock-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.2;
}

.win-show-desktop {
    width: 6px;
    height: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
}

.win-show-desktop:hover {
    background: rgba(255, 255, 255, 0.08);
}

.win-start-menu {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 560px;
    height: 580px;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9500;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.win-start-menu.open {
    display: flex;
    animation: startMenuOpen 0.18s ease-out;
}

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

.win-start-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.win-start-tiles {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
}

.win-start-tiles h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.win-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.win-tile {
    aspect-ratio: 1;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
    gap: 6px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.win-tile:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
}

.win-tile:active {
    transform: scale(0.97);
}

.win-tile-icon {
    font-size: 28px;
}

.win-tile-label {
    color: #fff;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
    font-weight: 400;
}

.win-start-apps {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.win-start-app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.1s;
}

.win-start-app-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.win-start-app-item span:first-child {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.win-start-app-item span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.win-start-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.win-start-bottom-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.1s;
}

.win-start-bottom-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.win-start-bottom-item span:first-child {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.win-start-bottom-item span:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.win-window {
    position: absolute;
    min-width: 420px;
    min-height: 300px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    animation: winOpen 0.22s ease-out;
}

@keyframes winOpen {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.win-window.closing {
    animation: winClose 0.15s ease-in forwards;
}

@keyframes winClose {
    to {
        opacity: 0;
        transform: scale(0.94);
    }
}

.win-window.focused {
    border-color: rgba(0, 120, 215, 0.4);
}

.win-titlebar {
    height: 32px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 6px 0 12px;
    cursor: default;
    flex-shrink: 0;
    user-select: none;
}

.win-window.focused .win-titlebar {
    background: #323232;
}

.win-titlebar-icon {
    font-size: 14px;
    margin-right: 8px;
}

.win-titlebar-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-window.focused .win-titlebar-title {
    color: #fff;
}

.win-titlebar-controls {
    display: flex;
    height: 100%;
    margin-left: auto;
}

.win-titlebar-btn {
    width: 46px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

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

.win-titlebar-btn.close:hover {
    background: #e81123;
    color: #fff;
}

.win-titlebar-btn svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.5;
}

.win-window-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
}

.win-window-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.win-window-content p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.win-window-content .win-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.win-window-content .win-content-tag {
    background: rgba(0, 120, 215, 0.15);
    color: #4cc2ff;
    border: 1px solid rgba(0, 120, 215, 0.3);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
}

.win-window-content .win-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.win-status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.win-status-badge.wip {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.win-status-badge.edu {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.win-about-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.win-about-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 120, 215, 0.2);
    border: 2px solid rgba(0, 120, 215, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.win-about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.win-about-info h2 {
    margin-bottom: 4px;
}

.win-about-info .subtitle {
    color: #4cc2ff;
    font-size: 13px;
    margin-bottom: 8px;
}

.win-about-info .bio {
    font-size: 12.5px;
}

.win-skills-section {
    margin-top: 16px;
}

.win-skills-section h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-weight: 500;
}

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

.win-skill-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.win-skill-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.win-context-menu {
    display: none;
    position: absolute;
    min-width: 220px;
    background: rgba(32, 32, 32, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 0;
    z-index: 20000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: ctxOpen 0.12s ease-out;
}

@keyframes ctxOpen {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.win-context-menu.open {
    display: block;
}

.win-ctx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.1s;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.win-ctx-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.win-ctx-item span:first-child {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.win-ctx-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.win-notification {
    position: absolute;
    bottom: 48px;
    right: 8px;
    width: 360px;
    background: rgba(30, 30, 30, 0.96);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 16px;
    z-index: 9800;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    animation: notifIn 0.2s ease-out;
    display: none;
}

.win-notification.show {
    display: block;
}

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

.win-notification h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 6px;
}

.win-notification p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
}

.win-window-content::-webkit-scrollbar {
    width: 8px;
}

.win-window-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.win-window-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.win-window-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.win-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 10;
}

.win-action-center {
    display: none;
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 360px;
    height: 500px;
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 9500;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    animation: startMenuOpen 0.18s ease-out;
}

.win-action-center.open {
    display: flex;
}

.win-ac-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.win-ac-header h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.win-ac-notifications {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.win-ac-notif-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 6px;
}

.win-ac-notif-item h5 {
    color: #4cc2ff;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.win-ac-notif-item p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    line-height: 1.3;
}

.win-ac-quick {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.win-ac-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
}

.win-ac-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.win-ac-toggle.active {
    background: #0078d7;
}

.win-ac-toggle span:first-child {
    font-size: 16px;
}

.win-ac-toggle span:last-child {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.win-ac-toggle.active span:last-child {
    color: #fff;
}

.win-ac-slider {
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.win-ac-slider span {
    font-size: 16px;
}

.win-ac-slider input[type="range"] {
    flex: 1;
    accent-color: #0078d7;
    height: 4px;
}
