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

body {
    background: #0a0a0a;
    color: #4a9b4a;
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    font-size: 14px;
    line-height: 1.2;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* CRT Screen effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(74, 155, 74, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}

.terminal-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Terminal header */
.terminal-header {
    border-bottom: 1px solid #4a9b4a;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.terminal-title {
    color: #4a9b4a;
    text-shadow: 0 0 10px #4a9b4a;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #4a9b4a, 0 0 10px #4a9b4a; }
    to { text-shadow: 0 0 10px #4a9b4a, 0 0 20px #4a9b4a, 0 0 30px #4a9b4a; }
}

/* ASCII Art styling */
.ascii-art {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.1;
    white-space: pre;
    color: #4a9b4a;
    text-shadow: 0 0 5px #4a9b4a;
    margin: 20px 0;
    text-align: center;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

/* Subtitle styling */
.subtitle {
    text-align: center;
    font-size: 18px;
    color: #4a9b4a;
    text-shadow: 0 0 8px #4a9b4a;
    margin: 30px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Terminal prompt styling */
.terminal-prompt {
    margin: 30px 0;
    font-size: 14px;
}

.prompt-line {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.prompt-symbol {
    color: #4a9b4a;
    margin-right: 5px;
    text-shadow: 0 0 5px #4a9b4a;
}

.prompt-text {
    color: #3a7a3a;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    background-color: #4a9b4a;
    width: 10px;
    height: 14px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* System info styling */
.system-info {
    border: 1px solid #4a9b4a;
    padding: 15px;
    margin: 20px 0;
    background: rgba(74, 155, 74, 0.05);
    box-shadow: 0 0 20px rgba(74, 155, 74, 0.3);
}

.info-line {
    margin: 3px 0;
    display: flex;
}

.info-label {
    color: #4a9b4a;
    min-width: 120px;
}

.info-value {
    color: #3a7a3a;
}

/* Boot sequence animation */
.boot-sequence {
    margin: 20px 0;
}

.boot-line {
    margin: 2px 0;
    color: #3a7a3a;
    opacity: 0;
    animation: boot-appear 0.5s ease-out forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.4s; }
.boot-line:nth-child(3) { animation-delay: 0.6s; }
.boot-line:nth-child(4) { animation-delay: 0.8s; }
.boot-line:nth-child(5) { animation-delay: 1.0s; }

@keyframes boot-appear {
    to { opacity: 1; }
}

/* Scrolling text effect */
.scrolling-text {
    height: 200px;
    overflow: hidden;
    border: 1px solid #4a9b4a;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    position: relative;
}

.scroll-content {
    animation: scroll-up 15s linear infinite;
}

@keyframes scroll-up {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 12px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

/* Matrix rain effect background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* Glitch effect for ASCII art */
.glitch {
    position: relative;
    animation: digital-flicker 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: rgb-glitch-1 3s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch::after {
    animation: rgb-glitch-2 3s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes digital-flicker {
    0%, 90% { opacity: 1; }
    91% { opacity: 0.8; }
    92% { opacity: 1; }
    93% { opacity: 0.9; }
    94% { opacity: 1; }
    95% { opacity: 0.7; }
    96% { opacity: 1; }
    97% { opacity: 0.85; }
    98% { opacity: 1; }
    99% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes rgb-glitch-1 {
    0%, 88% {
        transform: translate(0);
        opacity: 0;
    }
    89% {
        transform: translate(-2px, 0);
        opacity: 0.7;
    }
    90% {
        transform: translate(1px, 0);
        opacity: 0.8;
    }
    91% {
        transform: translate(0);
        opacity: 0;
    }
    92% {
        transform: translate(-1px, 0);
        opacity: 0.6;
    }
    93% {
        transform: translate(2px, 0);
        opacity: 0.9;
    }
    94%, 100% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes rgb-glitch-2 {
    0%, 86% {
        transform: translate(0);
        opacity: 0;
    }
    87% {
        transform: translate(1px, 0);
        opacity: 0.5;
    }
    88% {
        transform: translate(-2px, 0);
        opacity: 0.7;
    }
    89% {
        transform: translate(0);
        opacity: 0;
    }
    90% {
        transform: translate(2px, 0);
        opacity: 0.6;
    }
    91% {
        transform: translate(-1px, 0);
        opacity: 0.8;
    }
    92%, 100% {
        transform: translate(0);
        opacity: 0;
    }
}

/* Scan line interference effect */
.glitch::after {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.03) 2px,
        transparent 3px
    );
}