/* =========================
   UE5 Dev Copilot — Resume
   Modern, low-glow aesthetic
   ========================= */

/* ---------- Theme ---------- */
:root {
  /* Neutral dark with cool accents */
  --bg: #0b0f14;
  --panel: #0f141a;
  --fg: #e8edf2;
  --muted: #9aa6b2;

  /* Accents tuned down from neon to “tech blue/teal” */
  --accent: #3dd6c6;     /* teal */
  --accent2: #6aa9ff;    /* cool blue */

  /* Lines/soft surfaces */
  --hairline: rgba(255,255,255,0.06);
  --chip: rgba(255,255,255,0.03);

  /* Focus ring (high contrast) */
  --ring: rgba(106,169,255,0.45);

  /* Typography scale */
  --fs-base: 15px;
  --lh-base: 1.7;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--fs-base)/var(--lh-base) "Inter", "SF Pro Text", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--fg);
}

/* ---------- Site chrome ---------- */
.site-nav {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.site-nav__brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.site-nav__brand a { color: var(--fg); }
.site-nav__brand a:hover { color: var(--accent2); }
.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.95rem;
}
.site-nav__links a { color: var(--muted); }
.site-nav__links a:hover { color: var(--fg); }

.site-footer {
  max-width: 880px;
  margin: 32px auto 48px;
  padding: 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* ---------- Layout ---------- */
.page {
  max-width: 880px;
  margin: 40px auto;
  padding: 40px 32px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.35),
    0 0 1px rgba(255,255,255,0.04);
}

.page--post {
  text-align: left;
}
.page--post header {
  text-align: left;
}
.post-meta {
  color: var(--muted);
  font-size: 0.92em;
  margin-top: 6px;
}
.post-body {
  margin-top: 24px;
}
.post-body h2 {
  margin-top: 1.4em;
}

.home-intro {
  text-align: left;
  max-width: 52ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.02rem;
}
.home-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.home-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--chip);
  color: var(--fg);
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.home-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(106,169,255,0.35);
  background: rgba(255,255,255,0.05);
}
.home-card__title {
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--accent);
}
.home-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-list li {
  margin: 0 0 18px;
  padding: 0;
}
.blog-list a {
  font-weight: 700;
}
.blog-list .excerpt {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ---------- Header ---------- */
header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: 0.2px;
  /* Replace neon glow with subtle shadow for readability */
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.label {
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
}

/* ---------- Sections ---------- */
h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 10px;
  border-left: 3px solid var(--accent2);
}

.item {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent2);
  background: var(--chip);
  border-radius: 8px;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.item:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(106,169,255,0.35);
}
.item:focus-within {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.item .hdr {
  font-weight: 700;
  color: var(--fg);
}

.dates {
  color: var(--muted);
  font-size: 0.92em;
}

/* ---------- Lists ---------- */
ul {
  margin: 8px 0 8px 20px;
  padding: 0;
}
li + li { margin-top: 4px; }

/* ---------- Contact ---------- */
.contact, .contact a { color: var(--muted); }
.contact a:hover { color: var(--fg); }

/* ---------- Chips / Badges (for skills) ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 0;
}
.chip {
  background: var(--chip);
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ---------- Buttons (if any links need button look) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  color: var(--fg);
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(106,169,255,0.35);
}
.button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- Small helpers ---------- */
.muted { color: var(--muted); }
.rule  { height: 1px; background: var(--hairline); border: 0; margin: 20px 0; }

/* ---------- Print styles (PDF-friendly) ---------- */
@media print {
  :root {
    --bg: #ffffff;
    --panel: #ffffff;
    --fg: #111111;
    --muted: #60666c;
    --accent: #0f3d5e;   /* dark ink */
    --accent2: #0f3d5e;
    --hairline: #d8dde3;
    --chip: #ffffff;
  }

  html, body { background: #fff; color: #111; }
  .site-nav,
  .site-footer { display: none; }

  .page {
    margin: 0;
    padding: 0.6in 0.6in 0.7in;
    background: #fff;
    border: none;
    box-shadow: none;
  }

  a, a:hover { color: #111; text-decoration: none; }

  header { border-bottom: 1px solid var(--hairline); }
  h1 { color: #111; text-shadow: none; }
  h2 { color: #111; border-left-color: #111; }

  .item {
    border: 1px solid var(--hairline);
    background: #fff;
    transform: none !important;
  }

  .button { display: none; } /* hide interactive-only UI in print */
}
