/* ============================================================
   Aviel Okor — personal/capability site
   Clean dark theme. No external fonts, CDNs, images, or JS.
   ============================================================ */

/* ---- Theme variables ---- */
:root {
  --bg: #0b0f14;          /* page background */
  --bg-2: #0d1117;        /* slightly lighter base */
  --surface: #161b22;     /* cards / sections */
  --surface-2: #11161d;   /* alternating section background */
  --surface-3: #1c232d;   /* raised elements / hover */
  --border: #2a313c;      /* subtle borders */
  --border-strong: #3a4452;
  --text: #e6edf3;        /* primary text (high contrast on dark) */
  --muted: #9aa7b4;       /* secondary text */
  --accent: #4dabf7;      /* links / highlights */
  --accent-2: #9775fa;    /* secondary accent for gradients */
  --accent-strong: #1c7ed6;
  --accent-contrast: #04121f; /* text on accent buttons */

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --gap: 1.5rem;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ---- Base / reset ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Visible focus outline for keyboard accessibility */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(11, 15, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  /* Soft radial glow behind the hero for depth */
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(151, 117, 250, 0.18), transparent 60%),
    radial-gradient(800px 480px at 10% 0%, rgba(77, 171, 247, 0.16), transparent 55%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background-color: rgba(77, 171, 247, 0.08);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 0.7em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.9rem;
}

/* Trust signals under the hero copy */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero image panel */
.hero-media {
  margin: 0;
}

/* Gradient "frame" wrapping the image */
.hero-media-frame {
  padding: 3px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

.hero-media-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 3px);
}

.hero-media figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-contrast);
  box-shadow: 0 6px 18px rgba(28, 126, 214, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(28, 126, 214, 0.45);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.6rem;
  position: relative;
  padding-bottom: 0.7rem;
}

/* Accent underline under each section title */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-intro {
  color: var(--muted);
  max-width: 66ch;
  font-size: 1.05rem;
  margin: 1.25rem 0 2.25rem;
}

/* ---- Card grids ---- */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.14rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Quieter cards (background section) — no fill, lighter accent */
.card-quiet {
  background-color: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

.card-quiet:hover {
  transform: translateY(-3px);
}

/* ---- Checklist (What I Help With) ---- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.85rem 1.75rem;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.4rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  top: 0.65rem;
  color: var(--accent);
  font-weight: 800;
}

/* ---- Approach steps ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color 0.18s ease;
}

.steps li:hover {
  border-color: var(--border-strong);
}

.step-num {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-contrast);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.steps p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Tag list (Current Focus) ---- */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-list li {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Notes ---- */
.note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background-color: rgba(77, 171, 247, 0.06);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Contact ---- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.contact-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.contact-label {
  flex: none;
  width: 5.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
/* Two-column hero (text + image) on larger screens */
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.25fr 0.95fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav {
    gap: 1.1rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .contact-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .contact-label {
    width: auto;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
