/* ==========================================================
   uSpark Solutions theme  |  Poppins  |  dark default + light
   Brand: blue #0D6EFD, gold #F5B301, navy #0B1730, grey #6B7280, light #F5F6FA
   ========================================================== */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --blue: #0d6efd; --blue2: #3d8bff; --gold: #f5b301; --gold2: #ffc93c;
  --hh: 76px; --r: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Poppins', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root, [data-theme="dark"] {
  --bg: #0b1730; --bg2: #0e1e3c; --card: rgba(255,255,255,.05); --card-s: #10213f;
  --line: rgba(255,255,255,.11); --line2: rgba(255,255,255,.2);
  --tx: #eaf0ff; --mut: #9fb0cf; --glass: rgba(14,30,60,.72);
  --shadow: 0 24px 60px -24px rgba(0,0,0,.6); --hero-a: rgba(13,110,253,.35); --hero-b: rgba(245,179,1,.16);
  --mark-op: .06; --btn-tx: #0b1730;
}
[data-theme="light"] {
  --bg: #f5f6fa; --bg2: #ffffff; --card: #ffffff; --card-s: #ffffff;
  --line: rgba(11,23,48,.09); --line2: rgba(11,23,48,.18);
  --tx: #0b1730; --mut: #5a6478; --glass: rgba(255,255,255,.82);
  --shadow: 0 24px 50px -26px rgba(13,60,140,.35); --hero-a: rgba(13,110,253,.16); --hero-b: rgba(245,179,1,.2);
  --mark-op: .07; --btn-tx: #0b1730;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--tx); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1220px, 92vw); margin-inline: auto; }
.narrow { width: min(820px, 92vw); }
.center { text-align: center; }
.center.rv, .sec .center { margin-top: 44px; }
[dir="rtl"] .dir-ico { transform: scaleX(-1); }

/* ---------- scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--gold)); border-radius: 10px; border: 2px solid var(--bg); }
#progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9998; }
#progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--gold)); box-shadow: 0 0 14px var(--gold); }
[dir="rtl"] #progress span { transform-origin: 100% 50%; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 10000; background: #0b1730; display: grid; place-items: center; transition: clip-path .9s var(--ease), opacity .3s .7s; clip-path: inset(0 0 0 0); }
#loader.done { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.ld-in { display: grid; justify-items: center; gap: 22px; }
.ld-mark { width: 92px; animation: ldPulse 1.3s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(245,179,1,.45)); }
.ld-bar { width: 210px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.ld-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.ld-pct { color: #9fb0cf; font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes ldPulse { 50% { transform: scale(1.09); filter: drop-shadow(0 0 34px rgba(13,110,253,.6)); } }
html:not(.js) #loader { display: none; }

/* ---------- custom cursor ---------- */
.cur-dot, .cur-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cur, html.has-cur a, html.has-cur button, html.has-cur label, html.has-cur select { cursor: none; }
  html.has-cur input, html.has-cur textarea { cursor: text; }
  .cur-dot, .cur-ring { display: block; position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
  .cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
  .cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--blue2); }
  html.cur-on .cur-dot, html.cur-on .cur-ring { opacity: 1; }
  .cur-ring.hov { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold); background: rgba(245,179,1,.1); }
  .cur-dot.hov { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
}

