/* ==========================================================================
   SerhatOS - Cyberpunk Web Desktop Operating System Stylesheet
   Author: Serhat Baykal
   Features: Glassmorphism UI, Neon Glowing Accents, Scanlines, Theme Engines
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root CSS Variables & Theme Engines
   -------------------------------------------------------------------------- */
:root {
    --bg-primary: #0a0b10;
    --glass-bg: rgba(15, 17, 26, 0.75);
    --glass-border: rgba(0, 240, 255, 0.25);
    --glass-header: rgba(20, 24, 38, 0.85);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.15);
    
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-green: #00ff66;
    --neon-yellow: #ffcc00;
    --neon-purple: #b026ff;
    --neon-blue: #0088ff;
    --neon-orange: #ff6600;
    
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-sans: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --taskbar-height: 48px;
    --window-radius: 12px;
}

/* Theme 1: Cyberpunk Neon */
body.theme-cyberpunk {
    --bg-primary: #060810;
    --glass-bg: rgba(12, 14, 25, 0.8);
    --glass-border: rgba(0, 240, 255, 0.3);
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.2);
    --accent-glow: var(--neon-cyan);
}

/* Theme 2: Matrix Digital Rain */
body.theme-matrix {
    --bg-primary: #020b05;
    --glass-bg: rgba(5, 20, 10, 0.85);
    --glass-border: rgba(0, 255, 102, 0.35);
    --glass-header: rgba(8, 30, 15, 0.9);
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 102, 0.25);
    --accent-glow: var(--neon-green);
    --neon-cyan: #00ff66;
}

/* Theme 3: Retrowave Sunset */
body.theme-retrowave {
    --bg-primary: #120024;
    --glass-bg: rgba(30, 10, 45, 0.82);
    --glass-border: rgba(255, 0, 127, 0.35);
    --glass-header: rgba(45, 15, 65, 0.9);
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 127, 0.25);
    --accent-glow: var(--neon-magenta);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

input, textarea, select, .code-display, .terminal-output, .console-logs, .telsiz-log-box, .about-body, .web-body, .contact-body {
    user-select: text;
    -webkit-user-select: text;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Canvas Background */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* CRT Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scanlines.disabled {
    opacity: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   3. Desktop & Icon Grid
   -------------------------------------------------------------------------- */
.desktop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--taskbar-height));
    z-index: 1;
    overflow: hidden;
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: 105px;
    gap: 15px;
    padding: 25px;
    width: min-content;
    max-height: 100%;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-icon:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.25);
}

.desktop-icon .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 6px;
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.glow-cyan { color: var(--neon-cyan); box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3); }
.glow-magenta { color: var(--neon-magenta); box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.3); }
.glow-green { color: var(--neon-green); box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.3); }
.glow-yellow { color: var(--neon-yellow); box-shadow: inset 0 0 10px rgba(255, 204, 0, 0.3); }
.glow-purple { color: var(--neon-purple); box-shadow: inset 0 0 10px rgba(176, 38, 255, 0.3); }
.glow-blue { color: var(--neon-blue); box-shadow: inset 0 0 10px rgba(0, 136, 255, 0.3); }
.glow-orange { color: var(--neon-orange); box-shadow: inset 0 0 10px rgba(255, 102, 0, 0.3); }
.glow-pink { color: #ff3399; box-shadow: inset 0 0 10px rgba(255, 51, 153, 0.3); }

.desktop-icon .icon-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   4. Glassmorphic Window Architecture
   -------------------------------------------------------------------------- */
.glass-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--window-radius);
    box-shadow: var(--glass-shadow);
    z-index: 10;
    min-width: 320px;
    min-height: 240px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

