/* ========================================
   ELEGANT HACKER PORTFOLIO - CSS V3.0
   Author: Naufal Abrian Ismiyushar
   Professional Pentester Workspace
   ======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --accent-blue: #4184e4;
    --accent-blue-bright: #5a9fff;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-dim: #6e7681;
    --success: #3fb950;
    --error: #f85149;
    --warning: #d29922;
    --burp-orange: #ff6633;
    --msf-red: #e74c3c;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile */
    width: 100vw;
    position: fixed; /* Prevent scroll/stretch on mobile keyboard */
    top: 0;
    left: 0;
}

/* ===== MATRIX CANVAS (Enhanced) ===== */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    filter: blur(0.5px);
}

/* ===== DESKTOP ENVIRONMENT ===== */
#desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

/* Scanline effect for cool hacker vibe */
#desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.15;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* ===== TOP BAR ===== */
.top-bar {
    height: 36px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(22, 27, 34, 0.95) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(65, 132, 228, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    color: var(--accent-blue-bright);
    font-size: 18px;
    text-shadow: 0 0 10px rgba(90, 159, 255, 0.5);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(90, 159, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(90, 159, 255, 0.8), 0 0 30px rgba(90, 159, 255, 0.4);
    }
}

.username {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.separator {
    color: var(--text-dim);
    font-size: 12px;
}

.hostname {
    color: var(--text-dim);
    font-size: 11px;
}

.top-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.system-monitor {
    display: flex;
    gap: 16px;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.monitor-item {
    font-size: 10px;
    color: var(--text-dim);
}

.cpu-value, .ram-value, .net-value {
    color: var(--accent-blue-bright);
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.time {
    color: var(--text-secondary);
    font-weight: 500;
}

.network-icon {
    font-size: 14px;
}

/* ===== DESKTOP AREA ===== */
.desktop-area {
    padding: 30px;
    height: calc(100vh - 36px - 40px);
    position: relative;
    z-index: 2;
}

/* ===== FILE ICON (Clean & Simple) ===== */
.file-icon {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    z-index: 10;
}

.file-icon:hover {
    transform: scale(1.08) translateY(-3px);
    filter: drop-shadow(0 8px 16px rgba(65, 132, 228, 0.3));
}

.file-icon:hover .icon-image {
    color: var(--accent-blue-bright);
    filter: drop-shadow(0 0 8px rgba(65, 132, 228, 0.6));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(65, 132, 228, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(65, 132, 228, 0.9));
    }
}

.icon-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.icon-image svg {
    width: 100%;
    height: 100%;
}

.icon-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 4px;
}

/* ===== TASKBAR (Bottom) ===== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(0deg, rgba(22, 27, 34, 0.98) 0%, rgba(22, 27, 34, 0.95) 100%);
    border-top: 1px solid rgba(65, 132, 228, 0.2);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    padding: 0 12px;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.taskbar-left {
    display: flex;
    gap: 8px;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(33, 38, 45, 0.6);
    border: 1px solid rgba(58, 58, 58, 0.5);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.taskbar-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--accent-blue-bright);
    border-radius: 2px 2px 0 0;
    transition: transform 0.3s ease;
}

.taskbar-item.active {
    background: rgba(65, 132, 228, 0.15);
    border-color: rgba(65, 132, 228, 0.4);
    box-shadow: inset 0 0 12px rgba(65, 132, 228, 0.1);
}

.taskbar-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.taskbar-item:hover {
    background: rgba(65, 132, 228, 0.1);
    border-color: rgba(65, 132, 228, 0.3);
    transform: translateY(-1px);
}

.app-icon {
    font-size: 14px;
}

.app-name {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== APP WINDOWS ===== */
.app-window {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid rgba(65, 132, 228, 0.2);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(65, 132, 228, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 50;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.app-window:hover {
    border-color: rgba(65, 132, 228, 0.35);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(65, 132, 228, 0.2),
                0 0 40px rgba(65, 132, 228, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid #3a3a3a;
    cursor: move !important;
    flex-shrink: 0;
    min-height: 36px;
}

.app-buttons {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.app-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-buttons span:hover {
    transform: scale(1.15);
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.app-title {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.app-body {
    padding: 16px;
    background: var(--bg-primary);
}

/* ===== BURP SUITE WINDOW ===== */
.burpsuite-window {
    top: 80px;
    left: 200px;
    width: 650px;
    height: 400px;
}

.burp-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.burp-tab {
    padding: 6px 16px;
    background: var(--bg-tertiary);
    border: 1px solid #3a3a3a;
    border-radius: 3px 3px 0 0;
    font-size: 11px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.burp-tab.active {
    background: var(--bg-primary);
    color: var(--burp-orange);
    border-bottom-color: var(--bg-primary);
}

.burp-tab:hover {
    color: var(--text-secondary);
}

.burp-content {
    background: var(--bg-primary);
    padding: 16px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
}

.burp-status {
    font-size: 12px;
}

.status-line {
    margin-bottom: 8px;
    line-height: 1.6;
}

.status-label {
    color: var(--text-dim);
    font-weight: 600;
}

.status-active {
    color: var(--success);
}

.status-inactive {
    color: var(--text-dim);
}

.status-value {
    color: var(--text-secondary);
}

/* ===== PORTFOLIO WINDOW (Draggable Floating) ===== */
.portfolio-window {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
    animation: slideInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 80px rgba(65, 132, 228, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.portfolio-window.maximized {
    top: 36px;
    left: 0;
    transform: none !important;
    width: 100vw;
    height: calc(100vh - 76px);
    max-width: 100vw;
    max-height: calc(100vh - 76px);
    border-radius: 0;
    animation: none;
}

@keyframes slideInScale {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.portfolio-body {
    padding: 0 !important;
    background: var(--bg-primary);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
    flex: 1;
}

/* ===== TERMINAL EXPLOIT WINDOW (Better Sizing) ===== */
.terminal-exploit-window {
    top: 80px;
    left: 220px;
    width: 850px;
    height: 520px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.exploit-output {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-primary);
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.msf-line {
    margin-bottom: 4px;
}

.msf-prompt {
    color: var(--msf-red);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

.msf-command {
    color: var(--accent-blue-bright);
    font-weight: 500;
}

.msf-cmd {
    color: var(--accent-blue-bright);
    font-weight: 500;
    text-shadow: 0 0 6px rgba(90, 159, 255, 0.3);
}

.msf-success {
    color: var(--success);
    text-shadow: 0 0 6px rgba(63, 185, 80, 0.3);
}

.msf-info {
    color: var(--text-secondary);
}

.msf-dim {
    color: var(--text-dim);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    top: 56px;
    right: 20px;
    width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--error);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(255, 51, 51, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 1000;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 51, 51, 0.1);
    border-bottom: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 6px 6px 0 0;
}

.notification-title {
    color: var(--error);
    font-weight: 600;
    font-size: 13px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--error);
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 0.7;
}

.notification-body {
    padding: 16px;
}

.notification-body p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 12px;
}

.error-detail {
    color: var(--error);
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 51, 51, 0.1);
    padding: 8px;
    border-radius: 3px;
    border-left: 3px solid var(--error);
}

/* ===== TERMINAL WINDOW ===== */
.terminal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 800px;
    height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(65, 132, 228, 0.3);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(65, 132, 228, 0.1);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.terminal-window:not(.hidden) {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid #3a3a3a;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
    min-height: 36px;
    cursor: move !important;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-buttons span:hover {
    transform: scale(1.15);
}

.terminal-title {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.terminal-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#terminalOutput {
    font-family: 'Fira Code', monospace;
}

.terminal-line {
    margin-bottom: 6px;
}

.terminal-prompt {
    color: var(--success);
    font-weight: 600;
}

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

.terminal-cursor {
    color: var(--accent-blue-bright);
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.terminal-error {
    color: var(--error);
    font-weight: 500;
}

.terminal-info {
    color: var(--text-secondary);
}

.terminal-output {
    color: var(--text-primary);
}

.terminal-success {
    color: var(--success);
}

.terminal-error {
    color: var(--error);
}

/* ===== MODAL (RESUME) ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
}

.modal-content {
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid #3a3a3a;
    border-radius: 6px 6px 0 0;
}

.modal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.modal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.modal-title {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.modal-body {
    max-height: calc(90vh - 50px);
    overflow-y: auto;
    padding: 28px;
    background: var(--bg-primary);
}

/* ===== RESUME CONTENT ===== */
.resume-content {
    font-size: 13px;
    line-height: 1.8;
}

.resume-text {
    color: var(--text-primary);
    white-space: pre-wrap;
    font-family: 'Fira Code', monospace;
}

.prompt {
    color: var(--success);
    font-weight: 600;
}

.comment {
    color: var(--text-dim);
    font-style: italic;
}

.section-title {
    color: var(--accent-blue);
    display: block;
}

.section-header {
    color: var(--accent-blue-bright);
    font-weight: 700;
    font-size: 16px;
}

.key {
    color: var(--accent-blue-bright);
    font-weight: 600;
}

.skill-category {
    color: var(--warning);
    font-weight: 600;
}

.job-title {
    color: var(--accent-blue-bright);
    font-weight: 600;
}

.company {
    color: var(--text-dim);
}

.project-title {
    color: var(--accent-blue);
    font-weight: 600;
}

.degree {
    color: var(--accent-blue-bright);
    font-weight: 600;
}

.university {
    color: var(--text-dim);
}

.success {
    color: var(--success);
    font-weight: 600;
}

.error {
    color: var(--error);
    font-weight: 600;
}

.warning {
    color: var(--warning);
    font-weight: 600;
}

/* ===== EXIT WARNING MODAL ===== */
.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-modal:not(.hidden) {
    opacity: 1;
}

.exit-content {
    width: 500px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border: 2px solid var(--warning);
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(255, 170, 0, 0.3);
}

.exit-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.05);
}

.warning-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.exit-header h2 {
    color: var(--warning);
    font-size: 22px;
}

.exit-body {
    padding: 28px;
}

.exit-body p {
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.exit-instruction {
    color: var(--text-dim);
    font-size: 13px;
}

.exit-instruction strong {
    color: var(--accent-blue-bright);
    font-weight: 700;
}

.exit-warning {
    color: var(--warning);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 4px;
    text-align: center;
}

#permissionInput {
    width: 100%;
    padding: 12px;
    margin: 16px 0;
    background: var(--bg-primary);
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
}

#permissionInput:focus {
    border-color: var(--accent-blue-bright);
    box-shadow: 0 0 0 3px rgba(65, 132, 228, 0.2);
}

.exit-error {
    color: var(--error);
    font-size: 12px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--error);
}

.exit-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.exit-buttons button {
    flex: 1;
    padding: 10px;
    border: 1px solid;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--text-dim);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.btn-submit {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.btn-submit:hover {
    background: var(--accent-blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 132, 228, 0.4);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Top Bar Adjustments */
    .hostname, .system-monitor {
        display: none;
    }

    .top-bar {
        padding: 0 12px;
        height: 32px;
    }

    .top-bar-left {
        font-size: 11px;
    }

    .logo {
        font-size: 14px;
    }

    .time {
        font-size: 11px;
    }

    /* Desktop Area */
    .desktop-area {
        padding: 50px 10px 60px;
    }

    /* File Icon */
    .file-icon {
        width: 70px;
    }

    .icon-image {
        width: 48px;
        height: 48px;
    }

    .icon-label {
        font-size: 11px;
    }

    /* Taskbar */
    .taskbar {
        height: 48px;
        padding: 0 8px;
    }

    .taskbar-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .taskbar-item .app-name {
        display: none;
    }

    .app-icon {
        font-size: 16px;
    }

    /* Windows - Make them fullscreen on mobile */
    .app-window {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        border-radius: 0;
    }

    .portfolio-window {
        width: 100vw !important;
        height: 100vh !important;
    }

    .terminal-exploit-window {
        width: 100vw !important;
        height: 100vh !important;
    }

    .terminal-window {
        width: 100vw !important;
        height: 100vh !important;
    }

    /* App Headers */
    .app-header {
        padding: 8px 12px;
    }

    .app-title {
        font-size: 12px;
    }

    .app-buttons span {
        width: 10px;
        height: 10px;
    }

    /* Terminal */
    .terminal-body,
    .exploit-output {
        font-size: 11px;
        padding: 12px;
    }

    .terminal-line {
        line-height: 1.4;
    }

    /* Resume Modal */
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .resume-text {
        font-size: 11px;
        padding: 12px;
    }

    /* Exit Warning Modal */
    .exit-content {
        width: 90vw;
        max-width: 90vw;
    }

    .exit-header h2 {
        font-size: 18px;
    }

    .exit-body {
        padding: 20px;
    }

    .exit-body p {
        font-size: 13px;
    }

    #permissionInput {
        font-size: 14px;
        padding: 10px;
    }

    /* Notification */
    .notification {
        width: 90vw;
        max-width: 90vw;
        right: 5vw;
        top: 50px;
    }

    /* Prevent zoom on input focus */
    input {
        font-size: 16px;
    }

    /* Disable dragging on mobile */
    .app-header,
    .terminal-header {
        cursor: default !important;
    }

    /* Matrix Canvas - reduce for performance */
    #matrixCanvas {
        opacity: 0.05;
    }

    /* Scanlines - reduce for performance */
    #desktop::before {
        opacity: 0.05;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .system-monitor {
        font-size: 11px;
    }

    .monitor-item {
        margin: 0 8px;
    }

    .app-window {
        width: 85vw;
        max-width: 900px;
    }

    .terminal-window {
        width: 85vw;
        max-width: 700px;
    }
}

/* Touch device specific */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .file-icon {
        width: 90px;
        padding: 12px;
    }

    .icon-image {
        width: 56px;
        height: 56px;
    }

    .taskbar-item {
        padding: 12px 16px;
    }

    .app-buttons span {
        width: 14px;
        height: 14px;
        margin-right: 10px;
    }

    /* Remove hover effects on touch devices */
    .file-icon:hover,
    .taskbar-item:hover,
    .app-buttons span:hover {
        transform: none;
    }

    /* Disable text selection on touch */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}
