/* Vincent Okolo — personal landing page.
   Full-bleed background + centred dark card + warm accent.
   No build step: plain CSS, system fonts. */

:root {
  --accent: #f49a5f;          /* warm orange accent */
  --accent-strong: #e07a32;   /* darker orange for text on light surfaces */
  --ink: #1a1f29;             /* dark text on the light/glass card */
  --ink-muted: #5b6472;       /* secondary text */
  --card: rgba(255, 255, 255, 0.66);   /* glassy white */
  --line: rgba(15, 23, 42, 0.10);      /* hairline border on light */
  --bg-base: #ffffff;         /* white, with drifting dots (see particles.js) */
  --foot: #6b7280;            /* footer text on the white background */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* White background; the drifting dots are drawn on #bg-canvas (particles.js). */
  background-color: var(--bg-base);
}

/* Full-viewport animated dot layer, behind all content. */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---- Card ---- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: transparent;
  padding: 2.5rem 2rem;
  text-align: center;
}

.avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 1.25rem;
  display: block;
  background: #1d2029;
}

.name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.tagline {
  margin-top: 0.9rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ---- Link buttons ---- */
.links {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.link:hover,
.link:focus-visible {
  border-color: var(--accent);
  background: #fbe9d8;
  outline: none;
}

.link:active { transform: translateY(1px); }

.link svg { width: 18px; height: 18px; flex: none; }

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--foot);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
}

.footer a { color: var(--foot); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .sep { opacity: 0.4; }
.footer .copy { width: 100%; opacity: 0.7; margin-top: 0.4rem; }

/* ---- Legal / content pages ---- */
.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
}

.page h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.page h2 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; color: var(--accent); }
.page p, .page li { color: var(--ink-muted); margin-bottom: 0.75rem; }
.page ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.page a { color: var(--accent); }
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  .card { padding: 2rem 1.5rem; }
  .name { font-size: 1.45rem; }
  .page { padding: 1.75rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
}

/* ---- Resource hub ---- */
.lead { font-size: 1.05rem; color: var(--ink-muted); }
.resource-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 600px) { .resource-grid { grid-template-columns: 1fr 1fr; } }
.resource-card {
  display: block;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.resource-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}
.resource-card:active { transform: translateY(1px); }
.resource-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}
.resource-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
.resource-card p { font-size: 0.92rem; color: var(--ink-muted); margin: 0.35rem 0 0; }
.resource-card.soon { opacity: 0.7; }

/* ---- Forms / tools ---- */
.field { text-align: left; margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--ink-muted); }
.field input,
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd2db;
  border-radius: 10px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 154, 95, 0.18);
}
.field-row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-accent:hover { background: var(--accent-strong); }

/* ---- Result panels ---- */
.result { margin-top: 1.5rem; padding: 1.25rem 1.4rem; border-radius: 14px; background: #fff7f0; border: 1px solid #f6d9c0; text-align: left; }
.result .row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed #f0d3b8; }
.result .row:last-of-type { border-bottom: none; }
.result .row .v { font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.result .note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.5rem; }
.verdict { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 10px; font-weight: 600; }
.verdict.good { background: #e7f6ec; color: #1d7a3f; }
.verdict.warn { background: #fde7e0; color: #b4541f; }
.is-hidden { display: none; }

/* ---- Copy-paste output box ---- */
.output {
  width: 100%;
  min-height: 230px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.85rem;
  border: 1px solid #cbd2db;
  border-radius: 10px;
  resize: vertical;
  color: var(--ink);
  background: #fbfcfe;
}
.copy-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.copied { font-size: 0.85rem; color: #1d7a3f; font-weight: 600; }

/* ---- Checklist / guide ---- */
.checklist h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; color: var(--accent-strong); }
.checklist ul { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; color: var(--ink-muted); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }

/* ---- Skills list ---- */
.skill { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.skill:last-child { border-bottom: none; }
.skill h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); }
.skill p { font-size: 0.92rem; color: var(--ink-muted); margin: 0.25rem 0 0; }

/* ---- Case study ---- */
.metrics { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; margin: 1.25rem 0; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.metric .big { font-size: 1.8rem; font-weight: 800; color: var(--accent-strong); }
.metric .lbl { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.25rem; }
.placeholder-note { font-size: 0.85rem; color: var(--ink-muted); font-style: italic; }
blockquote { border-left: 4px solid var(--accent); background: #fff7f0; padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0; color: var(--ink); }
blockquote footer { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ink-muted); }
