@font-face {
    font-family: JetBrainsMono;
    src: url(./fonts/ttf/JetBrainsMono-Regular.ttf) format("truetype");
    font-display: swap;
}

:root {
    --bg: rgb(28, 25, 23);
    --card: rgb(41, 37, 36);
    --card-2: rgb(50, 45, 44);
    --border: rgb(68, 62, 60);
    --text: #e7e2dd;
    --muted: #a8a29e;
    --green: #a7e781;
    --teal: #00e5c9;
    --amber: #f0b76b;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    margin: 0;
    padding: 16px;
    color: var(--text);
    font-family: JetBrainsMono, ui-monospace, SFMono-Regular, Menlo, monospace;
    line-height: 1.55;
}

#app {
    max-width: 1100px;
    margin: 0 auto;
}

a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
a:hover, a:focus-visible { border-bottom-color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

p { color: var(--text); margin: 0 0 .75rem; }

.card {
    color: var(--text);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* ---- prompt / section headers ---- */
.prompt { color: var(--green); }
.cmd { color: var(--amber); }

.section-title {
    color: var(--green);
    font-size: 1.15rem;
    margin: 0 0 .85rem;
    font-weight: 700;
}
.section-title .prompt { color: var(--muted); }

/* ---- hero ---- */
.hero { margin-bottom: 16px; }
.hero-line { color: var(--muted); font-size: 1.05rem; }
.hero-line .cmd { color: var(--amber); }
.hero-line::after {
    content: "▮";
    color: var(--green);
    margin-left: 2px;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-name {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: .4rem 0 .1rem;
    font-weight: 700;
    letter-spacing: -.5px;
}
.hero-headline { color: var(--green); font-size: 1.1rem; margin: 0 0 .35rem; }
.hero-meta { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.dot-sep { margin: 0 .5rem; }

/* ---- availability badge ---- */
.availability {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem .5rem;
    background: rgba(167, 231, 129, .08);
    border: 1px solid rgba(167, 231, 129, .35);
    border-radius: 999px;
    padding: .45rem .9rem;
    color: var(--text);
    font-size: .9rem;
}
.availability:hover { background: rgba(167, 231, 129, .15); border-bottom-color: rgba(167,231,129,.35); }
.availability-label { color: var(--green); font-weight: 700; white-space: nowrap; }
.availability-note { color: var(--muted); }

/* On narrow screens the pill becomes a rounded card with the note on its own line. */
@media (max-width: 820px) {
    .availability { align-items: flex-start; border-radius: 14px; }
    .availability .pulse { margin-top: .4rem; }
    .availability-note { flex-basis: 100%; margin-left: calc(9px + .5rem); }
}
.pulse {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(167, 231, 129, .6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(167, 231, 129, .55); }
    70% { box-shadow: 0 0 0 8px rgba(167, 231, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(167, 231, 129, 0); }
}

/* ---- socials ---- */
.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.social {
    display: inline-block;
    padding: .4rem .85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-2);
    color: var(--text);
    font-size: .9rem;
    transition: transform .12s ease, border-color .15s ease, color .15s ease;
}
.social:hover, .social:focus-visible {
    transform: translateY(-2px);
    border-color: var(--teal);
    color: var(--teal);
}

/* ---- layout ---- */
.layout { display: grid; grid-template-columns: minmax(240px, 280px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.main { display: flex; flex-direction: column; gap: 16px; }

/* ---- sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.portrait-wrap { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.circular--portrait {
    position: relative;
    width: 150px; height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid var(--green);
    box-shadow: 0 0 0 4px rgba(167, 231, 129, .12);
}
.circular--portrait img { width: 100%; height: 100%; object-fit: cover; }

.connect-list { list-style: none; padding: 0; margin: 0; }
.connect-list li { margin: .35rem 0; }
.connect-list .arrow { color: var(--green); }

/* On mobile the connect links duplicate the header's social buttons, so hide
   them and keep just the portrait (desktop keeps portrait + links). */
@media (max-width: 820px) {
    .connect-card .connect { display: none; }
    .connect-card .portrait-wrap { margin-bottom: 0; }
}

/* ---- main sections ---- */
.card-sub { padding: 0; }

/* ---- experience timeline ---- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.timeline-item:last-child { margin-bottom: 0; }

/* rail: per-item segment in the gutter, extended through the gap to stay continuous */
.timeline-item::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: -.7rem;
    width: 2px;
    background: var(--border);
    z-index: 0;
}
.timeline-item:first-child::after { top: calc(.85rem + 8px); }            /* begin at first dot center */
.timeline-item:last-child::after  { top: 0; height: calc(.85rem + 8px); bottom: auto; } /* end at last dot center */

/* card-colored dot with a green ring — sits on the rail, no "hole" */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: .85rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--green);
    box-sizing: border-box;
    z-index: 1;
}

/* zebra-striped entry band — alternating faint accent tints */
.timeline-body { border-radius: 8px; padding: .65rem .9rem; }
.timeline-item:nth-child(odd) .timeline-body { background-color: rgba(0, 229, 201, 0.06); }
.timeline-item:nth-child(even) .timeline-body { background-color: rgba(167, 231, 129, 0.06); }

.timeline-head { font-size: 1.02rem; line-height: 1.4; }
.timeline-head .role { color: #fff; font-weight: 700; }
.timeline-head .at { color: var(--muted); }
.timeline-head .company { color: var(--teal); }
.timeline-meta { color: var(--muted); font-size: .85rem; margin: .2rem 0 .55rem; }
.timeline-meta .period { color: var(--amber); }
.timeline-points { margin: 0; padding-left: 1.1rem; }
.timeline-points li { margin: .2rem 0; }

/* ---- skills ---- */
.skill-groups { display: grid; gap: 1rem; }
.skill-group-title { color: var(--amber); font-size: .95rem; margin: 0 0 .45rem; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
    display: inline-block;
    padding: .25rem .65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card-2);
    font-size: .82rem;
    color: var(--text);
}

/* ---- projects ---- */
.project { margin-bottom: 1.2rem; }
.project:last-child { margin-bottom: 0; }
.project-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.project-name { font-size: 1.1rem; margin: 0; }
.stars {
    font-size: .82rem;
    color: var(--amber);
    border: 1px solid rgba(240, 183, 107, .4);
    border-radius: 999px;
    padding: .1rem .55rem;
    white-space: nowrap;
}

/* ---- education ---- */
.edu { margin-bottom: 1rem; }
.edu:last-child { margin-bottom: 0; }
.edu-title { color: #fff; font-weight: 700; }
.edu-head .at { color: var(--muted); }
.edu-school { color: var(--teal); }

/* ---- footer ---- */
.site-footer { color: var(--muted); text-align: center; padding: 1.5rem 0 .5rem; font-size: .85rem; }
.site-footer .prompt { color: var(--muted); }
