:root {
    --bg-color: #0a0a0a;
    --terminal-bg: #1a1a1a;
    --text-color: #33ff33;
    --dim-text: rgba(51, 255, 51, 0.7);
    --accent-color: #ff3838;
    --header-bg: #2a2a2a;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    transform: scale(0.8);
}

.terminal {
    width: 100%;
    max-width: 800px;
    background: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: fixed;
    user-select: none;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.terminal-header {
    background: var(--header-bg);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    background: #ff5f56;
}
.close:hover:after {
    content: "×";
}

.minimize {
    background: #ffbd2e;
}
.minimize:hover:after {
    content: "−";
}

.maximize {
    background: #27c93f;
}
.maximize:hover:after {
    content: "+";
}

.control:after {
    position: absolute;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 12px;
    text-align: center;
}

.control {
    position: relative;
}

.control::before {
    content: '';
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.1s ease;
    font-family: system-ui;
}

.control:hover::before {
    opacity: 1;
}

/* Remove the terminal header hover effect */
.terminal-header:hover .control::before {
    opacity: 0;
}

.title {
    color: var(--dim-text);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.terminal-content {
    cursor: default;
    padding: 1.5rem;
    min-height: 850px;
    position: relative;
    z-index: 1;
    max-height: 850px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.terminal-content::-webkit-scrollbar {
    display: none;
}

.line {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--accent-color);
}

.command {
    color: var(--text-color);
}

.output {
    color: var(--dim-text);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.ascii-art {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    white-space: pre-line;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.link {
    color: #9d4edd;
    text-decoration: none;
    border-bottom: 1px solid #9d4edd;
    padding-bottom: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: glow 2s ease-in-out infinite;
}

.link:hover {
    opacity: 1;
    color: #c77dff;
    border-bottom-color: #c77dff;
    text-shadow: 0 0 8px rgba(157, 78, 221, 0.5);
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 2px rgba(157, 78, 221, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
    }
}

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

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

.command-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
}

.command-input::placeholder {
    color: var(--dim-text);
    opacity: 0.5;
}

.history {
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    body {
        padding: 0.8rem;
        transform: scale(1);
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .terminal {
        max-width: 100%;
        border-radius: 8px;
        min-height: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .terminal-content {
        min-height: 650px;
        max-height: 650px;
    }
    
    .ascii-art {
        font-size: 0.45rem;
        line-height: 1;
        margin-bottom: 1rem;
    }

    .system-info {
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    .features {
        gap: 0.5rem;
        font-size: 0.8rem;
        padding-right: 0.5rem;
    }

    .title {
        font-size: 0.8rem;
    }

    .control {
        width: 10px;
        height: 10px;
    }

    .line {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .output {
        margin-bottom: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 380px) {
    .ascii-art {
        font-size: 0.4rem;
    }

    .terminal-content {
        min-height: 500px;
        max-height: 500px;
        padding: 0.8rem;
    }

    .features {
        font-size: 0.75rem;
    }
}

.command a {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.command a.link {
    display: inline-block;
    position: relative;
    z-index: 2;
    pointer-events: all;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.3) 1px,
        rgba(0, 0, 0, 0.1) 2px
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
    mix-blend-mode: soft-light;
}

.scanlines::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    pointer-events: none;
    opacity: 0.5;
} 