:root {
    --bg-dark: #0f1115;
    --bg-card: #161b22;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff; /* Aerospace Blue */
    --accent-glow: rgba(88, 166, 255, 0.15);
    --border: #30363d;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn-primary {
    background: var(--accent); color: #000; padding: 12px 24px;
    border-radius: 4px; font-weight: 600; display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: #79c0ff; transform: translateY(-2px); }
.btn-secondary {
    border: 1px solid var(--border); padding: 12px 24px;
    border-radius: 4px; font-weight: 600; margin-left: 10px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); }

/* Navbar */
.navbar {
    padding: 20px 0; position: fixed; width: 100%; top: 0;
    background: rgba(15, 17, 21, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }
.hamburger { display: none; cursor: pointer; }

/* Hero & Typewriter */
.hero { padding: 160px 0 80px; border-bottom: 1px solid var(--border); }
.code-badge {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 20px; border: 1px solid var(--border); display: inline-block;
    padding: 5px 10px; border-radius: 4px;
}
.blink { color: #00ff00; animation: blink-text 1s infinite; }
@keyframes blink-text { 0%{opacity:1} 50%{opacity:0.3} 100%{opacity:1} }

.hero h1 {
    font-size: 3.5rem; margin-bottom: 20px; min-height: 80px;
    background: linear-gradient(90deg, #fff, #8b949e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.txt-type {
    border-right: 3px solid var(--accent); padding-right: 5px; -webkit-text-fill-color: var(--accent);
    animation: cursor-blink 0.7s infinite;
}
@keyframes cursor-blink { 0%{border-color:transparent} 50%{border-color:var(--accent)} 100%{border-color:transparent} }

.hero-sub { max-width: 600px; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-sub b { color: var(--text-main); }

/* Metrics Bar */
.metrics { background: var(--bg-card); padding: 40px 0; border-bottom: 1px solid var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.metric-item .val { display: block; font-size: 2rem; font-weight: 800; color: var(--text-main); }
.metric-item .lbl { color: var(--accent); font-family: var(--font-mono); font-size: 0.8rem; }

/* Timeline */
.section-dark { padding: 100px 0; }
.section-title { font-size: 2rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 60px; display: block; }
.timeline { border-left: 1px solid var(--border); padding-left: 40px; position: relative; margin-top: 40px; }
.timeline-item { margin-bottom: 50px; position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -45px; top: 5px; width: 10px; height: 10px;
    background: var(--bg-dark); border: 2px solid var(--text-muted); border-radius: 50%;
}
.timeline-item.highlight::before {
    border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.year { font-family: var(--font-mono); color: var(--accent); font-size: 0.9rem; margin-bottom: 5px; }
.company { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 10px; font-weight: 600;}
.timeline p { color: var(--text-muted); max-width: 700px; }

/* Stories & Grid */
.section-light { background: var(--bg-card); padding: 100px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.story-card, .card {
    background: var(--bg-dark); padding: 30px; border: 1px solid var(--border);
    border-radius: 8px; transition: 0.3s; position: relative;
}
.story-card { cursor: pointer; }
.story-card:hover, .card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card-header, .icon { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--accent); }
.badge {
    background: var(--accent-glow); color: var(--accent); padding: 5px 10px;
    font-size: 0.7rem; border-radius: 20px; font-family: var(--font-mono);
}
.read-more { background: none; border: none; color: var(--accent); font-weight: 600; margin-top: 15px; cursor: pointer; padding: 0; }

/* MODALS */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(8px); overflow-y: auto;
}
.modal-content {
    background-color: var(--bg-card); margin: 50px auto; padding: 40px;
    border: 1px solid var(--accent); width: 90%; max-width: 800px; border-radius: 8px;
    position: relative; color: var(--text-main); animation: slideDown 0.3s ease;
}
@keyframes slideDown { from {opacity: 0; transform: translateY(-50px);} to {opacity: 1; transform: translateY(0);} }
.close { color: var(--text-muted); float: right; font-size: 30px; font-weight: bold; cursor: pointer; }
.close:hover { color: var(--accent); }
.modal-body h3 { color: var(--accent); margin-top: 30px; margin-bottom: 15px; font-family: var(--font-mono); }
.modal-body p { margin-bottom: 15px; color: var(--text-muted); }
.modal-body hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.modal-body ul, .modal-body ol { margin-left: 20px; margin-bottom: 20px; color: var(--text-muted); }
.modal-body li { margin-bottom: 8px; }

/* Footer */
footer { text-align: center; padding: 100px 0; border-top: 1px solid var(--border); }
footer h2 { margin-bottom: 20px; }
footer p { color: var(--text-muted); margin-bottom: 30px; }
.socials { margin-top: 30px; }
.socials a { color: var(--accent); font-weight: 600; }
.copyright { margin-top: 50px; font-size: 0.8rem; color: var(--border); }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .nav-links { display: none; }
    .hamburger { display: block; }
}