/* 
    ================================================================
    OPERATING SYSTEM PORTFOLIO CORE DESIGN SYSTEM
    ================================================================
    Theme: Tokyo Night Dark (Sleek, Developer, Highly Polished)
    Owner: Shrinkhal
*/

:root {
    /* Color Palette - Tokyo Night Inspired */
    --bg: #0a0e14;
    --bg-darker: #07090e;
    --surface: #161925;
    --surface-hover: #1f2335;
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(122, 162, 247, 0.4);
    
    /* Text Colors */
    --text-main: #c0caf5;
    --text-dim: #9ece6a;
    --text-muted: #565f89;
    --text-light: #a9b1d6;
    
    /* Syntax & Accent Colors */
    --accent: #7aa2f7;      /* Sky Blue */
    --accent-purple: #bb9af3;  /* Lavender */
    --accent-green: #9ece6a;   /* Teal Green */
    --accent-orange: #ff9e64;  /* Orange */
    --accent-red: #f7768e;     /* Red */

    /* Typography Settings */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Motion Settings */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. RESET & BASE LAYOUT */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Lock scrollbars - handled by workspace container */
    background-color: var(--bg);
    color: var(--text-light);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Hardware-accelerated slow-moving ambient radial gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(26, 27, 38, 0.45) 0%,
        rgba(10, 14, 20, 0.9) 60%,
        #05070a 100%
    );
    z-index: -1;
    animation: bgGradientMove 50s infinite linear;
    pointer-events: none;
}

@keyframes bgGradientMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-5%, 5%) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}


/* 2. OS TOP STATUS BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    z-index: 1000;
    user-select: none;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.host-name {
    color: var(--accent);
    font-weight: 500;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.workspace-tabs {
    display: flex;
    gap: 0.25rem;
}

.ws-tab {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s var(--ease);
}

.ws-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.ws-tab.active {
    color: var(--accent-purple);
    background: rgba(187, 154, 243, 0.1);
    border: 1px solid rgba(187, 154, 243, 0.2);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-muted);
}

.system-stat {
    font-size: 0.7rem;
}

.system-time {
    color: var(--text-light);
}

/* 3. WORKSPACE CONTAINER (VIRTUAL SWITCHER ENGINE) */
.workspace-viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding-top: 32px; /* top-bar buffer */
}

.workspace-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

section {
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    opacity: 0;
    filter: blur(5px);
    transition: opacity 0.85s var(--ease), filter 0.85s var(--ease);
}

section.revealed {
    opacity: 1;
    filter: blur(0);
}

section .window-frame {
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s var(--ease);
}

section.revealed .window-frame {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Staggered delay helpers for elements inside the window frames */
.stagger-1, .stagger-2, .stagger-3, .stagger-4 {
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

section.revealed .stagger-1,
section.revealed .stagger-2,
section.revealed .stagger-3,
section.revealed .stagger-4 {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }

/* Respect reduced-motion preferences globally */
@media (prefers-reduced-motion: reduce) {
    section, 
    section .window-frame, 
    body::before {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
}


.container {
    max-width: 1080px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 4. WINDOW FRAME DECORATOR (OS WINDOWS) */
.window-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-height: 80vh;
    transition: border-color 0.3s var(--ease);
}

.window-frame:hover {
    border-color: var(--border-highlight);
}

.window-header {
    background: var(--bg-darker);
    height: 38px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.window-dots {
    display: flex;
    gap: 0.45rem;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-orange); }
.dot.green { background: var(--accent-green); }

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.window-body {
    padding: 2rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    background: #0d1117;
}

/* --- HERO INTERACTIVE GRID BACKDROP --- */
.hero-grid-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: 
        linear-gradient(rgba(122, 162, 247, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 247, 0.04) 1px, transparent 1px);
    background-size: 45px 45px;
    z-index: 0;
    pointer-events: none;
    transform: translate(0, 0);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.8; /* Subtle visibility */
}

/* Ensure the hero section blocks do not hide our backdrop */
#hero {
    position: relative;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 2; /* Sits above grid */
}

/* --- WORKSPACE 1: NEOFETCH --- */
.neofetch-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.neofetch-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.neofetch-art {
    font-family: var(--font-mono);
    color: var(--accent-purple);
    font-size: 1rem;
    line-height: 1.25;
}

.neofetch-info h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.neofetch-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.neofetch-info p {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.n-key {
    color: var(--accent);
    font-weight: 500;
}

.badge-status-inner {
    background: rgba(158, 206, 106, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(158, 206, 106, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.terminal-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.t-prompt {
    color: var(--accent-purple);
}

.t-value {
    color: var(--text-light);
}

/* --- WORKSPACE 2: NEOVIM / IDE STACK --- */
.ide-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0;
    height: 500px;
    background: #11121d;
}

.ide-sidebar {
    background: #0f101a;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
}

.sidebar-files {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
}

.file-item {
    background: transparent;
    border: 0;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s var(--ease);
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
}

.file-item.active {
    background: rgba(122, 162, 247, 0.1);
    color: var(--accent);
}

.ide-editor {
    display: flex;
    flex-direction: column;
    background: #1a1b26;
}

.editor-tabs {
    background: #131420;
    display: flex;
    border-bottom: 1px solid var(--border);
    height: 35px;
}

.editor-tab {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    border-right: 1px solid var(--border);
    background: #1a1b26;
}

.editor-content-wrapper {
    display: grid;
    grid-template-columns: 45px 1fr;
    padding: 1.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.line-numbers {
    color: var(--text-muted);
    text-align: right;
    padding-right: 1rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    user-select: none;
}

.editor-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-light);
    white-space: pre-wrap;
}

/* Code colors mock */
.c-comment { color: var(--text-muted); font-style: italic; }
.c-keyword { color: var(--accent-purple); }
.c-string  { color: var(--accent-green); }
.c-class   { color: var(--accent-orange); }

/* --- WORKSPACE 3: GIT LOG TREE TIMELINE --- */
.git-log-body {
    max-height: 60vh;
    overflow-y: auto;
}

.git-tree {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

.git-node {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.git-node:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    bottom: -1.25rem;
    width: 2px;
    background: var(--border);
    transition: background 0.4s var(--ease);
}

.git-node.active:not(:last-child)::before {
    background: var(--accent);
}

.git-node::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--text-muted);
    z-index: 2;
    transition: all 0.3s var(--ease);
}

.git-node.active::after {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: scale(1.2);
}

.git-commit-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.commit-hash {
    color: var(--accent-orange);
}

.commit-tag {
    background: rgba(187, 154, 243, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(187, 154, 243, 0.3);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
}

.commit-date {
    color: var(--text-muted);
}

.git-commit-desc h3 {
    font-family: var(--font-main);
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.git-commit-desc .block-description {
    font-family: var(--font-main);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 760px;
}

.exp-tech-row, .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.skill-tag.accent {
    background: rgba(122, 162, 247, 0.08);
    border-color: rgba(122, 162, 247, 0.25);
    color: var(--accent);
}

/* --- WORKSPACE 4: TMUX TILING PANES --- */
.tmux-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    padding: 0;
    height: 480px;
}

.tmux-pane {
    background: #0d1117;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pane-header {
    background: var(--bg-darker);
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
}

.pane-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pane-content h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--text-main);
}

.pane-content .body-editorial {
    font-family: var(--font-main);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-light);
}

