/* styles.css */
:root {
    --terminal-green: #33ff33;
    --terminal-dark: #0a0a0a;
    --terminal-light: #121212;
    --terminal-text: #e0e0e0;
    --terminal-cursor: #ffffff;
    --terminal-highlight: #005500;
}

body {
    background-color: var(--terminal-dark);
    color: var(--terminal-green);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.terminal {
    background-color: var(--terminal-light);
    border: 2px solid var(--terminal-green);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.2);
    margin: 20px auto;
    max-width: 900px;
    padding: 20px;
    position: relative;
}

.terminal-header {
    background-color: var(--terminal-dark);
    border-bottom: 1px solid var(--terminal-green);
    margin: -20px -20px 20px -20px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-buttons {
    display: flex;
    gap: 10px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--terminal-green);
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-body {
    min-height: 300px;
}

.command-line {
    display: flex;
    margin-bottom: 10px;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 10px;
}

.input-line {
    background-color: transparent;
    border: none;
    color: var(--terminal-green);
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
}

.cursor {
    animation: blink 1s infinite;
    background-color: var(--terminal-cursor);
    display: inline-block;
    height: 15px;
    margin-left: 5px;
    width: 8px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

a {
    color: var(--terminal-green);
    text-decoration: underline;
}

a:hover {
    color: var(--terminal-text);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--terminal-text);
    margin-top: 20px;
    margin-bottom: 10px;
}

h1 {
    border-bottom: 1px solid var(--terminal-green);
    padding-bottom: 5px;
}

pre {
    background-color: var(--terminal-dark);
    border-left: 3px solid var(--terminal-green);
    padding: 10px;
    overflow-x: auto;
}

code {
    background-color: var(--terminal-dark);
    color: var(--terminal-green);
    padding: 2px 5px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--terminal-green);
    border-radius: 5px;
}

/* Retro glitch effect */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Terminal typing effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--terminal-green);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 2px;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--terminal-green); }
}