/* =========================================================
   STYLE.CSS — Cleaned + Unified (Cinematic + Bento)
   + Logo Tints + Section Backgrounds + Parallax Support
   ========================================================= */

/* -------------------- TOKENS -------------------- */
:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b6676;
  --line:#e6ebf2;

  --primary:#1F4E8C;
  --primary2:#6f9fe6;
  --primary-light: var(--primary2);

  --soft:#f6f8fb;

  --radius:18px;
  --radius2:24px;

  --shadow: 0 12px 30px rgba(10, 27, 51, .08);
  --shadow2: 0 24px 70px rgba(0,0,0,.22);

  --ring: 0 0 0 4px rgba(31,78,140,.14);

  --max: 1120px;

  /* Background overlays tuned to logo colors */
  --bgTintA: rgba(31,78,140,.22);
  --bgTintB: rgba(111,159,230,.18);
  --bgShade: rgba(7,22,44,.30);
  --bgShadeStrong: rgba(7,22,44,.45);
}

/* -------------------- BASE -------------------- */
*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Arial;
  color:var(--text);
  background:var(--bg);
}
html{ scroll-behavior:smooth; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--max), calc(100% - 32px)); margin-inline:auto; }
.section{ padding:64px 0; scroll-margin-top:90px; }
.section--soft{ background:var(--soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section--dark{ background:linear-gradient(140deg, #07162c, #0a2a52); color:#fff; }

::selection{ background: rgba(31,78,140,.18); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

/* =========================================================
   SECTION BACKGROUNDS (Unified)
   ========================================================= */

.section.has-bg{
  position: relative;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.section.has-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--section-bg, none);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% var(--parallaxY, 50%);
  transform: translateZ(0);
  filter: saturate(1.08) contrast(1.05) brightness(1.05);
  will-change: background-position;
  z-index:0;
}

.section.has-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 80% 20%, var(--bgTintB), transparent 60%),
    radial-gradient(900px 520px at 20% 80%, var(--bgTintA), transparent 62%),
    linear-gradient(180deg, var(--bgShade) 0%, var(--bgShadeStrong) 100%);
  z-index:0;
}

.section.has-bg .container{ position:relative; z-index:1; }
.section.has-bg .section__head h2{ color:#fff; text-shadow: 0 14px 30px rgba(0,0,0,.35); }
.section.has-bg .section__head p{ color: rgba(255,255,255,.82); }

.section.has-bg .card,
.section.has-bg .service,
.section.has-bg .project,
.section.has-bg .infoCard,
.section.has-bg .contact__form{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
}
.section.has-bg .card,
.section.has-bg .service,
.section.has-bg .project{
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.075);
}

/* -------------------- TOPBAR -------------------- */
.topbar{ background:#0c2240; color:#eaf0ff; font-size:14px; }
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; gap:12px; flex-wrap:wrap;
}
.topbar a{ color:#eaf0ff; opacity:.95; }
.dot{ margin:0 10px; opacity:.7; }

/* -------------------- HEADER -------------------- */
.header{
  position:sticky; top:0; z-index:60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(230,235,242,.9);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; gap:14px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:100px; height:80px; object-fit:contain;
  border:1px solid var(--line);
  border-radius:10px; padding:0px; background:#fff;
}
.brand__name{ font-weight:900; font-size:18px; line-height:1.1; letter-spacing:.2px; }
.brand__sub{ font-size:13px; color:var(--muted); margin-top:2px; }

.nav{ display:flex; align-items:center; gap:14px; }
.nav a{
  font-weight:900; font-size:14px;
  color:#1b2b45;
  padding:10px 10px;
  border-radius:12px;
  transition: background .18s ease, transform .18s ease;
}
.nav a:hover{ background:var(--soft); transform: translateY(-1px); }
.nav__cta{
  background:var(--primary);
  color:#fff !important;
  padding:10px 14px !important;
  box-shadow: 0 16px 40px rgba(31,78,140,.22);
}
.nav__cta:hover{ background:#173e73 !important; }

.nav__toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
}

/* Language switch */
.lang-switch{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(10, 27, 51, .05);
  font-weight:900;
  font-size:13px;
}
.lang-switch a{ color:#1b2b45; opacity:.85; }
.lang-switch a[aria-current="page"]{ opacity:1; color:var(--primary); }
.lang-switch a:hover{ color:var(--primary); opacity:1; }

/* -------------------- HERO -------------------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height: 92vh;
  border-bottom:1px solid var(--line);
  display:flex;
}
.hero__bg{ position:absolute; inset:0; overflow:hidden; }

.hero__video,
.hero__bg img{
  position:absolute; inset:0;
  filter: brightness(1.30) contrast(1);
  width:100%; height:110%;
  object-fit:cover;
  transform: scale(1);
  transition: transform .35s ease;
}

.hero__shade{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 75% 35%, rgba(111,159,230,.35), transparent 55%),
    radial-gradient(900px 520px at 15% 70%, rgba(31,78,140,.30), transparent 60%),
    linear-gradient(120deg, rgba(10,20,38,.40), rgba(10,20,38,.08));
}
.hero__vignette{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 700px at 60% 40%, rgba(0,0,0,.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.45));
  pointer-events:none;
}
.hero__noise{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:.18;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
}
.hero__overlay{
  position:absolute; inset:0;
  pointer-events:none;
  opacity:0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  animation: blueprintMove 16s linear infinite;
}
@keyframes blueprintMove{
  from { background-position: 0 0, 0 0; }
  to   { background-position: 240px 0, 0 240px; }
}

.hero__inner{
  position:relative;
  width: min(var(--max), calc(100% - 32px));
  margin-inline:auto;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  padding: 54px 0;
  align-items:center;
}

.hero__content{ align-self:center; max-width: 760px; }
.hero__content > *{
  opacity: 0;
  transform: translateY(18px);
  filter: blur(12px);
  animation: heroReveal .95s cubic-bezier(.2,.9,.2,1) forwards;
  will-change: transform, opacity, filter;
}
.hero__content .badge{ animation-delay: .10s; }
.hero__content h1{ animation-delay: .22s; }
.hero__content p{ animation-delay: .34s; }
.hero__content .hero__actions{ animation-delay: .50s; }
.hero__content .hero__highlights{ animation-delay: .66s; }

@keyframes heroReveal{
  70%{ filter: blur(0); }
  100%{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  color:#f6f9ff;
  border:1px solid rgba(255,255,255,.18);
  font-weight:900;
  font-size:20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.hero h1{
  margin:14px 0 10px;
  font-size:44px;
  line-height:1.12;
  color:#fff;
  letter-spacing:.2px;
}
.hero p{
  margin:0;
  color: rgba(255,255,255,.86);
  font-size:22px;
  line-height:1.95;
  max-width:60ch;
}
.hero h1, .hero p, .badge, .chip{
  text-shadow: 0 10px 30px rgba(0,0,0,.32);
}

.hero__actions{ display:inline-flex; gap:12px; margin-top:18px; flex-wrap:wrap; }
.hero__highlights{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }

.chip{
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  padding:8px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:17px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.chip:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius:16px;
  padding:12px 16px;
  font-weight:900;
  border:1px solid transparent;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: var(--primary);
  color:#fff;
  box-shadow: 0 20px 55px rgba(31,78,140,.28);
}
.btn--primary:hover{
  background:#173e73;
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
}
.btn--primary::after{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:190px; height:190px;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 60%);
  transform: translate(12px,-12px);
  opacity:.9;
}
.btn--ghost{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color:#fff;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}
.btn--dark{ background:#0c2240; color:#fff; }
.btn--dark:hover{ background:#091b33; transform: translateY(-2px); }
.btn--full{ width:100%; }

.btn--wa{ background:#12a454; color:#fff; }
.btn--wa:hover{ background:#0e8745; transform: translateY(-2px); }

/* Bento card */
.hero__card{
  position: relative;
  border-radius: var(--radius2);
  padding:18px 18px 16px;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow2), inset 0 1px 0 rgba(255,255,255,.12);
  overflow:hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hero__card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.26);
}
.hero__card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: calc(var(--radius2) + 2px);
  background: linear-gradient(135deg,
    rgba(111,159,230,.60),
    rgba(31,78,140,.20),
    rgba(255,255,255,.08)
  );
  filter: blur(12px);
  opacity:.55;
  z-index:0;
}
.hero__card > *{ position:relative; z-index:1; }

.hero__cardTitle{
  font-weight:1000;
  font-size:16px;
  margin:0 0 10px;
  color: rgba(11,18,32,.92);
}
.hero__card ul{ margin:0; padding:0; list-style:none; }
.hero__card li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 0;
  color: rgba(11,18,32,.92);
  font-weight: 900;
  line-height: 1.8;
}
.hero__card li::before{
  content:"";
  width: 12px; height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(111,159,230,1), rgba(31,78,140,1));
  box-shadow: 0 10px 18px rgba(31,78,140,.22);
  flex: 0 0 auto;
}

