/* Mobile-first, stacked layout. Intentionally prevents horizontal scrolling. */
:root{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.04);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --accent: #7cdbff;
  --accent-2: #b5ffb1;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --max: 980px;
}

@media (prefers-color-scheme: light) {
  :root{
    --bg: #f7f8fb;
    --panel: rgba(0,0,0,.05);
    --panel-2: rgba(0,0,0,.03);
    --text: rgba(0,0,0,.9);
    --muted: rgba(0,0,0,.62);
    --line: rgba(0,0,0,.12);
    --shadow: 0 10px 26px rgba(0,0,0,.12);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);       /* ✅ FLAT background — gradients removed */
  overflow-x: hidden;
}

/* Ensure long strings never break layout */
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
p, li { overflow-wrap: anywhere; word-break: break-word; }

.container{
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transform: translateY(-160%);
  transition: transform .2s ease;
  z-index: 999;
}
.skip-link:focus{ transform: translateY(0); outline: none; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.brand__name{
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--text);
}
.nav__toggle:focus{ outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.nav__menu{
  position: absolute;
  right: 16px;
  top: 72px;
  width: min(92vw, 320px);
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav__menu.is-open{ display: flex; }
.nav__link{
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}
.nav__link:hover{
  background: var(--panel);
  border-color: var(--line);
}

.hero{
  padding: 28px 0 18px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.hero__media{
  display: flex;
  justify-content: center;
}
.avatar{
  width: min(320px, 86vw);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero__content{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.hero__title{
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.hero__summary{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.hero__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero__meta{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pill{
  padding: 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.pill__label{
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.pill__value{
  font-weight: 650;
}

.section{
  padding: 22px 0;
}

/* ✅ section shading removed */
.section--alt{
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title{
  font-size: 1.2rem;
  margin: 0 0 14px;
  letter-spacing: .2px;
}

.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.card--flat{ box-shadow: none; background: var(--panel-2); }

.card__title{
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.subtle{ color: var(--muted); }

.traits, .projects{
  margin-top: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.timeline{
  display: grid;
  gap: 12px;
}

.item{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.item__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.stack{
  display: grid;
  gap: 12px;
}

.contact__card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.contact__row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.footer{
  padding: 22px 0 28px;
}
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (min-width: 860px){
  .nav__toggle{ display: none; }

  .nav__menu{
    position: static;
    width: auto;
    display: flex !important;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
  }

  .hero__grid{
    grid-template-columns: 340px 1fr;
  }

  .hero__meta{
    grid-template-columns: 1fr 1fr;
  }

  .cards{
    grid-template-columns: 1fr 1fr;
  }
}

/* Tighter, clearer job card meta (company + dates) */
.item__meta{
  font-size: 0.9rem;        /* slightly smaller */
  line-height: 1.4;         /* tighter vertical rhythm */
  gap: 6px;                 /* less horizontal spacing */
  margin-top: 2px;
}

.item__meta span{
  white-space: nowrap;      /* keeps company/date tidy */
}

/* Allow wrapping nicely on very small screens */
@media (max-width: 380px){
  .item__meta{
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .item__meta span[aria-hidden="true"]{
    display: none;          /* hide bullet if wrapping */
  }
}
/* Emphasise job meta and separate it from bullet list */
.item__meta{
  font-size: 0.95rem;            /* slightly larger for emphasis */
  font-weight: 600;              /* makes it stand out */
  color: var(--text);            /* stronger contrast than muted */
  margin-bottom: 12px;           /* space before bullet list */
}

/* De-emphasise the separator dot slightly */
.item__meta span[aria-hidden="true"]{
  opacity: 0.5;
}

/* Mobile handling */
@media (max-width: 420px){
  .item__meta{
    row-gap: 6px;
    margin-bottom: 14px;         /* extra breathing room on small screens */
  }
}

