/* Ghazal Mohammad — portfolio
   Design D "Fresh": white ground, navy ink, fresh pastel accents. */

:root {
  --ink: #14163A;
  --ink-2: #2C2F5E;
  --muted: #4B4F7A;
  --line: #E7E9F5;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FE;
  --mint: #9EFBEC;
  --mint-soft: #DFFCF6;
  --mint-ink: #0B5C50;
  --lilac-soft: #F3E9FF;
  --lilac-ink: #4A2A8A;
  --butter-soft: #FFF4C7;
  --butter-ink: #7A4A00;
  --pink-soft: #FFE9F3;
  --pink-ink: #8A1F55;
  --sky-soft: #E3F1FF;
  --blush: #FAE8E8;
  --focus: #2BB9A4;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --gutter: 40px;
  --section: 112px;
  --font-display: "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "DM Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: #3B3F8F; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; line-height: 1.12; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--section); }
.section-title { font-size: 40px; font-weight: 700; margin-bottom: 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-family: "Sora", sans-serif; font-weight: 700; font-size: 15px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: 10px; }

/* Buttons & pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 500 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; border: 0; }
.btn-dark:hover { color: #fff; background: #23265C; }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: #CFD3EA; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.pill-butter { background: var(--butter-soft); color: var(--butter-ink); }
.pill-mint { background: var(--mint-soft); color: var(--mint-ink); }
.pill-lilac { background: var(--lilac-soft); color: var(--lilac-ink); }
.pill-pink { background: var(--pink-soft); color: var(--pink-ink); }
.pill-white { background: #fff; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #F2B705; }

/* Hero */
.hero { padding-top: 64px; padding-bottom: var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 70px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.03; margin-top: 28px; }
[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero-role { font-family: var(--font-display); font-size: 25px; font-weight: 500; margin-top: 18px; }
.hero-role mark { background: var(--mint); color: var(--ink); padding: 2px 10px; border-radius: 8px; }
.hero-lead { font-size: 18px; color: var(--muted); margin-top: 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.stage { background: var(--blush); border-radius: var(--radius-lg); overflow: hidden; }

/* Work */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.card-body { background: #fff; padding: 24px 28px 30px; flex-grow: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card-body h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.card-body p { font-size: 15px; color: var(--muted); }
.card-tech { font-size: 13px; color: var(--muted); margin-top: auto !important; padding-top: 6px; }
.card-media { height: 268px; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; }
.card-media .phone-shot { width: 160px; border-radius: 22px 22px 0 0; box-shadow: 0 12px 28px rgba(20,22,58,.16); }
.card-media-desktop { justify-content: flex-start; padding: 28px 0 0 28px; }
[dir="rtl"] .card-media-desktop { padding: 28px 28px 0 0; }
.card-media-desktop img { width: 560px; max-width: none; border-radius: 14px 0 0 0; box-shadow: 0 12px 28px rgba(20,22,58,.14); }
[dir="rtl"] .card-media-desktop { justify-content: flex-start; direction: ltr; padding: 28px 0 0 28px; }
.bg-sky { background: var(--sky-soft); }
.bg-mint { background: var(--mint-soft); }
.bg-pink { background: var(--pink-soft); }
.bg-lilac { background: var(--lilac-soft); }
.bg-butter { background: var(--butter-soft); }

.feature { grid-column: span 3; border-radius: var(--radius-lg); padding: 44px; }
.feature-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 40px; align-items: center; }
.feature h3 { font-size: 42px; font-weight: 700; letter-spacing: -0.035em; margin-top: 18px; }
.feature .sub { font-size: 19px; color: var(--ink-2); margin-top: 8px; font-weight: 500; }
.feature .desc { font-size: 16px; color: var(--muted); margin-top: 20px; }
.feature-cta { display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.link-u { font-weight: 600; text-underline-offset: 4px; font-size: 15px; }
.feature-media { border-radius: var(--radius-md); overflow: hidden; background: var(--blush); }

/* SPL phones row */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.phone { border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 18px 40px rgba(20,22,58,.18); }
.phone img { width: 100%; }
.phone.mid { transform: translateY(-18px); }

/* Skills */
.skills { background: var(--bg-soft); }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.skill { background: #fff; border-radius: 22px; padding: 26px; }
.skill .bar { display: block; width: 40px; height: 6px; border-radius: 3px; margin-bottom: 18px; }
.skill h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.skill p { font-size: 15px; color: var(--muted); }

/* Experience */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.job { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 22px; padding: 26px 30px; }
.job-main { flex: 1 1 480px; min-width: 0; }
.job h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.job .org { color: var(--ink-2); font-weight: 500; }
.job ul { margin: 12px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; }
.job li + li { margin-top: 4px; }
.job .note { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Contact */
.contact { padding-bottom: 48px; }
.contact-card { background: var(--ink); color: #fff; border-radius: 36px; padding: 72px 40px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-card h2 { font-size: 48px; font-weight: 700; }
.contact-mail { margin-top: 18px; font-size: 22px; color: var(--mint); text-decoration: none; overflow-wrap: anywhere; }
.contact-mail:hover { color: #fff; }
.contact-links { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.contact-links .btn-line { border-color: #fff; }
.copy { font-size: 14px; color: #A9ADD6; margin-top: 56px; }

/* Case study */
.cs-hero { padding-top: 48px; padding-bottom: 64px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.cs-hero h1 { font-size: 60px; font-weight: 700; margin-top: 20px; }
.cs-hero .sub { font-size: 22px; color: var(--ink-2); margin-top: 10px; font-family: var(--font-display); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.fact { background: var(--bg-soft); border-radius: 18px; padding: 18px 20px; }
.fact b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.video-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--blush); box-shadow: 0 30px 60px rgba(20,22,58,.12); }
.video-wrap video { width: 100%; }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; font-weight: 700; margin: 56px 0 16px; }
.prose p, .prose li { font-size: 17px; color: var(--muted); }
.prose ul { padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--blush); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Footer */
.foot-note { text-align: center; padding: 0 0 40px; }

/* Responsive */
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 72px; }
  .nav { display: none; }
  .hero-grid, .feature-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .hero h1 { font-size: 48px; }
  .hero-role { font-size: 21px; }
  .bento { grid-template-columns: minmax(0,1fr); }
  .feature { grid-column: auto; padding: 24px; }
  .feature h3 { font-size: 34px; }
  .section-title { font-size: 32px; margin-bottom: 28px; }
  .contact-card { padding: 56px 20px 40px; border-radius: 28px; }
  .contact-card h2 { font-size: 38px; }
  .contact-mail { font-size: 17px; }
  .cs-hero h1 { font-size: 40px; }
  .gallery { grid-template-columns: minmax(0,1fr); }
  .phones { gap: 10px; }
  .phone { border-width: 4px; border-radius: 18px; }
  .phone.mid { transform: translateY(-10px); }
}
@media (max-width: 520px) {
  .skills-grid, .facts { grid-template-columns: minmax(0,1fr); }
  .brand-name { font-size: 15px; }
}

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cert { border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.cert:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20,22,58,.08); color: var(--ink); }
.cert-img { background: var(--bg-soft); padding: 20px; display: flex; justify-content: center; }
.cert-img img { width: 100%; max-width: 480px; border-radius: 10px; box-shadow: 0 6px 18px rgba(20,22,58,.10); }
.cert-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.cert-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cert-body p { font-size: 14px; color: var(--muted); }
.cert-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .certs { grid-template-columns: minmax(0, 1fr); } }
.rec { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0; margin-bottom: 20px; border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.rec:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20,22,58,.08); color: var(--ink); }
.rec-img { background: var(--bg-soft); padding: 24px; display: flex; align-items: center; justify-content: center; }
.rec-img img { width: 100%; max-width: 230px; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(20,22,58,.12); }
.rec-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.rec-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.rec-body blockquote { margin: 4px 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--ink); font-size: 17px; line-height: 1.55; }
.rec-body p { font-size: 14px; color: var(--muted); }
.rec-body p b { color: var(--ink); font-weight: 600; }
.rec-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .rec { grid-template-columns: minmax(0, 1fr); } .rec-img img { max-width: 200px; } .rec-body { padding: 22px 22px 26px; } }


/* Case-study screenshots */
.shots-group { margin-top: 56px; }
.shots-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.shots-note { color: var(--ink-2); margin: 0 0 4px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 24px; margin-top: 18px; }
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.frame { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(20,22,58,.07), 0 22px 44px -18px rgba(20,22,58,.25); }
.frame-bar { height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F3F4F9; border-bottom: 1px solid #E6E8F2; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #F4A9A0; }
.frame-bar i:nth-child(2) { background: #F5D58A; }
.frame-bar i:nth-child(3) { background: #9EDCB8; }
[dir="rtl"] .frame-bar { flex-direction: row-reverse; }
.frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.phones-pair { display: flex; justify-content: center; align-items: flex-start; gap: 40px; margin-top: 22px; padding: 40px 20px; background: var(--blush); border-radius: var(--radius-lg); }
.mphone { width: min(270px, 42%); padding: 7px; background: var(--ink); border-radius: 40px; box-shadow: 0 28px 48px -16px rgba(20,22,58,.35); }
.mphone-screen { position: relative; background: #F6F7FB; border-radius: 33px; overflow: hidden; padding: 26px 0 10px; }
.mphone-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 30%; height: 12px; transform: translateX(-50%); border-radius: 8px; background: var(--ink); }
.mphone-screen img { display: block; width: 100%; height: auto; }
.stage img, .feature-media img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .shots { grid-template-columns: minmax(0,1fr); }
  .phones-pair { gap: 16px; padding: 24px 12px; }
  .mphone { padding: 5px; border-radius: 30px; }
  .mphone-screen { border-radius: 25px; padding-top: 20px; }
  .mphone-screen::before { top: 6px; height: 9px; }
}
.frame-dark { background: #0A0E17; }
.frame-dark .frame-bar { background: #161B27; border-bottom-color: #232A3A; }
.feature .frame { box-shadow: 0 0 0 1px rgba(20,22,58,.08), 0 26px 50px -20px rgba(20,22,58,.35); }
