/* Mobile-first professional portfolio */
:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --ink: #0f1a1d;
  --muted: #5c6b70;
  --line: #e4e8e9;
  --accent: #0d5c61;
  --accent-2: #0a4549;
  --hero: #0b1f24;
  --pad: 1.25rem;
  --max: 42rem;
  --radius: 0.75rem;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* —— Header (mobile) —— */
.hdr {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  background: rgba(247, 248, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr.on-hero {
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.hdr-right { display: flex; gap: 0.5rem; align-items: center; }
.chip, .menu-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.55rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.8rem;
}
.hdr.on-hero .chip,
.hdr.on-hero .menu-btn {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.menu-btn {
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Drawer */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 16, 20, 0.45);
}
.drawer {
  position: fixed;
  z-index: 70;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(18rem, 86vw);
  background: var(--surface);
  padding: 5rem 1.25rem 2rem;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
html[dir="ltr"] .drawer { box-shadow: 8px 0 40px rgba(0,0,0,0.12); }
.drawer[hidden], .scrim[hidden] { display: none !important; }
.drawer-nav {
  display: grid;
  gap: 0.25rem;
}
.drawer-nav a {
  display: block;
  padding: 0.95rem 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 0.5rem;
}
.drawer-nav a:active { background: var(--bg); }
.drawer-pdf {
  margin-top: 0.75rem;
  color: var(--accent) !important;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,36,0.45) 0%, rgba(11,31,36,0.1) 32%, rgba(11,31,36,0.35) 58%, rgba(11,31,36,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem var(--pad) 1.75rem;
  padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
}
.hero-role {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-tag {
  margin: 0.7rem 0 1.25rem;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.88);
  max-width: 22rem;
}
.hero-actions {
  display: grid;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.btn.block { width: 100%; }
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:active { background: var(--accent-2); }
.btn.ghost {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn.soft {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* —— Sections —— */
.sec {
  padding: 2.75rem var(--pad);
  max-width: var(--max);
  margin-inline: auto;
  background: var(--bg);
}
.sec + .sec { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: none;
}
.eyebrow.light { color: #7ec4c8; }

.sec h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.body {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.02rem;
}
.body.light { color: rgba(255,255,255,0.78); }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
}
.facts li:first-child { border-top: 0; }
.facts span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.facts strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain-list li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.02rem;
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.skill-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  counter-reset: sk;
}
.skill-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  padding-inline-start: 2.6rem;
  position: relative;
}
.skill-list li:last-child { border-bottom: 1px solid var(--line); }
.skill-list li::before {
  counter-increment: sk;
  content: counter(sk, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.skill-list strong { font-size: 1.05rem; }
.skill-list span { color: var(--muted); font-size: 0.95rem; }

.clients {
  list-style: none;
  margin: 1.2rem 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.clients li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.95rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.note {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.subhead {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.steps {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.steps b {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}
.steps strong { display: block; font-size: 1.02rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }

.contact {
  max-width: none;
  background: var(--hero);
  color: #fff;
  padding-bottom: 3rem;
}
.contact h2 { color: #fff; }
.contact-actions {
  display: grid;
  gap: 0.65rem;
  max-width: var(--max);
}
.meta {
  margin: 1.25rem 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
}

.ftr {
  padding: 1.25rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  background: var(--bg);
}

/* Tablet+ still single-column calm layout, slightly wider */
@media (min-width: 720px) {
  :root { --pad: 2rem; --max: 40rem; }
  .hero-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 26rem;
  }
  .hero h1 { font-size: 3rem; }
  .sec h2 { font-size: 1.85rem; }
}

@media (min-width: 980px) {
  .hero-bg img { object-position: 42% 15%; }
  .hero-content { padding-inline: max(var(--pad), calc(50vw - 20rem)); }
  .sec { padding-inline: max(var(--pad), calc(50vw - 20rem)); max-width: none; }
  .contact-actions { margin-inline: auto; width: min(100%, var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
