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

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

:root {
    --primary-color: #3cb151;
    --bg-color: #1a1410;
    --terminal-bg: #2b2318;
    --text-color: #FF9500;
    --error-color: #ff6644;
    --warning-color: #FFB84D;
    --info-color: #FFA500;
    --success-color: #FFB84D;
}

body {
    font-family: 'Fira Code', 'VT323', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #2a2318 0%, #1a1410 100%);
}

/* CRT Effect */
.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.97; }
}

.terminal {
    background: var(--terminal-bg);
    border-radius: 16px;
    box-shadow: 
        0 0 0 8px #3a3a3a,
        0 0 0 12px #2a2a2a,
        0 30px 80px rgba(255, 149, 0, 0.15),
        inset 0 2px 20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: boot 0.3s ease-out;
    position: relative;
    border: 3px solid #1a1a1a;
}

@keyframes boot {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal-header {
    background: linear-gradient(to bottom, #3a3a3a, #252525);
    padding: 12px 15px;
    border-radius: 13px 13px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #1a1a1a;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn:hover {
    filter: brightness(1.3);
}

.close {
    background: #ff5f56;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #27c93f;
}

.header-title {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.terminal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    background: linear-gradient(to bottom, #2b2318, #221d15);
    border-radius: 0 0 13px 13px;
}

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

.terminal-body::-webkit-scrollbar-track {
    background: #1a1410;
    border-radius: 0 0 13px 0;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #FFB84D;
}

#output {
    margin-bottom: 15px;
}

.output-line {
    margin-bottom: 8px;
    word-wrap: break-word;
    animation: typewriter 0.05s;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.2);
}

@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ascii-art {
    color: var(--primary-color);
    line-height: 1.2;
    font-size: 12px;
    margin: 10px 0;
    text-shadow: 0 0 8px rgba(255, 149, 0, 0.5);
}

.command {
    color: #996633;
}

.error {
    color: var(--error-color);
}

.success {
    color: var(--success-color);
}

.warning {
    color: var(--warning-color);
}

.info {
    color: var(--info-color);
}

.link {
    color: var(--info-color);
    text-decoration: underline;
    cursor: pointer;
}

.link:hover {
    color: var(--success-color);
}

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

.prompt {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.4);
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    outline: none;
    text-shadow: 0 0 8px rgba(255, 149, 0, 0.3);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

.help-section {
    margin: 15px 0;
}

.help-section h3 {
    color: var(--warning-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.help-item {
    margin-left: 20px;
    margin-bottom: 5px;
}

.help-item .cmd {
    color: var(--info-color);
    font-weight: 700;
}

.help-item .desc {
    color: #aaa;
}

.project-card, .skill-card {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin: 15px 0;
    box-shadow: -3px 0 10px rgba(255, 149, 0, 0.1);
}

.project-title, .skill-title {
    color: var(--warning-color);
    font-weight: 700;
    font-size: 16px;
}

.project-desc, .skill-desc {
    color: #aaa;
    margin-top: 5px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 149, 0, 0.15);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid rgba(255, 149, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.3);
}

.loading {
    display: inline-block;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.matrix-effect {
    color: var(--primary-color);
    font-family: 'VT323', monospace;
    animation: matrix-fall 0.5s linear;
}

@keyframes matrix-fall {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal {
        max-height: 90vh;
        border-radius: 4px;
    }

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

    .ascii-art {
        font-size: 8px;
    }
}

/* Hidden Easter Egg Styles */
.secret {
    color: var(--terminal-bg);
    background: var(--terminal-bg);
    user-select: none;
}

.secret:hover {
    color: var(--warning-color);
    background: transparent;
}

.rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.glitch {
    animation: glitch 1s infinite;
}

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