:root{--white:#ffffff;--black:#000000;--primary:#0f3b5f;--primary-900:#0a2a45;--accent:#ef4e2b;--bg:#f6f8fb;--text:#0d1b2a;--muted:#5b6b7d;--card:#ffffff;--font-base:'Cairo','Noto Kufi Arabic',system-ui,-apple-system,sans-serif;--radius:14px;--shadow:0 10px 25px rgba(0,0,0,.08)}@media (prefers-color-scheme:dark){:root{--bg:#121212;--text:#f0f0f0;--card:#1e1e1e;--accent:#ff5722;--muted:#aaa}}*{box-sizing:border-box}html{scroll-behavior:smooth}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}body{margin:0;font-family:var(--font-base);background:var(--bg);color:var(--text);line-height:1.7;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.container{width:min(1200px,95%);margin-inline:auto}.navbar{position:sticky;top:0;z-index:1100;background:var(--white);border-bottom:1px solid var(--brand-4);padding-top:env(safe-area-inset-top);-webkit-transform:translateZ(0);backface-visibility:hidden;--nav-h:56px;min-height:var(--nav-h)}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}.brand img{width:40px;height:40px;object-fit:contain}.brand strong{font-weight:800;font-size:1.1rem}.brand span{color:var(--muted);font-size:.95rem}.nav-links{display:flex;gap:18px;list-style:none;margin:0;padding:0}.nav-links a{color:var(--text);font-weight:600;text-decoration:none}.nav-links a:hover{color:var(--accent)}.burger{display:flex;flex-direction:column;gap:5px;background:transparent;border:0;cursor:pointer}.burger span{width:24px;height:2px;background:var(--text);border-radius:2px}.mobile-menu{display:none;position:fixed;right:0;left:0;top:calc(var(--nav-h) + env(safe-area-inset-top));background:var(--card);border-bottom:1px solid rgba(0,0,0,.08);z-index:1100;padding:12px 16px}.mobile-menu.open{display:flex;flex-direction:column;gap:12px;box-shadow:0 16px 24px rgba(0,0,0,.20)}.mobile-menu a{padding:10px 6px;border-radius:10px;text-decoration:none;color:var(--text);font-weight:700}.mobile-menu a:active{background:rgba(0,0,0,.06)}@media (min-width:900px){.burger,.mobile-menu{display:none!important}.only-desktop{display:inline-flex}}@media (max-width:900px){.nav-links{display:none!important}.burger{display:flex;z-index:1101}}@media (prefers-color-scheme:dark){.navbar{background:var(--card);border-bottom-color:rgba(255,255,255,.08)}.mobile-menu{border-bottom-color:rgba(255,255,255,.08)}.mobile-menu a:active{background:rgba(255,255,255,.06)}}.hero{background:radial-gradient(1200px 500px at 30% 10%,rgba(var(--accent-rgb),.15),transparent 50%),linear-gradient(180deg,var(--white) 0%,var(--bg) 100%);padding:70px 0 30px}.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center}.hero-copy h1{margin:0 0 10px;font-size:clamp(28px,4vw,44px);line-height:1.25}.hero-copy .accent{color:var(--accent)}.hero-copy p{margin:0 0 14px;color:var(--muted)}.hero-copy .bullets{display:flex;gap:18px;list-style:'• ';padding-inline-start:14px;color:var(--muted)}.hero-art{position:relative;display:grid;place-items:center;min-height:280px}.hero-art .glow{position:absolute;inset:20% 10% 10% 10%;background:radial-gradient(circle at 70% 30%,rgba(var(--accent-rgb),.25),transparent 50%);filter:blur(30px)}.hero-logo{width:min(360px,80%);filter:drop-shadow(0 20px 25px rgba(0,0,0,.12))}@media (max-width:1100px){.hero-inner{grid-template-columns:1fr;text-align:center}.hero-copy .bullets{justify-content:center}.hero-art{order:-1}}@media (max-width:600px){.hero{padding:40px 0 20px}.hero-logo{width:min(280px,75%)}}.section{padding:70px 0;content-visibility:auto;contain-intrinsic-size:600px}.section.alt{background:var(--white)}.section-head{display:grid;gap:6px;margin-bottom:26px}.section-head h2{margin:0;font-size:clamp(22px,3vw,30px)}.section-head p{margin:0;color:var(--muted)}.grid.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.card{background:var(--card);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);border:1px solid var(--brand-3);transition:transform .2s ease,box-shadow .2s ease}.card:hover{transform:translateY(-4px);box-shadow:0 18px 30px rgba(0,0,0,.10)}.card .icon{width:44px;height:44px;background:rgba(15,59,95,.08);border-radius:var(--radius);display:grid;align-items:center;justify-content:center;margin-bottom:8px}.card .icon svg{fill:var(--primary)}.solutions-wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.solution{background:var(--card);border:1px solid var(--brand-3);border-radius:var(--radius);padding:18px}.carousel{position:relative;overflow:hidden}.car-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;will-change:transform}.car-item{min-width:300px;scroll-snap-align:start;background:var(--card);border:1px solid var(--brand-3);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.car-item img,.car-item video{width:100%;object-fit:cover;display:block}.car-item img{aspect-ratio:16/9;background:var(--brand-5)}.car-item figcaption{padding:10px;font-weight:600;text-align:center}.car-btn{position:absolute;top:50%;transform:translateY(-50%);border:none;background:rgba(15,59,95,.9);color:var(--white);width:36px;height:36px;border-radius:50%;cursor:pointer;z-index:2}.car-btn.prev{left:10px}.car-btn.next{right:10px}@media (hover:none){.car-item{scroll-snap-stop:always}}@media (max-width:900px){.car-item{min-width:82vw}.car-btn{width:44px;height:44px}}#video-gallery{background:var(--brand-5);padding:60px 0}#video-gallery .car-item{width:220px}#video-gallery .df-video{height:120px;background-color:var(--black)}@media (max-width:600px){#video-gallery .df-video{aspect-ratio:16/9;height:auto}#video-gallery .car-item{width:80vw}}.contact-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:20px}.contact-form{display:grid;gap:12px}.contact-form label{font-weight:700}.contact-form input,.contact-form textarea{width:100%;padding:12px;border-radius:8px;border:1px solid var(--brand-3);background:var(--white)}.contact-form input:focus,.contact-form textarea:focus{border-color:var(--primary)}.contact-form button.btn.primary{width:100%}.tiny{font-size:.85rem;color:var(--muted)}.contact-info ul{margin:0;padding-inline-start:1.2rem}.map-holder{height:160px;background:linear-gradient(135deg,var(--brand-3),var(--white));border-radius:var(--radius);border:1px dashed var(--brand-3)}@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}.footer{background:var(--primary-900);color:var(--brand-5);padding:24px 0}.footer a{color:var(--brand-5);text-decoration:none}.footer-inner{display:flex;flex-wrap:wrap;gap:16px}.sticky-cta{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--accent);color:var(--white);padding:12px 18px;border-radius:999px;font-weight:800;box-shadow:0 12px 20px rgba(var(--accent-rgb),.25);z-index:1000}@media (min-width:900px){.sticky-cta{display:none}}.wa-fab{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;width:56px;height:56px;background:var(--primary);border-radius:50%;border:2px solid var(--white);display:grid;place-items:center;box-shadow:0 12px 24px rgba(0,0,0,.18);transition:transform .2s ease,background .3s ease;z-index:1000}.wa-fab:hover{transform:scale(1.08);background:var(--accent)}.wa-fab img{width:28px;height:28px}.reveal{opacity:0;transform:translateY(12px);transition:all .6s ease}.reveal.in{opacity:1;transform:none}:root{--brand-3:#e4e9f2;--brand-4:#d8e0ea;--brand-5:#f0f4f9;--accent-rgb:239,78,43;--primary-rgb:15,59,95}@media (prefers-color-scheme:dark){:root{--brand-3:#2a3440;--brand-4:#364151;--brand-5:#1c2430}}body{color-scheme:light dark}:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px;border-radius:6px}:where(input[type="checkbox"],input[type="radio"],input[type="range"],select){accent-color:var(--primary)}.car-track{overscroll-behavior-x:contain;scrollbar-gutter:stable both-edges}.car-track::-webkit-scrollbar{height:8px}.car-track::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem 1.1rem;border-radius:999px;font-weight:800;line-height:1;text-decoration:none;-webkit-tap-highlight-color:transparent}.btn:where(:link,:visited){text-decoration:none;color:inherit}.btn.primary,.btn.primary:link,.btn.primary:visited,.btn.primary:hover,.btn.primary:active,.btn.primary:focus{background:var(--accent);color:var(--white)!important;box-shadow:0 10px 20px rgba(var(--accent-rgb),.25)}.btn.ghost{border:2px solid var(--primary);color:var(--primary);background:transparent}.btn.lg{padding:.9rem 1.3rem;font-size:1.05rem}@media (prefers-color-scheme:dark){.hero{background:radial-gradient(1000px 420px at 30% 10%,rgba(var(--accent-rgb),.12),transparent 55%),linear-gradient(180deg,var(--bg) 0%,var(--bg) 100%)}.section.alt{background:var(--bg)}.car-btn{background:var(--primary)}.footer{background:var(--primary-900);color:#e6edf3}.footer a{color:#e6edf3}.brand span{color:var(--muted)}}@media (prefers-color-scheme:dark){@supports (color:color-mix(in srgb,black 50%,white 50%)){.hero{background:radial-gradient(1000px 420px at 30% 10%,rgba(var(--accent-rgb),.12),transparent 55%),linear-gradient(180deg,color-mix(in srgb,var(--bg) 96%,black 4%) 0%,var(--bg) 100%)}.section.alt{background:color-mix(in srgb,var(--bg) 94%,black 6%)}.car-btn{background:color-mix(in srgb,var(--primary) 85%,black 15%)}.footer{background:color-mix(in srgb,var(--primary-900) 90%,black 10%);color:#e6edf3}.brand span{color:color-mix(in srgb,var(--muted) 90%,white 10%)}.mobile-menu.open{background:color-mix(in srgb,var(--card) 92%,black 8%);border-top:1px solid rgba(255,255,255,.06);box-shadow:0 20px 30px rgba(0,0,0,.35)}}}.nav-open{overflow:hidden}
/* === Fix: Project carousel to match video style === */

/* منع هوامش figure الافتراضية */
.car-item { margin: 0; }

/* حاوية السكة */
#projects .carousel .car-track{
  display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:6px; transition:transform .3s ease; will-change:transform;
  overscroll-behavior-x: contain; scrollbar-gutter: stable both-edges;
}

/* الكارت */
#projects .carousel .car-item{
  min-width:300px; scroll-snap-align:start;
  background: var(--card);
  border:1px solid var(--brand-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* الصورة (نفس أبعاد الفيديو) */
#projects .carousel .car-item img,
#projects .carousel .car-item .car-img{
  display:block; width:100%;
  /* نخليها 16:9 + قص ذكي */
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--brand-5);
}

/* العنوان تحت الصورة */
#projects .carousel .car-item figcaption{
  padding:10px; font-weight:600; text-align:center;
}

/* أزرار التنقل زي الفيديو */
#projects .carousel .car-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  border:0; background: rgba(15,59,95,.9); color:#fff;
  width:36px; height:36px; border-radius:50%; cursor:pointer; z-index:2;
}
#projects .carousel .car-btn.prev{ left:10px; }
#projects .carousel .car-btn.next{ right:10px; }

/* موبايل */
@media (max-width: 768px){
  #projects .carousel .car-item{ min-width: 80vw; }
}
.hp{position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden;}