/* -------------------- SECTION HEAD -------------------- */
.section__head{ margin-bottom:18px; }
.section__head h2{ margin:0 0 8px; font-size:30px; font-weight:1000; letter-spacing:.2px; }
.section__head p{ margin:0; color:var(--muted); line-height:1.9; max-width:75ch; }
.section__head--dark p{ color:rgba(255,255,255,.78); }

/* -------------------- GRID / CARDS -------------------- */

.bottom-row {
  display: flex;                /* تجعلهم في صف واحد */
  justify-content:right;      /* تحريك الزوج كله للمنتصف */
  gap: 80px;                    /* مسافة بين المربعين */
  text-align: center;           /* النصوص داخل المربعات في المنتصف */
  margin-top: 20px;   
  transform: translateX(-250px);          /* مسافة بين الصف العلوي والمربعين */
}

.bottom-row .service {
  flex: 0 0 300px;              /* عرض ثابت لكل مربع (تعديل حسب الحاجة) */
  padding: 20px;
  border-radius: 10px;
  background: white;            /* لون الخلفية */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bottom-rowen {
  display: flex;                /* تجعلهم في صف واحد */
  justify-content: left;      /* تحريك الزوج كله للمنتصف */
  gap: 80px;                    /* مسافة بين المربعين */
  text-align: center;           /* النصوص داخل المربعات في المنتصف */
  margin-top: 20px;   
   transform: translateX(-250px);          /* مسافة بين الصف العلوي والمربعين
}

.bottom-rowen .service {
  flex: 0 0 300px;              /* عرض ثابت لكل مربع (تعديل حسب الحاجة) */
  padding: 20px;
  border-radius: 10px;
  background: white;            /* لون الخلفية */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.grid{ display:grid; gap:80px;  }
.grid--3{ grid-template-columns: repeat(3, 1fr); }

.card, .service, .project, .infoCard, .contact__form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

.card{ padding:18px; }
.card__icon{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:14px;
  background:rgba(31,78,140,.10);
  border:1px solid rgba(31,78,140,.18);
  margin-bottom:10px;
  font-size:22px;
}
.card h3{ margin:0 0 8px; font-weight:1000; }
.card p{ margin:0; color:var(--muted); line-height:1.9; }

.service{ padding:18px; position:relative; overflow:hidden; }
.service::after{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:140px; height:140px;
  background: radial-gradient(circle, rgba(31,78,140,.18), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}
.service h3{ margin:0 0 8px; font-weight:1000; }
.service p{ margin:0; color:var(--muted); line-height:1.9; }

/* Callout */
.callout{
  margin-top:18px;
  padding:18px;
  border-radius:var(--radius);
  border:1px solid rgba(31, 124, 140, 0.22);
  background:linear-gradient(120deg, rgba(255, 255, 255), rgba(255, 255, 255));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.callout h3{ margin:0 0 6px; font-weight:1000; }
.callout p{ margin:0; color:var(--muted); }

/* Filters */
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin: 8px 0 16px; }
.filter{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-weight:1000;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.filter:hover{ background:var(--soft); transform: translateY(-1px); }
.filter.is-active{
  background:rgba(31,78,140,.10);
  border-color:rgba(31,78,140,.35);
  color:#173e73;
}

/* Projects */
.project{ overflow:hidden; cursor:pointer; transition: transform .2s ease, box-shadow .2s ease; }
.project:hover{ transform: translateY(-3px); box-shadow: 0 20px 45px rgba(10,27,51,.12); }
.project__img{ width:100%; height:180px; object-fit:contain; display:block; }
.project__body{ padding:14px 16px; }
.project__body h3{ margin:0 0 6px; font-weight:1000; }
.project__body p{ margin:0 0 10px; color:var(--muted); line-height:1.8; }
.project__meta{ display:flex; justify-content:space-between; gap:10px; color:#30425f; font-weight:900; font-size:13px; }
.project:focus{ outline:none; box-shadow: var(--ring), var(--shadow); }

/* Projects toolbar */
.projectsTools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}
.projectsTools__left{ flex: 1 1 360px; }
.projectsTools__right{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }

.projectsSearch{
  display:flex; align-items:center; gap:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:10px 12px;
  box-shadow: 0 12px 28px rgba(10,27,51,.06);
}
.projectsSearch__icon{ opacity:.7; }
#projectSearch{
  border:0 !important;
  outline:none !important;
  padding:0 !important;
  width: min(520px, 100%);
  font-size:14px;
}
#projectSearch:focus{ box-shadow:none !important; }

.projectsCount{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(31,78,140,.22);
  background: rgba(31,78,140,.06);
  font-weight:1000;
  color:#173e73;
}

.projectsSort{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:8px 10px;
  box-shadow: 0 12px 28px rgba(10,27,51,.06);
}
.projectsSort__label{ font-weight:1000; font-size:13px; color:#1b2b45; }
#projectSort{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-family:inherit;
  font-weight:900;
  outline:none;
  background:#fff;
}
#projectSort:focus{
  border-color: rgba(31,78,140,.6);
  box-shadow: var(--ring);
}

.projectsEmpty{
  margin: 12px 0 16px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border:1px dashed rgba(31,78,140,.35);
  background: rgba(31,78,140,.06);
  font-weight: 900;
  color:#173e73;
}

/* -------------------- STATS -------------------- */
.stats{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.stat{
  border-radius:var(--radius);
  padding:14px 14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  text-align:center;
}
.stat__num{ font-size:28px; font-weight:1000; letter-spacing:.5px; }
.stat__label{ margin-top:4px; color:rgba(255,255,255,.80); font-weight:900; font-size:13px; }

/* -------------------- CONTACT -------------------- */
.contact{ display:grid; grid-template-columns: .9fr 1.1fr; gap:16px; align-items:start; }
.infoCard{ padding:18px; margin-bottom:16px; }
.infoCard h3{ margin:0 0 10px; font-weight:1000; }
.infoCard p{ margin:8px 0; color:#1b2b45; }

.contactTitle{
  font-weight:1000;
  margin:14px 0 6px;
  color:#173e73;
}

.phone{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 0;
}

.phone a{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
  font-weight:900;
  letter-spacing:.3px;
}

.muted{ color:var(--muted); }
.divider{ height:1px; background:var(--line); margin:12px 0; }

.contact__form{ padding:18px; }
.formRow{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
label{ font-weight:1000; font-size:13px; color:#1b2b45; }
input, textarea{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  font-family:inherit;
  font-size:14px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, textarea:focus{
  border-color: rgba(31,78,140,.6);
  box-shadow: var(--ring);
}
.formHint{ margin:10px 0 0; font-size:12px; color:var(--muted); }

/* -------------------- FOOTER -------------------- */
.siteFooter{
  position: relative;
  padding: 56px 0 0;
  color: rgba(255,255,255,.90);
  background:
    radial-gradient(1200px 500px at 15% 20%, rgba(91,143,217,.22), transparent 60%),
    radial-gradient(900px 420px at 85% 40%, rgba(47,110,179,.20), transparent 55%),
    linear-gradient(180deg, #07162c 0%, #061226 100%);
  border-top: 1px solid rgba(201,206,214,.18);
  overflow: hidden;
}
.siteFooter::before{
  content:"";
  position:absolute;
  inset:-80px -120px auto -120px;
  height: 220px;
  border-radius: 0 0 70px 70px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
  pointer-events:none;
}
.siteFooter__inner{
  display:grid;
  grid-template-columns: 1.35fr .85fr .85fr 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 38px;
}
.siteFooter__brand{ display:flex; gap: 16px; align-items:flex-start; }
.siteFooter__logoWrap{
  width: 150px; height: 70px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(201,206,214,.55);
}
.siteFooter__logo{ width:100%; height:100%; object-fit:contain; transform: scale(1.08); }
.siteFooter__brandText h3{
  margin:0 0 8px;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .2px;
}
.siteFooter__brandText p{
  margin:0 0 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.85;
  max-width: 52ch;
  font-size: 14px;
}
.siteFooter__col h4{
  margin: 6px 0 12px;
  font-weight: 1000;
  font-size: 15px;
  color: rgba(255,255,255,.92);
  position: relative;
  padding-bottom: 10px;
}
.siteFooter__col h4::after{
  content:"";
  position:absolute;
  bottom:0;
  width: 54px;
  height: 2px;
  border-radius: 999px;
}
html[dir="ltr"] .siteFooter__col h4::after{
  left:0; right:auto;
  background: linear-gradient(90deg, var(--primary-light), transparent);
}
html[dir="rtl"] .siteFooter__col h4::after{
  right:0; left:auto;
  background: linear-gradient(270deg, var(--primary-light), transparent);
}
.siteFooter__col a{
  display:block;
  padding: 8px 0;
  color: rgba(255,255,255,.70);
  font-weight: 900;
  font-size: 15px;
  transition: transform .18s ease, color .18s ease;
}
html[dir="rtl"] .siteFooter__col a:hover{ color:#fff; transform: translateX(-2px); }
html[dir="ltr"] .siteFooter__col a:hover{ color:#fff; transform: translateX(2px); }

.siteFooter__item{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  color: rgba(255,255,255,.82);
}
.siteFooter__item a,
.siteFooter__item p,
.siteFooter__item span{
  margin:0;
  display:inline-flex;
  align-items:center;
  line-height:1.6;
}
.siteFooter__item br{ display:none; }

.siteFooter__icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(201,206,214,.16);
}

.siteFooter__bottom{
  border-top: 1px solid rgba(201,206,214,.14);
  background: rgba(0,0,0,.18);
  padding: 14px 0;
}
.siteFooter__bottomInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.74);
  font-weight: 900;
  font-size: 13px;
}

/* -------------------- WHATSAPP FLOAT -------------------- */
.waFloat{
  position:fixed;
  bottom:16px;
  height:56px;
  padding:0 16px 0 12px;
  border-radius:18px;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:1000;
  font-size:15px;
  box-shadow:0 16px 40px rgba(0,0,0,.20);
  z-index:80;
  width:auto;
  min-width:56px;
  left:auto;
  right:auto;
}
html[dir="rtl"] .waFloat{ left:16px; right:auto; }
html[dir="ltr"] .waFloat{ right:16px; left:auto; }

.waFloat:hover{ background:#1ebe5d; }
.waFloat__icon{
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:60%;
  background:rgba(255,255,255,.18);
}
.waFloat__icon svg{ width:24px; height:24px; display:block; }

/* =========================
   PROJECT MODAL — FINAL CLEAN VERSION
   ========================= */

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:90;
}

.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
}

.modal__dialog,
.modal__dialog--gallery{
  position:relative;
  width:min(1100px, calc(100% - 28px));
  max-height:88vh;
  margin:28px auto;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
}

/* منطقة عرض الصورة/الفيديو */
.modal__media,
.modal__media--gallery{
  position:relative;
  min-height:320px;
  max-height:68vh;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}

/* الصورة والفيديو */
.modal__media img,
.modal__media video,
.modal__media--gallery img,
.modal__media--gallery video,
#modalMedia img,
#modalMedia video{
  display:block;
  max-width:100%;
  max-height:62vh;
  width:auto;
  height:auto;
  object-fit:contain;
  margin:auto;
  border-radius:14px;
  background:transparent;
  box-shadow:none;
  filter:none;
}

/* المحتوى */
.modal__content{
  padding:18px 18px 14px;
  background:#fff;
  border-top:1px solid var(--line);
}

.modal__content h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:1000;
}

.modal__content p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.9;
}

.modal__meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-weight:900;
  color:#1b2b45;
  font-size:13px;
}

#modalMeta{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  background:var(--soft);
  padding:8px 10px;
  border-radius:999px;
}

/* زر الإغلاق */
.modal__close{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:26px;
  cursor:pointer;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal__close:hover{
  background:rgba(0,0,0,.45);
}

/* أزرار السابق/التالي */
.modalNav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:4;
  transition:background .18s ease;
}

.modalNav:hover{
  background:rgba(0,0,0,.48);
}

.modalNav--prev{ left:14px; }
.modalNav--next{ right:14px; }

/* الشريط السفلي للصور */
.modalThumbs{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:12px 14px 14px;
  background:#fff;
  border-top:1px solid var(--line);
  scroll-behavior:smooth;
}

.modalThumb{
  flex:0 0 auto;
  width:130px;
  height:78px;
  padding:0;
  border-radius:12px;
  overflow:hidden;
  border:2px solid transparent;
  background:#fff;
  cursor:pointer;
  position:relative;
  transition:border-color .2s ease, transform .2s ease;
}

.modalThumb:hover{
  transform:translateY(-2px);
}

.modalThumb img,
.modalThumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.modalThumb.is-active{
  border-color:#1F4E8C;
  box-shadow:0 0 0 3px rgba(31,78,140,.14);
}

.modalThumb.is-video::after{
  content:"▶";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:900;
  color:#fff;
  background:rgba(0,0,0,.18);
  pointer-events:none;
}

/* -------------------- CLIENTS MARQUEE -------------------- */
.centerHead{ text-align:center; }
.centerHead p{ margin-inline:auto; }

.clientsSlider{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow: var(--shadow);
  padding:22px 0;
  overflow:hidden;
  direction:ltr;
  position:relative;
}

.clientsTrack{
  display:flex;
  align-items:center;
  width:max-content;
  gap:40px;
  will-change:transform;
  animation: clientsMarquee 22s linear infinite;
}

.clientsGroup{
  display:flex;
  align-items:center;
  gap:45px;
  padding:0 20px;
}

.clientLogo{
  flex:0 0 auto;
  width:180px;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.clientLogo img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter: grayscale(100%) contrast(1.1);
  opacity:.85;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.clientLogo:hover img{
  filter:none;
  opacity:1;
  transform: translateY(-2px);
}
@keyframes clientsMarquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clientsSlider:hover .clientsTrack{ animation-play-state: paused; }

/* -------------------- SCROLL TO TOP -------------------- */
.scrollTop{
  position:fixed;
  bottom:90px;
  width:52px;
  height:52px;
  border-radius:16px;
  border:none;
  background:var(--primary);
  color:#fff;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  opacity:0;
  visibility:hidden;
  transform:translateY(15px);
  transition:all .3s ease;
  z-index:85;
}
.scrollTop:hover{ background:#173e73; transform:translateY(0) scale(1.05); }
.scrollTop.show{ opacity:1; visibility:visible; transform:translateY(0); }
html[dir="ltr"] .scrollTop{ left:20px; right:auto; }
html[dir="rtl"] .scrollTop{ right:20px; left:auto; }

/* =========================================================
   ABOUT (Parallax media element) — uses .aboutBg section
   ========================================================= */

.aboutBg{
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 70px 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.aboutBg__media{
  position: absolute;
  inset: -150px 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18)),
    url("assets/enhanced_haramstaff.jpg");
  background-size: cover;
  background-position: 20% 10%;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
}

.aboutBg::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 75% 35%, rgba(111,159,230,.12), transparent 60%),
    radial-gradient(900px 520px at 15% 70%, rgba(31,78,140,.10), transparent 60%);
}

