/* Tech/Terminal Design Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-terminal: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-green: #00ff41;
    --accent-blue: #00d4ff;
    --accent-yellow: #ffff00;
    --accent-red: #ff4444;
    --border-color: #333333;
    --terminal-font: 'JetBrains Mono', monospace;
    --ui-font: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--terminal-font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Terminal Header */
.terminal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.terminal-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.btn-close { background: var(--accent-red); }
.btn-minimize { background: var(--accent-yellow); }
.btn-maximize { background: var(--accent-green); }

.terminal-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: var(--bg-primary);
}

.terminal-window {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-content {
    font-size: 16px;
    line-height: 1.4;
}

.command-line {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.prompt {
    color: var(--accent-green);
    margin-right: 8px;
    font-weight: 600;
}

.command {
    color: var(--text-primary);
    font-weight: 500;
}

.cursor {
    color: var(--accent-green);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output {
    margin: 20px 0;
    color: var(--text-secondary);
}

.line {
    margin: 8px 0;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.dot {
    animation: pulse 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.developer-info {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--accent-green);
    border-radius: 4px;
}

.info-block {
    margin: 12px 0;
    font-size: 16px;
}

.key {
    color: var(--accent-blue);
    font-weight: 600;
}

.value {
    color: var(--text-primary);
}

.value.success {
    color: var(--accent-green);
}

.unit {
    color: var(--text-secondary);
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.terminal-btn {
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--terminal-font);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.terminal-btn:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.terminal-btn.secondary {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.terminal-btn.secondary:hover {
    background: var(--accent-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    margin-bottom: 40px;
}

.code-block {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.line-numbers {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px 15px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
    min-width: 50px;
    border-right: 1px solid var(--border-color);
    user-select: none;
}

.line-numbers span {
    display: block;
}

.code-content {
    padding: 20px;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.json-line {
    margin: 2px 0;
}

.key { color: var(--accent-blue); }
.string { color: var(--accent-green); }
.bracket { color: var(--text-primary); }
.colon { color: var(--text-secondary); }
.comma { color: var(--text-secondary); }

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--bg-primary);
}

.file-system {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.file-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: rgba(0, 255, 65, 0.05);
}

.file-item.project-file {
    border-left: 3px solid var(--accent-green);
    background: rgba(0, 255, 65, 0.03);
}

.file-icon {
    font-size: 24px;
    min-width: 30px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.file-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.file-type {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 500;
}

.file-size {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 500;
}

.file-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.script-block {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 14px;
    line-height: 1.6;
}

.script-line {
    margin: 4px 0;
}

.comment { color: var(--text-muted); }
.variable { color: var(--accent-blue); }
.function { color: var(--accent-green); }
.builtin { color: var(--accent-yellow); }

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-method {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-green);
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-2px);
}

.method-icon {
    font-size: 28px;
    min-width: 40px;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-text {
    margin-top: 10px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .terminal-window {
        padding: 15px;
    }
    
    .terminal-content {
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .terminal-btn {
        text-align: center;
        width: 100%;
    }
    
    .code-block {
        font-size: 12px;
    }
    
    .line-numbers {
        padding: 15px 10px;
        min-width: 40px;
    }
    
    .code-content {
        padding: 15px;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .hero,
    .skills,
    .portfolio,
    .contact {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .terminal-bar {
        padding: 10px 15px;
    }
    
    .terminal-title {
        font-size: 12px;
    }
    
    .terminal-content {
        font-size: 13px;
    }
    
    .developer-info {
        padding: 15px;
    }
    
    .info-block {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-icon {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Selection styling */
::selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent-green);
    color: var(--bg-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}