/* ---------- background logo mark ---------- */
.bg-mark { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-mark img { position: absolute; width: min(70vw, 820px); right: -12vw; top: 18vh; opacity: var(--mark-op); filter: saturate(.9); will-change: transform; }
[dir="rtl"] .bg-mark img { right: auto; left: -12vw; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; }
.btn-gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--btn-tx); box-shadow: 0 10px 28px -10px rgba(245,179,1,.7); }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--ease); }
.btn-gold:hover::after { translate: 120% 0; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(245,179,1,.85); }
.btn-ghost { border-color: var(--line2); background: transparent; color: var(--tx); }
.btn-ghost:hover { border-color: var(--blue2); background: rgba(13,110,253,.1); transform: translateY(-2px); }
.magnetic, .btn-cta { transition: box-shadow .3s, background .3s, border-color .3s; }
.magnetic:hover, .btn-cta:hover { transform: none; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn i { transition: transform .3s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--hh); transition: background .35s, box-shadow .35s, height .35s; }
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); opacity: 0; transition: opacity .35s; }
.hdr.scrolled { --hh: 66px; box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0,0,0,.35); }
.hdr.scrolled::before { opacity: 1; }
.hdr-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
[data-theme="dark"] .logo-l, [data-theme="light"] .logo-d { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: static; }
.nav-list > li > a { display: flex; align-items: center; gap: 7px; height: var(--hh); padding: 0 16px; font-weight: 500; font-size: 15px; color: var(--mut); position: relative; transition: color .25s, height .35s; }
.nav-list > li > a::after { content: ""; position: absolute; inset-inline: 16px; bottom: calc(var(--hh) / 2 - 16px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--gold)); scale: 0 1; transition: scale .35s var(--ease); }
.nav-list > li:hover > a, .nav-list > li.is-current > a { color: var(--tx); }
.nav-list > li:hover > a::after, .nav-list > li.is-current > a::after { scale: 1 1; }
.chev { font-size: 10px; transition: transform .3s; }
.has-mega:hover .chev, .has-mega.open .chev { transform: rotate(180deg); }
.nav-cta-m { display: none; }

