/* Terminal Animation Effects */
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.terminal-cursor::after {
    content: '_';
    animation: cursor-blink 1s infinite;
    color: var(--terminal-blue);
    font-weight: bold;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: var(--terminal-blue);
}

.glitch-effect {
    animation: glitch 2s infinite;
}

.scanline-effect {
    position: relative;
    overflow: hidden;
}

.scanline-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--terminal-blue);
    animation: scanline 3s linear infinite;
    opacity: 0.3;
}

/* Matrix rain effect background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Terminal window styling */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--terminal-blue);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-white);
    padding: 8px 12px;
    border-bottom: 1px solid var(--terminal-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--terminal-blue);
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: var(--terminal-blue);
    min-height: 200px;
}

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

.terminal-prompt::before {
    content: '$ ';
    color: var(--terminal-blue);
}

/* Code block styling */
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--terminal-blue);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: var(--terminal-blue);
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '>';
    position: absolute;
    left: 10px;
    top: 20px;
    color: var(--terminal-blue);
}

.code-block code {
    margin-left: 20px;
    display: block;
    line-height: 1.6;
}

/* Loading terminal effect */
.terminal-loading {
    display: inline-block;
    position: relative;
}

.terminal-loading::after {
    content: '...';
    animation: typing 1.5s steps(3) infinite;
    color: var(--terminal-blue);
}

/* Hover effects with terminal theme */
.terminal-hover {
    transition: all 0.3s ease;
    position: relative;
}

.terminal-hover:hover {
    color: var(--terminal-blue);
    transform: translateY(-2px);
}

.terminal-hover::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terminal-blue);
    transition: width 0.3s ease;
}

.terminal-hover:hover::before {
    width: 100%;
}
