/* Creative full-width animated navigation */
.site-nav {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  min-height: 86px;
  margin: 0;
  padding: 13px clamp(18px, 5vw, 72px);
  border-width: 0 0 1px;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, .96), rgba(8, 47, 73, .9) 48%, rgba(2, 6, 23, .96)),
    rgba(2, 6, 23, .94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .34);
  overflow: hidden;
}

.site-nav::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #f97316, #14b8a6, #0ea5e9);
  background-size: 220% 100%;
  animation: navFlow 4.8s linear infinite;
}

.site-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(14, 165, 233, .16), transparent 22%),
    radial-gradient(circle at 82% 50%, rgba(249, 115, 22, .14), transparent 20%);
  pointer-events: none;
}

@keyframes navFlow {
  to { background-position: -220% 0; }
}

.brand,
.nav-links,
.nav-cta {
  position: relative;
  z-index: 2;
}

.brand {
  padding: 7px 12px;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 0 22px rgba(14, 165, 233, .08), 0 10px 28px rgba(0,0,0,.18);
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 211, 252, .35);
  box-shadow: 0 0 22px rgba(125, 211, 252, .22);
  mix-blend-mode: screen;
  filter: contrast(1.45) brightness(1.12);
}

.brand::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 50%;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7dd3fc, #f97316, #14b8a6, #7dd3fc);
  transform: translateY(-50%);
  filter: blur(5px);
  opacity: .42;
  pointer-events: none;
}

.brand::after {
  content: '';
  position: absolute;
  inset-inline-start: 11px;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 28%),
    rgba(2, 6, 23, .35);
  transform: translateY(-50%);
  box-shadow: inset 0 0 18px rgba(14,165,233,.16);
  pointer-events: none;
}

.brand img {
  position: relative;
  z-index: 2;
  background: transparent;
  border-color: transparent;
  mix-blend-mode: screen;
  filter: contrast(1.9) brightness(1.28) saturate(.85) drop-shadow(0 0 8px rgba(255,255,255,.35));
}

.brand:hover::before {
  opacity: .5;
  filter: blur(5px);
}

.brand:hover img {
  transform: scale(1.06);
  transition: transform .22s ease, filter .22s ease;
  filter: contrast(2.1) brightness(1.38) saturate(.9) drop-shadow(0 0 12px rgba(125,211,252,.65));
}

.brand strong {
  color: #f8fbfd;
  text-shadow: 0 0 18px rgba(125, 211, 252, .2);
}

.brand strong {
  display: none;
}

.brand {
  padding: 6px;
  min-width: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.brand::before,
.brand::after {
  display: none;
}

.brand img {
  box-shadow: none;
  filter: contrast(1.15);
  mix-blend-mode: normal;
  border: 0;
  background: transparent;
}

.nav-links {
  padding: 6px;
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 999px;
  background: rgba(2, 6, 23, .28);
  box-shadow: inset 0 0 24px rgba(255,255,255,.04);
}

.nav-links a {
  position: relative;
  min-width: 92px;
  text-align: center;
  border-radius: 999px;
  color: #cbd5e1;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(249,115,22,.14));
  opacity: 0;
  transition: opacity .22s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #fb923c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  background: transparent;
}

.nav-links a:hover::before,
.nav-links a:focus-visible::before {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #f97316 45%, #0ea5e9 130%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 42px rgba(249, 115, 22, .32), 0 0 40px rgba(14, 165, 233, .14);
  overflow: hidden;
}

.lang-toggle {
  position: relative;
  z-index: 2;
  min-width: 54px;
  min-height: 42px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 0 18px rgba(14, 165, 233, .08);
  cursor: pointer;
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(251, 146, 60, .52);
  background: rgba(14, 165, 233, .18);
  outline: none;
}

html[dir='ltr'] body {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Arial, sans-serif;
}

html[dir='ltr'] .hero-copy,
html[dir='ltr'] .section,
html[dir='ltr'] .contact {
  text-align: left;
}

html[dir='ltr'] h1 {
  max-width: 11ch;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: -70% -45%;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(90%);
  animation: ctaSweep 3.2s ease-in-out infinite;
}

@keyframes ctaSweep {
  0%, 45% { transform: translateX(90%); }
  70%, 100% { transform: translateX(-90%); }
}

.hero {
  padding-top: 128px;
}

@media (max-width: 920px) {
  .site-nav {
    min-height: 78px;
    padding: 10px 14px;
  }

  .brand {
    border-radius: 8px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 118px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    top: 0;
    left: 0;
    right: 0;
    min-height: 72px;
  }

  .brand {
    padding: 5px 8px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    min-height: 42px;
    padding-inline: 12px;
  }
}

/* Hero copy polish: cleaner scale, less bulky height */
.hero-grid {
  align-items: center;
}

.hero-copy {
  max-width: 560px;
  padding: 28px 30px;
  border-color: rgba(125, 211, 252, .18);
  background:
    linear-gradient(135deg, rgba(2, 6, 23, .58), rgba(8, 47, 73, .34)),
    rgba(2, 6, 23, .24);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-copy::before {
  content: '';
  display: block;
  width: 74px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7dd3fc, #fb923c);
  box-shadow: 0 0 22px rgba(14, 165, 233, .28);
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
  font-size: .86rem;
  padding: 7px 13px;
}

.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2.45rem, 4.2vw, 4.75rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 520px;
  margin-top: 18px;
  font-size: clamp(.98rem, 1.25vw, 1.15rem);
  line-height: 1.85;
  color: #d7e6f2;
}

.hero-actions {
  margin-top: 24px;
}

.hero-actions .button {
  min-height: 48px;
  padding: 11px 18px;
}

html[dir='ltr'] .hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 3.8vw, 4.35rem);
}

