/* IBM Plex Sans Arabic, self-hosted (no dependency on Google Fonts) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-arabic-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plex-arabic-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plex-arabic-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plex-arabic-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plex-arabic-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plex-arabic-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plex-arabic-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plex-arabic-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --navy: #0f2440;
  --navy-2: #1f3a5f;
  --blue: #2b7bb9;
  --cyan: #22b8cf;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 36, 64, .08);
  --shadow-lg: 0 24px 60px rgba(15, 36, 64, .16);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue);
  background: rgba(43, 123, 185, .1);
  padding: .25em .9em;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.eyebrow.light { color: #bfe3ff; background: rgba(255, 255, 255, .12); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 600;
  padding: .8em 1.5em;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: 0 8px 20px rgba(43, 123, 185, .3);
}
.btn-ghost { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { color: var(--navy); background: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }
.link { font-weight: 600; color: var(--blue); }
.link::after { content: " ←"; }
[dir="ltr"] .link::after { content: " →"; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 36, 64, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--navy-2));
}
.nav-links { display: flex; gap: 1.8rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn {
  font: inherit; font-weight: 600; font-size: .9rem;
  width: 44px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 90px) clamp(60px, 8vw, 110px);
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(34, 184, 207, .12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(43, 123, 185, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .9rem; font-weight: 600; color: #127a4b;
  background: #e6f7ef; border: 1px solid #c7ecd9;
  padding: .3em 1em; border-radius: 99px; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 4px rgba(31, 191, 117, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 191, 117, .05); } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: .5em; }
.hero h1 span { display: block; }
.grad { background: linear-gradient(135deg, var(--cyan), var(--blue) 50%, var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.stats span { font-size: .9rem; color: var(--muted); }

.hero-photo { position: relative; justify-self: center; width: min(400px, 100%); }
.photo-frame {
  border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  aspect-ratio: 600 / 760;
  background: var(--bg-alt);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 8% -8% -6% 10%;
  border-radius: 32px; z-index: -1;
  background: linear-gradient(135deg, rgba(34, 184, 207, .35), rgba(31, 58, 95, .35));
  transform: rotate(-4deg);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  background: #fff; border-radius: 14px; padding: .7rem 1rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; color: var(--navy); }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon { font-size: 1.4rem; }
.fc-1 { inset-inline-start: -14%; top: 14%; }
.fc-2 { inset-inline-end: -10%; bottom: 12%; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .chips { justify-content: flex-end; }
.chips span {
  font-size: .88rem; font-weight: 500;
  padding: .35em .9em; border-radius: 99px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--navy-2);
}
.ai-note { font-size: .95rem; padding: 1rem 1.2rem; border-radius: 14px; background: linear-gradient(135deg, rgba(34, 184, 207, .08), rgba(43, 123, 185, .08)); border: 1px solid rgba(43, 123, 185, .15); }
.ai-note span { color: var(--navy-2); direction: ltr; unicode-bidi: isolate; }

/* Products */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product h3 { display: flex; gap: .5rem; align-items: flex-start; }
.product p { color: var(--muted); }
.p-icon { font-size: 1.3rem; line-height: 1.3; }
.features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.features li { position: relative; padding-inline-start: 1.7rem; font-size: .96rem; }
.features li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: .1em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  color: #fff; background: var(--blue);
}
.product .btn, .product .link { align-self: flex-start; }

.featured {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 50px);
  align-items: center; margin-bottom: 1.8rem;
  border: 1.5px solid rgba(43, 123, 185, .35);
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.featured h3 { font-size: 1.45rem; }
.featured .features { grid-template-columns: 1fr 1fr; }
.tag {
  align-self: flex-start; display: inline-block; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 700; color: #a15c00;
  background: #fff3df; border: 1px solid #ffe1ad;
  padding: .2em .8em; border-radius: 99px;
}
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }

