:root {
  color-scheme: dark;
  --bg: #020614;
  --panel: rgba(7, 16, 38, .72);
  --text: #f8fbff;
  --muted: #a9bdd9;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --gold: #fbbf24;
  --green: #34d399;
  --line: rgba(148, 163, 184, .18);
  --shadow: 0 30px 90px rgba(0, 0, 0, .42);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(34, 211, 238, .18), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(244, 114, 182, .16), transparent 28rem),
    radial-gradient(circle at 52% 90%, rgba(139, 92, 246, .18), transparent 34rem),
    #020614;
  overflow-x: hidden;
}
body::selection { background: rgba(34, 211, 238, .35); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
#spaceCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -10; pointer-events: none; }

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(var(--max), calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(2, 6, 23, .82), rgba(15, 23, 42, .58));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,.32);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .03em; }
.brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(34,211,238,.32)); }
.nav-links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); }
.nav-links a, .language-toggle { border: 0; color: #e5f3ff; border-radius: 999px; padding: 10px 14px; background: transparent; font: inherit; font-size: .88rem; cursor: pointer; }
.nav-links a:hover, .language-toggle:hover { background: rgba(255,255,255,.1); }
.language-toggle { min-width: 58px; font-weight: 900; color: #001121; background: linear-gradient(135deg, var(--cyan), #fff); }

.hero-cinematic {
  position: relative;
  overflow: hidden;
  min-height: 118svh;
  padding: 118px max(18px, calc((100vw - 1220px) / 2)) 90px;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
}
.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .05), rgba(2, 6, 23, .76) 82%, #020614),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(34,211,238,.025) 63px 64px);
}
.hero-cinematic::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: -1px;
  height: 33%;
  z-index: 7;
  background: linear-gradient(0deg, #020614 0%, rgba(2,6,20,.7) 36%, transparent 100%);
  pointer-events: none;
}
.hero-aurora { position: absolute; width: 48vw; height: 48vw; border-radius: 50%; filter: blur(38px); opacity: .42; pointer-events: none; animation: auroraMove 10s ease-in-out infinite alternate; }
.hero-aurora-one { top: -16vw; right: -13vw; background: conic-gradient(from 120deg, var(--cyan), var(--violet), var(--pink), var(--cyan)); }
.hero-aurora-two { left: -18vw; bottom: 8vw; background: conic-gradient(from 20deg, var(--blue), var(--green), var(--cyan), var(--blue)); animation-delay: -5s; }
.hero-grid { position: absolute; inset: 0; z-index: -4; opacity: .32; background-image: linear-gradient(rgba(148,163,184,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.11) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(900px) rotateX(62deg) translateY(20vh) scale(1.3); transform-origin: center bottom; mask-image: radial-gradient(circle at 50% 42%, black 0 44%, transparent 72%); animation: gridFloat 16s linear infinite; }

.block-theater {
  position: relative;
  width: min(780px, 96vw);
  height: min(545px, 64vh);
  min-height: 430px;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.block-cloud, .energy-tunnel, .hero-logo-portal, .architecture-badge { position: absolute; }
.block-cloud { inset: 0; transform-style: preserve-3d; animation: theaterBreath 8s ease-in-out infinite; }
.hero-flying-block {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--size); height: var(--size);
  border-radius: 6px;
  background: linear-gradient(135deg, hsla(var(--hue),100%,72%,.95), hsla(calc(var(--hue) + 42),100%,55%,.54)), rgba(255,255,255,.28);
  box-shadow: 0 0 18px hsla(var(--hue),100%,62%,.62), 0 0 42px hsla(var(--hue),100%,55%,.2), inset 0 1px rgba(255,255,255,.8);
  transform-style: preserve-3d;
  opacity: .95;
  animation: blockGatherDiffuse var(--duration) cubic-bezier(.61,-0.01,.2,1.03) infinite;
  animation-delay: var(--delay);
}
.hero-flying-block:nth-child(3n) { border-radius: 50%; }
.hero-flying-block:nth-child(4n) { height: calc(var(--size) * .52); border-radius: 999px; }
.hero-flying-block:nth-child(5n) { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 2px; }
.energy-tunnel { width: min(720px, 94vw); height: 330px; display: grid; place-items: center; z-index: -1; transform: rotateX(62deg) rotateZ(-8deg) translateY(34px); opacity: .75; }
.energy-tunnel i { position: absolute; left: 50%; top: 50%; width: var(--trail-width); height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.78), rgba(244,114,182,.72), transparent); box-shadow: 0 0 20px rgba(34,211,238,.35); animation: trailFlight 2.6s ease-in-out infinite; animation-delay: var(--trail-delay); }
.hero-logo-portal { z-index: 3; width: min(600px, 78vw); display: grid; place-items: center; transform-style: preserve-3d; animation: portalFloat 5.4s ease-in-out infinite; }
.hero-logo-portal img { position: relative; z-index: 2; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 44px 86px rgba(0,0,0,.5)) drop-shadow(0 0 90px rgba(59,130,246,.32)); transform: rotateX(6deg) rotateY(-9deg) translateZ(38px); }
.logo-scan { position: absolute; z-index: 4; width: 100%; height: 75%; overflow: hidden; pointer-events: none; transform: rotateX(6deg) rotateY(-9deg) translateZ(42px); }
.logo-scan::before { content:""; position:absolute; inset:-25%; background:linear-gradient(180deg, transparent 0 44%, rgba(34,211,238,.38) 49%, rgba(255,255,255,.28) 50%, transparent 56%); mix-blend-mode:screen; animation:heroScan 3.1s ease-in-out infinite; }
.portal-rim { position: absolute; inset: 12% 7%; border-radius: 40px; border: 1px solid rgba(103,232,249,.32); background: conic-gradient(from 0deg, transparent, rgba(34,211,238,.24), transparent, rgba(244,114,182,.22), transparent); filter: drop-shadow(0 0 28px rgba(34,211,238,.24)); animation: rimSpin 8s linear infinite; }
.rim-two { inset: 6% 1%; border-color: rgba(244,114,182,.24); animation-duration: 12s; animation-direction: reverse; transform: rotateX(64deg); }
.rim-three { inset: 25% 18%; border-radius: 999px; border-color: rgba(251,191,36,.24); animation-duration: 6.8s; opacity: .8; }
.architecture-badge, .floating-code { border: 1px solid rgba(255,255,255,.16); background: linear-gradient(135deg, rgba(15,23,42,.68), rgba(30,41,59,.38)); backdrop-filter: blur(16px); box-shadow: 0 18px 55px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.09); }
.architecture-badge { z-index: 5; min-width: 74px; padding: 11px 14px; border-radius: 999px; color: white; font-size: .75rem; font-weight: 900; letter-spacing: .12em; animation: badgeOrbit 5.2s ease-in-out infinite; }
.badge-ui { left: 8%; top: 20%; color: #67e8f9; }
.badge-api { right: 6%; top: 31%; color: #c4b5fd; animation-delay: -1.2s; }
.badge-data { left: 8%; bottom: 25%; color: #f9a8d4; animation-delay: -2.4s; }
.badge-cloud { right: 12%; bottom: 18%; color: #fde68a; animation-delay: -3.6s; }
.floating-code { position: absolute; z-index: 2; padding: 12px 15px; border-radius: 18px; color: rgba(255,255,255,.88); font: 850 .82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; animation: floatCode 5.8s ease-in-out infinite; }
.code-a { top: 26%; left: max(20px, calc((100vw - 1180px) / 2)); color: #5eead4; }
.code-b { top: 23%; right: max(20px, calc((100vw - 1180px) / 2 + 10px)); color: #67e8f9; animation-delay: -1.4s; }
.code-c { right: max(32px, calc((100vw - 1180px) / 2 + 70px)); bottom: 33%; color: #f9a8d4; animation-delay: -2.8s; }

.hero-content { position: relative; z-index: 8; width: min(980px, 100%); margin: -20px auto 0; }
.eyebrow, .section-heading span, .cinema-copy span, .contact-inner span { display: inline-flex; align-items: center; gap: 10px; color: #67e8f9; font-weight: 900; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.hero h1 { margin: 16px 0 0; font-size: clamp(3rem, 8.8vw, 8.2rem); line-height: .88; letter-spacing: -.075em; background: linear-gradient(90deg, #fff, #67e8f9 25%, #a78bfa 55%, #f472b6 80%, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 30px 80px rgba(0,0,0,.3); }
.hero-subtitle { margin: 22px auto 0; max-width: 740px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.78; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.primary-btn, .secondary-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.primary-btn { color: #00111f; background: linear-gradient(135deg, #6ee7ff, #3b82f6 50%, #f472b6); box-shadow: 0 14px 36px rgba(59,130,246,.35), inset 0 1px rgba(255,255,255,.68); }
.secondary-btn { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(34,211,238,.22); }
.scroll-mouse { position: absolute; left: 50%; bottom: 30px; z-index: 10; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(169,189,217,.9); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-mouse i { width: 25px; height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; position: relative; background: rgba(255,255,255,.04); }
.scroll-mouse i::after { content:""; position:absolute; left:50%; top:8px; width:5px; height:5px; border-radius:50%; background:#67e8f9; transform:translateX(-50%); box-shadow:0 0 18px #67e8f9; animation:mouseDot 1.6s ease-in-out infinite; }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 90px 0; }
.section-heading { display: grid; gap: 12px; margin-bottom: 28px; }
.section-heading.wide { max-width: 760px; }
.section-heading h2, .cinema-copy h2, .contact-inner h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 4.6rem); line-height: .95; letter-spacing: -.055em; text-wrap: balance; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.solution-card { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: var(--shadow); }
.solution-icon { font-size: 1.85rem; margin-bottom: 14px; }
.solution-card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.solution-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.cinema-section { position: relative; min-height: 320vh; }
.cinema-copy { position: sticky; top: 105px; z-index: 3; width: min(620px, calc(100% - 40px)); margin: 0 auto -120px; text-align: center; display: grid; gap: 10px; }
.cinema-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1200px; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.13), transparent 36rem); }
.stage-grid { position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(148,163,184,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.1) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%); }
.data-river { position: absolute; width: min(760px, 92vw); height: min(760px, 92vw); border-radius: 999px; border: 1px solid rgba(34,211,238,.24); box-shadow: inset 0 0 80px rgba(34,211,238,.08), 0 0 120px rgba(139,92,246,.12); transform: rotate(calc(var(--flow, 0) * 180deg)); }
.data-river::before, .data-river::after { content:""; position:absolute; inset:10%; border-radius:inherit; border:1px dashed rgba(244,114,182,.28); animation: rimSpin 18s linear infinite; }
.data-river::after { inset:22%; border-color:rgba(251,191,36,.26); animation-direction: reverse; animation-duration: 13s; }
.stage-logo { position: absolute; left: 50%; top: 50%; width: min(520px, 72vw); z-index: 8; transform: translate(-50%, -50%); transition: filter .15s linear; filter: drop-shadow(0 30px 70px rgba(0,0,0,.46)) drop-shadow(0 0 40px rgba(34,211,238,.28)); }
.stage-logo img { object-fit: contain; }
.cinema-object { position: absolute; opacity: 0; transform-style: preserve-3d; will-change: transform, opacity; }
.code-panel { left: max(24px, calc((100vw - 1120px) / 2)); top: 22%; width: min(430px, 42vw); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: rgba(5,12,29,.88); box-shadow: var(--shadow); }
.panel-top { height: 42px; display:flex; align-items:center; gap:8px; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.08); }
.panel-top span { width:10px; height:10px; border-radius:50%; background:#ff5f57; }
.panel-top span:nth-child(2){ background:#ffbd2e; }.panel-top span:nth-child(3){ background:#28c840; }
.panel-top b { margin-inline-start: 8px; color: #bfefff; font-size: .82rem; }
pre { margin: 0; padding: 18px; color: #d8f4ff; line-height: 1.7; font-size: .88rem; white-space: pre-wrap; }
.device { border: 1px solid rgba(255,255,255,.16); background: rgba(2,6,23,.88); box-shadow: var(--shadow); overflow: hidden; }
.laptop { width: min(650px, 58vw); border-radius: 28px; right: max(26px, calc((100vw - 1120px) / 2)); bottom: 15%; }
.device-bar { height: 36px; display:flex; gap:7px; align-items:center; padding:0 16px; border-bottom:1px solid rgba(255,255,255,.08); }
.device-bar span { width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,.32); }
.device-screen { aspect-ratio: 16/9; overflow: hidden; }
.device-screen video, .phone video { width: 100%; height: 100%; object-fit: cover; }
.phone { width: min(210px, 24vw); aspect-ratio: 9/16; border-radius: 34px; left: 18%; bottom: 10%; padding: 10px; }
.phone-notch { width: 70px; height: 17px; border-radius: 0 0 14px 14px; background: #020614; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 2; }
.server-stack { right: 16%; top: 18%; width: 180px; display: grid; gap: 12px; }
.server-stack span { height: 52px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(139,92,246,.12)); }
.server-stack i { position:absolute; inset:auto 28px -28px; height: 3px; background:linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow:0 0 25px var(--cyan); }
.floating-preview { width: 235px; aspect-ratio: 16/10; border-radius: 24px; overflow:hidden; border:1px solid rgba(255,255,255,.14); box-shadow:0 26px 70px rgba(0,0,0,.42); }
.floating-preview img { width:100%; height:100%; object-fit:cover; }
.fp-a { left: 8%; top: 62%; }.fp-b { right: 6%; top: 48%; }.fp-c { left: 44%; bottom: 48px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { border-radius: 30px; border: 1px solid rgba(255,255,255,.13); background: rgba(7, 16, 38, .72); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(87,240,255,.36); }
.project-media { position: relative; aspect-ratio: 16/10; background:#071125; overflow:hidden; }
.project-media video, .project-poster { width:100%; height:100%; object-fit:cover; transform:scale(1.015); }
.project-poster { position:absolute; inset:0; opacity:0; transition: opacity .2s ease; }
.project-media.video-error .project-poster { opacity:1; }
.project-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, rgba(1,6,18,.72)); pointer-events:none; }
.project-tag { position:absolute; left:14px; top:14px; z-index:2; padding:7px 10px; border-radius:999px; font-size:11px; font-weight:900; color:#001121; background:linear-gradient(135deg, var(--cyan), #fff); }
.project-content { padding: 20px; display:grid; gap:12px; }
.project-content h3 { margin:0; font-size: 21px; letter-spacing:-.02em; }
.project-content p { margin:0; color:var(--muted); line-height:1.58; }
.project-features { display:flex; flex-wrap:wrap; gap:8px; }
.project-features span { padding:7px 9px; border:1px solid rgba(255,255,255,.11); border-radius:999px; color:#d7e9ff; font-size:12px; background:rgba(255,255,255,.045); }

.process-strip { width:min(880px, calc(100% - 40px)); margin: 10px auto 80px; padding: 18px; border:1px solid rgba(255,255,255,.13); border-radius:999px; background:rgba(255,255,255,.055); display:flex; align-items:center; justify-content:center; gap:16px; color:#e8f7ff; font-weight:900; }
.process-strip i { width:46px; height:2px; border-radius:99px; background:linear-gradient(90deg, var(--cyan), var(--pink)); }
.contact { width:min(var(--max), calc(100% - 40px)); margin: 0 auto 70px; }
.contact-inner { display:grid; grid-template-columns: 220px 1fr auto; align-items:center; gap:26px; padding:32px; border-radius:38px; border:1px solid rgba(87,240,255,.22); background: radial-gradient(circle at 10% 40%, rgba(47,181,255,.18), transparent 40%), rgba(5,13,31,.82); box-shadow:0 40px 120px rgba(0,0,0,.48); }
.contact-inner img { filter: drop-shadow(0 22px 40px rgba(0,0,0,.46)); }
.contact-inner p { margin: 10px 0 0; color: var(--muted); }
.contact-inner .primary-btn { white-space: nowrap; }

.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
html[lang="ar"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[lang="ar"] .project-tag { left: auto; right: 14px; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: -.035em; line-height: 1.08; }
html[lang="ar"] .eyebrow, html[lang="ar"] .section-heading span, html[lang="ar"] .cinema-copy span, html[lang="ar"] .contact-inner span { letter-spacing: .09em; }

@keyframes blockGatherDiffuse { 0% { transform: translate3d(var(--from-x), var(--from-y), -160px) rotateX(72deg) rotateY(var(--rotate)) rotateZ(0deg) scale(.52); opacity:.12; filter: blur(2px) saturate(.9); } 17% { opacity:.95; filter:blur(0) saturate(1.25); } 39% { transform: translate3d(calc(var(--to-x) * 1.25), calc(var(--to-y) * 1.25), 105px) rotateX(16deg) rotateY(calc(var(--rotate) + 80deg)) rotateZ(130deg) scale(1.12); opacity:1; } 52% { transform: translate3d(var(--to-x), var(--to-y), 150px) rotateX(0deg) rotateY(calc(var(--rotate) + 150deg)) rotateZ(260deg) scale(.78); opacity:.98; } 72% { transform: translate3d(calc(var(--to-x) * -.8), calc(var(--to-y) * -.8), 86px) rotateX(54deg) rotateY(calc(var(--rotate) + 240deg)) rotateZ(420deg) scale(1.06); opacity:.74; } 100% { transform: translate3d(calc(var(--from-x) * -.84), calc(var(--from-y) * -.88), -220px) rotateX(96deg) rotateY(calc(var(--rotate) + 420deg)) rotateZ(540deg) scale(.44); opacity:.08; filter: blur(2.5px) saturate(.85); } }
@keyframes theaterBreath { 0%,100% { transform: rotateX(7deg) rotateY(-8deg) translateY(0) scale(1); } 50% { transform: rotateX(12deg) rotateY(8deg) translateY(-12px) scale(1.035); } }
@keyframes portalFloat { 0%,100% { transform: rotateX(0) rotateY(0) translateY(0) scale(1); } 50% { transform: rotateX(6deg) rotateY(-8deg) translateY(-18px) scale(1.03); } }
@keyframes rimSpin { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
@keyframes heroScan { 0% { transform:translateY(-70%); opacity:0; } 25%,78% { opacity:1; } 100% { transform:translateY(70%); opacity:0; } }
@keyframes trailFlight { 0% { transform:translate3d(-230px, var(--trail-y), 0) scaleX(.16); opacity:0; } 42% { opacity:.9; } 100% { transform:translate3d(170px, calc(var(--trail-y) * -.35), 0) scaleX(1.1); opacity:0; } }
@keyframes badgeOrbit { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(0,-15px,34px) scale(1.06); } }
@keyframes floatCode { 0%,100% { transform:translateY(0) rotate(-1deg); } 50% { transform:translateY(-18px) rotate(1.4deg); } }
@keyframes mouseDot { 0% { transform:translate(-50%,0); opacity:0; } 30% { opacity:1; } 100% { transform:translate(-50%,17px); opacity:0; } }
@keyframes gridFloat { from { background-position:0 0; } to { background-position:56px 56px; } }
@keyframes auroraMove { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(22px, -18px, 0) scale(1.08); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } }
@media (max-width: 1060px) { .nav-links { display:none; } .solution-grid, .project-grid { grid-template-columns: repeat(2, 1fr); } .contact-inner { grid-template-columns: 1fr; text-align:center; } .contact-inner img { width: 240px; margin:auto; } .code-panel { width: 46vw; } .laptop { width: 62vw; } }
@media (max-width: 720px) { .hero-cinematic { min-height:auto; padding: 105px 16px 76px; } .block-theater { width:100%; height:370px; min-height:370px; margin-top:-12px; } .hero-logo-portal { width:min(390px, 86vw); } .hero-flying-block:nth-child(n + 58) { display:none; } .floating-code { display:none; } .architecture-badge { font-size:.65rem; min-width:58px; padding:8px 10px; } .badge-ui { left:2%; top:22%; } .badge-api { right:1%; top:34%; } .badge-data { left:4%; bottom:28%; } .badge-cloud { right:7%; bottom:22%; } .hero h1 { font-size: clamp(2.55rem, 14vw, 4.9rem); } .hero-subtitle { font-size: .98rem; } .scroll-mouse { display:none; } .section { width: min(100% - 28px, var(--max)); padding:70px 0; } .solution-grid, .project-grid { grid-template-columns: 1fr; } .cinema-copy { top: 90px; } .code-panel, .server-stack, .fp-b, .fp-c { display:none; } .laptop { width: 86vw; right:7vw; bottom:20%; } .phone { width: 130px; left: 8%; bottom: 12%; } .stage-logo { width: 74vw; } .process-strip { border-radius: 28px; flex-wrap: wrap; } .process-strip i { width: 28px; } .contact { width: calc(100% - 28px); } .contact-inner { padding:24px; border-radius:30px; } }

/* V6.4 polish: reduced copy, real portfolio data, stable project media */
:root {
  --panel: rgba(4, 13, 32, .76);
  --line: rgba(148, 163, 184, .16);
  --max: 1200px;
}
body {
  background:
    radial-gradient(circle at 14% 8%, rgba(34, 211, 238, .16), transparent 26rem),
    radial-gradient(circle at 78% 12%, rgba(59, 130, 246, .18), transparent 28rem),
    radial-gradient(circle at 54% 88%, rgba(139, 92, 246, .15), transparent 34rem),
    #020614;
}
.site-header {
  top: 14px;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(1, 8, 24, .86), rgba(10, 22, 50, .64));
  border-color: rgba(103, 232, 249, .16);
}
.brand span { font-size: .98rem; }
.nav-links a, .language-toggle { font-size: .84rem; padding: 9px 13px; }
.hero-cinematic {
  min-height: 112svh;
  padding-top: 100px;
  padding-bottom: 82px;
}
.block-theater { margin-top: -18px; }
.hero-logo-portal { width: min(620px, 74vw); }
.hero-content {
  max-width: 900px;
  margin-top: -16px;
}
.hero h1 {
  font-size: clamp(3.35rem, 9vw, 8.7rem);
  line-height: .86;
  max-width: 1040px;
  margin-inline: auto;
}
.hero-subtitle {
  max-width: 760px;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  color: #c3d7ee;
}
.eyebrow { margin-bottom: 14px; }
.floating-code {
  opacity: .78;
  font-size: .78rem;
  border-color: rgba(125, 211, 252, .18);
}
.proof-bar {
  width: min(1020px, calc(100% - 36px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.proof-bar span {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, .16);
  color: #eaf7ff;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(34, 211, 238, .04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: .86rem;
  font-weight: 850;
}
.section { padding: 88px 0; }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .cinema-copy h2 {
  max-width: 840px;
  font-size: clamp(2.15rem, 4.5vw, 5.2rem);
}
.solution-grid { gap: 16px; }
.solution-card {
  min-height: 230px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(4, 13, 32, .68);
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(34,211,238,.18), transparent 36%), radial-gradient(circle at 90% 95%, rgba(139,92,246,.14), transparent 34%);
  z-index: -1;
}
.solution-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #061426;
  background: linear-gradient(135deg, var(--cyan), #ffffff);
  font-weight: 950;
  box-shadow: 0 18px 45px rgba(34,211,238,.18);
}
.solution-card h3 { margin-top: 22px; font-size: 1.3rem; }
.solution-card p { font-size: .98rem; max-width: 95%; }
.cinema-section { height: 260vh; }
.cinema-copy { max-width: 900px; }
.cinema-sticky { background: radial-gradient(circle at 50% 40%, rgba(34,211,238,.09), transparent 32%), linear-gradient(180deg, rgba(2,6,23,0), rgba(2,6,23,.68)); }
.stage-logo { width: min(560px, 60vw); }
.code-panel { width: min(410px, 38vw); }
pre { font-size: .86rem; }
.device-screen, .project-media, .phone {
  position: relative;
}
.device-screen .project-poster,
.phone .project-poster,
.project-media .project-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity .25s ease;
}
.device-screen video,
.phone video,
.project-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .28s ease;
  z-index: 1;
}
.video-ready video,
.project-media.video-ready video,
.device-screen.video-ready video,
.phone.video-ready video { opacity: 1; }
.video-error video { display: none; }
.project-media::after { z-index: 2; }
.project-tag { z-index: 3; }
.project-grid { gap: 20px; align-items: stretch; }
.project-card {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.03)), rgba(5, 13, 31, .78);
  box-shadow: 0 24px 78px rgba(0,0,0,.36);
}
.project-card:hover { transform: translateY(-7px); }
.project-media { aspect-ratio: 16/9; }
.project-content { padding: 18px 18px 20px; gap: 10px; }
.project-content h3 { font-size: 1.15rem; line-height: 1.22; }
.project-content p { font-size: .92rem; line-height: 1.5; color: #b7cbe4; }
.project-features span { font-size: 11px; padding: 6px 9px; }
.process-strip {
  margin-top: 0;
  margin-bottom: 64px;
  max-width: 760px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(34,211,238,.035));
}
.contact-inner {
  grid-template-columns: 190px 1fr auto;
  padding: 28px;
  border-radius: 32px;
}
.contact-inner h2 { margin: 6px 0 0; }
.contact-inner p { max-width: 620px; }
html[lang="ar"] .hero-subtitle,
html[lang="ar"] .project-content p,
html[lang="ar"] .solution-card p { line-height: 1.72; }
html[lang="ar"] .hero h1 { letter-spacing: -.06em; }
html[lang="ar"] .brand span { letter-spacing: 0; }
@media (max-width: 1060px) {
  .proof-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-logo-portal { width: min(540px, 82vw); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-cinematic { padding-top: 96px; }
  .block-theater { height: 360px; min-height: 360px; }
  .hero-logo-portal { width: min(390px, 88vw); }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); line-height: .92; }
  .proof-bar { grid-template-columns: 1fr 1fr; width: calc(100% - 28px); margin-top: 22px; }
  .proof-bar span { min-height: 46px; font-size: .78rem; padding: 8px; border-radius: 15px; }
  .hero-actions { gap: 10px; }
  .primary-btn, .secondary-btn { padding: 12px 14px; font-size: .88rem; }
  .section-heading h2, .cinema-copy h2 { font-size: clamp(2rem, 10vw, 3.25rem); }
  .solution-card { min-height: auto; padding: 22px; }
  .project-card { border-radius: 24px; }
  .project-content { padding: 16px; }
  .project-content p { font-size: .9rem; }
  .cinema-section { height: 230vh; }
  .stage-logo { width: 76vw; }
  .contact-inner img { width: 210px; }
}

/* V6.5 Lite polish: lighter content, client logos, stable project fallbacks */
.section-note {
  margin: -2px 0 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}
.clients { padding-top: 35px; padding-bottom: 72px; }
.client-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(34,211,238,.035)), rgba(5, 13, 31, .7);
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.client-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 20px 18px;
  animation: clientMarquee 22s linear infinite;
}
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-logo {
  width: 230px;
  height: 112px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.12), transparent 60%), rgba(255,255,255,.045);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.client-logo:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: rgba(103,232,249,.42);
  box-shadow: 0 22px 60px rgba(34,211,238,.14);
  background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.18), transparent 62%), rgba(255,255,255,.075);
}
.client-logo img {
  max-width: 74%;
  max-height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.34));
}
.client-logo img[src*="mcdc"] { max-width: 58%; max-height: 86%; }
.client-logo img[src*="kemit"] { max-width: 50%; image-rendering: auto; }
.contact-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.contact-actions .secondary-btn { min-width: 118px; }
.project-media.video-error .project-poster,
.device-screen.video-error .project-poster,
.phone.video-error .project-poster { opacity: 1; }
@keyframes clientMarquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
html[dir="rtl"] .client-track { animation-name: clientMarqueeRtl; }
@keyframes clientMarqueeRtl { from { transform: translateX(calc(-50% - 9px)); } to { transform: translateX(0); } }
@media (max-width: 720px) {
  .clients { padding-top: 20px; padding-bottom: 56px; }
  .client-logo { width: 180px; height: 92px; border-radius: 20px; }
  .contact-actions { justify-content: center; }
}

