* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #eef4ff;
    --bg-secondary: #fbfdff;
    --panel: rgba(255, 255, 255, 0.8);
    --panel-strong: rgba(255, 255, 255, 0.92);
    --glass-stroke: rgba(142, 182, 255, 0.35);
    --accent: #0ba5ec;
    --accent-strong: #f97316;
    --text-main: #0f172a;
    --text-muted: #5c6f92;
    --shadow-soft: 0 25px 60px rgba(15, 23, 42, 0.15);
    --radius: 26px;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #ffffff 0%, var(--bg-primary) 60%);
    color: var(--text-main);
    overflow: hidden;
    position: relative;
    letter-spacing: 0.01em;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(93, 118, 179, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(93, 118, 179, 0.08) 1px, transparent 1px);
    background-size: 200px 200px;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.aurora,
.stellar-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.aurora {
    background: radial-gradient(circle at 20% 15%, rgba(11, 165, 236, 0.25), transparent 45%),
                radial-gradient(circle at 70% 25%, rgba(249, 115, 22, 0.18), transparent 55%);
    filter: blur(80px);
    opacity: 0.8;
    animation: drift 18s ease-in-out infinite alternate;
}

.stellar-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 120px 120px;
    transform: perspective(1200px) rotateX(68deg);
    transform-origin: center;
    opacity: 0.25;
}

body.boot-phase .desktop,
body.boot-phase .taskbar,
body.boot-phase .window {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.99);
    filter: blur(12px);
}

body.system-online .desktop,
body.system-online .taskbar {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.desktop {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    padding: 60px clamp(1.5rem, 6vw, 6rem) 140px;
    align-content: start;
    min-height: calc(100vh - 110px);
}

.icon {
    cursor: pointer;
    user-select: none;
}

.holo-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.holo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.icon-core {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(11, 165, 236, 0.18), rgba(249, 115, 22, 0.2));
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    color: var(--text-main);
    border: 1px solid rgba(11, 165, 236, 0.35);
}

.glyph {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    letter-spacing: 0.3em;
}

.icon-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

.icon-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
}

.window {
    position: absolute;
    top: 120px;
    left: 10%;
    width: min(900px, 82vw);
    max-height: 80vh;
    background: var(--panel-strong);
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    --translate-x: 0px;
    --translate-y: 0px;
    --base-translate-x: 0;
    transform: translate(calc(var(--base-translate-x) + var(--translate-x)), var(--translate-y)) scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(calc(var(--base-translate-x) + var(--translate-x)), var(--translate-y)) scale(1);
}

.title-bar {
    padding: 18px 26px;
    background: linear-gradient(120deg, rgba(11, 165, 236, 0.18), rgba(249, 115, 22, 0.18));
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
}

.title-bar:active {
    cursor: grabbing;
}

.title-bar-text {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.title-pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(11, 165, 236, 0.35);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
}

.title-bar-controls button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.title-bar-controls button::before,
.title-bar-controls button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--text-main);
    transform-origin: center;
}

.title-bar-controls button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.title-bar-controls button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.title-bar-controls button:hover {
    background: rgba(11, 165, 236, 0.15);
    border-color: rgba(11, 165, 236, 0.5);
}

.window-body {
    padding: 22px 26px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
}

.bio-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.bio-portrait {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(11, 165, 236, 0.2), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(11, 165, 236, 0.25);
    box-shadow: inset 0 0 40px rgba(15, 23, 42, 0.15);
}

.bio-intro {
    flex: 1;
}

.bio-tag {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.bio-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.bio-intro p {
    color: var(--text-muted);
    line-height: 1.7;
}

.bio-stream {
    display: grid;
    gap: 18px;
}

.bio-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.02);
    box-shadow: inset 0 0 25px rgba(15, 23, 42, 0.03);
}

.bio-card h3 {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.bio-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

#cv-window {
    left: 50%;
    --base-translate-x: -50%;
    width: min(960px, 90vw);
    height: 80vh;
}

#cv-window .window-body {
    padding: 0;
    background: #fff;
}

.cv-image {
    width: 100%;
    height: auto;
    display: block;
}

#about-window {
    width: 380px;
    top: 150px;
    left: 10%;
}

#bio-window {
    left: 50%;
    top: 120px;
    --base-translate-x: -50%;
    width: min(1040px, 90vw);
    height: 82vh;
}

#bio-window .window-body {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    padding: 28px;
    overflow-y: auto;
}

.notepad {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    background: #f5f8ff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.notepad p + p {
    margin-top: 12px;
}

.taskbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92vw);
    height: 74px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    z-index: 2;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.taskbar-item {
    flex: 1;
    display: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.taskbar-item.active,
.taskbar-item:hover {
    border-color: rgba(11, 165, 236, 0.5);
    background: rgba(11, 165, 236, 0.15);
}

.clock {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    padding-left: 18px;
}

.boot-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #ffffff 5%, #e5f0ff 60%);
    display: grid;
    place-items: center;
    z-index: 3;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.boot-screen.booting {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.boot-screen:not(.active) {
    display: none;
}

.boot-panel {
    width: min(480px, 90vw);
    background: #ffffff;
    border-radius: 32px;
    padding: 36px 38px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.boot-label {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.75rem;
}

.boot-panel h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin-bottom: 12px;
}

.boot-description {
    color: var(--text-muted);
    margin-bottom: 26px;
    line-height: 1.5;
}

.launch-button {
    background: linear-gradient(120deg, #0ba5ec, #fb923c);
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 16px 24px;
    width: 100%;
    margin-bottom: 22px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.launch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(11, 165, 236, 0.35);
}

.boot-log {
    background: #f3f6ff;
    border-radius: 18px;
    padding: 16px;
    text-align: left;
    font-family: 'Orbitron', 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    height: 120px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    #about-window {
        left: 50%;
        --base-translate-x: -50%;
        width: min(420px, 90vw);
    }

    #bio-window {
        width: min(700px, 92vw);
    }

    .bio-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .bio-portrait {
        width: 100%;
        max-width: 260px;
        height: 260px;
    }
}

@media (max-width: 700px) {
    .desktop {
        padding: 40px 16px 140px;
    }

    .taskbar {
        flex-direction: column;
        height: auto;
        padding: 18px;
        gap: 16px;
    }

    .taskbar-items {
        width: 100%;
    }

    .clock {
        border: none;
        padding-left: 0;
    }
}

@keyframes drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-30px);
    }
}