/* Default Desktop Window Dimensions */
#explorerWin { width: 900px; height: 600px; top: 50px; left: 100px; }
#ideWin { width: 950px; height: 620px; top: 70px; left: 180px; }
#aiWin { width: 780px; height: 500px; top: 100px; left: 240px; }
#telsizWin { width: 820px; height: 560px; top: 80px; left: 280px; }
#themeWin { width: 680px; height: 480px; top: 120px; left: 320px; }
#webShowcaseWin { width: 860px; height: 550px; top: 90px; left: 220px; }
#aboutWin { width: 750px; height: 520px; top: 110px; left: 200px; }
#contactWin { width: 600px; height: 440px; top: 140px; left: 300px; }

.glass-window.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.glass-window.active {
    border-color: var(--accent-glow);
    box-shadow: var(--glass-shadow), 0 0 25px rgba(0, 240, 255, 0.25);
}

.glass-window.minimized {
    opacity: 0 !important;
    transform: scale(0.7) translateY(200px) !important;
    pointer-events: none !important;
}

.glass-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--taskbar-height)) !important;
    border-radius: 0 !important;
}

/* Window Header */
.window-header {
    height: 38px;
    background: var(--glass-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: move;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
}

.window-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.window-title i {
    font-size: 16px;
}
.icon-cyan { color: var(--neon-cyan); }
.icon-magenta { color: var(--neon-magenta); }
.icon-green { color: var(--neon-green); }
.icon-yellow { color: var(--neon-yellow); }
.icon-purple { color: var(--neon-purple); }
.icon-blue { color: var(--neon-blue); }
.icon-orange { color: var(--neon-orange); }
.icon-pink { color: #ff3399; }

.window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.win-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

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

.win-btn.close:hover {
    background: #ff3b30;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.5);
}

/* Window Body */
.window-body {
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;
    position: relative;
}

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

.resize-handle::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Window App 1: Project Explorer
   -------------------------------------------------------------------------- */
.explorer-body {
    display: flex;
    height: 100%;
}

.explorer-sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
}

.sidebar-category-title {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 8px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu li {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.sidebar-menu li i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--neon-cyan);
}

.sidebar-menu li:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
}

.sidebar-menu li.active {
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.sidebar-menu li .badge {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.explorer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.explorer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: border 0.2s ease;
}

.search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
}

