/* Terminal Easter Egg */
.terminal-btn {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Fira Code', monospace;
    transition: all 0.3s ease;
}

.terminal-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--accent-primary);
}

.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.terminal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.terminal-window {
    width: 800px;
    height: 500px;
    background: #0a0a0f;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-title {
    color: var(--accent-secondary);
    font-size: 0.9rem;
}

.terminal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.terminal-close:hover {
    color: #ff5555;
}

.terminal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #f8f8f2;
}

.terminal-line {
    margin-bottom: 5px;
    line-height: 1.5;
}

.terminal-line.error {
    color: #ff5555;
}

.terminal-input-line {
    display: flex;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
}

.prompt {
    color: #50fa7b;
    margin-right: 10px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8f8f2;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    outline: none;
}

/* Matrix Effect */
.matrix-mode {
    filter: sepia(100%) hue-rotate(50deg) saturate(300%) contrast(1.2);
}

.matrix-text {
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
}

/* Hero Terminal Specifics */
.hero-command-line {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-input {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    flex: 1;
    outline: none;
    caret-color: var(--accent-primary);
    padding-left: 0.5rem;
}

.hero-input::placeholder {
  color: rgba(0, 255, 255, 0.2);
  font-size: 0.9rem;
}

.hero-output {
    margin-top: 0.75rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-height: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.4;
}

.hero-output .success { color: #00ff88; text-shadow: 0 0 5px #00ff88; }
.hero-output .error { color: #ff5555; text-shadow: 0 0 5px #ff5555; }
.hero-output .info { color: var(--accent-secondary); }