:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #18201f;
  --muted: #60706c;
  --line: #dce3dc;
  --green: #0d6b57;
  --green-dark: #08483c;
  --coral: #e96f4c;
  --gold: #d69c2f;
  --shadow: 0 24px 60px rgba(24, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 248, 243, 0.88);
  border-bottom: 1px solid rgba(220, 227, 220, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.82rem;
}

.nav {
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

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

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-top: 48px;
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text,
.about > p,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--green-dark);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-art {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.stat-grid div {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.stat-grid div:last-child {
  border-right: 0;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.arabic-note {
  padding: 22px;
  color: var(--green-dark);
  background: #edf4ef;
  border: 1px solid #d0e3d6;
  border-radius: 8px;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card,
.language-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card {
  min-height: 210px;
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 10px 14px;
  color: var(--green-dark);
  background: #eaf2ed;
  border: 1px solid #d1e1d6;
  border-radius: 999px;
  font-weight: 700;
}

.language-box {
  padding: 24px;
}

.language-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.language-row span {
  color: var(--muted);
}

.focus {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.focus-list div {
  min-height: 132px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.focus-list span {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 24px;
  background: var(--gold);
  border-radius: 999px;
}

.poster-figure {
  margin: 24px 0 0;
  display: flex;
  justify-content: flex-start;
}

.poster-figure img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.contact-actions {
  flex-direction: column;
}

.contact-actions a {
  justify-content: flex-start;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-actions a:hover {
  border-color: var(--green);
}

.github-card {
  gap: 14px;
  min-height: 0;
  padding: 12px;
}

.github-card img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.github-card span,
.github-card strong,
.github-card small {
  display: block;
}

.github-card span {
  min-width: 0;
}

.github-card strong {
  margin-bottom: 3px;
}

.github-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .about,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

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

  .focus-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .section {
    width: min(100% - 28px, 1120px);
    padding: 58px 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cards,
  .focus-list,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-grid div:last-child {
    border-bottom: 0;
  }

  .hero-actions .button,
  .contact-actions a {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