.aboutBg__content{ position: relative; z-index: 2; }

.aboutBg .section__head{
  display:inline-block;
  max-width: min(820px, 92%);
  font-size: 20px;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(10, 20, 38, .38);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.aboutBg .section__head h2,
.aboutBg .section__head p{
  color:#F5F7FA;
  text-shadow:0 10px 26px rgba(0,0,0,.45);
}
.aboutBg .section__head p{
  color: rgba(234,240,255,.92);
  opacity: 1;
}

.aboutBg .grid--3{
  margin-top: 350px;
  gap: 14px;
  align-items: stretch;
}
.aboutBg .card{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

/* =========================
   Mobile Fix - About Section
   ========================= */
@media (max-width: 768px){

  .aboutBg{
    min-height: 1150px;
    padding: 35px 0;
  }

  .aboutBg__media{
    inset: -20px 0;
    background-size: cover;
    background-position: center;
    transform: none;
  }

  .aboutBg .section__head{
    max-width: 95%;
    font-size: 15px;
    padding: 16px;
    border-radius: 16px;
  }

  .aboutBg .grid--3{
    margin-top: 20px;
    gap: 12px;
  }

  .aboutBg .card{
    padding: 16px 14px;
    min-height: 110px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.60);
    box-shadow: 0 12px 28px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .aboutBg .card__icon{
    font-size: 22px;
    margin-bottom: 8px;
  }

  .aboutBg .card h3{
    font-size: 18px;
    margin: 0 0 6px;
  }

  .aboutBg .card p{
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }
} 

/* =========================================================
   SERVICES — Parallax Background
   ========================================================= */
#services{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --py: 0px;
  min-height: 520px;
}
#services::before{
  content:"";
  position:absolute;
  inset:-14%;
  background:
    linear-gradient(120deg, rgba(31,78,140,.65), rgba(8,20,38,.60)),
    url("assets/Services.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--py), 0) scale(1.18);
  will-change: transform;
  z-index: 0;
  pointer-events:none;
}
#services .container{ position: relative; z-index: 1; }
#services .section__head h2,
#services .section__head p{
  color:#fff;
  text-shadow: 0 10px 25px rgba(0,0,0,.35);
  font-size: 25px;
}

