:root {
    --bg-color: #1e1e1e;
    --text-color: #32cd32; /* Lime Green */
    --accent-color: #00ff00;
    --header-bg: #333;
    --font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #121212;
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.terminal {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #444;
}

.terminal-header {
    background-color: var(--header-bg);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buttons {
    display: flex;
    gap: 6px;
}

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

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.title {
    color: #ccc;
    font-size: 0.8em;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px;
    line-height: 1.6;
}

h1 {
    font-size: 1.5em;
    margin: 10px 0;
    color: var(--accent-color);
}

.prompt {
    color: #00ff00;
    font-weight: bold;
    margin: 20px 0 5px 0;
}

.prompt::before {
    content: "➜ ";
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--text-color);
    transition: all 0.2s ease;
}

a:hover {
    color: white;
    background-color: var(--text-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.tree-view pre {
    background: #1a1a1a;
    padding: 15px;
    border-left: 2px solid var(--accent-color);
    margin: 10px 0;
    font-size: 0.9em;
    overflow-x: auto;
}

.tree-view b {
    color: var(--accent-color);
}

.section-title {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-item {
    border: 1px solid #333;
    padding: 15px;
    background: #252525;
}

.project-item.legacy {
    border-color: #222;
    background: #1a1a1a;
    opacity: 0.85;
}

.rapid-stats {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

#cycling-stat {
    transition: opacity 0.1s ease-in-out;
}

.stat-label {
    color: var(--accent-color);
}

.project-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.blink-cursor {
    animation: blink 1s infinite step-end;
    font-weight: bold;
    display: inline-block;
}

/* Glitch Easter Egg */
#glitch-overlay.hidden {
    display: none;
}

#glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #ff0000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: var(--font-family);
    text-align: center;
}

.panic-box {
    border: 2px solid #ff0000;
    padding: 40px;
    background: #1a0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.error-msg {
    font-weight: bold;
    font-size: 1.5em;
    margin-bottom: 20px;
    animation: flash 0.5s infinite;
}

@keyframes flash {
    50% { opacity: 0; }
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .terminal {
        margin: 0;
    }
    .terminal-body {
        padding: 15px;
    }
    h1 {
        font-size: 1.2em;
    }
    .tree-view pre {
        font-size: 0.8em;
        padding: 10px;
    }
    .rapid-stats {
        font-size: 0.9em;
        flex-direction: column;
        gap: 5px;
    }
    .prompt {
        font-size: 0.9em;
    }
    .panic-box {
        padding: 20px;
        width: 90%;
        font-size: 0.8em;
    }
}
