/* * ==========================================
* VARIABLES & THEME
* ==========================================
*/
:root {
    --font-main: 'VT323', monospace;
    --font-clean: 'Outfit', sans-serif;
    --font-size-base: 24px;
    --taskbar-height: 50px;
    --win-radius: 6px;
}

/* LIGHT MODE (DEFAULT) */
[data-theme="light"] {
    --bg-desktop: #f5f7fb;        /* soft slate */
    --bg-window: #ffffff;         /* clean white */
    --bg-taskbar: #eef2f7;

    --text-main: #0f172a;         /* slate-900 */
    --text-dim: #475569;          /* slate-600 */

    --accent: #4f46e5;            /* indigo-600 */
    --accent-glow: rgba(79, 70, 229, 0.25);

    --border: #cbd5e1;            /* slate-300 */
    --highlight: #eef2ff;         /* indigo-50 */

    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --crt-line: rgba(0, 0, 0, 0.015);

    --terminal-bg: #e2e8f0;       /* slate-200 */
    --terminal-text: #0f172a;

    --btn-hover: rgba(79, 70, 229, 0.1);
    --danger: #dc2626;            /* red-600 */

    --boot-bg: #020617;
    --boot-text: #6366f1;
}


/* DARK MODE */
/* DARK MODE (PROFESSIONAL) */
[data-theme="dark"] {
    --bg-desktop: #020617;        /* slate-950 */
    --bg-window: #020617;
    --bg-taskbar: #020617;

    --text-main: #e5e7eb;         /* slate-200 */
    --text-dim: #94a3b8;          /* slate-400 */

    --accent: #6366f1;            /* indigo-500 */
    --accent-glow: rgba(99, 102, 241, 0.35);

    --border: #1e293b;            /* slate-800 */
    --highlight: #020617;

    --shadow: 0 0 40px rgba(99, 102, 241, 0.15);
    --crt-line: rgba(99, 102, 241, 0.035);

    --terminal-bg: #020617;
    --terminal-text: #e5e7eb;

    --btn-hover: rgba(99, 102, 241, 0.2);
    --danger: #ef4444;

    --boot-bg: #000000;
    --boot-text: #818cf8;
}
* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    background-color: var(--bg-desktop);
    color: var(--text-main);
    transition: background 0.3s;
    user-select: none;
    cursor: default;
    overscroll-behavior: none;
}

/* * ==========================================
    * SPLASH SCREEN (RE-DESIGNED)
    * ==========================================
    */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: var(--boot-text);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    padding: 20px;
}

.boot-box {
    width: 100%;
    max-width: 600px;
    border: 4px solid var(--boot-text);
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.2), inset 0 0 20px rgba(0, 255, 157, 0.1);
    background: rgba(10, 20, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.boot-box::before {
    content: ''; position: absolute; top: -10px; left: -10px; 
    width: 20px; height: 20px; border-top: 4px solid var(--boot-text); border-left: 4px solid var(--boot-text);
}
.boot-box::after {
    content: ''; position: absolute; bottom: -10px; right: -10px; 
    width: 20px; height: 20px; border-bottom: 4px solid var(--boot-text); border-right: 4px solid var(--boot-text);
}

#boot-sequence {
    width: 100%;
    text-align: left;
    white-space: pre-wrap;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 30px;
    min-height: 100px;
    color: rgba(0, 255, 157, 0.8);
}

.splash-loader-container { width: 100%; margin-bottom: 20px; display: none; }
.splash-loader { width: 100%; height: 20px; background: #111; border: 2px solid var(--boot-text); padding: 3px; }
.loader-bar { width: 0%; height: 100%; background: var(--boot-text); box-shadow: 0 0 15px var(--boot-text); transition: width 0.5s linear; }

.splash-status { 
    margin-top: 10px; 
    font-size: 20px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    text-align: center;
}

#btn-enter {
    display: none;
    background: var(--boot-text);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 0 20px var(--boot-text);
    animation: pulse-btn 1.5s infinite;
    text-transform: uppercase;
}
#btn-enter:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 40px #fff;
}

