:root {
    --bg: #0d1117;
    --bg-panel: #0d1117;
    --text: #cdd6f4;
    --text-muted: #6e7891;
    --text-bright: #e2e8f0;
    --accent: #64ffda;
    --accent-dim: rgba(100, 255, 218, 0.08);
    --border: rgba(255,255,255,0.06);
    --font: 'Inter', sans-serif;
    --mono: 'DM Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- CURSOR GLOW ---- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100,255,218,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.08s ease, top 0.08s ease;
}

/* ---- LAYOUT: TWO COLUMN ---- */
.layout {
    display: flex;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 1;
}

/* ---- LEFT PANEL ---- */
.left-panel {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 0 6rem;
}

.left-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2.5rem;
}

.intro h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.intro h2 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 260px;
}

/* ---- SIDE NAV ---- */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0;
    transition: color 0.25s;
}

.nav-line {
    display: block;
    height: 1px;
    width: 28px;
    background: currentColor;
    transition: width 0.3s ease;
    flex-shrink: 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-bright);
}

.nav-item.active .nav-line,
.nav-item:hover .nav-line {
    width: 52px;
    background: var(--accent);
}

.nav-item.active {
    color: var(--accent);
}

/* ---- SOCIAL LINKS ---- */
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.25s, transform 0.25s;
    display: flex;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ---- RIGHT PANEL ---- */
.right-panel {
    flex: 1;
    padding: 6rem 0 6rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* ---- SECTIONS ---- */
section {
    scroll-margin-top: 4rem;
}

section > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

section > p:last-child { margin-bottom: 0; }

.section-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-bright);
    margin-bottom: 2rem;
    display: none; /* hidden on desktop — sections are implied by nav */
}

.section-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: var(--mono);
}

/* ---- TIMELINE ENTRIES ---- */
.timeline-entry {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 0.5rem;
    transition: background 0.25s, border-color 0.25s;
    cursor: default;
}

.timeline-entry:hover {
    background: rgba(255,255,255,0.025);
    border-color: var(--border);
}

.entry-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 0.2rem;
    white-space: nowrap;
    line-height: 1.8;
}

.entry-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.entry-title > span:first-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
}

.entry-company {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 400;
}

.entry-body > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.entry-body > p:last-child { margin-bottom: 0; }

/* Badges */
.badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-green {
    background: rgba(100,255,218,0.08);
    color: var(--accent);
    border: 1px solid rgba(100,255,218,0.2);
}

/* ---- TAG LIST ---- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin-top: 0.75rem;
}

.tag-list li {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(100,255,218,0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

/* ---- TEXT LINKS ---- */
.text-link {
    color: var(--text-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(100,255,218,0.4);
    transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---- VIEW ALL LINK ---- */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-bright);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: gap 0.25s, color 0.25s;
}

.view-all-link:hover {
    color: var(--accent);
    gap: 0.7rem;
}

/* ---- PROJECT CARDS ---- */
.project-card {
    display: block;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: background 0.25s, border-color 0.25s;
    position: relative;
}

.project-card:hover {
    background: rgba(255,255,255,0.025);
    border-color: var(--border);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.project-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.project-card:hover .project-name { color: var(--accent); }

.fork-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    background: rgba(255,255,255,0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.project-card:hover .arrow-icon {
    transform: translate(3px, -3px);
    color: var(--accent);
}

.project-card > p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ---- SKILLS ---- */
.skills-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.skill-row:hover { background: rgba(255,255,255,0.025); }

.skill-cat {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    padding-top: 0.1rem;
    white-space: nowrap;
}

.skill-vals {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- CERTIFICATIONS ---- */
.cert-group {
    margin-bottom: 1.5rem;
}

.cert-group-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: background 0.2s;
}

.cert-item:hover { background: rgba(255,255,255,0.025); }

.cert-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cert-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cert-name {
    font-size: 0.88rem;
    color: var(--text-bright);
    font-weight: 500;
}

.cert-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---- FOOTER ---- */
footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
    .layout { flex-direction: column; padding: 0 1.5rem; }
    .left-panel { position: static; width: 100%; height: auto; padding: 3rem 0 2rem; }
    .right-panel { padding: 0 0 4rem; }
    .side-nav { display: none; }
    .section-heading { display: block; }
    .timeline-entry { grid-template-columns: 1fr; gap: 0.3rem; }
    .entry-meta { padding-top: 0; }
    .skill-row { grid-template-columns: 90px 1fr; }
}
