@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

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

.terminal {
    width: 90vw;
    max-width: 900px;
    height: 80vh;
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #1a1a1a;
    border-bottom: 1px solid #00ff00;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-title {
    font-size: 12px;
    color: #00ff00;
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid #00ff00;
    color: #00ff00;
    background: transparent;
}

.control:hover {
    background: rgba(0, 255, 0, 0.2);
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #0a0a0a;
}

#output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #00ff00;
    margin-right: 5px;
}

#command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
}

.cursor {
    background: #00ff00;
    width: 8px;
    height: 16px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.green { color: #00ff00; }
.amber { color: #ffbf00; }
.cyan { color: #00ffff; }
.white { color: #ffffff; }
.gray { color: #808080; }
.red { color: #ff0000; }

.ascii-art {
    color: #00ff00;
    line-height: 1;
    margin: 10px 0;
}

.info-block {
    margin: 15px 0;
    padding-left: 20px;
}

.project-item {
    margin: 8px 0;
    padding-left: 10px;
}

.link {
    color: #00ffff;
    text-decoration: underline;
    cursor: pointer;
}

.link:hover {
    color: #ffbf00;
}

.terminal-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 2px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

.terminal-body::-webkit-scrollbar {
    width: 14px !important;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a !important;
    border: 1px solid #00ff00 !important;
    border-radius: 0 !important;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #00ff00 !important;
    border: 1px solid #0a0a0a !important;
    border-radius: 0 !important;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #ffbf00 !important;
}

.terminal-body::-webkit-scrollbar-corner {
    background: #0a0a0a !important;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .terminal {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
    }

    .terminal-header {
        padding: 10px 15px;
    }

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

    .terminal-title {
        font-size: 11px;
    }

    .control {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .terminal-body::after {
        display: none;
    }

    .terminal-body::-webkit-scrollbar {
        width: 8px !important;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        padding: 10px 8px;
        font-size: 11px;
        line-height: 1.3;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 10px;
    }

    .control {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }

    .ascii-art {
        font-size: 10px;
        line-height: 0.9;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .terminal {
        height: 95vh;
    }

    .terminal-body {
        padding: 10px;
        font-size: 12px;
    }
}
