/* ---------- tokens ---------- */
:root{
  --bg: #070B12;
  --bg-panel: #0D141F;
  --bg-panel-2: #101927;
  --border: #1C2635;
  --green: #3FE89B;
  --green-dim: #23A46F;
  --purple: #A98CFF;
  --text: #E7ECF2;
  --text-dim: #8B96A5;
  --text-dimmer: #5C6675;

  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 880px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.mono{ font-family: var(--mono); }
.dim{ color: var(--text-dim); }

.label{
  color: var(--green-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

/* faint scanline texture for the terminal feel, very subtle */
.scanline{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,18,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 60px;
}
.nav__brand{
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green);
  font-size: 15px;
}
.nav__links{ display:flex; gap: 28px; }
.nav__links a{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav__links a:hover{ color: var(--text); }
.nav__social{ display:flex; gap: 16px; }
.nav__social a{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav__social a:hover{ color: var(--purple); }

@media (max-width: 640px){
  .nav__links{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  padding: 96px 24px 72px;
}
.hero__name{
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.05;
  color: var(--green);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.cursor{
  display:inline-block;
  color: var(--purple);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink{
  0%, 45%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}
.hero__role{
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 22px;
}
.link-inline{
  color: var(--purple);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.link-inline:hover{ border-bottom-color: var(--purple); }

.hero__bio{
  max-width: 62ch;
  color: var(--text);
  font-size: 16.5px;
  margin: 0 0 34px;
}

.hero__cta{ display:flex; gap: 14px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13.5px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn--primary{
  background: var(--green);
  color: #06110C;
  border-color: var(--green);
  font-weight: 700;
}
.btn--primary:hover{ background: #59F0AD; }
.btn--ghost{
  color: var(--text-dim);
  background: transparent;
}
.btn--ghost:hover{
  color: var(--text);
  border-color: var(--text-dimmer);
}

/* ---------- sections ---------- */
.section{
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section__title{
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--text);
  margin: 0 0 34px;
}

/* ---------- project cards ---------- */
.grid--projects{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px){
  .grid--projects{ grid-template-columns: 1fr; }
}

.card{
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display:flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover{
  border-color: var(--green-dim);
}

.browser-bar{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border);
}
.browser-dots{ display:flex; gap: 5px; flex-shrink: 0; }
.browser-dots span{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dimmer);
  opacity: .6;
}
.browser-url{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview{
  height: 140px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(169,140,255,0.10), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(63,232,155,0.08), transparent 55%),
    var(--bg-panel-2);
  display:flex;
  align-items:center;
  justify-content:center;
}
.preview__svg{ width: 100%; height: 100%; }

.preview__shot{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.preview__shot ~ .preview__svg{ display: none; }

.preview__line{ fill:none; stroke-width: 2; }
.preview__line--a{ stroke: var(--green); opacity: .9; }
.preview__line--b{ stroke: var(--purple); opacity: .55; }

.preview__bubble--a{ fill: rgba(63,232,155,0.16); stroke: var(--green-dim); stroke-width: 1; }
.preview__bubble--b{ fill: rgba(169,140,255,0.16); stroke: var(--purple); stroke-width: 1; }

.preview__contour{ fill:none; stroke-width: 2; }
.preview__contour--a{ stroke: var(--green); opacity: .8; }
.preview__contour--b{ stroke: var(--purple); opacity: .5; }

.preview__node{ fill: var(--bg); stroke: var(--purple); stroke-width: 1.5; }
.preview__node--core{ fill: var(--green); stroke: var(--green); }
.preview__edge{ stroke: var(--text-dimmer); stroke-width: 1; opacity: .6; }

.card__body{ padding: 20px; flex: 1; display:flex; flex-direction:column; }
.card__body h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.card__body p{
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-dim);
  flex: 1;
}
.tags{ display:flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags span{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
}
.card__link{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.card__link:hover{ border-bottom-color: var(--green); }

/* ---------- timeline ---------- */
.timeline{
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.timeline__item{
  position: relative;
  padding: 0 0 36px 28px;
}
.timeline__item:last-child{ padding-bottom: 0; }
.timeline__marker{
  position:absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dimmer);
}
.timeline__marker--current{
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63,232,155,0.12);
}
.timeline__meta{ margin: 0 0 6px; }
.timeline__tag{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 2px 8px;
  border-radius: 3px;
}
.timeline__content h3{
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
}
.timeline__content p{
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 62ch;
}

/* ---------- certifications ---------- */
.grid--certs{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cert{
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg-panel);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.cert:hover{
  border-color: var(--purple);
  transform: translateY(-2px);
}
.cert--placeholder{
  border-style: dashed;
  border-color: var(--text-dimmer);
}
.cert--placeholder:hover{
  border-color: var(--text-dimmer);
  transform: none;
}
.cert__title{
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--purple);
}
.cert__issuer{
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------- contact ---------- */
.contact{ text-align: left; }
.contact__text{
  color: var(--text-dim);
  max-width: 55ch;
  margin: 0 0 28px;
}
.contact__links{ display:flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer{
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dimmer);
}
@media (max-width: 480px){
  .footer__inner{ flex-direction: column; gap: 6px; }
}