.mock { border-radius: 16px; background: var(--navy); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .06); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .9rem; color: #d7e3f1;
  background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 12px;
}
.mock-row b { font-size: .8rem; padding: .15em .7em; border-radius: 99px; white-space: nowrap; }
.ok { background: rgba(31, 191, 117, .2); color: #6ee7a8; }
.warn { background: rgba(255, 176, 32, .2); color: #ffd17a; }
.danger { background: rgba(255, 86, 86, .2); color: #ff9c9c; }

/* Screenshots */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-shot { font: inherit; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.shot-hero {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transition: transform .2s;
}
.shot-hero:hover { transform: translateY(-3px); }
.browser-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e3; }
.browser-bar i:nth-child(1) { background: #ff6159; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c941; }
.shot-hero img { width: 100%; height: auto; }
.zoom-hint {
  position: absolute; inset-inline-end: 12px; bottom: 12px;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: rgba(15, 36, 64, .75); padding: .3em .8em; border-radius: 99px;
  opacity: 0; transition: opacity .2s;
}
.shot-hero:hover .zoom-hint, .shot-hero:focus-visible .zoom-hint { opacity: 1; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: .8rem; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.tag-pro { color: #5b21b6; background: #f1ebff; border-color: #ddd0ff; }

.mini-stats { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.mini-stats li {
  display: flex; flex-direction: column; min-width: 120px;
  padding: .7rem 1rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
}
.mini-stats strong { font-size: 1.3rem; color: var(--navy); line-height: 1.3; direction: ltr; unicode-bidi: isolate; text-align: start; }
.mini-stats span { font-size: .82rem; color: var(--muted); }

.subsystem {
  margin: 0 0 1.4rem; padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.subsystem-title { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; color: var(--navy); margin: 0 0 1.2rem; }
.subsystem-title .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  color: #fff; font-size: .95rem; background: linear-gradient(135deg, var(--blue), var(--navy-2));
}
.features-3 { grid-template-columns: repeat(3, 1fr); column-gap: 1.6rem; margin-bottom: 1.6rem; }
.subsystem .gallery { margin-bottom: 0; }
.tag-new { color: #0b6e7a; background: #e0f7fa; border-color: #b2ebf2; }
.gallery figure { margin: 0; }
.gallery .js-shot {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); aspect-ratio: 16 / 9;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gallery .js-shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
[dir="ltr"] .gallery img { object-position: right top; }
.gallery figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; line-height: 1.5; }
.gallery-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 0 0 2.2rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem; background: rgba(8, 18, 33, .92);
  animation: lbIn .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); margin-inline: auto; }
.lightbox figcaption { color: #d7e3f1; margin-top: .9rem; font-weight: 500; }
.lb-close, .lb-nav {
  font: inherit; color: #fff; background: rgba(255, 255, 255, .1);
  border: 0; border-radius: 50%; cursor: pointer;
  width: 48px; height: 48px; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; flex-shrink: 0;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; }
/* Physical layout: ‹ always on the left, › on the right; JS maps them to next/previous per language. */
.lightbox { direction: ltr; }
.lightbox figcaption { direction: rtl; }
[dir="ltr"] .lightbox figcaption { direction: ltr; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  padding: 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--blue); transform: translateY(-3px); }
.service p { color: var(--muted); margin: 0; font-size: .96rem; }
.s-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  font-size: 1.5rem; background: var(--bg-alt);
}

/* Experience */
.exp-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.cv-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 2.2rem; padding-bottom: 1.8rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue);
}
.timeline li:first-child::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(43, 123, 185, .15); }
.when { font-size: .85rem; font-weight: 600; color: var(--blue); }
.timeline h3 { margin: .2em 0 .1em; font-size: 1.08rem; }
.org { display: block; color: var(--muted); font-size: .95rem; }
.timeline p { margin: .4em 0 0; font-size: .95rem; }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 60px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 26px; color: #d7e3f1;
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(34, 184, 207, .35), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .08);
}
.contact-list a:hover { color: #fff; }

/* Footer */
.footer { padding: 1.8rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a:hover { color: var(--blue); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .dot { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .features-3 { grid-template-columns: 1fr 1fr; }
  .products, .services { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: 1fr; }
  .about-grid, .exp-grid, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .nav-links {
    position: absolute; top: 70px; inset-inline: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links a { padding: .9rem 4%; border-top: 1px solid var(--line); }
  .nav-links.open { max-height: 400px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(300px, 80%); }
  .fc-1 { inset-inline-start: -8%; }
  .fc-2 { inset-inline-end: -6%; }
}
@media (max-width: 620px) {
  .gallery, .gallery-3 { grid-template-columns: 1fr 1fr; }
  .features-3 { grid-template-columns: 1fr; }
  .lightbox { padding: 1rem .5rem; gap: .3rem; }
  .lb-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .products, .services { grid-template-columns: 1fr; }
  .featured .features { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