/* =========================================================
   PARTNERS — Parallax Background
   ========================================================= */
#partners{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --py: 0px;
}

/* الخلفية */
#partners::before{
  content:"";
  position:absolute;
  inset:-10%;
  background:
    linear-gradient(120deg, rgba(31,78,140,.60), rgba(8,20,38,.55)),
    url("assets/Partenr.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: translate3d(0, var(--py), 0) scale(1.15);
  will-change: transform;

  z-index:0;
  pointer-events:none;
}

/* المحتوى فوق الخلفية */
#partners .container{
  position: relative;
  z-index: 1;
}

/* النص */
#partners .section__head{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#partners .section__head h2,
#partners .section__head p{
  color:#fff;
  text-shadow:0 10px 25px rgba(0,0,0,.35);
}

/* تأكيد أن العربي أيضاً في المنتصف */
html[dir="rtl"] #partners .section__head{
  text-align:center;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; padding: 40px 0; }
  .grid--3{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .contact{ grid-template-columns: 1fr; }
  .siteFooter__inner{ grid-template-columns: 1fr; gap: 18px; }
  .projectsTools__right{ width:100%; justify-content:space-between; }
}

@media (max-width: 760px){
  .nav__toggle{ display:inline-flex; }
  .nav{
    position:absolute;
    top:100%;
    right:0; left:0;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:none;
    flex-direction:column;
    padding:10px;
    gap:6px;
  }
  .nav.is-open{ display:flex; }
  .nav a{ width:100%; }
  .hero h1{ font-size:34px; }
  .projectsCount{ width:100%; text-align:center; }
  .projectsSort{ width:100%; justify-content:space-between; }
  #projectSearch{ width:100%; }

  .aboutBg{
    min-height: auto;
    padding: 28px 0;
  }

  .aboutBg__media{
    inset: -30px 0;
    transform: none;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35)),
      url("assets/haram-mobile.jpg");
    background-size: cover;
    background-position: center 75%;
    background-repeat: no-repeat;
  }

  .aboutBg .section__head{
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .aboutBg .grid--3{
    margin-top: 40px;
    gap: 10px;
  }

  .aboutBg .grid--3 > *{
    transform: none !important;
  }

  .modal__dialog,
  .modal__dialog--gallery{
    width:min(100%, calc(100% - 16px));
    max-height:92vh;
    margin:8px auto;
    border-radius:18px;
  }

  .modal__media,
  .modal__media--gallery{
    min-height:240px;
    max-height:52vh;
    padding:10px;
  }

  .modal__media img,
  .modal__media video,
  .modal__media--gallery img,
  .modal__media--gallery video,
  #modalMedia img,
  #modalMedia video{
    max-height:48vh;
  }

  .modalThumb{
    width:96px;
    height:60px;
  }

  .modalNav{
    width:40px;
    height:40px;
    font-size:22px;
  }

  .modalNav--prev{ left:10px; }
  .modalNav--next{ right:10px; }
}

