/* filepath: d:\repositories\portfolio-page\styles.css */
:root {
    --bg: #071229;
    --panel: #0b1930;
    --muted: #9ab6c8;
    --muted-strong: #c8e0ef;
    --accent: #3a88ff;
    --accent_selected: #1f6fff;
    --glass: rgba(58,136,255,0.02);
    --glass-strong: rgba(58,136,255,0.04);
}


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

.cmd {
    color: #e6eef3
}

.output {
    color: var(--muted);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Segoe UI Mono', monospace; background: var(--bg); color: var(--muted); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
    z-index: 15;
}

.brand { color: var(--accent); font-weight: 700 }

a {
    color: var(--accent);
    text-decoration: none
}
a:hover {
    color: var(--accent_selected);
    text-decoration: underline
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 14px;
}

.nav a:hover {
    color: #fff
}

main {
    padding: 40px 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.terminal-section {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 36px;
    align-items: start;
    margin-bottom: 40px;
}

.terminal {
    background: linear-gradient(180deg, var(--panel), rgba(6, 10, 14, 0.75));
    border-radius: 14px;
    padding: 28px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 40px rgba(2, 6, 8, 0.8);
    min-width: 320px;
}

.term-title {
    color: var(--muted);
    font-size: 15px;
    padding: 10px 0 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    margin-bottom: 18px;
}

.term-body {
    padding: 0 4px;
    font-size: 17px;
    line-height: 1.7;
}

.line, .output {
    margin-bottom: 14px;
}

.projects-list,
.education-list,
.gamejam-list {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.whoami-item,
.whatido-item,
.project-card,
.education-item,
.gamejam-item {
    background: var(--glass);
    padding: 18px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    min-width: 220px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(2, 6, 8, 0.08);
}

.skills {
    margin: 12px 0 0 18px;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
}

.skills li {
    margin-bottom: 6px;
}

.content {
    margin-top: 44px;
    padding: 32px 24px;
    background: transparent;
}

.content h2 {
    color: #e7f2ff;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: #08121a;
    padding: 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.04);
}

.btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
}

.btn:hover {
    background: rgba(58,136,255,0.09);
    color: var(--accent_selected);
}

.ascii pre {
    margin: 0;
    color: #7fbfff;
    font-size: 13px;
    line-height: 1.1;
    padding: 12px 0 0 0;
}

.window {
    display: flex;
    flex-direction: column;
    position: absolute;
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(2, 6, 8, 0.8);
    z-index: 10;
    min-width: 320px;
    min-height: 200px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.window.focused {
    z-index: 100;
    border-color: #fff;
    box-shadow: 0 12px 48px 0 rgba(58,136,255,0.25);
}
.window.minimized .window-content,
.window.minimized .window-resizer {
    display: none;
}
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.window-titlebar {
    background: linear-gradient(90deg, var(--accent), var(--panel) 80%);
    color: #fff;
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
    justify-content: space-between;
}
.window-title {
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
}
.window-controls {
    display: flex;
    gap: 6px;
}
.window-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    margin-left: 2px;
    background: #fff3;
    cursor: pointer;
    transition: background 0.2s;
}

.window-btn:hover { filter: brightness(1.2); }

.window-minimize { background: #f4c542; }
.window-maximize { background: #43d26a; }
.window-close { background: #e05c5c; }
/*
.window-minimize { background: #7fcfff; }
.window-maximize { background: #3a88ff; }
.window-close { background: #1e4b8b; }
*/

.window-content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    overflow: auto;
    padding: 0;
    width: 100%;
    height: calc(100% - 36px); /* match your titlebar height */
    border: none;
    display: block;
    background: transparent;
    flex: 1 1 auto;
}

.window-content iframe {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
    flex: 1 1 auto;
}

.window-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    cursor: se-resize;
    background: linear-gradient(135deg, transparent 60%, var(--accent) 100%);
    z-index: 2;
}

/* Responsive: windows fill screen on mobile */
@media (max-width: 700px) {
    .window {
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 1100px) {
    main {
        padding: 24px 8px;
    }
    .terminal-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ascii {
        order: 2;
        margin-top: 24px;
    }
}

@media (max-width: 820px) {
    .ascii { order: 2; display: block; }
    .brand { font-size: 16px; }
    .terminal, .card, .project-card, .education-item, .gamejam-item {
        min-width: 0;
        width: 100%;
    }
    .terminal-section {
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .ascii { display: none; }
    .brand { font-size: 12px; }
    .terminal, .card, .project-card, .education-item, .gamejam-item {
        padding: 10px 4px;
    }
    .content {
        padding: 12px 2px;
    }
}

@media (max-width: 200px) {
    .ascii { display: none; }
    .brand { font-size: 12px; }
    .topbar { padding: 10px 14px; }
    .terminal-section { padding: 0%; }
    .project-card, .education-item, .gamejam-item { min-width: 140px; padding: 0%; align-items: center; justify-content: center;}
}

.desktop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, 90px);
    grid-auto-rows: 90px;
    gap: 24px 12px;
    align-content: start;
    padding: 70px 32px 80px 32px;
/*
    padding: 32px 32px 80px 32px;
*/
    pointer-events: none;
    justify-content: flex-start;
}

.shortcut {
    width: 72px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    user-select: none;
    pointer-events: auto; /* allow interaction */
    background: rgba(255,255,255,0.01);
    border-radius: 8px;
    transition: background 0.15s;
}
.shortcut:hover {
    background: rgba(58,136,255,0.08);
}
.shortcut .icon {
    font-size: 2.2em;
    margin-bottom: 4px;
}
.shortcut span {
    color: #fff;
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 2px #000a;
    word-break: break-word;
    line-height: 1.2;
    margin-top: 2px;
}

.taskbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 44px;
    background: linear-gradient(90deg, #0b1220 80%, #3a88ff22);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    z-index: 1000;
    border-top: 1.5px solid #2226;
}
.taskbar-btn {
    background: none;
    border: none;
    color: #fff;
    margin: 0 4px;
    padding: 0 12px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s;
}
.taskbar-btn.active, .taskbar-btn:hover {
    background: #3a88ff33;
    color: var(--accent);
}