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

body {
    font-family: 'Courier New', Monaco, monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terminal-container {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: terminalGlow 3s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% { 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 
                    0 0 60px rgba(255, 0, 255, 0.2),
                    0 0 90px rgba(0, 255, 0, 0.1);
    }
    33% { 
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.4), 
                    0 0 70px rgba(0, 255, 0, 0.3),
                    0 0 100px rgba(255, 255, 0, 0.2);
    }
    66% { 
        box-shadow: 0 0 50px rgba(0, 255, 0, 0.5), 
                    0 0 80px rgba(255, 255, 0, 0.4),
                    0 0 110px rgba(0, 255, 255, 0.3);
    }
    100% { 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 
                    0 0 60px rgba(255, 0, 255, 0.2),
                    0 0 90px rgba(0, 255, 0, 0.1);
    }
}

.terminal-header {
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #444;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 20px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27ca3f; }

.title {
    color: #ccc;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    letter-spacing: 1px;
}

.terminal-body {
    background: #000;
    height: calc(100% - 40px);
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.terminal-content {
    color: #00ff00;
    font-size: 16px;
    line-height: 1.4;
}

.welcome-message {
    margin-bottom: 20px;
}

.ascii-art pre {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
    font-family: 'Courier New', monospace;
    line-height: 1.3;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
}

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

/* Clean ASCII art styles */
@keyframes subtleColorShift {
    0% { color: #ffffff; }
    25% { color: #00ffff; }
    50% { color: #ffff00; }
    75% { color: #ff00ff; }
    100% { color: #ffffff; }
}

@keyframes gentleGlow {
    0%, 100% { 
        text-shadow: 
            0 0 2px rgba(255, 255, 255, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 4px rgba(255, 255, 255, 0.8),
            0 0 8px rgba(0, 255, 255, 0.3);
    }
}

.ascii-art.rainbow pre {
    animation: cyberGlow 3s ease-in-out infinite;
    font-weight: normal;
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #00ffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@keyframes cyberGlow {
    0% { 
        text-shadow: 
            0 0 5px rgba(0, 255, 255, 0.8),
            0 0 10px rgba(0, 255, 255, 0.6),
            0 0 20px rgba(255, 0, 255, 0.4),
            0 0 30px rgba(255, 0, 255, 0.2);
        transform: scale(1);
        filter: brightness(1.1);
    }
    25% { 
        text-shadow: 
            0 0 8px rgba(255, 0, 255, 0.9),
            0 0 15px rgba(255, 0, 255, 0.7),
            0 0 25px rgba(0, 255, 0, 0.5),
            0 0 35px rgba(0, 255, 0, 0.3);
        transform: scale(1.005);
        filter: brightness(1.2);
    }
    50% { 
        text-shadow: 
            0 0 10px rgba(0, 255, 0, 1.0),
            0 0 20px rgba(0, 255, 0, 0.8),
            0 0 30px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(0, 255, 255, 0.4);
        transform: scale(1.01);
        filter: brightness(1.3);
    }
    75% { 
        text-shadow: 
            0 0 8px rgba(0, 255, 255, 0.9),
            0 0 15px rgba(255, 0, 255, 0.7),
            0 0 25px rgba(255, 0, 255, 0.5),
            0 0 35px rgba(0, 255, 0, 0.3);
        transform: scale(1.005);
        filter: brightness(1.2);
    }
    100% { 
        text-shadow: 
            0 0 5px rgba(0, 255, 255, 0.8),
            0 0 10px rgba(0, 255, 255, 0.6),
            0 0 20px rgba(255, 0, 255, 0.4),
            0 0 30px rgba(255, 0, 255, 0.2);
        transform: scale(1);
        filter: brightness(1.1);
    }
}

.version-info, .system-info {
    margin: 10px 0;
    color: #00ff00;
}

.prompt {
    color: #ffff00;
    margin-right: 8px;
    font-weight: bold;
}

.command {
    color: #00ffff;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ffff, #ff00ff);
    width: 0%;
    animation: loading 3s ease-in-out forwards;
    border-radius: 2px;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.command-history {
    margin-bottom: 10px;
}

.command-line {
    margin: 5px 0;
    animation: typeIn 0.5s ease-out;
}

@keyframes typeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.output {
    color: #cccccc;
    margin-left: 20px;
    margin-top: 5px;
}

.error {
    color: #ff4444;
}

.success {
    color: #44ff44;
}

.info {
    color: #4444ff;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 16px;
    outline: none;
    flex: 1;
    caret-color: #00ff00;
}

.command-input::placeholder {
    color: #666;
}

/* Custom scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Cursor animation */
.command-input {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #00ff00; }
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95vw;
        height: 90vh;
    }
    
    .ascii-art pre {
        font-size: 8px;
    }
    
    .terminal-content {
        font-size: 14px;
    }
}

/* Matrix rain effect background */
.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(transparent 50%, rgba(0, 255, 0, 0.05) 50%),
        linear-gradient(90deg, transparent 50%, rgba(0, 255, 0, 0.05) 50%);
    background-size: 100px 100px, 100px 100px;
    opacity: 0.1;
    pointer-events: none;
}