/* =========================
   CAREERS SECTION
   ========================= */

.careersSection{
  background: linear-gradient(180deg,#f6f8fb,#ffffff);
}

.careersSection__head{
  text-align:center;
  max-width:760px;
  margin-inline:auto;
  margin-bottom:40px;
}

.careersSection .eyebrow{
  color:var(--primary);
  font-size: 22px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  display:block;
  margin-bottom:10px;
}

/* CARD */

.careerWrap{
  background:#ffffff;
  border-radius:22px;
  padding:40px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* GRID */

.careerGrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.field{
  display:flex;
  flex-direction:column;
}

.field--full{
  grid-column:1 / -1;
}

/* LABEL */

.field label{
  font-weight:700;
  margin-bottom:10px;
  color:#2f55b0;
}

.field label span{
  color:#ff4d4f;
}

/* INPUT */

.field input,
.field textarea,
.field select{
  border:none;
  border-bottom:2px solid #66b979;
  padding:12px 4px;
  background:transparent;
  font:inherit;
  outline:none;
  transition:.25s;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
  border-bottom-color:var(--primary);
}

/* PHONE */

.phoneField{
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:2px solid #66b979;
}

.phoneField input{
  border:none !important;
  flex:1;
}

.phoneCode{
  font-weight:700;
  color:#28a745;
}

/* UPLOAD */

.uploadBox{
  border:2px dashed #55b56d;
  border-radius:20px;
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  position:relative;
  text-align:center;
  transition:.25s;
}

.uploadBox:hover{
  border-color:var(--primary);
  transform:translateY(-2px);
}

.uploadBox input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.uploadIcon{
  font-size:60px;
  color:#6fb77a;
  margin-bottom:10px;
}

.uploadTitle{
  font-weight:700;
  color:#5aa566;
}

.uploadHint{
  font-size:.9rem;
  color:#4b5a8b;
}

/* BUTTON */

.careerActions{
  text-align:center;
  margin-top:30px;
}

.careerBtn{
  min-width:200px;
  padding:14px 24px;
  border-radius:14px;
  font-weight:700;
}

/* RESPONSIVE */

@media (max-width:900px){

  .careerGrid{
    grid-template-columns:1fr;
  }

  .careerWrap{
    padding:24px;
  }

}

