/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ff88;
}

.lang-btn.active {
    background: #00ff88;
    color: #000;
    border-color: #00ff88;
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.error-content {
    background: #1e1e1e;
    border: 2px solid #ff4444;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.3);
    animation: errorShake 0.5s ease;
}

.error-header {
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px 6px 0 0;
}

.error-title {
    flex: 1;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

.close-error {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-body {
    padding: 20px;
}

.error-message {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.stack-trace {
    background: #0a0a0a;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ff4444;
}

.stack-trace code {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #ff6b6b;
    line-height: 1.4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 40px 0;
    text-align: center;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca3f; }

.terminal-title {
    color: #888;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff88;
    margin-right: 8px;
}

.command {
    color: #e0e0e0;
}

.terminal-output {
    color: #00ff88;
    display: flex;
    align-items: center;
}

.cursor {
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff88;
    z-index: -2;
}

.subtitle {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 30px;
    font-weight: 400;
}

.description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fira Code', monospace;
}

.btn-primary {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
    animation: errorPulse 0.5s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00ff88;
    transform: translateY(-2px);
}

/* Code Editor */
.code-editor {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.editor-header {
    background: #2d2d2d;
    padding: 12px 16px;
}

.editor-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    font-size: 12px;
    color: #888;
    cursor: pointer;
}

.tab.active {
    background: #1e1e1e;
    color: #e0e0e0;
}

.editor-content {
    display: flex;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.line-numbers {
    background: #2d2d2d;
    padding: 20px 12px;
    color: #666;
    text-align: right;
    user-select: none;
}

.line-numbers span {
    display: block;
    line-height: 1.5;
}

.code {
    padding: 20px;
    flex: 1;
    line-height: 1.5;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.string { color: #f1fa8c; }
.number { color: #bd93f9; }
.function { color: #50fa7b; }

/* About Section */
.about {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.section-subtitle {
    color: #888;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 10px;
    font-family: 'Fira Code', monospace;
}

.stat-label {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
    transform: translateX(10px);
}

.contact-item i {
    font-size: 20px;
    color: #00ff88;
    width: 24px;
    text-align: center;
}

.contact-item a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #00ff88;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content p {
    color: #888;
    font-size: 14px;
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@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 glitch-1 {
    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 glitch-2 {
    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 fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes errorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .language-toggle {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}