:root {
  --bg: #05080f;
  --panel: #0a1220;
  --panel-strong: #101b2d;
  --text: #f3f7ff;
  --muted: #a9b8d2;
  --line: rgba(116, 176, 255, 0.22);
  --blue: #1d9bff;
  --blue-soft: #75c8ff;
  --cyan: #29f3ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(29, 155, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 85% 4%, rgba(41, 243, 255, 0.12), transparent 24rem),
    linear-gradient(135deg, #03050a 0%, #07101d 45%, #03050a 100%);
  min-height: 100vh;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
}

.cursor-light {
  position: fixed;
  top: -190px;
  left: -190px;
  z-index: 0;
  width: 380px;
  height: 380px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 155, 255, 0.18), rgba(41, 243, 255, 0.06) 38%, transparent 68%);
  mix-blend-mode: screen;
  transition: transform 80ms linear;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.quick-stats,
.contact-links,
.filter-bar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #03101d;
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.language-toggle {
  min-width: 48px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.language-toggle:hover {
  border-color: rgba(41, 243, 255, 0.62);
  color: var(--blue-soft);
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--blue-soft);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 52px;
  min-height: calc(100vh - 78px);
  padding: 58px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

html[dir="rtl"] h1 {
  max-width: 780px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.32;
}

html[dir="rtl"] h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.34;
}

html[dir="rtl"] .section-heading {
  max-width: 860px;
}

html[dir="rtl"] .hero-text,
html[dir="rtl"] .intro-band p:last-child,
html[dir="rtl"] .contact-section p:last-child,
html[dir="rtl"] .impact-strip p,
html[dir="rtl"] .service-card p,
html[dir="rtl"] .modal-content p {
  line-height: 2;
}

html[dir="rtl"] .eyebrow {
  margin-bottom: 20px;
}

html[dir="rtl"] .hero-text {
  margin-top: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #02101c;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.quick-stats {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
}

.quick-stats span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-stats strong {
  color: var(--text);
  font-size: 18px;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(117, 200, 255, 0.36);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.58), transparent 46%);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(41, 243, 255, 0.18) 50%, transparent 100%);
  height: 28%;
  opacity: 0.26;
  animation: scanPortrait 6.5s ease-in-out infinite;
}

.visual-system {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.system-ring,
.system-dot,
.system-line {
  position: absolute;
  display: block;
}

.system-ring {
  border: 1px solid rgba(117, 200, 255, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(29, 155, 255, 0.12), 0 0 28px rgba(41, 243, 255, 0.1);
}

.ring-one {
  top: -34px;
  left: -34px;
  width: 142px;
  height: 142px;
  animation: rotateSoft 18s linear infinite;
}

.ring-two {
  right: -42px;
  bottom: 18%;
  width: 184px;
  height: 184px;
  border-style: dashed;
  animation: rotateSoft 24s linear infinite reverse;
}

.system-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(41, 243, 255, 0.8);
}

.dot-one {
  top: 48px;
  left: 86px;
  animation: pulseDot 2.8s ease-in-out infinite;
}

.dot-two {
  right: 40px;
  bottom: 28%;
  animation: pulseDot 2.8s ease-in-out infinite 1.1s;
}

.system-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 200, 255, 0.7), transparent);
  transform-origin: center;
}

.line-one {
  top: 23%;
  right: -10%;
  width: 42%;
  transform: rotate(-18deg);
  animation: lineGlow 4s ease-in-out infinite;
}

.line-two {
  bottom: 19%;
  left: -8%;
  width: 48%;
  transform: rotate(18deg);
  animation: lineGlow 4s ease-in-out infinite 1.4s;
}

.section {
  padding: 86px 0;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.impact-strip > div {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 155, 255, 0.16), transparent 52%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.impact-number {
  display: inline-flex;
  align-items: start;
  color: var(--text);
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 800;
  line-height: 0.9;
}

.impact-number::after {
  content: "+";
  color: var(--cyan);
  font-size: 0.45em;
  line-height: 1;
}

.impact-strip p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.intro-band,
.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p:last-child,
.contact-section p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 27, 45, 0.9), rgba(10, 18, 32, 0.72));
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(29, 155, 255, 0.12);
  filter: blur(2px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 243, 255, 0.58);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26), 0 0 26px rgba(29, 155, 255, 0.14);
}

.tool-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(117, 200, 255, 0.38);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 22px;
  font-weight: 800;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.035);
}

.tool-ps {
  color: #9ad8ff;
  background: linear-gradient(135deg, rgba(0, 92, 255, 0.22), rgba(0, 20, 44, 0.94));
}

.tool-ai {
  color: #ffd08a;
  background: linear-gradient(135deg, rgba(255, 154, 0, 0.24), rgba(45, 22, 0, 0.94));
}

.tool-blender {
  color: #ffb16d;
  background: radial-gradient(circle at 62% 40%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(255, 125, 0, 0.26), rgba(20, 42, 68, 0.94));
}

.tool-genai {
  color: #8ff7ff;
  background: radial-gradient(circle at 50% 50%, rgba(41, 243, 255, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(29, 155, 255, 0.2), rgba(8, 16, 28, 0.96));
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  font-size: 22px;
}

.service-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.65;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-button.is-active {
  color: #03101d;
  background: var(--blue-soft);
}

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

.work-card,
.work-button {
  border-radius: 8px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.work-card:hover {
  border-color: rgba(41, 243, 255, 0.58);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3), 0 0 28px rgba(29, 155, 255, 0.16);
}

.work-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.22;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

html[dir="rtl"] .work-button {
  text-align: right;
}

.work-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease, filter 650ms ease;
}

.work-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 18px;
  background: linear-gradient(to top, rgba(1, 6, 13, 0.95), rgba(1, 6, 13, 0));
}

.work-overlay span,
.work-overlay small {
  color: var(--blue-soft);
  font-weight: 800;
}

.work-overlay strong {
  font-size: 22px;
}

.work-button:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.04);
}

.work-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 35%, rgba(41, 243, 255, 0.18), transparent 60%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 220ms ease, transform 650ms ease;
}

.work-button:hover::after {
  opacity: 1;
  transform: translateX(40%);
}

.contact-section {
  margin-bottom: 46px;
}

.contact-links {
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.project-modal {
  width: min(1040px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #07101c;
  box-shadow: var(--shadow);
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 54px);
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(16, 27, 45, 0.94);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.modal-content {
  display: grid;
  gap: 22px;
  padding: 0 24px 24px;
}

.modal-content h3 {
  font-size: clamp(28px, 4vw, 48px);
}

.modal-content p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.modal-gallery img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease var(--delay, 0ms), transform 700ms ease var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes scanPortrait {
  0%,
  100% {
    transform: translateY(-42%);
  }

  50% {
    transform: translateY(330%);
  }
}

@keyframes rotateSoft {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes lineGlow {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.8;
  }
}

@media (max-width: 900px) {
  .hero-section,
  .intro-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .services-grid,
  .work-grid,
  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .language-toggle {
    align-self: stretch;
  }

  .hero-section {
    padding-top: 34px;
    gap: 30px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .ring-one {
    width: 112px;
    height: 112px;
  }

  .ring-two {
    width: 138px;
    height: 138px;
  }

  .section {
    padding: 58px 0;
  }

  .services-grid,
  .work-grid,
  .impact-strip,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .work-button {
    aspect-ratio: 1 / 1.18;
  }

  .cursor-light {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .work-card {
    transform: none !important;
  }
}
