/* ==========================================================================
   COLOR REFERENCE
   All colors are defined once here as CSS variables. To restyle the site,
   change the values below — every section of the page reads from these.
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg:          #f6f7f9;  /* page background */
  --bg-alt:      #ffffff;  /* cards, nav, alternating section background */

  /* Text */
  --text:        #1b2330;  /* primary text (headings, body copy) */
  --text-muted:  #5a6472;  /* secondary text (subheads, meta, captions) */

  /* Borders & structure */
  --border:      #e2e5ea;  /* card borders, dividers, hairlines */
  --radius:      10px;     /* corner rounding used across cards/buttons */
  --max-width:   1080px;   /* content max width */

  /* Accent (brand color) */
  --accent:       #1f6feb;  /* primary accent — buttons, links, highlights */
  --accent-dark:  #17509b;  /* hover states, darker accent text */
  --accent-soft:  #eaf1fd;  /* light accent fill — tags, badges, icon chips */

  /* Status */
  --success:     #1f8a5c;  /* reserved for success/positive indicators */

  /* Shadows */
  --shadow:     0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 12px 32px rgba(15, 23, 42, 0.10);
}

/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAV
   ========================================================================== */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

nav.links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
nav.links a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 420px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1.name {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.title-line {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.tagline {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 26px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--text-muted); font-size: 0.98rem; max-width: 620px; }

/* ==========================================================================
   ABOUT / GOALS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.goals-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.goal-marker {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   RESUME
   ========================================================================== */
.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.resume-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 14px; }
.resume-stat { min-width: 110px; }
.resume-stat .num { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); }
.resume-stat .lbl { font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   CARD GRID (blog / media / projects)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card .kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; }
.card .meta { font-size: 0.8rem; color: var(--text-muted); }
.card .read-more { font-size: 0.88rem; font-weight: 600; }

.media-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}
.testimonial p.quote { font-style: italic; margin: 0 0 14px; color: var(--text); }
.testimonial .who { font-size: 0.86rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-card {
  flex: 1 1 220px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.contact-card .media-icon { margin: 0 auto 10px; }
.contact-card a { font-weight: 600; word-break: break-word; }

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; }
  nav.links { gap: 14px; font-size: 0.85rem; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .cta-row, .tagline { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .resume-card { flex-direction: column; align-items: flex-start; }
}
