:root {
  --bg: #081820;
  --bg-soft: #0b2029;
  --surface: #102832;
  --surface-2: #15333d;
  --text: #f1f7f6;
  --muted: #9db4b7;
  --line: rgba(186, 218, 215, .18);
  --teal: #55d6c7;
  --sand: #ddb46d;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
}
[data-theme="light"] {
  --bg: #f4f3ee;
  --bg-soft: #ebece6;
  --surface: #fff;
  --surface-2: #e5eeeb;
  --text: #102b33;
  --muted: #5d7275;
  --line: rgba(19, 63, 66, .15);
  --teal: #0b7a75;
  --sand: #a76c18;
  --shadow: 0 24px 70px rgba(26, 56, 56, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; line-height: 1.75;
  transition: color .2s ease, background .2s ease;
}
body[dir="ltr"] { font-family: Manrope, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.wrap { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.project-header {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(18px);
}
.project-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-link, .project-actions { display: flex; align-items: center; gap: 10px; }
.home-link a { color: var(--muted); font-size: 12px; font-weight: 700; }
.home-link a:hover { color: var(--teal); }
.mark {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 14px; color: var(--text);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  font: 800 14px/1 Manrope, sans-serif;
}
.mark::after { content: ""; position: absolute; width: 7px; height: 7px; right: 6px; bottom: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.control, .mini-btn {
  min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--surface); cursor: pointer; font-size: 11px; font-weight: 800;
}
.mini-btn.primary { color: #06191e; background: var(--teal); border-color: var(--teal); }
.project-hero {
  padding: 85px 0 58px;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 35%),
    linear-gradient(var(--bg), var(--bg-soft));
}
.crumb { color: var(--sand); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.project-hero h1 {
  max-width: 950px; margin: 14px 0; color: var(--text);
  font-family: Alexandria, "Noto Sans Arabic", sans-serif; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.15; letter-spacing: -.04em;
}
.subtitle { max-width: 820px; color: var(--muted); font-size: 1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-meta span, .tech-list span {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  background: var(--surface); font: 700 10px/1.2 Manrope, sans-serif;
}
.hero-visual { margin-top: 42px; padding: 14px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; max-height: 720px; object-fit: contain; border-radius: 19px; background: #fff; cursor: zoom-in; }
.case-section { padding: 76px 0; }
.case-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.panel h2 { margin: 0 0 13px; color: var(--teal); font-family: Alexandria, "Noto Sans Arabic", sans-serif; font-size: 1.4rem; }
.panel p { color: var(--muted); font-size: 13px; }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-inline-start: 22px; color: var(--muted); font-size: 13px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-section { padding: 10px 0 86px; }
.gallery-title { margin: 0 0 25px; font-family: Alexandria, "Noto Sans Arabic", sans-serif; font-size: 2rem; }
.case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-gallery figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.case-gallery img { width: 100%; height: 100%; min-height: 340px; object-fit: contain; background: #fff; cursor: zoom-in; }
.privacy-note { margin-top: 26px; padding: 23px 26px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: var(--surface); font-size: 12px; }
.privacy-note strong { color: var(--teal); }
.project-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-footer a:hover { color: var(--teal); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 12, 16, .92); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 18px; }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: #102832; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 820px) {
  .case-grid, .case-gallery { grid-template-columns: 1fr; }
  .project-nav { flex-wrap: wrap; padding: 10px 0; }
  .project-hero { padding-top: 52px; }
  .footer-row { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .home-link a { display: none; }
  .project-actions { margin-inline-start: auto; }
  .mini-btn.primary { display: none; }
  .project-hero h1 { font-size: 2.55rem; }
  .panel { padding: 23px; }
  .case-gallery img { min-height: 240px; }
}
