/* Andrei Gorgos — portfolio.
   The look is the 2026 resume's: an orange field and a lavender field, a white
   card with a thick black outline and a hard offset shadow, purple headings,
   a yellow mono note, sparkle stars and diagonal stripes. */

:root {
  --orange: #ff7900;
  --lavender: #b19aff;
  --purple: #6031ec;
  --yellow: #ffcb5c;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #3c3c3c;
  --line: 4px;
  --shadow: 10px 10px 0 var(--ink);
  --radius: 28px;
  --display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--orange);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 64px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ── page fields: orange top-left, lavender bottom-right ─────────────── */
.field {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) clamp(14px, 4vw, 48px);
}
.field::after { /* the lavender field the resume puts behind its card */
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  width: 34%;
  bottom: 0;
  background: var(--lavender);
  border-left: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
  border-top-left-radius: 60px;
  z-index: 0;
}
.field.alt { background: var(--lavender); }
.field.alt::after { background: var(--orange); left: 0; right: auto; border-left: 0; border-right: var(--line) solid var(--ink); border-top-left-radius: 0; border-top-right-radius: 60px; }

.card {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 64px);
}

/* ── top bar ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
}
.topbar .mark { font-family: var(--display); font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.topbar .mark span { color: var(--yellow); }
.topbar nav { display: flex; gap: clamp(10px, 2.4vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.topbar nav a:hover { color: var(--yellow); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero .role { color: var(--orange); font-size: clamp(22px, 3vw, 34px); margin: 16px 0 26px; font-weight: 500; }
.hero .role b { color: var(--ink); font-weight: 400; margin: 0 0.25em; }

.window { /* the photo in a browser-window frame, as on the resume */
  border: var(--line) solid var(--ink);
  background: #00a8e1;
  box-shadow: var(--shadow);
}
.window .bar { background: var(--purple); border-bottom: var(--line) solid var(--ink); height: 34px; display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.window .bar i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--orange); }
.window .bar i + i { background: var(--yellow); }
.window .bar i + i + i { background: var(--paper); }
.window img { width: 100%; aspect-ratio: 733 / 655; object-fit: cover; }

.note { /* the yellow mono "Hey there!" card */
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  color: var(--purple);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  padding: 22px 24px;
  max-width: 560px;
}
.note p { margin: 0 0 12px; }
.note p:last-child { margin: 0; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; text-decoration: none;
  padding: 12px 20px;
  border: var(--line) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--purple); color: var(--paper); }
.btn.orange { background: var(--orange); }

/* ── section headings ───────────────────────────────────────────────── */
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}
.sub { color: var(--muted); max-width: 760px; margin: 14px 0 30px; font-size: 17px; }
.kicker { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }

/* ── experience ─────────────────────────────────────────────────────── */
.jobs { columns: 2 340px; column-gap: clamp(24px, 5vw, 64px); margin-top: 28px; }
.job { break-inside: avoid; margin: 0 0 30px; }
.job h3 { color: var(--purple); font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0; line-height: 1.2; }
.job .where { margin: 4px 0 10px; font-size: 16px; }
.job ul { margin: 0; padding-left: 20px; }
.job li { margin: 0 0 6px; font-size: 15.5px; }

