/* ==========================================================================
   الموقع العام — تصميم فاتح احترافي (RTL/LTR عبر الخصائص المنطقية)
   ========================================================================== */
:root {
  --bg: #f5f8fe;
  --surface: #ffffff;
  --soft: #eef3fc;
  --line: #e1e9f7;
  --ink: #0e1a3a;
  --ink-2: #4a5878;
  --ink-3: #7b88a6;
  --blue: #1f5eff;
  --blue-2: #3b82ff;
  --indigo: #5b4bff;
  --navy: #0a1636;
  --ok: #12a06a;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(18, 40, 100, .06);
  --shadow: 0 10px 30px rgba(18, 40, 100, .09);
  --shadow-lg: 0 24px 60px rgba(18, 40, 100, .16);
  --grad: linear-gradient(135deg, #3b82ff, #1f5eff 55%, #5b4bff);
  --font: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
html[lang="en"] { --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.75; font-size: 16px; overflow-x: hidden; max-width: 100vw;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.ic { flex: none; vertical-align: middle; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow, .narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { top: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: 56px; }
.pad { padding: 28px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(31, 94, 255, .32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(31, 94, 255, .45); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(18, 40, 100, .07); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 6px 18px rgba(31, 94, 255, .35); transition: transform .3s; }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 18px; font-weight: 800; color: var(--ink); }
.logo-text small { font-size: 13px; color: var(--ink-3); }
.logo-only .logo-mark { width: 50px; height: 50px; border-radius: 15px; }
.logo-name-only .logo-text strong { font-size: 22px; }
.logo-custom { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; position: relative; transition: color .2s, background .2s; }
.nav a:hover { color: var(--blue); background: var(--soft); }
.nav a.active { color: var(--blue); }
.nav a.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-mobile-extra { display: none; }
.nav-head, .nav-scrim { display: none; }
.nav-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.nav-quick a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); border: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.link-login, .lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: #fff; }
.link-login:hover, .lang-switch:hover { color: var(--blue); border-color: var(--blue); }
.burger { display: none; background: none; border: 0; color: var(--ink); padding: 6px; border-radius: 10px; }
.burger .b-close { display: none; }
.menu-open .burger .b-open { display: none; }
.menu-open .burger .b-close { display: inline; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding-block: 48px 72px; background:
  radial-gradient(700px 380px at 90% 0%, rgba(59, 130, 255, .16), transparent 70%),
  radial-gradient(600px 340px at 0% 100%, rgba(91, 75, 255, .10), transparent 70%), #fff;
  border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(31, 94, 255, .13) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 70%, transparent); opacity: .6; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: #eaf1ff; border: 1px solid #d3e1ff; color: var(--blue); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18, 160, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(18, 160, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 160, 106, 0); } }
.hero h1 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; letter-spacing: -.3px; line-height: 1.25; margin-bottom: 16px; }
.hero h1 .grad { display: block; }
.hero-text > p { color: var(--ink-2); font-size: 17px; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-feats li { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); }
.hero-feats .ic { color: var(--blue); }
.hero-visual { min-width: 0; }
.hero-visual > img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; }

/* ===== Interactive scene (scales with container width) ===== */
.scene { container-type: inline-size; position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / .95; direction: ltr; }
.scene-bg { position: absolute; inset: 6% 2% 2% 6%; border-radius: 28px; background: linear-gradient(145deg, #e7efff, #f1ecff); border: 1px solid #dbe6ff; }
.scene-bg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(31, 94, 255, .18) 1px, transparent 1.4px); background-size: 18px 18px; }
.win { position: absolute; left: 3%; top: 3%; width: 80%; border-radius: 14px; background: #0f1b3d; box-shadow: var(--shadow-lg); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 2.2cqw 3cqw; background: #16264f; }
.win-bar i { width: 1.8cqw; height: 1.8cqw; min-width: 7px; min-height: 7px; border-radius: 50%; background: #ff6b6b; }
.win-bar i:nth-child(2) { background: #ffc531; } .win-bar i:nth-child(3) { background: #34d399; }
.win-bar span { margin-inline: auto; padding: .4cqw 3cqw; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #9fb2e4; font-size: max(9px, 2.1cqw); }
.win-body { padding: 3cqw; }
.code { margin: 0 0 2.6cqw; font: 500 max(9.5px, 2.5cqw)/1.7 ui-monospace, 'SFMono-Regular', Consolas, monospace; color: #c4d2f5; min-height: 17cqw; white-space: pre-wrap; text-align: left; }
.code .k { color: #c792ea; } .code .f { color: #82aaff; } .code .c { color: #6d7fae; }
.caret { display: inline-block; width: .6em; height: 1.1em; background: #4fb0ff; vertical-align: -.15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.win-preview { border-radius: 8px; padding: 2cqw; background: rgba(255, 255, 255, .06); }
.sk { border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)); background-size: 200% 100%; animation: sheen 2.4s linear infinite; }
.sk-hero { height: 7cqw; margin-bottom: 1.8cqw; background-image: linear-gradient(90deg, #3b82ff, #5b4bff, #3b82ff); background-size: 200% 100%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; } .sk-row .sk { height: 4.4cqw; }
@keyframes sheen { to { background-position: -200% 0; } }
.chip-card { position: absolute; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 2.4cqw 2.8cqw; animation: floaty 6s ease-in-out infinite; color: var(--ink); }
.c-chart { right: 1%; bottom: 5%; width: 43%; animation-delay: -1.5s; }
.cc-top { display: flex; align-items: center; gap: 1.5cqw; color: var(--ink-3); font-size: max(9.5px, 2.1cqw); font-weight: 600; }
.cc-top .ic { width: max(12px, 2.8cqw); height: max(12px, 2.8cqw); color: var(--blue); }
.c-chart b { display: block; font-size: max(16px, 5cqw); line-height: 1.2; margin-block: .6cqw 1.6cqw; }
.bars { display: flex; align-items: flex-end; gap: 1cqw; height: 8cqw; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(#5b9bff, #1f5eff); transform-origin: bottom; animation: grow 2.4s ease-in-out infinite alternate; }
.bars i:nth-child(odd) { animation-delay: -1.1s; }
@keyframes grow { from { transform: scaleY(.6); } to { transform: scaleY(1); } }
.c-badge { right: 3%; top: -1%; display: flex; align-items: center; gap: 2cqw; animation-delay: -2s; }
.c-badge b { display: block; font-size: max(14px, 3.8cqw); line-height: 1.1; } .c-badge small { color: var(--ink-3); font-size: max(9.5px, 2.1cqw); }
.dot { width: max(9px, 2cqw); height: max(9px, 2cqw); border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 160, 106, .18); }
.c-phone { left: 1%; bottom: 3%; width: 21%; padding: 2cqw; border-radius: 3cqw; animation-delay: -3s; }
.ph-notch { width: 34%; height: .9cqw; min-height: 3px; border-radius: 3px; background: #cfd9ee; margin: 0 auto 1.6cqw; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw; margin-bottom: 1.2cqw; }
.ph-row i { aspect-ratio: 1; border-radius: 1.4cqw; background: #e8eefb; }
.ph-row:nth-of-type(1) i:first-child, .ph-row:nth-of-type(2) i:last-child { background: linear-gradient(135deg, #5b9bff, #5b4bff); }
.ph-btn { height: 2.4cqw; min-height: 6px; border-radius: 99px; background: var(--navy); margin-top: 1.6cqw; }
.tech-tags { position: absolute; left: 3%; bottom: -1%; display: flex; gap: 1.4cqw; }
.tech-tags span { font-size: max(9.5px, 2.1cqw); font-weight: 700; padding: .8cqw 2.2cqw; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--blue); box-shadow: var(--shadow-sm); }

/* ===== Tech strip ===== */
.tech-strip { background: #fff; border-bottom: 1px solid var(--line); }
.tech-strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding-block: 18px; }
.tech-strip span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--soft); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.tech-strip .ic { color: var(--blue); }

/* ===== Sections / panels ===== */
.panel-wrap { padding-block: 40px; }
.panel { border-radius: 24px; padding: 40px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-top .sec-head { text-align: start; margin-bottom: 18px; flex: 1 1 320px; }
.panel-top .btn { flex: none; margin-bottom: 18px; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--ink-2); max-width: 680px; margin-inline: auto; margin-bottom: 0; }
.panel-top .sec-head p { margin-inline: 0; }
.eyebrow { display: inline-block; font-size: 13px; padding: 3px 14px; border-radius: 999px; background: #eaf1ff; color: var(--blue); border: 1px solid #d3e1ff; margin-bottom: 12px; font-weight: 800; }

/* grids / cards */
.grid { display: grid; gap: 18px; }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5.grid-wrap { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { border-radius: 16px; padding: 22px 18px; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; padding: 24px 22px 54px; text-align: start; }
.service-card:hover { transform: translateY(-5px); border-color: #b9d0ff; box-shadow: var(--shadow); }
.service-card h3 { font-size: 18px; margin: 12px 0 4px; }
.service-card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 0; }
.ic-box { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: #eaf1ff; color: var(--blue); transition: all .3s; }
.service-card:hover .ic-box { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.ic-box.dark { width: 66px; height: 66px; }
.card-arrow { position: absolute; bottom: 16px; inset-inline-start: 22px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); transition: all .25s; }
.service-card:hover .card-arrow { background: var(--blue); color: #fff; }
.glass { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }

/* stats */
.stats-bar { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: linear-gradient(135deg, #1f5eff, #3a4fe0 55%, #5b4bff); border-radius: 20px; padding: 26px 28px; color: #fff; box-shadow: 0 18px 40px rgba(31, 94, 255, .3); }
.stats-bar.standalone { margin-top: 0; }
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; }
.stat .ic { color: rgba(255, 255, 255, .85); }
.stat b { display: block; font-size: 30px; line-height: 1; font-weight: 800; }
.stat span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }

/* about */
.about-sec { padding-block: 72px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-visual { position: relative; min-width: 0; }
.about-visual > img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.float-chip { position: absolute; top: -14px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; z-index: 2; }
.float-chip .ic { color: var(--ok); }
.about-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 4px; }
.about-text h3 { font-size: 21px; margin-bottom: 14px; }
.about-text p, .prose-dark p { color: var(--ink-2); }
.mini-feats { display: grid; gap: 14px; margin-block: 20px 26px; }
.mini-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mini-feats .ic { color: var(--blue); margin-top: 3px; }
.mini-feats b { display: block; }
.mini-feats span { color: var(--ink-2); font-size: 14.5px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; border-radius: 24px; background: linear-gradient(145deg, #e7efff, #f1ecff); border: 1px solid #dbe6ff; }
.skill { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 800; font-size: 14.5px; transition: transform .25s, box-shadow .25s; direction: ltr; }
.skill:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.skill .ic-box { width: 48px; height: 48px; border-radius: 14px; }
.skill:hover .ic-box { background: var(--grad); color: #fff; }

/* portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 700; transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31, 94, 255, .3); }
.project-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.project-card[hidden] { display: none; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-img { display: block; aspect-ratio: 3/2; overflow: hidden; background: #e8eefb; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover img { transform: scale(1.06); }
.project-body { display: block; padding: 14px 16px 16px; }
.project-body b { display: block; font-size: 15.5px; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 6px; background: #eaf1ff; color: var(--blue); }
.tags.big i { font-size: 13px; padding: 4px 12px; }
.project-detail { overflow: hidden; }
.project-detail img { width: 100%; max-height: 520px; object-fit: cover; }
.project-detail .prose-dark { padding: 28px; }
.empty { text-align: center; color: var(--ink-3); padding: 30px 10px; }

/* why */
.why-sec { padding-block: 64px; background: #fff; border-block: 1px solid var(--line); }
.why-card { text-align: center; padding: 26px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, background .25s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.why-card .ic { color: var(--blue); width: 58px; height: 58px; padding: 14px; border-radius: 16px; background: #eaf1ff; margin-bottom: 12px; }
.why-card h3 { font-size: 17px; }
.why-card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* process */
.process-sec { padding-block: 64px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 24px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-no { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 24px; font-weight: 800; color: #c9d9ff; line-height: 1; }
.step-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(31, 94, 255, .3); }
.step h3 { font-size: 17px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* testimonials */
.testi-sec { padding-block: 64px; background: #fff; border-block: 1px solid var(--line); }
.slider { position: relative; display: flex; align-items: center; gap: 10px; }
.slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 8px; flex: 1; min-width: 0; }
.slider-track::-webkit-scrollbar { display: none; }
.testi { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; margin: 0; padding: 24px; position: relative; background: var(--bg); box-shadow: none; }
.testi .q { color: var(--blue); opacity: .55; }
.testi blockquote { margin: 8px 0 18px; color: var(--ink-2); font-size: 15px; min-height: 96px; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi figcaption b { display: block; }
.testi figcaption small { display: block; color: var(--ink-3); }
.avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #cfe0ff; display: grid; place-items: center; background: #eaf1ff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-weight: 800; font-size: 20px; color: var(--blue); }
.stars { color: #d3dbed; letter-spacing: 2px; font-size: 14px; }
.stars .on { color: #ffb800; }
.slider-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.slider-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* CTA */
.cta-sec { padding-block: 64px; }
.cta-box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 26px; color: #fff; background: linear-gradient(120deg, #1f5eff, #3a4fe0 55%, #5b4bff); box-shadow: 0 24px 60px rgba(31, 94, 255, .35); }
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; }
.cta-box p { color: rgba(255, 255, 255, .88); }
.cta-box .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-box .hero-btns { margin-bottom: 0; }
.cta-box .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 8px 20px rgba(0, 0, 40, .25); }
.cta-box .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; box-shadow: none; }
.cta-box .btn-outline:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.cta-visual { color: rgba(255, 255, 255, .35); flex: none; }

/* page hero */
.page-hero { position: relative; overflow: hidden; padding-block: 60px 36px; text-align: center; background: radial-gradient(520px 220px at 50% 0, rgba(59, 130, 255, .16), transparent 70%), #fff; border-bottom: 1px solid var(--line); }
.page-hero-bg { display: none; }
.page-hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--ink-2); max-width: 640px; margin-inline: auto; margin-bottom: 0; }

/* services page */
.service-list { display: grid; gap: 16px; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 24px; }
.service-row:hover { box-shadow: var(--shadow); border-color: #b9d0ff; }
.service-row h2 { font-size: 21px; margin-bottom: 4px; }
.service-row p { color: var(--ink-2); margin: 0; }

/* blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { display: block; padding: 18px 20px 22px; }
.post-body small { color: var(--ink-3); }
.post-body h3 { font-size: 18px; margin-block: 6px; }
.post-body p { color: var(--ink-2); font-size: 14.5px; }
.post-body .more { color: var(--blue); font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.post-full { padding: 0; overflow: hidden; }
.post-full > *:not(img) { margin-inline: 28px; }
.post-full > p:first-of-type, .post-full img + p { margin-top: 24px; }
.post-full .btn { margin-block: 10px 28px; }
.post-full img { width: 100%; max-height: 460px; object-fit: cover; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.pager a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.big-404 { font-size: 90px; margin: 0; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #cfdaf0; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(31, 94, 255, .12); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--blue); margin-top: 4px; }
.contact-list.big { font-size: 17px; margin-block: 14px; }
.contact-list a:hover { color: var(--blue); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; border: 1px solid; }
.alert-success { background: #e6f7ef; border-color: #9ad9bb; color: #0b6b40; }
.alert-error { background: #fdeaee; border-color: #f2b4c0; color: #9e1d3a; }
.auth-box { max-width: 480px; margin-inline: auto; padding: 32px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 26px; }
.auth-links { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.auth-links a { color: var(--blue); font-weight: 700; }

/* footer (داكن للتباين) */
.footer { margin-top: 0; background: var(--navy); color: #b6c3e6; }
.footer h4 { font-size: 17px; margin-bottom: 14px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 52px 32px; }
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: #8ea0cf; }
.footer li { margin-bottom: 8px; font-size: 14.5px; }
.footer li a:hover { color: #fff; }
.footer-brand p { font-size: 14.5px; margin-block: 14px; max-width: 340px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); color: #dbe5ff; transition: all .2s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer .contact-list { margin-bottom: 14px; }
.footer .contact-list .ic { color: #6ea4ff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }

/* reveal */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].in, .js [data-stagger].in > * { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 960px) {
  .header-in { gap: 8px; min-height: 66px; }
  .burger { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .link-login span { display: none; }
  .link-login { padding: 8px; }
  .hide-sm { display: none; }
  .nav {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); height: 100vh; height: 100dvh; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; z-index: 130;
    padding: 0 16px 28px; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 60px rgba(10, 22, 54, .35);
    transform: translateX(-105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
  }
  html[dir="rtl"] .nav { transform: translateX(105%); }
  .nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
  .nav-head .logo-text small { display: block; }
  .nav-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
  .nav-scrim { position: fixed; inset: 0; z-index: 120; background: rgba(10, 22, 54, .5); opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; }
  .menu-open .nav-scrim { opacity: 1; visibility: visible; }
  .menu-open .nav, html[dir="rtl"] .menu-open .nav { transform: none; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav a.active { background: #eaf1ff; }
  .nav a.active::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-mobile-extra form { margin: 0; }
  .nav-mobile-extra .btn { padding: 14px; font-size: 16px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-block: 28px 48px; }
  .about-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .cta-visual { display: none; }
  .panel { padding: 26px 18px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding-block: 36px; }
  .grid-5, .grid-5.grid-wrap { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .step-ic { grid-row: span 2; margin: 0; }
  .step h3 { margin-bottom: 2px; }
  .step-no { top: 12px; }
  .testi { flex-basis: 88%; }
  .slider-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 40px 24px; }
  .footer-bottom { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: auto 1fr; padding: 18px; gap: 16px; }
  .service-row .btn { grid-column: 1 / -1; }
  .hero-btns .btn { flex: 1 1 100%; }
  .stats-bar { padding: 20px 16px; gap: 18px 8px; }
  .stat { flex-direction: column; text-align: center; gap: 6px; }
  .stat b { font-size: 26px; }
  .cta-box { padding: 28px 20px; }
  .logo-text small { display: none; }
  .project-body { padding: 10px 12px 12px; }
  .project-body b { font-size: 14px; }
  .skills { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .panel-top .btn { margin-bottom: 14px; }
  .tech-tags { display: none; }
  .post-full > *:not(img) { margin-inline: 18px; }
}
@media (max-width: 400px) {
  .grid-5, .grid-5.grid-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
}

/* أزرار داخل القائمة: لا ترث ألوان روابط التنقل */
.nav a.btn { padding: 12px 20px; font-size: 16px; }
.nav a.btn-primary, .nav a.btn-primary:hover { background: var(--grad); color: #fff; }
.nav a.btn-ghost { color: var(--ink); background: #fff; }
.nav a.btn-ghost:hover { color: var(--blue); background: #fff; }
.nav .nav-quick a { padding: 0; }

@media (max-width: 960px) {
  .nav-head, .nav-scrim { display: flex; }
  .nav-scrim { display: block; }
  .menu-open .burger .b-open { display: inline; }
  .menu-open .burger .b-close { display: none; }
}

/* الفوتر الداكن: الشعار المخصص (الشفاف) يُعكس إلى الأبيض ليظهر */
.footer .logo-custom { filter: brightness(0) invert(1); height: 48px; }
.footer .logo-only .logo-custom { height: 56px; }

/* تصفية الأعمال: حركة ناعمة */
.project-card { transition: transform .25s, box-shadow .25s, opacity .25s; }
.project-card.is-out { opacity: 0; transform: scale(.92) translateY(8px); pointer-events: none; }
.chip { position: relative; }
.chip.active { transform: translateY(-1px); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -4px; padding: 4px; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; scroll-snap-align: center; }
}
/* يتغلّب على تأخير/انتقال الظهور التدريجي أثناء التصفية */
.js [data-filter-grid] > .project-card { transition: transform .25s, box-shadow .25s, opacity .25s; transition-delay: 0s; }
.js [data-filter-grid] > .project-card.is-out { opacity: 0; transform: scale(.92) translateY(8px); }

/* أزرار الهيدر: ارتفاع وحجم موحّد */
.header-actions { gap: 8px; align-items: center; }
.link-login, .lang-switch, .burger {
  box-sizing: border-box; height: 42px; min-height: 42px; margin: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
}
.link-login, .lang-switch { padding: 0 14px; border: 1px solid var(--line); background: #fff; }
.header-actions .btn-sm { height: 42px; padding-block: 0; border-radius: 12px; }
@media (max-width: 960px) {
  .link-login { width: 42px; padding: 0; }
  .lang-switch { padding: 0 12px; }
  .burger { width: 42px; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); }
  .link-login .ic, .lang-switch .ic, .burger .ic { width: 20px; height: 20px; }
}

/* الهامبرغر للجوال فقط (يعيد إخفاءه على سطح المكتب) */
.burger { display: none; }
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .header-actions .hide-sm { display: none; }
}


/* ===================== ميزات احترافية إضافية ===================== */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; z-index: 300; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }
html[dir="rtl"] .scroll-progress { transform-origin: right; }
.to-top { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; }
.to-top svg { transform: rotate(-90deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); color: #fff; }

/* FAQ */
.faq-sec { padding-block: 64px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: #b9d0ff; }
.faq-item[open] { border-color: var(--blue-2); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 16.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--soft); color: var(--blue); transition: transform .3s, background .2s, color .2s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); animation: faqIn .3s ease; }
.faq-a p:last-child { margin-bottom: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* مقالات */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block: 22px 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-row b { margin-inline-end: 6px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; }
.share-btn.wide { width: auto; padding-inline: 14px; }
.share-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.rel-h { font-size: 24px; margin: 44px 0 18px; }
.rel-grid { margin-bottom: 8px; }
.rel-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* تواصل */
.quick-box { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); margin-block: 16px; }
.quick-box span { color: var(--ink-2); font-size: 14.5px; }

/* خط الربط بين خطوات العمل */
@media (min-width: 1101px) {
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; top: 49px; inset-inline: 8%; border-top: 2px dashed #c3d6ff; z-index: 0; }
  .step { z-index: 1; }
}
@media (max-width: 640px) {
  .faq-item summary { padding: 15px 16px; font-size: 15.5px; }
  .faq-a { padding: 0 16px 16px; }
  .to-top { bottom: 20px; width: 42px; height: 42px; }
}


/* ==========================================================================
   تصميم v3 — بنمط المرجع: فاتح، رسومات ثلاثية الأبعاد، أيقونات ملوّنة
   ========================================================================== */
:root {
  --blue: #1565e0; --blue-2: #3b82f6; --navy: #0b2a6f;
  --btn: linear-gradient(135deg, #0a2f86, #1565e0);
  --c-blue: #2563eb; --c-violet: #8b5cf6; --c-teal: #14b8a6; --c-green: #22c55e; --c-amber: #f59e0b; --c-sky: #0ea5e9;
}
body { background: #fff; }
.btn-primary { background: var(--btn); box-shadow: 0 10px 22px rgba(10, 47, 134, .28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(10, 47, 134, .4); }
.btn-outline { border-color: #c5d6f5; color: var(--navy); background: #fff; box-shadow: none; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.sec { padding-block: 64px; }
.soft { background: linear-gradient(180deg, #f3f8ff, #fff 120%); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.sec-head h2::after { display: none; }
.sec-head h2 { padding-bottom: 0; }
.eyebrow { background: #eaf2ff; border: 0; color: var(--blue); }

/* ---- hero ---- */
.hero { padding: 44px 0 0; background: radial-gradient(900px 520px at 85% 0%, rgba(59, 130, 246, .14), transparent 70%), radial-gradient(700px 420px at 0% 60%, rgba(139, 92, 246, .08), transparent 70%), #fff; border: 0; overflow: visible; }
.hero::before { display: none; }
.hero-grid { grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.hero-text > p { color: #53617f; max-width: 520px; }
.hero-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.hero-feats li { flex-direction: column; text-align: center; gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.hero-feats li > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #eef4ff; transition: transform .25s; }
.hero-feats li:hover > span { transform: translateY(-4px); }
.hero-feats .f1 > span { color: var(--c-blue); background: #e8f0ff; }
.hero-feats .f2 > span { color: var(--c-teal); background: #e1f7f3; }
.hero-feats .f3 > span { color: var(--c-violet); background: #efe9ff; }
.hero-feats .f4 > span { color: var(--c-amber); background: #fff3dc; }
.hero-feats .ic { color: inherit; }
.art { position: relative; transition: transform .3s ease-out; }
.art img { width: 100%; height: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 74% 72% at 50% 50%, #000 58%, transparent 100%); animation: floaty 8s ease-in-out infinite; }
.hero-visual { min-width: 0; }
.hero-visual > img { box-shadow: none; }

/* ---- stats card overlapping hero ---- */
.stats-card { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(20, 60, 160, .12); margin-top: 8px; transform: translateY(40px); }
.stats-card.standalone { transform: none; margin-top: 0; }
.stats-card .stat { padding: 24px 20px; justify-content: center; gap: 14px; position: relative; color: var(--ink); }
.stats-card .stat + .stat::before { content: ""; position: absolute; inset-block: 24% 24%; inset-inline-end: 0; border-inline-end: 1px solid var(--line); }
.stats-card .si { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #eaf2ff; color: var(--c-blue); }
.stats-card .s2 .si { background: #f0eaff; color: var(--c-violet); }
.stats-card .s3 .si { background: #e1f7f3; color: var(--c-teal); }
.stats-card .s4 .si { background: #fff3dc; color: var(--c-amber); }
.stats-card .stat b { font-size: 28px; color: var(--navy); }
.stats-card .stat > div > span { color: var(--ink-3); font-size: 13.5px; }
.hero + .sec { padding-top: 110px; }

/* ---- services ---- */
.svc-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.service-card { align-items: center; text-align: center; padding: 26px 16px 62px; border-radius: 18px; }
.service-card .ic-box { width: 62px; height: 62px; border-radius: 18px; }
.service-card h3 { font-size: 16.5px; margin: 14px 0 6px; }
.service-card p { font-size: 13.5px; line-height: 1.7; }
.service-card .card-arrow { inset-inline-start: 50%; transform: translateX(-50%); bottom: 16px; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; }
html[dir="rtl"] .service-card .card-arrow { transform: translateX(50%); }
.service-card.c1 .ic-box { background: #e8f0ff; color: var(--c-blue); }
.service-card.c2 .ic-box { background: #e2f1ff; color: var(--c-sky); }
.service-card.c3 .ic-box { background: #efe9ff; color: var(--c-violet); }
.service-card.c4 .ic-box { background: #e1f7f3; color: var(--c-teal); }
.service-card.c5 .ic-box { background: #e8f0ff; color: var(--c-blue); }
.service-card.c6 .ic-box { background: #e3f8e9; color: var(--c-green); }
.service-card:hover .ic-box { background: var(--btn); color: #fff; }
.service-card.c1 .card-arrow, .service-card.c2 .card-arrow, .service-card.c5 .card-arrow { color: var(--c-blue); }
.service-card.c3 .card-arrow { color: var(--c-violet); } .service-card.c4 .card-arrow { color: var(--c-teal); } .service-card.c6 .card-arrow { color: var(--c-green); }

/* ---- about ---- */
.about-sec { padding-block: 64px; }
.about-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.feat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 22px 26px; }
.feat-cards li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feat-cards li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-cards .fi { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e8f0ff; color: var(--c-blue); }
.feat-cards .fc2 .fi { background: #e1f7f3; color: var(--c-teal); }
.feat-cards .fc3 .fi { background: #efe9ff; color: var(--c-violet); }
.feat-cards .fc4 .fi { background: #fff3dc; color: var(--c-amber); }
.feat-cards b { font-size: 14.5px; line-height: 1.5; }
.about-visual > img { box-shadow: none; }

/* ---- projects ---- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.panel-top { margin-bottom: 4px; }
.project-card { border-radius: 18px; }
.project-body { padding: 14px 16px 16px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pc-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); transition: all .25s; }
.project-card:hover .pc-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.pc-cat { font-size: 12.5px; font-weight: 700; color: var(--blue); background: #eaf2ff; padding: 3px 12px; border-radius: 999px; }
.tags i { background: #f1f5fd; color: var(--ink-2); }

/* ---- process timeline ---- */
.process-sec { background: #fff; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; top: 28px; inset-inline: 10%; border-top: 2px dashed #c9d9f7; }
.tl { position: relative; text-align: center; padding-inline: 6px; }
.tl-no { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; box-shadow: 0 10px 22px rgba(20, 60, 160, .25), 0 0 0 6px #fff; transition: transform .3s; }
.tl:hover .tl-no { transform: scale(1.1); }
.tl1 .tl-no { background: linear-gradient(135deg, #2dd4a8, #14b8a6); }
.tl2 .tl-no { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.tl3 .tl-no { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tl4 .tl-no { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tl5 .tl-no { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.tl h3 { font-size: 17px; margin-bottom: 6px; }
.tl p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---- testimonials ---- */
.testi-sec { padding-block: 64px; border: 0; }
.testi { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; }
.testi .q { align-self: flex-end; color: #cfe0ff; opacity: 1; }
.testi blockquote { margin: 4px 0 12px; min-height: 84px; }
.testi .stars { display: block; margin-bottom: 14px; }
.testi figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { background: #eaf2ff; border: 0; width: 46px; height: 46px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.slider-dots button { width: 9px; height: 9px; border: 0; border-radius: 99px; background: #c9d9f7; padding: 0; transition: all .25s; }
.slider-dots button.on { width: 26px; background: var(--blue); }

/* ---- CTA ---- */
.cta-sec { padding-block: 40px 70px; }
.cta-box { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 20px; padding: 36px 44px; border-radius: 28px; color: var(--ink); background: linear-gradient(120deg, #eaf3ff, #f4f0ff 70%, #eef6ff); border: 1px solid #d9e6fb; box-shadow: var(--shadow); animation: none; overflow: hidden; }
.cta-box::before { display: none; }
.cta-box h2 { color: var(--ink); }
.cta-box p { color: #53617f; }
.cta-box .eyebrow { background: #fff; color: var(--blue); border: 0; }
.cta-box .btn-primary { background: var(--btn); color: #fff; box-shadow: 0 10px 22px rgba(10, 47, 134, .28); }
.cta-box .btn-outline { border-color: #c5d6f5; background: #fff; color: var(--navy); }
.cta-box .btn-outline:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
.cta-art img { width: 100%; height: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 55%, transparent 100%); }

/* ---- header CTA ---- */
.header-actions .btn-primary { background: var(--btn); }

/* ---- footer فاتح ---- */
.footer { background: #f3f8ff; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer h4 { color: var(--ink); }
.footer .logo-text strong { color: var(--ink); }
.footer .logo-text small { color: var(--ink-3); }
.footer li a:hover { color: var(--blue); }
.footer .logo-custom, .footer .logo-only .logo-custom { filter: none; }
.footer .contact-list .ic { color: var(--blue); }
.socials a { border: 1px solid var(--line); background: #fff; color: var(--blue); }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); color: var(--ink-3); }
.footer-links a:hover { color: var(--blue); }
.footer::before { display: none; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; max-width: 560px; margin-inline: auto; }
  .hero { padding-top: 24px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); transform: translateY(30px); }
  .stats-card .stat:nth-child(3)::before { display: none; }
  .stats-card .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid, .cta-box { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .cta-art { max-width: 380px; margin-inline: auto; }
  .hero + .sec { padding-top: 90px; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card { padding: 20px 10px 58px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { font-size: 12.5px; }
  .hero-feats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-feats li { flex-direction: row; text-align: start; gap: 10px; }
  .feat-cards { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: start; padding: 0 0 22px; }
  .tl-no { grid-row: span 2; margin: 0; }
  .tl::after { content: ""; position: absolute; inset-inline-start: 27px; top: 56px; bottom: 0; border-inline-start: 2px dashed #c9d9f7; }
  .tl:last-child::after { display: none; }
  .tl h3 { align-self: end; margin: 0; }
  .cta-box { padding: 26px 20px; }
  .stats-card .stat { flex-direction: row; text-align: start; padding: 18px 12px; gap: 10px; }
  .stats-card .si { width: 44px; height: 44px; }
  .stats-card .stat b { font-size: 22px; }
  .sec { padding-block: 44px; }
}
@media (max-width: 400px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* حواف الرسومات أنعم */
.art img { -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 52%, transparent 97%); mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 52%, transparent 97%); }
.about-visual .art img { -webkit-mask-image: radial-gradient(ellipse 66% 64% at 50% 50%, #000 50%, transparent 96%); mask-image: radial-gradient(ellipse 66% 64% at 50% 50%, #000 50%, transparent 96%); }
.hero-visual .art { margin-inline: -4%; }

/* أرقام الإحصائيات داخل البطاقة البيضاء */
.stats-card .stat b, .stats-card .stat b span { color: var(--navy); font-size: 28px; font-weight: 800; line-height: 1.1; }
.stats-card .stat > div > span { color: var(--ink-3); font-size: 13.5px; display: block; }
@media (max-width: 640px) { .stats-card .stat b, .stats-card .stat b span { font-size: 22px; } }
.stats-card .si .ic { color: inherit; }

@media (min-width: 1101px) { .svc-grid { grid-template-columns: repeat(var(--cols, 6), 1fr); } }


/* ==================== بطاقة الإحصائيات (محسّنة) ==================== */
.stats-card { border: 0; background: #fff; box-shadow: 0 24px 60px rgba(20, 60, 160, .14), 0 0 0 1px rgba(21, 101, 224, .08); overflow: hidden; }
.stats-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, #2563eb, #8b5cf6, #14b8a6, #f59e0b); }
.stats-card .stat { padding: 30px 18px 26px; gap: 16px; transition: background .25s; }
.stats-card .stat:hover { background: #f8fbff; }
.stats-card .si { width: 60px; height: 60px; border-radius: 18px; color: #fff; box-shadow: 0 10px 22px rgba(20, 60, 160, .22); transition: transform .3s; }
.stats-card .stat:hover .si { transform: translateY(-4px) rotate(-6deg); }
.stats-card .s1 .si { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.stats-card .s2 .si { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.stats-card .s3 .si { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.stats-card .s4 .si { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.stats-card .si .ic { color: #fff; }
.stats-card .stat b, .stats-card .stat b span { font-size: 34px; letter-spacing: -.5px; }
.stats-card .stat b { display: flex; align-items: baseline; gap: 2px; line-height: 1; margin-bottom: 4px; }
.stats-card .stat b .plus { font-style: normal; font-size: 24px; font-weight: 800; background: linear-gradient(135deg, #2563eb, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-card .stat > div > span { font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .stats-card .stat { padding: 18px 12px; gap: 10px; }
  .stats-card .si { width: 46px; height: 46px; border-radius: 14px; }
  .stats-card .stat b, .stats-card .stat b span { font-size: 24px; }
  .stats-card .stat b .plus { font-size: 18px; }
}

/* ==================== صفحة الخدمات ==================== */
.svc-page { padding-top: 40px; }
.svc-intro { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 0 auto 40px; padding: 16px 24px; max-width: 860px; background: #f3f8ff; border: 1px solid var(--line); border-radius: 18px; }
.si-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.si-item .ic { color: var(--c-green); }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--accent, var(--blue)); opacity: .9; }
.svc-card::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent, var(--blue)); opacity: .07; transition: transform .4s, opacity .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #c9dcff; }
.svc-card:hover::after { transform: scale(1.5); opacity: .1; }
.svc-card.c1 { --accent: #2563eb; --tint: #e8f0ff; } .svc-card.c2 { --accent: #0ea5e9; --tint: #e2f1ff; }
.svc-card.c3 { --accent: #8b5cf6; --tint: #efe9ff; } .svc-card.c4 { --accent: #14b8a6; --tint: #e1f7f3; }
.svc-card.c5 { --accent: #2563eb; --tint: #e8f0ff; } .svc-card.c6 { --accent: #22c55e; --tint: #e3f8e9; }
.svc-card .ic-box { width: 68px; height: 68px; border-radius: 20px; background: var(--tint, #e8f0ff); color: var(--accent, var(--blue)); position: relative; z-index: 1; }
.svc-card:hover .ic-box { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.svc-no { position: absolute; inset-inline-end: 22px; top: 22px; font-weight: 800; font-size: 28px; line-height: 1; color: var(--accent, var(--blue)); opacity: .22; }
.svc-card h2 { font-size: 21px; margin: 16px 0 4px; position: relative; z-index: 1; }
.svc-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; position: relative; z-index: 1; }
.svc-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; width: 100%; padding-top: 16px; border-top: 1px dashed var(--line); position: relative; z-index: 1; }
.svc-link { color: var(--accent, var(--blue)); font-weight: 700; font-size: 14px; }
.svc-link:hover { text-decoration: underline; }
.svc-card .btn-primary { background: var(--accent, var(--blue)); box-shadow: none; }
.js .svc-list > .svc-card { transition: opacity .6s ease, transform .6s ease, box-shadow .3s, border-color .3s; }
@media (max-width: 1100px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .svc-list { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 24px 20px 20px; }
  .svc-intro { padding: 14px 16px; gap: 10px 18px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .stats-card .stat { flex-direction: column; text-align: center; gap: 8px; padding: 20px 8px; }
  .stats-card .stat b { justify-content: center; }
  .stats-card .stat > div > span { font-size: 13px; line-height: 1.4; }
}

/* ===== نص المقالة ===== */
.article-body { margin-top: 22px; }
.article-body p { font-size: 16.5px; line-height: 2; color: var(--ink-2); margin-bottom: 1.1em; }
.article-body h2 { font-size: 24px; margin: 1.6em 0 .5em; padding-inline-start: 12px; border-inline-start: 4px solid var(--blue); }
.article-body h3 { font-size: 19px; margin: 1.4em 0 .4em; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-inline-start: 26px; list-style: revert; color: var(--ink-2); line-height: 2; }
.article-body li { margin-bottom: .3em; padding-inline-start: 4px; }
.article-body strong { color: var(--ink); }
.article-body code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .9em; background: #eef3fc; color: #1a3f9e; padding: 2px 7px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.article-body pre { direction: ltr; text-align: left; background: #0f1b3d; color: #d6e2ff; padding: 16px 18px; border-radius: 14px; overflow-x: auto; margin: 0 0 1.3em; font-size: 14px; line-height: 1.7; }
.article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article-body blockquote { margin: 0 0 1.3em; padding: 14px 18px; border-inline-start: 4px solid #8b5cf6; background: #f5f2ff; border-radius: 0 12px 12px 0; color: #3b2f7a; font-weight: 600; }
html[dir="rtl"] .article-body blockquote { border-radius: 12px 0 0 12px; }
.post-full .article-body { margin-inline: 28px; }
@media (max-width: 640px) { .post-full .article-body { margin-inline: 18px; } .article-body p { font-size: 16px; } }