.mega { position: absolute; top: 100%; left: 50%; translate: -50% 10px; width: min(1120px, 94vw); background: var(--card-s); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, translate .35s var(--ease), visibility .3s; overflow: hidden; }
.has-mega:hover .mega, .has-mega.open .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 28px 28px 18px; }
.mega-h { font-size: 15px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--blue2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mega-col li a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 14px; color: var(--mut); transition: background .2s, color .2s, transform .25s var(--ease); }
.mega-col li a i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(13,110,253,.12); color: var(--blue2); font-size: 13px; transition: background .25s, color .25s; }
.mega-col li a:hover { background: rgba(13,110,253,.09); color: var(--tx); transform: translateX(4px); }
[dir="rtl"] .mega-col li a:hover { transform: translateX(-4px); }
.mega-col li a:hover i { background: var(--gold); color: #0b1730; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-top: 1px solid var(--line); background: rgba(13,110,253,.06); font-size: 14px; color: var(--mut); }
.mega-foot i { color: var(--gold); margin-inline-end: 6px; }

.hdr-r { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn, .theme-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 500; transition: border-color .25s, background .25s; }
.lang-btn:hover, .theme-btn:hover { border-color: var(--blue2); }
.theme-btn { width: 42px; padding: 0; justify-content: center; position: relative; overflow: hidden; }
.theme-btn i { position: absolute; transition: transform .5s var(--ease), opacity .3s; }
[data-theme="dark"] .fa-sun { transform: translateY(30px) rotate(-90deg); opacity: 0; }
[data-theme="light"] .fa-moon { transform: translateY(-30px) rotate(90deg); opacity: 0; }
.fa-sun { color: var(--gold); } .fa-moon { color: var(--gold2); }
.lang-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 150px; padding: 6px; background: var(--card-s); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; translate: 0 8px; transition: all .25s var(--ease); }
.lang.open .lang-menu { opacity: 1; visibility: visible; translate: 0 0; }
.lang-menu button { width: 100%; text-align: start; padding: 9px 12px; border: 0; background: none; border-radius: 9px; font-size: 14px; }
.lang-menu button:hover, .lang-menu button.on { background: rgba(13,110,253,.12); color: var(--blue2); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--tx); border-radius: 2px; transition: transform .3s, opacity .3s, top .3s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; translate: 0 34px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .hz { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .hero.go .hz { opacity: 1; translate: 0 0; }
.js .hero-vis.hz { translate: 40px 0; }
.js .hero.go .hero-vis.hz { translate: 0 0; transition-duration: 1.4s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hh) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora.a1 { width: 620px; height: 620px; background: var(--hero-a); right: -6%; top: -8%; animation: drift 14s ease-in-out infinite alternate; }
.aurora.a2 { width: 460px; height: 460px; background: var(--hero-b); left: 6%; bottom: -14%; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.12); } }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 500; color: var(--mut); }
.pill i { color: var(--gold); }
.hero-t { font-size: clamp(2.5rem, 5.6vw, 4.9rem); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 22px; font-weight: 700; }
.hero-t > span { display: inline-block; margin-inline-end: .22em; }
.rot { position: relative; padding-bottom: .06em; }
.rot-w { display: inline-block; background: linear-gradient(100deg, var(--blue2) 10%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .45s, transform .45s var(--ease), filter .45s; }
.rot-w.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.rot-w.pre { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: none; }
.hero-p { max-width: 560px; font-size: 1.1rem; color: var(--mut); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-stats b { display: block; font-size: 2rem; line-height: 1.1; font-weight: 700; }
.hero-stats span { font-size: 13px; color: var(--mut); }

.hero-vis { position: relative; height: min(600px, 62vh); min-height: 460px; perspective: 1500px; }
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.plane { position: absolute; left: 50%; top: 50%; width: min(380px, 40vw); aspect-ratio: 1; margin: calc(min(380px, 40vw) / -2) 0 0 calc(min(380px, 40vw) / -2); border-radius: 28px; border: 1px solid var(--line2); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg) translateZ(var(--z)); animation: flt 7s ease-in-out infinite; animation-delay: var(--fd, 0s); backdrop-filter: blur(4px); }
@keyframes flt { 50% { translate: 0 0 18px; } }
.p3 { --z: -110px; --fd: -2s; background: linear-gradient(145deg, rgba(13,110,253,.22), rgba(13,110,253,.04)); box-shadow: 0 0 80px -10px rgba(13,110,253,.35); }
.pl-dots { position: absolute; inset: 9%; background-image: radial-gradient(var(--line2) 1.6px, transparent 1.7px); background-size: 26px 26px; }
.p2 { --z: 0px; --fd: -1s; padding: 12%; display: flex; flex-direction: column; gap: 6%; justify-content: center; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); }
[data-theme="light"] .p2 { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.6)); }
.ln { display: block; height: 11px; border-radius: 8px; background: var(--line2); }
.ln.g { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.ln.b { background: linear-gradient(90deg, var(--blue), var(--blue2)); }
.p1 { --z: 118px; background: linear-gradient(145deg, rgba(14,30,60,.86), rgba(11,23,48,.7)); border-color: rgba(245,179,1,.45); box-shadow: 0 0 60px -6px rgba(245,179,1,.4), inset 0 0 40px rgba(13,110,253,.18); }
[data-theme="light"] .p1 { background: linear-gradient(145deg, #fff, #eef3ff); box-shadow: 0 30px 60px -20px rgba(13,60,140,.4), 0 0 50px -8px rgba(245,179,1,.5); }
.p1-mark { position: absolute; width: 46%; left: 27%; top: 14%; filter: drop-shadow(0 0 18px rgba(245,179,1,.55)); }
.p1-bars { position: absolute; left: 13%; right: 13%; bottom: 12%; height: 32%; display: flex; align-items: flex-end; gap: 7%; }
.p1-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--gold), var(--blue)); transform-origin: bottom; animation: grow 3.2s var(--ease) infinite alternate; }
.p1-bars i:nth-child(2) { animation-delay: .3s; } .p1-bars i:nth-child(3) { animation-delay: .6s; } .p1-bars i:nth-child(4) { animation-delay: .9s; } .p1-bars i:nth-child(5) { animation-delay: 1.2s; }
@keyframes grow { from { transform: scaleY(.55); } }