@keyframes pulse-btn {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
    pointer-events: none;
}
/* * ==========================================
    * WINDOW STYLES
    * ==========================================
    */
#desktop {
    position: relative;
    width: 100vw;
    height: calc(100vh - var(--taskbar-height));
    overflow: hidden;
}

.window {
    position: absolute;
    background: var(--bg-window);
    border: 2px solid var(--border);
    border-radius: var(--win-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s, transform 0.2s;
    min-width: 320px;
    max-width: 95vw;
    max-height: 90vh;
}

.window.open { opacity: 1; transform: scale(1); }
.window.minimized { opacity: 0; transform: scale(0.8) translateY(200px); pointer-events: none; }

.window-header {
    height: 42px;
    background: var(--highlight);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: grab;
    flex-shrink: 0;
}
.window-header:active { cursor: grabbing; }

.window-title { flex: 1; text-align: center; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: bold; text-shadow: 0 0 5px var(--accent-glow); }

.window-body { 
    flex: 1; 
    padding: 0; 
    overflow-y: auto; 
    position: relative; 
    -webkit-overflow-scrolling: touch;
}

.controls { display: flex; gap: 8px; }
.win-btn { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.2); cursor: pointer; }
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }

.resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); opacity: 0.5; border-radius: 0 0 var(--win-radius) 0; }
.resize-handle:hover { opacity: 1; }

/* ==========================================
   HOME / TERMINAL SPECIFICS
   ========================================== */

#win-home { z-index: 50 !important; border: 4px solid var(--border); box-shadow: 0 0 50px var(--accent-glow); }
#win-home .window-header { cursor: default; background: var(--terminal-bg); }
#win-home .window-title { color: var(--terminal-text); text-shadow: none; }

.scanlines { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--crt-line), var(--crt-line) 50%, transparent 50%, transparent); background-size: 100% 4px; pointer-events: none; z-index: 999; }

.home-content { height: 100%; display: flex; flex-direction: column; padding: 20px; }
.home-header { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }

.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; padding: 20px; border-top: 2px dashed var(--border); background: rgba(0,0,0,0.05); margin-top: auto; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 15px 5px; cursor: pointer; border: 2px solid transparent; border-radius: 8px; transition: all 0.2s; }
.nav-item:hover { border-color: var(--accent); background: var(--highlight); color: var(--accent); transform: translateY(-4px); }
.nav-icon { width: 48px; height: 48px; fill: currentColor; }
.nav-label { font-size: 20px; text-transform: uppercase; }

.big-text { font-size: 56px; color: var(--accent); margin: 0; line-height: 0.9; text-shadow: 3px 3px 0 var(--highlight); }
.sub-text { font-size: 28px; color: var(--text-dim); margin-bottom: 5px; }
.location-text { font-size: 20px; color: var(--text-dim); margin-top: 5px; margin-bottom: 30px; letter-spacing: 1px; }
h2 { border-bottom: 2px solid var(--accent); color: var(--accent); margin-top: 0; }
.cv-block { margin-bottom: 20px; padding-left: 15px; border-left: 2px solid var(--border); }
.cv-role { font-size: 22px; font-weight: bold; color: var(--text-main); }
.cv-date { font-size: 18px; color: var(--accent); margin-bottom: 5px; display: block;}

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 20px; padding: 20px; justify-items: center; }
.social-link { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dim); transition: all 0.2s ease; padding: 15px; border-radius: 8px; }
.social-link svg { width: 54px; height: 54px; fill: var(--text-dim); transition: all 0.3s; }
.social-link span { font-size: 18px; text-transform: uppercase; opacity: 0.8; }
.social-link:hover { color: var(--accent); background: var(--highlight); }
.social-link:hover svg { fill: var(--accent); transform: translateY(-5px) scale(1.1); filter: drop-shadow(0 5px 5px var(--accent-glow)); }

