@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700&family=Share+Tech+Mono&display=swap');

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

:root {
    --phosphor-green: #33FF33;
    --bright-green: #66FF66;
    --terminal-bg: #0A0A0A;
    --dark-green-bg: #0D1A0D;
    --muted-green: #4A6B4A;
    --soft-green: #B8D4B8;
    --amber: #CCAA44;
    --error-red: #FF4444;
}

body {
    background-color: var(--terminal-bg);
    color: var(--phosphor-green);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 1px,
        rgba(13, 26, 13, 0.15) 1px,
        rgba(13, 26, 13, 0.15) 2px
    );
}

.crt-flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    animation: crtFlicker 0.1s infinite;
    opacity: 0.02;
    background: var(--phosphor-green);
}

@keyframes crtFlicker {
    0% { opacity: 0.02; }
    50% { opacity: 0.015; }
    100% { opacity: 0.02; }
}

.terminal-output {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.terminal-section {
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.terminal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.boot-section {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
    opacity: 1;
    transform: none;
}

.boot-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted-green);
    line-height: 1.5;
    white-space: pre-wrap;
}

.terminal-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    color: var(--bright-green);
    text-shadow: 0 0 20px rgba(51, 255, 51, 0.5), 0 0 60px rgba(51, 255, 51, 0.2);
    margin-bottom: 1rem;
    position: relative;
}

.glitch-text {
    animation: glitchSubtle 8s infinite;
}

@keyframes glitchSubtle {
    0%, 95%, 100% { text-shadow: 0 0 20px rgba(51, 255, 51, 0.5), 0 0 60px rgba(51, 255, 51, 0.2); }
    96% { text-shadow: 2px 0 20px rgba(255, 68, 68, 0.5), -2px 0 20px rgba(51, 255, 51, 0.5); }
    97% { text-shadow: -1px 0 20px rgba(51, 255, 51, 0.5), 1px 0 60px rgba(204, 170, 68, 0.3); }
}

.terminal-subheading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--amber);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.terminal-body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--soft-green);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.terminal-body.dim {
    color: var(--muted-green);
    font-size: 0.85rem;
}

.terminal-prompt {
    padding: 2rem 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--phosphor-green);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.terminal-prompt.visible {
    opacity: 1;
}

.prompt-symbol {
    color: var(--bright-green);
    margin-right: 0.5rem;
}

.prompt-text {
    color: var(--phosphor-green);
}

.prompt-cursor {
    display: inline-block;
    animation: cursorBlink 1s step-end infinite;
    margin-left: 0.25rem;
    color: var(--bright-green);
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.code-block {
    background: rgba(13, 26, 13, 0.5);
    border-left: 2px solid var(--muted-green);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-comment { color: var(--muted-green); }
.code-keyword { color: var(--amber); }
.code-string { color: var(--bright-green); }
.code-number { color: var(--error-red); }

.terminal-list {
    margin: 1rem 0;
}

.list-item {
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.list-prefix {
    color: var(--muted-green);
    margin-right: 1.5rem;
    display: inline-block;
    min-width: 120px;
}

.list-name {
    color: var(--bright-green);
}

.log-stream {
    border-left: 2px solid rgba(51, 255, 51, 0.2);
    padding-left: 1.5rem;
}

.log-entry {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--soft-green);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.log-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

.log-time {
    color: var(--muted-green);
    margin-right: 1rem;
}

.terminal-footer {
    border-top: 1px solid rgba(51, 255, 51, 0.1);
    margin-top: 4rem;
    padding-top: 2rem;
}
