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

body {
    font-family: 'JetBrains Mono', monospace;
    background: #000;
    color: #0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.terminal {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #0f0;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 60px rgba(0, 255, 0, 0.03);
    backdrop-filter: blur(4px);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px 8px 0 0;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 255, 0, 0.6);
}

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

.ascii-header {
    color: #0f0;
    font-size: 11px;
    line-height: 1.2;
    white-space: pre;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.line {
    margin-bottom: 2px;
}

.prompt {
    color: #0f0;
    margin-right: 8px;
}

.output {
    color: #0f0;
    padding-left: 20px;
}

.output.dim {
    color: rgba(0, 255, 0, 0.5);
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
}

.project {
    display: flex;
    gap: 16px;
    text-decoration: none;
    padding: 4px 8px;
    margin: 0 -8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.project:hover {
    background: rgba(0, 255, 0, 0.15);
}

.project-name {
    color: #5ff;
    min-width: 80px;
}

.project:hover .project-name {
    text-decoration: underline;
}

.project-desc {
    color: rgba(0, 255, 0, 0.5);
}

.terminal-body a {
    color: #5ff;
    text-decoration: none;
}

.terminal-body a:hover {
    text-decoration: underline;
}

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

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

@media (max-width: 480px) {
    .terminal {
        width: 95%;
        margin: 10px;
    }

    .terminal-body {
        padding: 16px;
        font-size: 13px;
    }

    .project {
        flex-direction: column;
        gap: 2px;
    }

    .project-name {
        min-width: auto;
    }
}