.fcard { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .3s ease-out; z-index: 3; }
.fcard b { display: block; font-size: 15px; } .fcard small { color: var(--mut); font-size: 12px; }
.fc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; }
.fc-ic.b { background: rgba(13,110,253,.18); color: var(--blue2); } .fc-ic.g { background: rgba(245,179,1,.2); color: var(--gold); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; margin-inline-start: 6px; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.fc1 { inset-inline-start: 0; top: 10%; animation: bob 6s ease-in-out infinite; }
.fc2 { inset-inline-end: -2%; top: 46%; animation: bob 7s ease-in-out -2s infinite; }
.fc3 { inset-inline-start: 8%; bottom: 8%; animation: bob 8s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 18px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: mq 34s linear infinite; }
.marquee-track span { font-weight: 600; font-size: 1.05rem; color: var(--mut); white-space: nowrap; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(72px, 9vw, 130px) 0; }
.sec-alt { background: var(--bg2); }
[data-theme="dark"] .sec-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-t { font-size: clamp(1.9rem, 3.8vw, 3.1rem); margin: 18px 0 14px; letter-spacing: -.03em; }
.sec-s { color: var(--mut); font-size: 1.05rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* cards */
.card, .ind, .tst-card { position: relative; padding: 30px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: block; transition: border-color .3s, box-shadow .3s, background .3s; }
[data-theme="light"] .card, [data-theme="light"] .ind, [data-theme="light"] .tst-card { box-shadow: 0 10px 30px -18px rgba(13,60,140,.25); }
.glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(13,110,253,.22), transparent 45%); transition: opacity .35s; }
.glow:hover::after { opacity: 1; }
.glow:hover { border-color: rgba(61,139,255,.5); }
.tilt.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity .9s var(--ease), translate .9s var(--ease), transform .2s ease-out; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 22px; color: var(--gold); background: linear-gradient(145deg, rgba(13,110,253,.22), rgba(13,110,253,.06)); border: 1px solid rgba(61,139,255,.3); margin-bottom: 20px; transition: transform .4s var(--ease), background .3s, color .3s; }
.ic.sm { width: 44px; height: 44px; font-size: 17px; border-radius: 13px; margin-bottom: 0; }
.ic.big { width: 72px; height: 72px; font-size: 30px; margin-bottom: 22px; }
.card:hover .ic, .ind:hover .ic { transform: translateY(-4px) rotate(-6deg); background: var(--gold); color: #0b1730; }
.card h3, .ind h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--mut); font-size: .95rem; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--blue2); }
.more i { transition: transform .3s var(--ease); }
a:hover > .more i, a:hover .more i { transform: translateX(5px); }
[dir="rtl"] a:hover .more i { transform: scaleX(-1) translateX(5px); }

/* spark border: rotating conic ring */
.spark { position: relative; border-radius: var(--r); background: var(--card); }
.spark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; pointer-events: none; z-index: 2; background: conic-gradient(from var(--a), transparent 0 62%, var(--blue) 78%, var(--gold) 92%, #fff 96%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; animation: spin 5s linear infinite; opacity: .55; transition: opacity .4s; }
.spark:hover::before, .cform:focus-within::before { opacity: 1; animation-duration: 2.4s; }
@keyframes spin { to { --a: 360deg; } }

/* why */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.why-l { position: sticky; top: 110px; }
.why-l .sec-head { margin-bottom: 30px; }
.why-mark { width: min(220px, 50%); opacity: .9; animation: flt2 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(13,110,253,.35)); }
@keyframes flt2 { 50% { translate: 0 -12px; } }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-grid .card:nth-child(even) { margin-top: 34px; }