.projects-container {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.projects-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.projects-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projects-container.list-view .project-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.projects-container.list-view .project-card-header {
    margin-bottom: 0;
    min-width: 200px;
}

.projects-container.list-view .project-card p {
    margin-bottom: 0;
    flex: 1;
    -webkit-line-clamp: 2;
}

.projects-container.list-view .project-tags {
    margin-bottom: 0;
}

.projects-container.list-view .project-actions {
    min-width: 140px;
}

.project-card {
    background: rgba(20, 24, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.15);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.project-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.project-title-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.project-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
}

.tag {
    font-size: 10px;
    font-weight: 600;
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.proj-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.proj-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* --------------------------------------------------------------------------
   6. Window App 2: Code IDE
   -------------------------------------------------------------------------- */
.ide-body {
    display: flex;
    height: 100%;
    background: #0d0e15;
}

.ide-file-tree {
    width: 220px;
    background: #08090e;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.tree-header {
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tree-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.tree-file-item {
    padding: 6px 14px;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tree-file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tree-file-item.active {
    background: rgba(255, 0, 127, 0.15);
    color: var(--neon-magenta);
    border-left: 2px solid var(--neon-magenta);
}

.ide-main-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ide-tabs {
    height: 36px;
    background: #08090e;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.ide-tab {
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 12px;
    color: var(--text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
}

.ide-tab.active {
    background: #0d0e15;
    color: var(--neon-cyan);
    border-top: 2px solid var(--neon-cyan);
}

.ide-code-container {
    flex: 1;
    display: flex;
    overflow: auto;
    font-family: var(--font-code);
    font-size: 13px;
    line-height: 1.6;
    background: #0d0e15;
}

.line-numbers {
    padding: 12px 10px;
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.code-display {
    padding: 12px 16px;
    flex: 1;
    overflow: visible;
    color: #e2e8f0;
}

/* Syntax Highlighting Tokens */
.kw { color: #ff79c6; font-weight: bold; } /* keyword */
.str { color: #f1fa8c; } /* string */
.fn { color: #50fa7b; } /* function */
.num { color: #bd93f9; } /* number */
.cmnt { color: #6272a4; font-style: italic; } /* comment */
.type { color: #8be9fd; } /* type */

.ide-console {
    height: 140px;
    background: #050609;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.console-header {
    padding: 6px 14px;
    background: #090a10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-run-btn {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.console-logs {
    flex: 1;
    padding: 8px 14px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 12px;
}

.log-info { color: var(--neon-cyan); }
.log-success { color: var(--neon-green); }
.log-warn { color: var(--neon-yellow); }

/* --------------------------------------------------------------------------
   7. Window App 3: Serhat AI Bot Terminal
   -------------------------------------------------------------------------- */
.ai-body {
    background: #05070a;
    font-family: var(--font-code);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.terminal-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.banner-ascii {
    color: var(--neon-green);
    font-size: 8px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.banner-welcome {
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 6px;
}

.banner-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    background: rgba(0, 255, 102, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 102, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.chip:hover {
    background: var(--neon-green);
    color: #000;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmd-line-entry {
    color: #fff;
}
.cmd-prompt { color: var(--neon-cyan); }
.bot-response {
    color: var(--neon-green);
    line-height: 1.5;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
}

.prompt {
    color: var(--neon-green);
    font-weight: bold;
    font-size: 13px;
}

.terminal-input-line input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-code);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   8. Window App 4: P2P Audio Telsiz Simulator
   -------------------------------------------------------------------------- */
.telsiz-body {
    background: #0c0e14;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telsiz-device {
    display: flex;
    gap: 16px;
}

.telsiz-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telsiz-screen-casing {
    background: #040508;
    border: 2px solid #1e293b;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
}

.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.led-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
}
.led-dot.rx.active { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.led-dot.tx.active { background: #ff3333; box-shadow: 0 0 8px #ff3333; }

.lcd-display {
    background: #021a0e;
    border: 1px solid var(--neon-green);
    border-radius: 6px;
    padding: 12px;
    color: var(--neon-green);
    font-family: var(--font-code);
    box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.2);
}

.lcd-channel {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.lcd-freq {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.lcd-details {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #00cc55;
    border-top: 1px dashed rgba(0, 255, 102, 0.3);
    padding-top: 4px;
}

.visualizer-container {
    background: #000;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#telsizCanvas {
    width: 100%;
    height: 80px;
}

.vis-label {
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--neon-cyan);
    margin-top: 4px;
    letter-spacing: 1px;
}

.telsiz-controls-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ch-btn:hover { background: rgba(0, 255, 102, 0.15); border-color: var(--neon-green); }
.ch-btn.active { background: var(--neon-green); color: #000; font-weight: bold; }

.telsiz-right {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptt-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ptt-button {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 4px solid #ff3366;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.8);
    transition: all 0.15s ease;
    outline: none;
}

.ptt-button:active, .ptt-button.pressed {
    transform: scale(0.95);
    background: #ff3366;
    box-shadow: 0 0 35px rgba(255, 51, 102, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.ptt-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ptt-inner i { font-size: 36px; margin-bottom: 4px; }
.ptt-inner span { font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.ptt-inner small { font-size: 9px; opacity: 0.8; }

.telsiz-actions {
    display: flex;
    gap: 8px;
}

.telsiz-action-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
}
.telsiz-action-btn:hover { background: rgba(0, 240, 255, 0.15); border-color: var(--neon-cyan); }

.node-status-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
}

.card-head {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.node-list { display: flex; flex-direction: column; gap: 4px; }

.node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

.node-item .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    margin-right: 6px;
}

.telsiz-log-box {
    height: 65px;
    background: #040508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--text-secondary);
}

.telsiz-log { margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   9. Window App 5: Theme Switcher
   -------------------------------------------------------------------------- */
.theme-body {
    padding: 20px;
}

.theme-picker-title {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.theme-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.theme-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
}

.theme-card.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.theme-preview {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bg-cyberpunk-prev { background: linear-gradient(135deg, #0d0f1d, #ff007f); }
.bg-matrix-prev { background: linear-gradient(135deg, #020b05, #00ff66); }
.bg-retrowave-prev { background: linear-gradient(135deg, #120024, #ff6600); }

.theme-badge {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.theme-info {
    padding: 12px;
}

.theme-info h4 { font-size: 13px; color: #fff; margin-bottom: 4px; }
.theme-info p { font-size: 11px; color: var(--text-secondary); }

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: 8px;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.toggle-btn {
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
}

.toggle-btn.active {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   10. Window App 6, 7, 8 (Web Showcase, About, Contact)
   -------------------------------------------------------------------------- */
.web-body { padding: 16px; }
.web-showcase-container { display: flex; flex-direction: column; gap: 16px; }
.web-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.web-header-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mac-dot { width: 10px; height: 10px; border-radius: 50%; }
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }
.url-text { font-family: var(--font-code); font-size: 11px; color: var(--text-muted); margin-left: 8px; }

.web-content { display: flex; padding: 16px; gap: 16px; }
.web-icon-large { font-size: 32px; width: 60px; height: 60px; background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.web-details { flex: 1; }
.tag-badge { font-size: 10px; background: rgba(255, 0, 127, 0.2); color: var(--neon-magenta); padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.web-details h3 { font-size: 16px; color: #fff; margin: 4px 0; }
.web-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.web-desc { font-size: 13px; color: var(--text-primary); margin-bottom: 12px; }
.web-tags-row { display: flex; gap: 6px; margin-bottom: 14px; }
.web-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--neon-cyan);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}
.web-launch-btn:hover { transform: translateY(-2px); box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }

/* About & Contact Styling */
.about-body { padding: 20px; }
.profile-header-card { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 16px; border-radius: 12px; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--neon-cyan); }
.profile-text h2 { font-size: 20px; color: #fff; }
.role-title { font-size: 13px; color: var(--neon-cyan); margin-bottom: 6px; }
.profile-badges { display: flex; gap: 10px; font-size: 11px; }
.badge-status { color: var(--neon-green); }
.badge-loc { color: var(--text-muted); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card { background: rgba(0,0,0,0.3); padding: 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.about-card h3 { font-size: 14px; color: var(--neon-cyan); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.skills-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }

.contact-body { padding: 24px; text-align: center; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.contact-btn { padding: 12px; border-radius: 8px; text-decoration: none; font-weight: bold; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.contact-btn.github { background: #24292e; border: 1px solid #444; }
.contact-btn.website { background: rgba(0, 240, 255, 0.2); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }

/* --------------------------------------------------------------------------
   11. Start Menu Overlay & Taskbar
   -------------------------------------------------------------------------- */
.start-menu-overlay {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 8px);
    left: 12px;
    width: 360px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--window-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
    z-index: 100000 !important;
    overscroll-behavior: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.start-menu-overlay.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.start-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.start-avatar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--neon-cyan); }
.start-user-info h4 { font-size: 14px; color: #fff; }
.start-user-info p { font-size: 11px; color: var(--text-muted); }

.start-search { position: relative; margin-bottom: 14px; }
.start-search i { position: absolute; left: 10px; top: 10px; color: var(--text-muted); }
.start-search input { width: 100%; padding: 8px 12px 8px 32px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: #fff; outline: none; font-size: 12px; }

.start-section-title { font-family: var(--font-heading); font-size: 9px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 8px; }

.start-apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.start-app-item { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; transition: background 0.2s ease; }
.start-app-item:hover { background: rgba(0, 240, 255, 0.12); }
.start-app-item .app-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 4px; }
.start-app-item span { font-size: 11px; color: var(--text-primary); text-align: center; }

.start-footer { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 10px; }
.start-footer-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary); padding: 6px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; }
.start-footer-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.start-footer-btn.shutdown:hover { background: #ff3366; color: #fff; }

/* Bottom Taskbar */
.taskbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: var(--taskbar-height);
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 240, 255, 0.25);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}

.start-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.start-btn-logo { width: 18px; height: 18px; border-radius: 50%; }

.quick-launch { display: flex; gap: 4px; border-right: 1px solid rgba(255, 255, 255, 0.1); padding-right: 8px; }
.pin-btn { width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent; color: var(--text-secondary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pin-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--neon-cyan); }

.taskbar-tabs { flex: 1; display: flex; gap: 6px; overflow-x: auto; }

.taskbar-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.taskbar-tab.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--neon-cyan);
}

.system-tray { display: flex; align-items: center; gap: 10px; }
.tray-btn { width: 30px; height: 30px; border-radius: 6px; border: none; background: transparent; color: var(--text-secondary); font-size: 16px; cursor: pointer; }
.tray-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.tray-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 10px; color: var(--neon-green); background: rgba(0, 255, 102, 0.1); padding: 4px 8px; border-radius: 10px; }
.signal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }

.live-clock { font-family: var(--font-code); font-size: 12px; font-weight: 700; color: #fff; padding-left: 6px; }

/* --------------------------------------------------------------------------
   12. Mobile Responsive Engine (<768px & 375px-430px Screen Optimizations)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px), (pointer: coarse) {
    :root {
        --taskbar-height: 44px;
    }

    html, body {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    /* Desktop Container & Icons */
    .desktop-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100dvh - var(--taskbar-height)) !important;
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
        padding-bottom: 0 !important;
    }

    .desktop-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        height: 100%;
        gap: 8px;
        padding: 12px 12px calc(var(--taskbar-height) + 20px) 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        grid-auto-rows: min-content;
    }

    .desktop-icon {
        padding: 8px 4px;
    }

    .desktop-icon .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 4px;
    }

    .desktop-icon .icon-label {
        font-size: 10px;
        max-width: 100%;
    }

    /* Glass Windows Mobile Full-Screen Mode */
    #explorerWin, #ideWin, #aiWin, #telsizWin, #themeWin, #webShowcaseWin, #aboutWin, #contactWin,
    .glass-window,
    .glass-window.open,
    .glass-window.active,
    .glass-window.maximized {
        position: fixed !important;
        min-width: unset !important;
        min-height: unset !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: var(--taskbar-height) !important;
        height: calc(100dvh - var(--taskbar-height)) !important;
        max-height: calc(100dvh - var(--taskbar-height)) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .resize-handle {
        display: none !important;
    }

    .window-header {
        height: 40px;
        padding: 0 10px;
        touch-action: none;
        user-select: none;
        flex-shrink: 0;
    }

    .window-title {
        font-size: 11px;
        min-width: 0;
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow: hidden;
    }

    .window-title span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }

    .window-controls {
        gap: 4px;
    }

    .win-btn.maximize {
        display: none !important;
    }

    .win-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .window-body {
        height: calc(100% - 40px) !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* Smooth Touchscreen Scrolling for Window Containers */
    .window-body,
    .explorer-main,
    .projects-container,
    .ide-file-tree,
    .ide-code-container,
    .ide-console,
    .terminal-screen,
    .telsiz-body,
    .theme-body,
    .web-body,
    .about-body,
    .contact-body {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    /* Bottom Taskbar Mobile Scaling */
    .taskbar-container {
        height: var(--taskbar-height);
        padding: 0 6px;
        gap: 6px;
    }

    .start-btn {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
    }

    .start-btn-logo {
        width: 16px;
        height: 16px;
    }

    .quick-launch {
        gap: 2px;
        padding-right: 4px;
        flex-shrink: 0;
    }

    .pin-btn {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }

    .taskbar-tabs {
        gap: 3px;
    }

    .taskbar-tab {
        padding: 3px 6px;
        font-size: 10px;
        max-width: 90px;
        gap: 4px;
    }

    .taskbar-tab i {
        font-size: 12px;
    }

    .system-tray {
        gap: 4px;
        padding-left: 2px;
        flex-shrink: 0;
    }

    .tray-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .tray-status {
        padding: 3px 6px;
        font-size: 9px;
    }

    .tray-status span:not(.signal-dot) {
        display: none;
    }

    .live-clock {
        font-size: 10px;
        font-weight: 600;
        padding-left: 2px;
        white-space: nowrap;
    }

    /* Start Menu Overlay Mobile Scaling */
    .start-menu-overlay {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        bottom: calc(var(--taskbar-height) + 6px);
        max-height: calc(100dvh - var(--taskbar-height) - 16px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }

    .start-header {
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .start-avatar {
        width: 34px;
        height: 34px;
    }

    .start-user-info h4 {
        font-size: 13px;
    }

    .start-user-info p {
        font-size: 10px;
    }

    .start-search {
        margin-bottom: 10px;
    }

    .start-search input {
        padding: 6px 10px 6px 28px;
        font-size: 11px;
    }

    .start-search i {
        top: 8px;
        font-size: 12px;
    }

    .start-apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .start-app-item {
        padding: 6px;
    }

    .start-app-item .app-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 2px;
    }

    .start-app-item span {
        font-size: 10px;
    }

    .start-footer {
        gap: 6px;
    }

    .start-footer-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    /* Window Apps Optimizations */
    /* 1. Project Explorer */
    .explorer-body {
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .explorer-sidebar {
        display: flex !important;
        width: 100%;
        height: auto;
        padding: 6px 8px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        overflow-x: auto;
    }

    .sidebar-category-title {
        display: none;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 4px;
    }

    .sidebar-menu li {
        white-space: nowrap;
        padding: 4px 8px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .explorer-main {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .explorer-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 10px;
    }

    .projects-container.grid-view {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* 2. Code IDE */
    .ide-body {
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .ide-file-tree {
        width: 100%;
        max-height: 95px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px;
    }

    .ide-main-editor {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .ide-code-container {
        flex: 1;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ide-console {
        max-height: 100px;
        flex-shrink: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. AI Bot Terminal */
    .ai-body {
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .terminal-screen {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
    }

    .banner-ascii {
        font-size: 6px;
        line-height: 1.1;
        overflow-x: auto;
        white-space: pre;
        max-width: 100%;
    }

    .terminal-input-line {
        flex-wrap: wrap;
        gap: 4px;
    }

    .terminal-input-line input {
        min-width: 140px;
    }

    /* 4. P2P Audio Telsiz Simulator */
    .telsiz-body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
    }

    .telsiz-device {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .telsiz-left,
    .telsiz-right {
        width: 100%;
    }

    #telsizCanvas {
        width: 100% !important;
        height: 70px !important;
    }

    .ptt-wrapper {
        margin-bottom: 10px;
    }

    .ptt-button {
        width: 100%;
        height: 75px;
    }

    /* 5. Theme Switcher */
    .theme-body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .theme-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* 6. Web Showcases */
    .web-body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .web-content {
        flex-direction: column;
        gap: 10px;
    }

    .web-icon-large {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* 7. About Serhat & CV */
    .about-body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* 8. Contact */
    .contact-body {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }
}

/* Specific Optimizations for Narrow Mobile Screens (375px - 430px) */
@media (max-width: 430px) {
    .desktop-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px 8px calc(var(--taskbar-height) + 20px) 8px;
    }

    .start-btn span {
        display: none;
    }

    .start-btn {
        padding: 4px 6px;
    }

    .quick-launch {
        display: none;
    }

    .taskbar-tab {
        max-width: 70px;
    }

    .taskbar-tab span {
        max-width: 50px;
    }

    .live-clock {
        font-size: 9px;
    }
}