.about-wrapper { font-family: var(--font-clean); padding: 20px; }

.contact-container {
    font-family: var(--font-clean);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 30px 20px;
}


.mail-anim { animation: floatMail 3s ease-in-out infinite; margin: 15px 0; }
@keyframes floatMail { 0% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-10px) rotate(5deg); } 100% { transform: translateY(0px) rotate(0deg); } }

.contact-intro-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-weight: 400;
    max-width: 80%;
    text-align: justify;
    text-align-last: center;
}

.email-box {
    background: var(--highlight);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.email-address {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    word-break: break-all;
}

.contact-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.contact-item a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 18px; }
.contact-item span { font-size: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.about-header { display: flex; align-items: center; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }

.profile-frame {
    width: 180px; height: 180px;
    border: 4px solid var(--accent); border-radius: 16px; padding: 6px; background: var(--highlight);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1); transition: transform 0.5s; cursor: pointer; flex-shrink: 0;
}
.profile-frame:active { transform: rotate(360deg); }
.pixel-avatar {
    width: 100%; height: 100%; background: #ccc; border-radius: 8px;
    background-image: url('img/profile.png');
    background-size: 180px 180px;
}
.header-info h1 { font-size: 32px; font-weight: 800; margin: 0; color: var(--text-main); line-height: 1.1; }
.header-info p { font-size: 18px; color: var(--text-dim); margin: 5px 0 0 0; }

.loc-wrapper { position: relative; display: inline-block; }
.loc-trigger { color: var(--accent); cursor: pointer; border-bottom: 1px dashed var(--accent); font-weight: bold; }

.map-popup {
    display: none; position: absolute; top: 100%; left: 0; width: 250px; height: 180px; 
    background: var(--bg-window); border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10; padding: 5px; border-radius: 8px; margin-top: 10px;
}
.loc-wrapper:hover .map-popup { display: block; animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.map-frame { width: 100%; height: 100%; background: #aaddcc; border-radius: 4px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.map-pin { position: absolute; font-size: 32px; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.about-body { color: var(--text-main); font-size: 18px; line-height: 1.6; }
.intro { font-size: 20px; font-weight: 600; margin-bottom: 15px; }

.about-bio { font-size: 18px; line-height: 1.6; margin-bottom: 25px; color: var(--text-dim); }
.about-bio .highlight { color: var(--accent); font-weight: 700; }

.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); border-bottom: 1px solid var(--border); margin: 25px 0 15px 0; padding-bottom: 5px; font-weight: 800; }
.exp-item { display: flex; justify-content: space-between; margin-bottom: 5px; flex-wrap: wrap; }
.exp-role { font-weight: 700; }
.exp-loc { color: var(--text-dim); font-size: 16px; }

.work-link {
    color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent); padding-bottom: 1px;
}
.work-link:hover { background: var(--accent); color: var(--bg-desktop); }

.cta-link { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.cta-link:hover { border-bottom-color: var(--accent); }

.retro-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-window);
}
.retro-gallery::-webkit-scrollbar { height: 8px; }
.retro-gallery::-webkit-scrollbar-track { background: var(--bg-window); }
.retro-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.retro-gallery::-webkit-scrollbar-thumb:hover { background: var(--accent); }


.gallery-card {
    min-width: 220px;
    background: var(--bg-window);
    border: 3px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.gallery-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.gallery-img-box {
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
    border: 2px solid var(--text-dim);
    position: relative;
}

.gallery-img { 
    width: 100%; height: 100%; object-fit: cover; 
    filter: grayscale(100%) contrast(1.2); 
    transition: filter 0.3s; 
    opacity: 0.8;
}

.gallery-card:hover .gallery-img { filter: grayscale(0%) contrast(1); opacity: 1; }

.gallery-label { 
    font-size: 18px;
    font-weight: bold; 
    text-transform: uppercase; color: var(--text-dim);
}
.gallery-card:hover .gallery-label { color: var(--accent); }


.work-wrapper { font-family: var(--font-clean); padding: 20px; }

.freelance-banner {
    background: var(--highlight);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}
.freelance-banner strong { color: var(--accent); font-size: 20px; display: block; margin-bottom: 5px; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}
.tool-box {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    cursor: default;
    transition: all 0.2s;
    background: var(--bg-window);
}
.tool-box:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    background: var(--highlight);
    color: var(--accent);
}