@media (max-width: 920px) {
  .hero-copy {
    max-width: 100%;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 8vw, 4.2rem);
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-copy .lead {
    font-size: .96rem;
    line-height: 1.75;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Premium bilingual typography */
body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Arial, sans-serif;
}

h1,
h2,
.brand strong,
.profile-title strong {
  font-family: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h3,
.service-card small,
.orbit-card strong,
.holo-panel strong,
.stat strong,
.floating-spec strong {
  font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  font-weight: 700;
}

html[dir='ltr'] body {
  font-family: 'Inter', 'IBM Plex Sans Arabic', 'Segoe UI', Arial, sans-serif;
}

html[dir='ltr'] h1,
html[dir='ltr'] h2,
html[dir='ltr'] .brand strong,
html[dir='ltr'] .profile-title strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

html[dir='ltr'] h3,
html[dir='ltr'] .service-card small,
html[dir='ltr'] .orbit-card strong,
html[dir='ltr'] .holo-panel strong,
html[dir='ltr'] .stat strong,
html[dir='ltr'] .floating-spec strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Final hero placement and brighter 3D logo */
.hero-grid {
  align-items: start;
  padding-top: 22px;
}

.hero-copy {
  margin-top: 0;
  transform: translateY(-22px);
}

.hero-stage {
  margin-top: 0;
  transform: translateY(-24px);
}

.center-badge {
  background:
    radial-gradient(circle at 50% 46%, rgba(2, 6, 23, .7) 0 30%, rgba(8, 47, 73, .46) 31% 50%, rgba(14, 165, 233, .2) 51% 64%, transparent 65%),
    conic-gradient(from 210deg, rgba(125, 211, 252, .96), rgba(249, 115, 22, .8), rgba(20, 184, 166, .72), rgba(125, 211, 252, .96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .24),
    0 0 0 16px rgba(14, 165, 233, .08),
    0 30px 85px rgba(0, 0, 0, .32),
    0 0 120px rgba(125, 211, 252, .52),
    0 0 62px rgba(249, 115, 22, .22),
    inset 0 0 40px rgba(255, 255, 255, .12),
    inset 0 -22px 40px rgba(2, 6, 23, .24);
}

.center-badge img {
  mix-blend-mode: multiply;
  opacity: 1;
  filter: contrast(2.75) brightness(.58) saturate(.72) drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 18px rgba(125,211,252,.45));
}

.badge-halo {
  opacity: .95;
  filter: blur(6px);
}

.portal-glow {
  opacity: 1;
  filter: blur(3px) saturate(1.4);
}

@media (max-width: 920px) {
  .hero-grid {
    padding-top: 0;
  }

  .hero-copy {
    transform: translateY(-10px);
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-stage {
    transform: none;
  }
}

/* Restore original logo identity while removing the white JPG background visually */
.center-badge {
  background:
    radial-gradient(circle at 50% 48%, rgba(2, 6, 23, .86) 0 34%, rgba(8, 47, 73, .56) 35% 54%, rgba(14, 165, 233, .18) 55% 66%, transparent 67%),
    conic-gradient(from 210deg, rgba(125, 211, 252, .9), rgba(249, 115, 22, .72), rgba(20, 184, 166, .64), rgba(125, 211, 252, .9));
}

.center-badge img {
  display: block;
  width: 78%;
  height: 78%;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: screen;
  filter:
    invert(1)
    grayscale(1)
    contrast(2.55)
    brightness(1.24)
    drop-shadow(0 0 2px rgba(255,255,255,.95))
    drop-shadow(0 0 18px rgba(125,211,252,.52));
  animation: logoFloat 3.2s ease-in-out infinite alternate;
}

.center-badge:hover img {
  mix-blend-mode: screen;
  filter:
    invert(1)
    grayscale(1)
    contrast(2.8)
    brightness(1.34)
    drop-shadow(0 0 3px rgba(255,255,255,1))
    drop-shadow(0 0 24px rgba(125,211,252,.72));
}

/* Solar-system service orbit around logo */
.service-orbit {
  position: absolute;
  z-index: 13;
  right: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.service-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(125, 211, 252, .22);
  border-top-color: rgba(249, 115, 22, .52);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(14, 165, 233, .12);
}

.orbit-track-one {
  width: 520px;
  height: 250px;
  transform: translate3d(50%, -50%, 282px) rotateZ(28deg) rotateX(-58deg);
  animation: orbitSpin 14s linear infinite;
}

.orbit-track-two {
  width: 610px;
  height: 315px;
  transform: translate3d(50%, -50%, 270px) rotateZ(28deg) rotateX(-58deg);
  animation: orbitSpinReverse 18s linear infinite;
}

.orbit-track-three {
  width: 700px;
  height: 380px;
  transform: translate3d(50%, -50%, 258px) rotateZ(28deg) rotateX(-58deg);
  animation: orbitSpin 22s linear infinite;
}

@keyframes orbitSpin {
  to { rotate: 360deg; }
}

@keyframes orbitSpinReverse {
  to { rotate: -360deg; }
}

.service-orbit .orbit-card {
  position: absolute;
  min-width: 172px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  pointer-events: auto;
  transform: rotateX(58deg) rotateZ(-28deg);
}

.service-orbit .orbit-card .icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  color: #fed7aa;
  filter: drop-shadow(0 0 10px rgba(249,115,22,.35));
}

.service-orbit .orbit-card strong,
.service-orbit .orbit-card span {
  text-align: right;
}

.orbit-track-one .orbit-card {
  right: -72px;
  top: 50%;
  margin-top: -35px;
}

.orbit-track-two .orbit-card {
  left: -68px;
  top: 38%;
}

.orbit-track-three .orbit-card {
  right: 42%;
  bottom: -38px;
}

.portal-scene:hover .service-orbit {
  animation-play-state: paused;
}

.portal-scene:hover .service-orbit::before {
  border-color: rgba(125, 211, 252, .35);
  border-top-color: rgba(249, 115, 22, .82);
}

html[dir='ltr'] .service-orbit .orbit-card strong,
html[dir='ltr'] .service-orbit .orbit-card span {
  text-align: left;
}

@media (max-width: 920px) {
  .orbit-track-one { width: 480px; height: 230px; }
  .orbit-track-two { width: 550px; height: 280px; }
  .orbit-track-three { width: 610px; height: 330px; }
}

@media (max-width: 560px) {
  .orbit-track-one { width: 430px; height: 210px; }
  .orbit-track-two { width: 500px; height: 260px; }
  .orbit-track-three { width: 560px; height: 310px; }
  .service-orbit .orbit-card {
    min-width: 148px;
    grid-template-columns: 28px 1fr;
  }
  .service-orbit .orbit-card .icon {
    width: 22px;
    height: 22px;
  }
}
