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

:root {
    --bg:        #0d1117;
    --surface:   #161b22;
    --surface2:  #1f2937;
    --border:    #30363d;
    --accent:    #00a0e5;
    --accent2:   #0072b8;
    --text:      #e6edf3;
    --muted:     #8b949e;
    --danger:    #f85149;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAV ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

nav ul li a {
    display: block;
    padding: 14px 16px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--text);
    background: var(--surface2);
}

nav ul li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

/* ── LAYOUT ── */
main {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    gap: 24px;
}

.container.two-col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

.container.two-col .full-width {
    grid-column: 1 / -1;
}

.container.single {
    grid-template-columns: 1fr;
}

/* ── CARDS ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 229, 160, 0.08);
    border-left-color: var(--accent2);
}

.card.no-hover {
    transition: none;
}
.card.no-hover:hover {
    transform: none;
    box-shadow: none;
    border-left-color: var(--accent);
}

/* ── INTRO / HERO ── */
.intro-home {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px 20px;
}

.intro-home h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.intro-home h1 span {
    color: var(--accent);
}

.intro-home .subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

.intro-home .tag-line {
    display: inline-block;
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 27, 229, 0.08);
    border: 1px solid rgba(19, 0, 229, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
}

.intro {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0;
}

h1 { font-size: 1.8rem; color: var(--text); }
h2 { font-size: 1.2rem; color: var(--accent); margin-bottom: 10px; }
h3 { font-size: 1rem; color: var(--text); }

p { line-height: 1.7; color: var(--muted); margin-top: 0; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 16px;
    background: var(--accent);
    color: #0d1117;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}

.btn.disabled {
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
    pointer-events: none;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn.outline:hover {
    background: rgba(0, 107, 229, 0.1);
}

/* ── BADGES ── */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
}

/* ── META TAGS ── */
.meta-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    border: 1px solid;
    margin-right: 6px;
    margin-bottom: 6px;
}

.meta-tag.green  { color: #06b300;  border-color: rgba(0, 158, 21, 0.4);  background: rgba(13, 76, 0, 0.08); }
.meta-tag.blue   { color: var(--accent);        border-color: rgba(88,166,255,0.4); background: rgba(88,166,255,0.08); }
.meta-tag.orange { color: #f0883e;        border-color: rgba(240,136,62,0.4); background: rgba(240,136,62,0.08); }
.meta-tag.purple { color: #bc8cff;        border-color: rgba(188,140,255,0.4);background: rgba(188,140,255,0.08); }

/* ── STATUS INDICATOR ── */
.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    flex-shrink: 0;
}

.status-dot.off { background: var(--muted); box-shadow: none; }

/* ── TIMELINE ── */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.73rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
}

.timeline-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .container.two-col {
        grid-template-columns: 1fr;
    }
    nav ul li a {
        padding: 10px 10px;
        font-size: 0.7rem;
    }
}

#role {
    display: inline-block;
    transition: opacity 0.3s ease;
    color: #0073a8;
    font-weight: 600;
}