.stack-category { margin-bottom: 20px; }
.stack-title { font-size: 16px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px solid var(--border); display: inline-block; padding-bottom: 2px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-pill {
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    transition: all 0.2s;
}
.tech-pill:hover {
    background: var(--accent);
    color: var(--bg-desktop);
    border-color: var(--accent);
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.project-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    background: var(--bg-window);
    height: 100%;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.proj-banner { 
    height: 240px; 
    background: #333; 
    background-size: cover; 
    background-position: center top; 
    flex-shrink: 0; 
    background-repeat: no-repeat;
}
.proj-info { padding: 15px; background: var(--highlight); flex: 1; display:flex; flex-direction:column; justify-content:space-between; }
.proj-title { font-size: 22px; font-weight: 800; margin: 0 0 5px 0; color: var(--text-main); }
.proj-brief { font-size: 15px; color: var(--text-dim); margin-bottom: 15px; line-height: 1.5; }

.proj-links { margin-top: 15px; display: flex; gap: 10px; }

.proj-btn { 
    flex: 1; 
    padding: 8px; 
    text-align: center; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: bold; 
    color: var(--text-main); 
    background: rgba(255,255,255,0.1); 
    transition: all 0.2s; 
    text-decoration: none;
    display: inline-block;
}
.proj-btn:hover { background: var(--accent); color: var(--bg-desktop); border-color: var(--accent); }


.other-projects { list-style: none; padding: 0; }
.other-projects li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 16px; }
.other-projects li::before { content: '>'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.footer-github { font-size: 14px; font-weight: 400; color: var(--text-dim); text-decoration: none; border-bottom: 1px dashed var(--text-dim); transition: all 0.2s; }
.footer-github:hover { color: var(--accent); border-color: var(--accent); }

.cv-wrapper { font-family: var(--font-clean); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.cv-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 15px; }
.cv-paper { 
    background: #fff; color: #333; 
    padding: 40px; 
    border-radius: 4px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    overflow-y: auto; 
    flex: 1; 
    font-size: 16px;
}
.cv-paper h1 { font-size: 32px; font-weight: 800; margin: 0 0 5px 0; text-transform: uppercase; color: #000; }
.cv-paper h2 { border-bottom: 2px solid #000; color: #000; font-size: 18px; margin: 20px 0 10px 0; padding-bottom: 3px; letter-spacing: 1px; }
.cv-paper h3 { font-size: 16px; font-weight: 700; margin: 0; color: #000; }
.cv-paper p { margin: 5px 0; line-height: 1.4; color: #444; }
.cv-paper .cv-meta { font-size: 14px; color: #666; margin-bottom: 15px; }
.cv-paper .cv-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.cv-paper .cv-date { font-weight: 600; font-size: 14px; color: #555; }
.cv-paper ul { margin: 5px 0 15px 20px; padding: 0; }
.cv-paper li { margin-bottom: 3px; }

#maintenance-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); z-index: 5000; 
    display: none; align-items: center; justify-content: center;
}
.maintenance-box {
    background: #0a140e;
    border: 2px solid var(--accent); 
    border-radius: 8px; padding: 30px; text-align: center; max-width: 550px;
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.1); position: relative;
    color: #ffffff; 
    font-family: var(--font-clean); 
}
.maintenance-title { 
    color: var(--accent); 
    font-size: 32px; font-weight: 800; margin-bottom: 15px; 
    border-bottom: 1px dashed var(--accent); padding-bottom: 10px;
    letter-spacing: 1px;
}
.maintenance-timer { 
    font-size: 28px; font-family: monospace; color: var(--accent); 
    margin: 20px 0; border: 1px solid var(--border); padding: 15px; 
    background: rgba(0,0,0,0.3);
}


#taskbar { position: fixed; bottom: 0; width: 100%; height: var(--taskbar-height); background: var(--bg-taskbar); border-top: 2px solid var(--border); display: flex; align-items: center; padding: 0 10px; z-index: 3000; gap: 10px; }
.start-btn { background: var(--accent); color: var(--bg-desktop); padding: 6px 18px; font-size: 24px; font-weight: bold; cursor: pointer; box-shadow: 4px 4px 0px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; margin-right: 10px; white-space: nowrap; }
.start-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px rgba(0,0,0,0.3); }
#task-list { flex: 1; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
#task-list::-webkit-scrollbar { display: none; }
.task-tab { padding: 5px 15px; background: var(--bg-window); border: 2px solid var(--border); color: var(--text-dim); cursor: pointer; font-size: 18px; display: flex; align-items: center; gap: 8px; min-width: 120px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; }
.task-tab:hover { background: var(--highlight); color: var(--accent); }
.task-tab.active { background: var(--highlight); color: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 10px var(--accent-glow); }
.tray { display: flex; gap: 10px; align-items: center; padding-right: 0px; margin-left: auto;}
.icon-btn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--accent); padding: 8px; border-radius: 4px; }
.icon-btn:hover { background: var(--btn-hover); transform: scale(1.1); }
.icon-btn.muted { opacity: 0.5; filter: grayscale(100%); }

#start-menu { position: absolute; bottom: 55px; left: 10px; width: 250px; background: var(--bg-window); border: 2px solid var(--accent); box-shadow: 10px 10px 0px rgba(0,0,0,0.5); display: none; flex-direction: column; z-index: 2000; }
#start-menu.show { display: flex; }
.menu-item { padding: 15px; font-size: 22px; border-bottom: 1px solid var(--border); cursor: pointer; }
.menu-item:hover { background: var(--accent); color: var(--bg-desktop); }


@media (max-width: 768px) {
    :root { --font-size-base: 20px; }
    #task-list { display: none !important; }
    #taskbar { padding: 0 8px; justify-content: space-between; }
    .start-btn { padding: 6px 12px; font-size: 20px; }
    .tray { margin-left: 0; }
    
    .window {
        position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: var(--taskbar-height) !important;
        width: 100vw !important; height: auto !important; margin: 0 !important; transform: none !important;
        border: none !important; border-top: 1px solid var(--border) !important; border-radius: 0 !important; z-index: 100 !important;
        max-width: none; max-height: none;
    }
    .window.minimized { transform: translateY(120%) !important; }
    #win-home { width: 100vw !important; height: auto !important; max-width: none !important; max-height: none !important; }
    
    .home-header { flex: 0 !important; margin-top: 60px; margin-bottom: 20px; justify-content: flex-start !important; }
    .nav-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 10px 20px; margin-top: 0 !important; border-top: none; background: transparent; }
    .nav-item { border: 2px solid var(--border); background: rgba(0,0,0,0.03); padding: 15px 5px; border-radius: 8px; }
    .nav-item:last-child { grid-column: span 2; width: 60%; margin: 0 auto; }
    .nav-icon { width: 64px; height: 64px; margin-bottom: 8px; }
    .nav-label { font-size: 24px; font-weight: normal; }

    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .big-text { font-size: 42px; }
    .sub-text { font-size: 20px; }
    .location-text { font-size: 16px; margin-bottom: 10px; }
    .resize-handle { display: none; }
    .window-header { cursor: default; } 
    .btn-min { display: none; }

    .about-header { flex-direction: column; text-align: center; gap: 15px; }
    .map-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) !important; width: 80%; }
    
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
}
