/* ===========================================================
   Waleed Alhazmi — Wallet Holding · Portfolio (Light mode)
   =========================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f6f2;
  --bg-card: #ffffff;
  --ink: #141414;
  --ink-2: #3d3d3d;
  --muted: #7b7770;
  --line: #ece7de;
  --line-2: #e2dbcf;
  --gold: #a7814a;
  --gold-2: #c9a46b;
  --gold-soft: #f4ede1;
  --navy: #2a2f42;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04), 0 2px 8px rgba(20, 20, 20, .04);
  --shadow: 0 2px 6px rgba(20, 20, 20, .04), 0 18px 40px -18px rgba(40, 32, 20, .18);
  --wrap: 1200px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .25); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.02rem; }
.logo img { width: 46px; height: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line-2); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: all .2s; }
.lang:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 1.6px; background: var(--ink); transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; border: 1px solid transparent; }
.btn .ic { width: 17px; height: 17px; }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn--dark:hover { transform: translateY(-2px); background: #000; }
.btn--ghost { border-color: var(--line-2); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(-3px); }
.is-en .btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 56px; background:
  radial-gradient(900px 420px at 85% -10%, var(--gold-soft), transparent 70%),
  linear-gradient(180deg, #fbfaf7, #fff 70%); }
.is-ar .hero { background:
  radial-gradient(900px 420px at 15% -10%, var(--gold-soft), transparent 70%),
  linear-gradient(180deg, #fbfaf7, #fff 70%); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 500; font-size: .92rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin: 22px 0 18px; letter-spacing: -.02em; }
.lead { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero__stats > div { padding-inline-end: 36px; margin-inline-end: 36px; border-inline-end: 1px solid var(--line); }
.hero__stats > div:last-child { border: 0; margin: 0; padding: 0; }
.hero__stats dt { font-size: 1.9rem; font-weight: 700; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.is-ar .hero__stats dt { text-align: right; }
.hero__stats dd { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.hero__visual { position: relative; padding: 18px 8px 36px; }
.portrait { position: relative; border-radius: 32px; overflow: hidden; background: var(--navy); aspect-ratio: 664 / 860; box-shadow: var(--shadow); isolation: isolate; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__visual::before { content: ""; position: absolute; inset: 0 40px 0 -10px; border: 1px solid var(--line-2); border-radius: 40px; transform: rotate(-3deg); z-index: -1; }
.badge { position: absolute; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.badge--wallet { inset-inline-start: -28px; bottom: 6px; }
.badge--wallet img { width: 48px; height: 48px; border-radius: 12px; }
.badge--wallet strong { display: block; font-size: .98rem; }
.badge--wallet span { font-size: .8rem; color: var(--muted); }
.badge--count { inset-inline-end: -18px; top: 48px; flex-direction: column; gap: 0; padding: 14px 20px; text-align: center; }
.badge--count strong { font-size: 1.9rem; line-height: 1; }
.badge--count span { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); }
.head { max-width: 760px; margin-bottom: 44px; }
.head--center { text-align: center; margin-inline: auto; margin-top: 96px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; font-size: .92rem; letter-spacing: .02em; margin-bottom: 12px; }
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.head--center .kicker::after { content: ""; width: 26px; height: 1.5px; background: currentColor; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sub { color: var(--ink-2); margin-top: 14px; font-size: 1.06rem; }

/* ---------- Portfolio ---------- */
.pcard { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px; border-radius: 26px; background: linear-gradient(135deg, #fff 0%, #fbf8f2 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pcard__who { display: flex; align-items: center; gap: 20px; }
.pcard__avatar { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; object-position: 50% 12%; background: var(--navy); }
.pcard h3 { font-size: 1.45rem; margin-bottom: 4px; }
.pcard__who p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.pcard__nums { display: flex; gap: 12px; }
.pcard__nums > div { min-width: 150px; padding: 14px 20px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.pcard__nums strong { display: block; font-size: 1.7rem; line-height: 1.15; }
.pcard__nums span { font-size: .85rem; color: var(--muted); }

.ptools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ptools h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.pill { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 10px; background: var(--ink); color: #fff; border-radius: 10px; font-size: .95rem; }
.search { position: relative; display: flex; align-items: center; width: min(340px, 100%); }
.search .ic { position: absolute; inset-inline-start: 14px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search input { width: 100%; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding-inline: 42px 16px; font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 26px 18px; }
.brands li { min-width: 0; }
.brands a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border-radius: 18px; padding: 6px 4px; }
.brands__img { display: block; width: 100%; max-width: 104px; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 20px -12px rgba(0, 0, 0, .25); transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; }
.brands__img img { width: 100%; height: 100%; object-fit: cover; }
.brands__name { font-size: .86rem; font-weight: 500; color: var(--ink-2); line-height: 1.4; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; }
.brands a:hover .brands__img { transform: translateY(-5px) scale(1.03); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 30px -14px rgba(0, 0, 0, .35); }
.brands a:hover .brands__name { color: var(--ink); }
.brands li[hidden] { display: none; }
.brands__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.about__text h2 { margin-bottom: 20px; }
.about__text p + p { margin-top: 14px; }
.about__text p { color: var(--ink-2); font-size: 1.06rem; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow-sm); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.facts > div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: end; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__card h3 { font-size: 1.04rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.why__card h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.why__card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.why__card dl > div { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.why__card dt { font-size: 1.32rem; font-weight: 700; line-height: 1.2; direction: ltr; unicode-bidi: isolate; }
.is-ar .why__card dt { text-align: right; }
.why__card dd { font-size: .82rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* ---------- Wallet ---------- */
.wallet { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.mission { margin: 28px 0 32px; padding: 20px 24px; border-inline-start: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 16px 16px 0; }
.is-ar .mission { border-radius: 16px 0 0 16px; }
.mission span { display: block; font-size: .85rem; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.mission p { font-size: 1.14rem; font-weight: 600; }
.wallet__side { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.wallet__logo { display: grid; place-items: center; height: 190px; border-radius: 20px; background:
  linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
  repeating-linear-gradient(45deg, transparent 0 12px, rgba(167, 129, 74, .05) 12px 13px); background-blend-mode: normal; border: 1px solid var(--line); }
.wallet__logo img { width: 62%; max-width: 260px; height: auto; }
.wallet__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.wallet__stats > div { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.wallet__stats dt { font-size: 1.6rem; font-weight: 700; line-height: 1.15; direction: ltr; unicode-bidi: isolate; }
.is-ar .wallet__stats dt { text-align: right; }
.wallet__stats dd { color: var(--muted); font-size: .88rem; }
.wallet__lists { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; margin-top: 64px; }
.wallet__lists h3 { font-size: 1.2rem; margin-bottom: 18px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); margin-top: 3px; stroke-width: 2.4; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .93rem; font-weight: 500; }

/* ---------- Experience ---------- */
.timeline { position: relative; margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.timeline li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 20px; padding-inline-start: 48px; box-shadow: var(--shadow-sm); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 22px; top: 28px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline li.is-current { grid-column: 1 / -1; background: linear-gradient(135deg, #fff, var(--gold-soft)); border-color: var(--line-2); }
.timeline li.is-current::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(167, 129, 74, .18); }
.timeline__date { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--gold); background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.is-current .timeline__date { background: #fff; }
.timeline h3 { font-size: 1.06rem; }
.timeline p { color: var(--muted); font-size: .94rem; margin-top: 4px; }

.edu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.edu__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.edu__card .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 16px; }
.edu__card h3 { font-size: 1rem; line-height: 1.5; }
.edu__card p { color: var(--muted); font-size: .9rem; margin-top: 6px; unicode-bidi: plaintext; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 32px; border: 1px solid var(--line); background:
  radial-gradient(600px 300px at 0% 0%, var(--gold-soft), transparent 70%), #fff; box-shadow: var(--shadow); }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s; min-width: 0; }
.contact__list a:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact__list .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg-soft); }
.contact__list span { display: flex; flex-direction: column; min-width: 0; }
.contact__list small { color: var(--muted); font-size: .8rem; }
.contact__list b { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-ar .contact__list b { text-align: right; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--bg-soft); }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer .logo { color: var(--ink); font-size: .95rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why { grid-template-columns: 1fr 1fr; }
  .edu { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 900px) {
  .burger { display: inline-block; }
  .nav { position: absolute; top: 74px; inset-inline: 0; flex-direction: column; gap: 0; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .topbar__actions { margin-inline-start: auto; }
  .hero { padding: 32px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .about, .wallet, .wallet__lists { grid-template-columns: 1fr; gap: 36px; }
  .timeline { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .head--center { margin-top: 72px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .logo span { font-size: .95rem; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero__stats > div { padding-inline-end: 10px; margin-inline-end: 10px; }
  .hero__stats dt { font-size: 1.45rem; }
  .hero__stats dd { font-size: .8rem; line-height: 1.4; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .badge--wallet { inset-inline-start: -6px; }
  .badge--count { inset-inline-end: -6px; }
  .pcard__nums { width: 100%; }
  .pcard__nums > div { flex: 1; min-width: 0; }
  .pcard__avatar { width: 72px; height: 72px; border-radius: 18px; }
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
  .brands a { padding: 2px 0; gap: 7px; }
  .brands__img { border-radius: 18px; }
  .brands__name { font-size: .74rem; }
  .why, .edu, .contact__list { grid-template-columns: 1fr; }
  .contact { padding: 24px; border-radius: 24px; }
  .search { width: 100%; }
}

@media (max-width: 360px) {
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
