:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --line: #e4e7ec;
  --accent: #0f172a;
  --accent-soft: #334155;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 60%);
  color: var(--text);
}

/* ── HEADER / MENU ────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(242, 244, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(1080px, 92vw);
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--accent);
}

.page {
  width: min(1080px, 92vw);
  margin: 28px auto 0;
  display: grid;
  gap: 18px;
}

section[id] {
  scroll-margin-top: 86px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

/* ── HERO ─────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 26px;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.headline {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

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

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
}

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

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  background: #f8fafc;
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--accent-soft);
}

.hero-photo-wrap {
  justify-self: end;
}

.hero-photo {
  width: min(280px, 100%);
  border-radius: 16px;
  display: block;
  border: 1px solid var(--line);
}

/* ── SECTION HEADINGS ─────────────────────── */
h2 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ── ABOUT ────────────────────────────────── */
.about-text {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.7;
  max-width: 78ch;
  font-size: 0.97rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* ── KEY CONTRIBUTIONS ────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fcfcfd;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.stats article:hover {
  border-color: #cfd4dc;
  transform: translateY(-1px);
}

.stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

/* ── BEST PROJECTS ────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fcfcfd;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.project:hover {
  border-color: #cfd4dc;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
}

.project-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}

.project h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.project p {
  margin: 0;
  font-size: 0.9rem;
  color: #344054;
  line-height: 1.55;
}

/* ── CORE STRENGTHS ───────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.86rem;
  color: #344054;
  background: #f8fafc;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chips span:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: #fff;
}

/* ── EXPERIENCE ───────────────────────────── */
.timeline {
  display: grid;
  gap: 14px;
}

.role {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.role-header h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
}

.role-company {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.role-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  padding-top: 2px;
}

.role ul {
  margin: 0;
  padding-left: 18px;
  color: #1d2939;
}

.role li {
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 0.93rem;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .site-header-inner {
    min-height: 74px;
    align-items: flex-start;
    padding: 10px 0 8px;
  }

  .site-brand {
    padding-top: 3px;
  }

  .site-nav {
    gap: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    justify-self: start;
    order: -1;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .card {
    padding: 20px;
    border-radius: 16px;
  }

  .contact-section {
    padding: 28px 20px 32px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .role-header {
    flex-direction: column;
  }
}

/* ── CONTACT FORM ─────────────────────────── */
.contact-section {
  text-align: center;
  padding: 40px 32px 44px;
}

.contact-section h2 {
  margin-bottom: 12px;
}

.contact-lead {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
}

.form-success {
  display: none;
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid #b2ddff;
  background: #eff8ff;
  color: #175cd3;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.form-success.is-visible {
  display: block;
}

.form-success.is-error {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-submit {
  justify-self: center;
  margin-top: 4px;
  padding: 11px 26px;
  border: none;
  cursor: pointer;
}

/* ── SITE FOOTER ──────────────────────────── */
.site-footer {
  width: min(1080px, 92vw);
  margin: 8px auto 36px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  line-height: 0;
}

.footer-author:hover {
  color: var(--accent-soft);
}

.footer-author:hover .footer-li-icon {
  color: #0a66c2;
}

.footer-li-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
