:root {
    --bg-color: rgba(0, 0, 0, 0.85);
    --text-color: #ffffff;
    --prompt-color: #ffffff;
    --border-color: #333333;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: var(--font-mono);
    color: var(--text-color);
    overflow: hidden;
}

/* FIX: Mobile Blocker does not break PC UI */
#mobile-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glitch {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #ffffff;
    letter-spacing: 2px;
}

.sub-text {
    display: block;
    margin-top: 10px;
    color: #555;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    #mobile-blocker { display: flex; }
    .terminal-window,
    .crt-overlay,
    #matrix-canvas { display: none !important; }
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.1) 50%),
        linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01), rgba(255,255,255,0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

.terminal-window {
    width: 95%;
    max-width: 900px;
    height: 85vh;
    background: var(--bg-color);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.buttons { display: flex; gap: 8px; }
.buttons span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border-color); }
.close { background: #ffffff; }
.minimize { background: #888888; }
.maximize { background: #333333; }

.title { flex-grow: 1; text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; }

.terminal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.hidden { display: none !important; }
.user-line { margin-top: 15px; animation: fadeIn 0.1s ease-out forwards; }
.command-output { margin: 8px 0 15px 0; animation: fadeIn 0.25s ease-out forwards; line-height: 1.6; color: #dddddd; }
.input-line { display: flex; gap: 10px; align-items: center; margin-top: 15px;}
.prompt { color: var(--prompt-color); font-weight: bold; white-space: nowrap; }

input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
}

.fastfetch {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    margin: 20px 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.ascii { font-family: var(--font-mono); white-space: pre; line-height: 1.1; color: #ffffff; }
.info { color: #ffffff; line-height: 1.5; }
.info b { display: inline-block; width: 75px; text-decoration: underline; text-underline-offset: 4px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