.pane-content .body-editorial li {
    margin-bottom: 0.5rem;
}

.glow-divider {
    height: 1px;
    background: var(--border);
}

/* --- WORKSPACE 5: FILE SYSTEM EXPLORER --- */
.file-manager-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    height: 420px;
    padding: 0;
    background: #11121d;
}

.file-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1.25rem;
    align-content: start;
    overflow-y: auto;
    background: #1a1b26;
}

.file-item-card {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s var(--ease);
}

.file-item-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
}

.file-item-card.active {
    background: rgba(122, 162, 247, 0.1);
    border-color: var(--accent);
}

.file-icon-large {
    font-size: 2.2rem;
}

.file-name {
    font-size: 0.72rem;
    color: var(--text-light);
    word-break: break-all;
}

.file-meta-info {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.file-inspector {
    background: #0f101a;
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.inspector-header {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.inspector-body h3 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.ins-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
}

}

/* Download button styling for inspector files */
.ins-download-btn {
    background: rgba(122, 162, 247, 0.1);
    color: var(--accent);
    border: 1px solid rgba(122, 162, 247, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s var(--ease);
    font-family: var(--font-mono);
}

.ins-download-btn:hover {
    background: rgba(122, 162, 247, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.15);
}

/* --- WORKSPACE 6: SSH TERMINAL --- */
.ssh-body {
    background: #08090d;
    height: 440px;
    padding: 1.5rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.ssh-output-area {
    flex: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.ssh-output-area::-webkit-scrollbar {
    width: 4px;
}

.ssh-output-area::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.ssh-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.ssh-prompt {
    color: var(--accent-purple);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.ssh-welcome {
    color: var(--accent);
}

.ssh-status {
    color: var(--accent-green);
}

.ssh-hint {
    color: var(--text-muted);
}

.ssh-cmd-echo {
    margin-bottom: 0.25rem;
}

.ssh-result-line {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.ssh-json-output {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    line-height: 1.6;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.j-key {
    color: var(--accent-purple);
}

.j-val {
    color: var(--accent-green);
    text-decoration: none;
    transition: text-shadow 0.2s var(--ease);
}

.j-val:hover {
    text-shadow: 0 0 6px var(--accent-green);
}

/* 6. FLOATING NAVIGATION DOTS */
.scroll-tracker {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

.nav-dot {
    width: 2rem;
    height: 2rem;
    background: rgba(10, 14, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(4px);
}

.nav-dot:hover {
    color: var(--text-light);
    border-color: var(--border-highlight);
    transform: scale(1.1);
}

.nav-dot.active {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: rgba(187, 154, 243, 0.15);
    box-shadow: 0 0 8px rgba(187, 154, 243, 0.3);
}

/* --- GLASS LIGHT REFLECTION SHINE EFFECT --- */
.git-commit-desc, .tmux-pane, .file-item-card {
    position: relative;
    overflow: hidden; /* Clips the radial gradient within the card boundaries */
}

/* Create the shine overlay, hidden by default and positioned via CSS variables */
.git-commit-desc::before, .tmux-pane::before, .file-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        220px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(255, 255, 255, 0.05) 0%,
        rgba(122, 162, 247, 0.02) 40%,
        transparent 85%
    );
    pointer-events: none; /* Prevents overlay from blocking click/hover events */
    z-index: 10;
    transition: opacity 0.5s ease;
    opacity: 0;
}

/* Reveal the glass reflection when the mouse hovers over the card */
.git-commit-desc:hover::before, .tmux-pane:hover::before, .file-item-card:hover::before {
    opacity: 1;
}

/* 7. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }
    
    .workspace-viewport {
        height: auto !important;
        overflow-y: visible !important;
    }
    
    .workspace-wrapper {
        height: auto !important;
        transform: none !important; /* Disable slides on mobile */
    }
    
    section {
        height: auto !important;
        min-height: 100vh;
        opacity: 1 !important; /* Always fully visible on mobile */
        transform: none !important;
    }
    
    section .window-frame {
        transform: none !important;
        opacity: 1 !important;
        max-height: none !important; /* Let cards stretch to content height */
    }
}

@media (max-width: 900px) {
    .ide-body {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .ide-sidebar {
        display: none; /* Hide sidebar file list on tablet/mobile */
    }
    
    .tmux-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    .tmux-pane:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }
    
    .file-manager-body {
        grid-template-columns: 1fr;
        height: auto;
    }
    .file-inspector {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 640px) {
    section {
        padding: 5rem 1rem 2rem;
    }
    .window-body {
        padding: 1.25rem;
    }
    .neofetch-container {
        gap: 1rem;
    }
    .neofetch-art {
        font-size: 0.8rem;
    }
    .scroll-tracker {
        display: none; /* Hide floating dots on tiny screens */
    }
    .top-bar-right {
        display: none;
    }
}

/* --- BOOT LOADER SEQUENCE --- */
#boot-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #05070a;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.boot-terminal {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.boot-line {
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.boot-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-logo {
    margin-top: 1.5rem;
    color: var(--accent-purple);
    font-size: 1.1rem;
    line-height: 1.35;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.boot-logo.visible {
    opacity: 1;
}

/* --- MASCOT ASSISTANT WIDGET --- */
#mascot-assistant {
    position: fixed;
    bottom: 2rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 990;
    background: rgba(10, 10, 18, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(122, 162, 247, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 320px;
    font-family: var(--font-mono);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#mascot-assistant:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(122, 162, 247, 0.15);
    transform: translateY(-2px);
}

.mascot-face {
    font-size: 0.85rem;
    color: var(--accent-purple);
    line-height: 1.3;
    user-select: none;
    flex-shrink: 0;
}

.mascot-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mascot-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mascot-text {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Hide companion widget on tablet & mobile */
@media (max-width: 900px) {
    #mascot-assistant {
        display: none;
    }
}

/* --- SHUTDOWN WORKSPACE --- */
.shutdown-body {
    background: #040508;
    height: 440px;
    padding: 2rem;
    color: #a9b1d6;
    display: flex;
    flex-direction: column;
}

.shutdown-output {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.cursor-blink-block {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: var(--accent-green);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink-block 1s infinite step-end;
}

@keyframes blink-block {
    50% { opacity: 0; }
}

/* --- COMMAND PALETTE OVERLAY --- */
.palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.palette-overlay.active {
    opacity: 1;
    visibility: visible;
}

.palette-window {
    width: 100%;
    max-width: 600px;
    background: rgba(22, 25, 37, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 20px rgba(122, 162, 247, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-overlay.active .palette-window {
    transform: translateY(0) scale(1);
}

.palette-search-box {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.palette-search-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
}

#palette-search-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1rem;
}

.palette-shortcut-hint {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.palette-results {
    max-height: 330px;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.palette-results::-webkit-scrollbar {
    width: 4px;
}

.palette-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-light);
}

.palette-item-name {
    flex: 1;
}

.palette-item-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-purple);
    background: rgba(187, 154, 243, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.palette-item.selected {
    background: rgba(122, 162, 247, 0.12);
    color: var(--accent);
}

.palette-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    background: #0f111a;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.palette-footer kbd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.05rem 0.2rem;
    color: var(--text-light);
}

.palette-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-main);
}

/* Command Palette Responsive Adjustments */
@media (max-width: 640px) {
    .palette-overlay {
        padding: 0.5rem;
        padding-top: 5vh;
    }
    .palette-window {
        max-width: 100%;
        border-radius: 8px;
    }
    .palette-shortcut-hint {
        display: none;
    }
    .palette-footer {
        display: none;
    }
}