/* services */
.svc { display: block; overflow: hidden; border: 0; box-shadow: var(--shadow); }
.svc-img { aspect-ratio: 3 / 2; overflow: hidden; }
.svc-img img, .prj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc-img img, .prj:hover .prj-img img, .svc:hover .ph, .prj:hover .ph { transform: scale(1.07); }
.svc-body { position: relative; padding: 0 26px 28px; }
.svc-body .ic { margin: -22px 0 14px; box-shadow: 0 10px 24px -8px rgba(13,110,253,.5); background: var(--bg2); }
.svc-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc-body p { color: var(--mut); font-size: .95rem; }
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; transition: transform .8s var(--ease); }
.ph i { position: relative; font-size: 46px; color: #fff; opacity: .92; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.ph-mark { position: absolute; width: 60%; right: -10%; bottom: -14%; opacity: .16; }
.ph-1 { background: linear-gradient(135deg, #0d6efd, #0a2f7a); } .ph-2 { background: linear-gradient(135deg, #f5b301, #b8570a); }
.ph-3 { background: linear-gradient(135deg, #0b1730, #1d4fb3); } .ph-4 { background: linear-gradient(135deg, #3d8bff, #f5b301); }
.ph-5 { background: linear-gradient(135deg, #123a86, #0d6efd 60%, #5aa2ff); } .ph-6 { background: linear-gradient(135deg, #1a2b52, #f5b301 140%); }

/* projects */
.prj { display: block; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.prj:hover { border-color: rgba(245,179,1,.55); box-shadow: 0 26px 50px -26px rgba(245,179,1,.35); }
.prj-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.prj-ov { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: #0b1730; background: rgba(245,179,1,.0); opacity: 0; transition: opacity .35s, background .35s; }
.prj-ov i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); scale: .6; transition: scale .4s var(--ease); }
.prj:hover .prj-ov { opacity: 1; background: rgba(11,23,48,.45); } .prj:hover .prj-ov i { scale: 1; }
.prj-body { padding: 22px 24px 26px; }
.prj-body h3 { font-size: 1.2rem; margin: 10px 0 6px; } .prj-body p { color: var(--mut); font-size: .93rem; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--blue2); background: rgba(13,110,253,.12); border: 1px solid rgba(61,139,255,.25); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; } .result { margin: 18px 0 0; font-weight: 600; color: var(--gold); }

/* industries */
.ind { text-align: center; padding: 30px 18px; }
.ind .ic { margin-bottom: 14px; } .ind h3 { font-size: 1rem; margin: 0; }

/* testimonials */
.tst { position: relative; }
.tst-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px; }
.tst-track::-webkit-scrollbar { display: none; }
.tst-card { flex: 0 0 min(430px, 86%); scroll-snap-align: start; padding: 34px; }
.stars { color: var(--gold); font-size: 14px; display: flex; gap: 4px; margin-bottom: 18px; }
.tst-card blockquote { margin: 0 0 24px; font-size: 1.02rem; color: var(--tx); }
.tst-card figcaption { display: flex; align-items: center; gap: 14px; }
.tst-card figcaption small { display: block; color: var(--mut); font-size: 13px; }
.av { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 700; color: #0b1730; background: linear-gradient(135deg, var(--gold2), var(--gold)); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.tst-nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.tst-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); transition: background .25s, border-color .25s, color .25s; }
.tst-nav button:hover { background: var(--gold); border-color: var(--gold); color: #0b1730; }
[dir="rtl"] .tst-nav i { transform: scaleX(-1); }

/* contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-weight: 500; }
.contact-list a:hover { color: var(--gold); }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px; background: var(--card-s); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fld { display: grid; gap: 8px; align-content: start; } .full { grid-column: 1 / -1; }
.fld label:not(.drop) { font-size: 14px; font-weight: 500; }
.cform input:not([type=file]), .cform select, .cform textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--tx); background: var(--bg); border: 1px solid var(--line2); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.cform select option { color: #0b1730; background: #fff; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 0; border-color: var(--blue2); box-shadow: 0 0 0 4px rgba(13,110,253,.18); }
.cform .invalid { border-color: #ef4444 !important; }
.phone { display: grid; grid-template-columns: 118px 1fr; gap: 10px; }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line2); border-radius: 14px; color: var(--mut); font-size: 14px; transition: border-color .25s, background .25s; }
.drop:hover { border-color: var(--gold); background: rgba(245,179,1,.07); } .drop i { color: var(--gold); }
#c-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
#c-file:focus-visible + * , .drop:focus-within { outline: 2px solid var(--gold); }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin-top: 14px; min-height: 22px; font-size: 14px; font-weight: 500; }
.form-msg.ok { color: #22c55e; } .form-msg.err { color: #ef4444; }
.btn[disabled] { opacity: .7; pointer-events: none; }

/* footer */
.ftr { border-top: 1px solid var(--line); background: var(--bg2); padding-top: 72px; }
[data-theme="dark"] .ftr { background: #091329; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 56px; padding-bottom: 54px; }
.ftr .brand img { height: 42px; }
.ftr-line { margin-top: 20px; max-width: 360px; color: var(--mut); font-size: 1.02rem; }
.ftr h4 { font-size: 1rem; margin-bottom: 20px; }
.ftr-links { display: grid; gap: 12px; } .ftr-links a { color: var(--mut); transition: color .25s, padding .3s var(--ease); }
.ftr-links a:hover { color: var(--gold); padding-inline-start: 8px; }
.ftr-contact { display: grid; gap: 14px; } .ftr-contact li { display: flex; align-items: center; gap: 14px; color: var(--mut); }
.ftr-contact i { color: var(--gold); width: 18px; } .ftr-contact a:hover { color: var(--tx); }
.social { display: flex; gap: 12px; margin-top: 24px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.social a:hover { background: var(--gold); color: #0b1730; border-color: var(--gold); transform: translateY(-5px) rotate(8deg); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; }
.ftr-legal { display: flex; gap: 24px; } .ftr-legal a:hover { color: var(--gold); }
.to-top { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 800; width: 48px; height: 48px; border-radius: 50%; border: 0; color: #0b1730; background: linear-gradient(135deg, var(--gold2), var(--gold)); box-shadow: 0 10px 26px -6px rgba(245,179,1,.7); opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; } .to-top:hover { animation: shake .5s; }
@keyframes shake { 30% { rotate: -14deg; } 60% { rotate: 12deg; } }

/* inner pages */
.banner { position: relative; padding: calc(var(--hh) + 80px) 0 70px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--hero-a), transparent 70%); }
.banner-t { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.035em; margin-top: 14px; }
.banner-s { max-width: 640px; margin: 16px auto 0; color: var(--mut); font-size: 1.08rem; }
.sec.inner { padding-top: 70px; }
.grp-t { font-size: 1.5rem; margin: 54px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .grp-t:first-child { margin-top: 0; }
.prose { font-size: 1.05rem; } .prose > * + * { margin-top: 1.1em; } .prose h2 { font-size: 1.7rem; margin-top: 1.8em; } .prose h3 { font-size: 1.3rem; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; } .prose a { color: var(--blue2); text-decoration: underline; } .prose img { border-radius: var(--r); }
.art-img { margin-bottom: 36px; border-radius: var(--r); overflow: hidden; } .art-img img, .art-img .ph { width: 100%; height: auto; min-height: 260px; }
.pager { margin-top: 48px; } .pager .nav-links { display: flex; justify-content: center; gap: 10px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); }
.pager .current, .pager a:hover { background: var(--gold); border-color: var(--gold); color: #0b1730; }
.cta-strip { padding-block: 40px 100px; }
.cta-box { padding: clamp(36px, 6vw, 72px); text-align: center; background: linear-gradient(135deg, rgba(13,110,253,.22), rgba(245,179,1,.12)), var(--card-s); border-radius: 28px; overflow: hidden; }
.cta-box h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); } .cta-box p { max-width: 560px; margin: 14px auto 28px; color: var(--mut); }
.e404 { min-height: 80vh; display: grid; align-items: center; padding-top: calc(var(--hh) + 40px); } .e404-mark { width: 120px; margin: 0 auto 20px; } .e404 .btn { margin-top: 28px; }

/* ---------- RTL / Arabic ---------- */
[dir="rtl"] body { font-family: 'Cairo', var(--font); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .hero-t { line-height: 1.25; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; } .hero-vis { min-height: 420px; order: -1; height: 420px; } .hero { padding-top: calc(var(--hh) + 20px); }
  .plane { width: 300px; margin: -150px 0 0 -150px; }
}
@media (max-width: 980px) {
  .burger { display: block; } .btn-cta { display: none; } .nav-cta-m { display: block; padding: 14px 6px 0; }
  .nav { position: fixed; inset: var(--hh) 0 0 0; padding: 12px 5vw 40px; background: var(--bg); overflow-y: auto; translate: 0 -12px; opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
  .nav.open { translate: 0 0; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { height: 56px; padding: 0 6px; border-bottom: 1px solid var(--line); font-size: 17px; justify-content: space-between; } .nav-list > li > a::after { display: none; }
  .mega { position: static; translate: none !important; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; display: none; border-radius: 16px; margin: 10px 0; box-shadow: none; }
  .has-mega.open .mega { display: block; } .has-mega:hover .mega { translate: none; } .mega-grid { grid-template-columns: 1fr; padding: 16px; }
  .mega-foot { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .why, .contact { grid-template-columns: 1fr; gap: 36px; } .why-l { position: static; } .why-mark { display: none; }
  .grid3 { grid-template-columns: repeat(2, 1fr); } .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid3, .grid4, .why-grid, .cform, .ftr-grid { grid-template-columns: 1fr; } .why-grid .card:nth-child(even) { margin-top: 0; }
  .cform { padding: 24px; } .hero-stats { gap: 24px; } .fc2 { display: none; } .fcard { transform: scale(.9); } .hero-btns .btn { flex: 1 1 100%; }
  .plane { width: 240px; margin: -120px 0 0 -120px; } .lang-btn .lang-cur { display: none; } .to-top { inset-inline-end: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .hz { opacity: 1; translate: none; }
}
