@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #0a0a0c;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --secondary: #0ea5e9;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 15, 20, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 80px;
    background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); z-index: 1000;
    display: flex; align-items: center;
}

.nav-container { width: 90%; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.nav-logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.nav-logo i { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-btn { background: rgba(139, 92, 246, 0.1); color: var(--accent) !important; padding: 8px 16px; border-radius: 6px; border: 1px solid rgba(139, 92, 246, 0.3); }

@media (max-width: 600px) { .nav-links a:not(.nav-btn) { display: none; } }

.hero {
    position: relative; padding: 140px 5% 100px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; padding-top: 100px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero h1 { font-size: 3.5rem; }
}

.hero h1 { font-size: 5rem; font-weight: 800; letter-spacing: -3px; margin-bottom: 24px; line-height: 0.95; }
.hero h1 span { color: var(--accent); text-shadow: 0 0 30px var(--accent-glow); }
.hero p { font-size: 1.25rem; max-width: 550px; color: var(--muted); margin-bottom: 40px; }

.btn { padding: 12px 28px; border-radius: 6px; font-weight: 500; transition: all 0.2s; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); border: none; }
.btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: #fff; }

.terminal {
    background: #0f172a; border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
}

@media (max-width: 600px) { .terminal { font-size: 0.7rem; } .terminal-body { padding: 10px; } }

.terminal-header { background: #1e293b; padding: 12px 16px; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.terminal-body { padding: 20px; color: #94a3b8; }
.t-purple { color: #c084fc; } .t-blue { color: #38bdf8; } .t-green { color: #4ade80; } .t-white { color: #fff; }
.cursor { display: inline-block; width: 8px; height: 18px; background: #fff; animation: blink 1s infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.section { padding: 120px 5%; max-width: 1400px; margin: 0 auto; }
.section-title { margin-bottom: 80px; }
.section-title h2 { font-size: 3rem; font-weight: 700; letter-spacing: -2px; }
.section-title h2 span { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 48px; border-radius: 12px; }

/* ── Simulation Dashboard ────────────────────────────────────────────────── */
.simulation-view {
    max-width: 1200px; margin: 40px auto 0;
    background: #0a0a0f; border: 1px solid #1e293b; border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
}

.simulation-header {
    background: #0f172a; padding: 12px 24px; border-bottom: 1px solid #1e293b;
    display: flex; align-items: center; gap: 24px; color: #94a3b8; font-size: 0.8rem;
}

.sim-stat span { color: #fbbf24; font-weight: 700; margin-right: 4px; }
.sim-spacer { flex: 1; }
.sim-search { background: #050507; padding: 8px 16px; border: 1px solid #1e293b; border-radius: 6px; width: 240px; color: #fff; }

.simulation-main { display: flex; height: 600px; background: #050507; }
#hero-graph { flex: 1; height: 100%; }

.simulation-sidebar {
    width: 250px; border-left: 1px solid #1e293b; background: rgba(10, 10, 15, 0.95);
    display: flex; flex-direction: column;
}

.sidebar-top { padding: 16px; font-size: 0.85rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid #1e293b; }
.sidebar-files { flex: 1; overflow-y: auto; padding: 10px 0; }
/* ── Deployment Code Block ───────────────────────────────────────────────── */
.code-block {
    background: #0f172a;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.code-block::before {
    content: 'Terminal';
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 1px;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 0 0 4px 4px;
}

.code-line {
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.code-comment {
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

.npm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.npm-link:hover {
    transform: translateX(5px);
    color: #fff;
}
.sidebar-file {
    padding: 8px 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.sidebar-file::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-file.type-f::before { background: #4ade80; }
.sidebar-file.type-m::before { background: #3b82f6; }
.sidebar-file.type-c::before { background: #ec4899; }
.sidebar-file.type-v::before { background: #fbbf24; }
.sidebar-file.type-i::before { background: #94a3b8; }

.sidebar-file:hover { background: rgba(255,255,255,0.05); color: #fff; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: #94a3b8; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.function { background: #4ade80; }
.dot.method { background: #3b82f6; }
.dot.class { background: #ec4899; }
.dot.variable { background: #fbbf24; }
.dot.import { background: #94a3b8; }

/* ── Mobile Optimization ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .simulation-header {
        flex-direction: column; align-items: stretch; height: auto; padding: 20px; gap: 12px;
    }
    .sim-stat {
        display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .sim-search { width: 100% !important; margin-top: 8px; }
    .sim-spacer { display: none; }
    
    .simulation-main { flex-direction: column; height: auto; }
    #hero-graph { min-height: 400px; height: 400px; width: 100%; }
    .simulation-sidebar { width: 100%; height: 300px; border-left: none; border-top: 1px solid #1e293b; }
}

#contact { padding-bottom: 120px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); padding: 16px; border-radius: 8px; color: #fff; font-size: 1rem;
}
.form-group textarea { height: 150px; resize: none; }

footer { padding: 60px 0; text-align: center; border-top: 1px solid var(--border); color: var(--muted); }
