:root {
    --terminal-green: #00ff41;
    --terminal-user: #00b32d;
    --terminal-glow: rgba(0, 255, 65, 0.5);
    --terminal-dim: #004411;
    --background: #050a05;
}

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

body {
    background-color: var(--background);
    color: var(--terminal-green);
    font-family: 'VT323', monospace;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 200;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 200;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.0279; }
    50% { opacity: 0.0911; }
    100% { opacity: 0.0055; }
}

#boot-screen {
    height: 100%;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#boot-logs p {
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.hidden {
    display: none !important;
}

#terminal-screen {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    height: 80vh;
    border: 2px solid var(--terminal-dim);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.title-bar {
    background: rgba(0, 68, 17, 0.2);
    border-bottom: 1px solid var(--terminal-dim);
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-buttons {
    display: flex;
    gap: 0.4rem;
}

.dot-red, .dot-yellow, .dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot-red { background: #550000; }
.dot-yellow { background: #555500; }
.dot-green { background: #005500; }

.content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.command-line {
    margin-bottom: 1.5rem;
}

.prompt-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-text {
    color: var(--terminal-user);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: var(--terminal-green);
    vertical-align: middle;
    margin-left: 2px;
}

.output {
    margin-top: 0.5rem;
    padding-left: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ascii-art {
    font-size: 0.75rem;
    line-height: 1.1;
    color: var(--terminal-green);
    margin-bottom: 1.5rem;
    white-space: pre;
    text-shadow: 0 0 10px var(--terminal-glow);
}

.profile h2 {
    font-size: 1.8rem;
    text-shadow: 0 0 5px var(--terminal-glow);
    margin-bottom: 0.5rem;
}

.projects-list {
    border-left: 2px solid var(--terminal-dim);
    padding-left: 1rem;
}

.project-item {
    margin-bottom: 0.25rem;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .social-grid { grid-template-columns: 1fr; }
    .ascii-art { font-size: 0.3rem; }
}

.card {
    border: 1px solid var(--terminal-dim);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.card:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--terminal-green);
}

.card-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.card-subtitle {
    font-size: 0.8rem;
    opacity: 0.6;
}

.version {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    opacity: 0.3;
}