:root {
    --font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-size: 1rem;
    --line-height: 1.5;
}

[data-theme="green"] {
    --background-color: #050a05;
    --primary-color: #00ff41;
    --secondary-color: #0a8a0a;
    --shadow-color: rgba(0, 255, 65, 0.5);
}

[data-theme="red"] {
    --background-color: #100505;
    --primary-color: #ff1818;
    --secondary-color: #b30f0f;
    --shadow-color: rgba(255, 24, 24, 0.5);
}

[data-theme="blue"] {
    --background-color: #050a10;
    --primary-color: #38b6ff;
    --secondary-color: #1e78b3;
    --shadow-color: rgba(56, 182, 255, 0.5);
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

/* CRT Scanlines Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.4), rgba(0,0,0,0.4) 1px, transparent 1px, transparent 3px);
    z-index: 9999;
    pointer-events: none;
    opacity: 0.5;
}

#terminal {
    padding: 1rem;
    min-height: calc(100vh - 2rem);
    box-sizing: border-box;
    cursor: text;
    display: flex;
    flex-direction: column;
}

#output {
    flex-grow: 1;
}

.output-line, .input-line {
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: center;
}

.prompt {
    margin-right: 0.5em;
    white-space: nowrap;
}

#command-input {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: var(--font-size);
    flex-grow: 1;
    padding: 0;
}

#command-input:focus {
    outline: none;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { border-right: 2px solid var(--primary-color); }
    50% { border-right-color: transparent; }
}

h2, h3, h4 {
    color: var(--primary-color);
    text-shadow: 0 0 3px var(--shadow-color);
    margin-bottom: 0.5rem;
}
.output-line ul { margin-top: 0.5rem; padding-left: 2rem; }
.output-line li { margin-bottom: 0.25rem; }


a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--shadow-color);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.resource-card, .skill-category, .project {
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}
.resource-card h3 {
    margin-top: 0;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.project h4 {
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}
