@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background: #0d1117;
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

.matrix-char {
    position: absolute;
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Terminal container */
.terminal {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 2rem auto;
    background: rgba(13, 17, 23, 0.95);
    border: 2px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.1);
    overflow: hidden;
    min-height: 80vh;
}

/* Terminal header */
.terminal-header {
    background: #21262d;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    color: #f0f6fc;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Terminal content */
.terminal-content {
    padding: 1.5rem;
    min-height: 70vh;
    background: #0d1117;
    max-height: 70vh;
    overflow-y: auto;
}

.output-line {
    margin-bottom: 0.3rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt {
    color: #58a6ff;
}

.command {
    color: #f0f6fc;
}

.output {
    color: #00ff41;
}

.output.info {
    color: #58a6ff;
}

.output.warning {
    color: #f85149;
}

.output.success {
    color: #3fb950;
}

.output.error {
    color: #ff6b6b;
}

/* Input line */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.terminal-input {
    background: none;
    border: none;
    color: #f0f6fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    flex: 1;
    caret-color: #00ff41;
}

.terminal-input::selection {
    background: rgba(0, 255, 65, 0.3);
}

/* ASCII Art */
.ascii-art {
    color: #58a6ff;
    font-size: 0.7rem;
    line-height: 1;
    margin: 1rem 0;
    text-align: center;
    white-space: pre;
	text-shadow: 0 0 5px #58BFFF;
	animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
                from {
                    text-shadow: 0 0 5px #58BFFF, 0 0 10px #58BFFF;
                }
                to {
                    text-shadow: 0 0 10px #58BFFF, 0 0 15px #058BFFF, 0 0 30px #58BFFF;
                }
            }

/* Scrollbar styling */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #21262d;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .terminal {
        margin: 1rem;
        font-size: 0.9rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .ascii-art {
        font-size: 0.5rem;
    }
}