/* ── education + skills ─────────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.edu h3 { color: var(--purple); font-family: var(--display); font-weight: 800; font-size: 21px; margin: 22px 0 2px; }
.edu p { margin: 0; }
.skills { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.skill { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.skill .ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--paper);
  border: 3px solid var(--ink);
}
.skill .ico svg { display: block; width: 30px; height: 30px; }
.skill .name { color: var(--purple); font-size: 14px; margin-bottom: 4px; }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; border: 2px solid var(--purple); padding: 3px; }
.meter i { height: 12px; background: var(--purple); }
.meter i.half { background: var(--yellow); }
.meter i.off { background: transparent; }

/* ── contact ────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.contact a {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; font-weight: 600;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  overflow-wrap: anywhere;
}
.contact a:hover { background: var(--yellow); }
.contact .dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); border: 3px solid var(--ink); }
.contact .dot svg { width: 18px; height: 18px; }

/* ── work: filters ──────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 34px; }
.chip {
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  padding: 9px 16px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.chip[aria-pressed="true"] { background: var(--purple); color: var(--paper); }
.chip:hover { transform: translate(-1px, -1px); }

.group { margin: 0 0 56px; }
.group[hidden] { display: none; }
.group > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.group h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); margin: 0; letter-spacing: -0.01em; }
.group .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.group > p { margin: -6px 0 20px; max-width: 760px; color: var(--muted); }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 2px 8px; border: 2px solid var(--ink); background: var(--yellow);
}

/* page tiles from the portfolio PDF */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.page-tile {
  display: block; padding: 0; cursor: zoom-in;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.page-tile:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.page-tile img { width: 100%; aspect-ratio: 595 / 842; object-fit: cover; object-position: top; }

/* ── game cards (ZOOT work: live screen + catalogue tile) ───────────── */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.games.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.game {
  margin: 0; cursor: zoom-in;
  border: 3px solid var(--ink); background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: left; padding: 0; font: inherit; color: inherit;
}
.game:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.game .shot { position: relative; background: #0d0a1f; border-bottom: 3px solid var(--ink); }
.game .shot img.s { width: 100%; aspect-ratio: 994 / 472; object-fit: cover; }
.games.wide .game .shot img.s { aspect-ratio: 994 / 700; }
.game .shot img.t {
  position: absolute; right: 8px; bottom: -14px; width: 22%;
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink);
}
.game figcaption { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.game figcaption b { font-family: var(--display); font-weight: 800; font-size: 17px; padding-right: 26%; }
.game figcaption span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.brand { margin: 0 0 28px; }
.brand h5 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0; display: flex; gap: 10px; align-items: center; }
.brand h5::before { content: ""; width: 14px; height: 14px; background: var(--acc); border: 2px solid var(--ink); transform: rotate(45deg); }
.brand p { margin: 2px 0 14px; color: var(--muted); font-size: 15px; max-width: 760px; }

/* ── decorations ────────────────────────────────────────────────────── */
.star { position: absolute; z-index: 2; pointer-events: none; }
.star svg { display: block; width: 100%; height: 100%; }
.stripes {
  position: absolute; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 8px, var(--paper) 8px 16px);
  border: 3px solid var(--ink);
}

footer.site {
  background: var(--ink); color: var(--paper);
  padding: 26px clamp(14px, 4vw, 48px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 13px;
}

/* ── lightbox ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center;
  padding: 14px;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--paper); }
.lightbox .lb-cap { font-family: var(--display); font-weight: 800; font-size: 18px; }
.lightbox .lb-cap small { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; color: #cfc6ff; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border: 3px solid var(--paper); background: var(--paper); }
.lightbox .lb-nav { display: flex; gap: 12px; }
.lb-btn {
  font: inherit; font-weight: 800; cursor: pointer;
  min-width: 46px; height: 46px; padding: 0 14px;
  border: 3px solid var(--paper); background: var(--ink); color: var(--paper);
}
.lb-btn:hover { background: var(--purple); }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .window { order: -1; max-width: 420px; }
  .two { grid-template-columns: 1fr; }
  .field::after { width: 22%; }
  .star.hide-sm, .stripes.hide-sm { display: none; }
}
@media (max-width: 520px) {
  :root { --shadow: 6px 6px 0 var(--ink); --radius: 18px; --line: 3px; }
  .topbar nav a { font-size: 13px; }
  .topbar .mark { font-size: 17px; }
  .pages { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .games, .games.wide { grid-template-columns: 1fr; }
  .page-tile, .game { box-shadow: 4px 4px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .page-tile, .game { transition: none; }
}