/* V6.6 Form + Contact Polish: non-sticky method title, better contact, lighter copy */
.cinema-section {
  height: 235vh;
  padding-top: 78px;
}
.cinema-copy {
  position: relative !important;
  top: auto !important;
  z-index: 4;
  margin: 0 auto 28px !important;
  max-width: 720px !important;
  padding: 0 18px;
  pointer-events: none;
}
.cinema-copy h2 {
  font-size: clamp(2rem, 4.1vw, 4.3rem) !important;
  line-height: 1.02 !important;
  text-shadow: 0 18px 60px rgba(0,0,0,.58);
}
.cinema-copy span { opacity: .9; }
.cinema-sticky { z-index: 1; }

.contact {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 78px;
}
.contact-shell {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 22px;
  align-items: stretch;
}
.contact-info-card,
.project-form {
  border: 1px solid rgba(125, 211, 252, .18);
  background:
    radial-gradient(circle at 12% 10%, rgba(34,211,238,.17), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(139,92,246,.15), transparent 38%),
    rgba(5, 13, 31, .82);
  box-shadow: 0 32px 95px rgba(0,0,0,.38);
  backdrop-filter: blur(16px);
}
.contact-info-card {
  border-radius: 34px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
  position: relative;
}
.contact-info-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(34,211,238,.2), transparent 67%);
  filter: blur(2px);
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card img {
  width: 220px;
  max-width: 78%;
  margin-bottom: 6px;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.46));
}
.contact-info-card span,
.project-form label span {
  color: #67e8f9;
  font-weight: 900;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contact-info-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.contact-info-card p {
  margin: 0;
  color: #c3d7ee;
  line-height: 1.65;
  max-width: 34rem;
}
.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.contact-method {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.contact-method:hover {
  transform: translateY(-3px);
  border-color: rgba(103,232,249,.38);
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(255,255,255,.055));
}
.contact-method b {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.contact-method strong {
  color: #f3fbff;
  font-size: .98rem;
  overflow-wrap: anywhere;
}
.project-form {
  border-radius: 34px;
  padding: 28px;
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project-form label {
  display: grid;
  gap: 9px;
}
.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 17px;
  background: rgba(2, 8, 23, .72);
  color: #eff8ff;
  padding: 13px 14px;
  outline: none;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.project-form textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.55;
}
.project-form select { cursor: pointer; }
.project-form input::placeholder,
.project-form textarea::placeholder { color: rgba(203, 213, 225, .52); }
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: rgba(103,232,249,.62);
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
  background: rgba(4, 13, 32, .92);
}
.full-field { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.form-actions .primary-btn,
.form-actions .secondary-btn {
  border: 0;
  cursor: pointer;
  min-width: 165px;
  justify-content: center;
}
.form-status {
  min-height: 20px;
  margin: -6px 0 0;
  color: #a7f3d0;
  font-size: .92rem;
}
html[lang="ar"] .contact-info-card span,
html[lang="ar"] .project-form label span { letter-spacing: .06em; }
html[lang="ar"] .contact-info-card h2 { letter-spacing: -.04em; }
html[lang="ar"] .contact-info-card::after { right: auto; left: -80px; }

@media (max-width: 980px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-info-card img { width: 210px; }
}
@media (max-width: 720px) {
  .cinema-section { height: 215vh; padding-top: 56px; }
  .cinema-copy { margin-bottom: 8px !important; }
  .cinema-copy h2 { font-size: clamp(1.9rem, 9vw, 3rem) !important; }
  .contact { width: calc(100% - 28px); margin-bottom: 58px; }
  .contact-info-card,
  .project-form { border-radius: 26px; padding: 20px; }
  .contact-info-card img { width: 190px; margin-inline: auto; }
  .contact-info-card { text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions .primary-btn,
  .form-actions .secondary-btn { width: 100%; }
}
