/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --terminal-bg: #1a1a1a;
    --text: #e0e0e0;
    --text-dim: #888888;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --border: #333333;
    --prompt: #ff6b6b;
    --command: #4ecdc4;
    --output: #95e1d3;
    
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Roboto Mono', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Terminal Window */
.terminal-window {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    background: var(--terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex: 1;
    min-height: 90vh;
}

.terminal-header {
    background: #2a2a2a;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-dim);
    font-size: 13px;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 3rem;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 16px;
}

/* Help Banner */
.help-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
}

.help-icon {
    font-size: 28px;
    line-height: 1;
}

.help-text {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text);
}

.help-text strong {
    color: var(--accent);
}

.help-text code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: var(--command);
    font-family: var(--font-mono);
    font-size: 14px;
}

/* Scrollbar */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Terminal Lines */
.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prompt {
    color: var(--prompt);
    font-weight: bold;
}

.command {
    color: var(--command);
}

.output {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

/* ASCII Art */
.ascii-art {
    color: var(--accent);
    font-size: 14px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: bold;
    overflow-x: auto;
    white-space: pre;
}

.bio-text {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.location {
    color: var(--text-dim);
    font-size: 16px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: #252525;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-family: var(--font-sans);
}

.skill-header i {
    font-size: 28px;
    color: var(--accent);
}

.skill-header span {
    font-weight: 600;
    font-size: 17px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #2a2a2a;
    border: 1px solid var(--border);
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Projects List */
.projects-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-card {
    background: #252525;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.project-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 36px;
    line-height: 1;
}

.project-info h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-meta {
    font-size: 13px;
    color: var(--text-dim);
}

.project-description {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.project-link:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.project-link i {
    font-size: 18px;
}

/* Contact JSON */
.contact-json {
    background: #252525;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 14px;
    white-space: pre;
    margin-top: 1rem;
}

.contact-json a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-json a:hover {
    color: var(--accent-dim);
    text-decoration: underline;
}

/* Command Input */
.input-line {
    margin-top: 2rem;
    position: sticky;
    bottom: 0;
    background: var(--terminal-bg);
    padding: 1rem 0;
}

.command-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--command);
    font-family: var(--font-mono);
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.command-input::placeholder {
    color: var(--text-dim);
}

.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Footer */
.terminal-footer {
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 20px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        font-size: 14px;
    }

    .terminal-window {
        border-radius: 8px;
        min-height: 90vh;
    }

    .terminal-header {
        padding: 0.5rem;
    }

    .terminal-title {
        font-size: 11px;
    }

    .terminal-body {
        padding: 1rem;
        max-height: 80vh;
        font-size: 13px;
    }

    .help-banner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .help-text {
        font-size: 12px;
    }

    .ascii-art {
        font-size: 8px;
        overflow-x: auto;
        white-space: pre;
    }

    .bio-text {
        font-size: 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skill-item {
        padding: 0.75rem;
    }

    .project-header {
        flex-direction: row;
        gap: 0.75rem;
    }

    .project-icon {
        font-size: 28px;
    }

    .project-info h3 {
        font-size: 16px;
    }

    .project-links {
        flex-wrap: wrap;
    }

    .project-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .command-input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.25rem;
    }

    .terminal-body {
        padding: 0.75rem;
    }

    .terminal-buttons span {
        width: 10px;
        height: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-line,
.output {
    animation: fadeIn 0.3s ease-out;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg);
}