:root {
  --c: #1ae8f0;
  --c2: #06b0c8;
  --c3: rgba(26, 232, 240, 0.12);
  --c4: rgba(26, 232, 240, 0.06);
  --navy: #080d1a;
  --navy2: #0c1324;
  --navy3: #111d38;
  --card: #0e1830;
  --card2: #121e35;
  --indigo: #3a4eb5;
  --indigo2: #6c7ef0;
  --text: #e8f4ff;
  --muted: #7d94b5;
  --border: rgba(26, 232, 240, 0.12);
  --ff: "Cairo", Tahoma, Arial, sans-serif;
  --fb: "Tajawal", Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--fb);
  line-height: 1.8;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}

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

::selection {
  background: rgba(26, 232, 240, 0.22);
  color: var(--c);
}

.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 50;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--c));
}

.bg-mesh,
.bg-grid,
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-mesh {
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 15% 5%, rgba(26, 232, 240, 0.065), transparent 60%),
    radial-gradient(ellipse 70% 70% at 85% 95%, rgba(58, 78, 181, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 176, 200, 0.035), transparent 70%);
}

.bg-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(26, 232, 240, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 232, 240, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
}

#particles {
  z-index: 0;
  opacity: 0.36;
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 74px;
  z-index: 40;
  display: flex;
  align-items: center;
  background: rgba(8, 13, 26, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  transition: background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 13, 26, 0.96);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.nav-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 178px;
  filter: brightness(1.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--c);
  transition: width 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--c);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch,
.menu-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.language-switch {
  min-width: 48px;
  min-height: 42px;
  border-radius: 10px;
  font-family: var(--ff);
  font-weight: 900;
}

.nav-cta,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: var(--ff);
  font-weight: 900;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.nav-cta,
.btn-primary {
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--c2), var(--indigo));
  box-shadow: 0 10px 34px rgba(26, 232, 240, 0.16);
}

.btn-ghost {
  padding: 0 22px;
  color: var(--c);
  border: 1px solid rgba(26, 232, 240, 0.3);
  background: rgba(26, 232, 240, 0.035);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(26, 232, 240, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section-shell,
.section,
.stats-band,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 54px;
  padding-top: 74px;
}

.hero-content {
  padding-block: 72px 46px;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--c);
  font-family: var(--ff);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-badge {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(26, 232, 240, 0.24);
  border-radius: 999px;
  background: var(--c4);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

h1,
h2,
h3,
strong {
  font-family: var(--ff);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c), var(--indigo2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--c);
  font-family: var(--ff);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
}

.hero-desc,
.section-head p,
.about-card p,
.mini-card p,
.service-card p,
.featured-service p,
.process-step p,
.why-item p,
.vision-panel p,
.cta-band p,
.site-footer p {
  color: var(--muted);
}

.hero-desc {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual {
  position: relative;
  height: 540px;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(26, 232, 240, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 28s linear infinite;
}

.ring-1 { width: 420px; height: 420px; }
.ring-2 { width: 315px; height: 315px; animation-duration: 19s; animation-direction: reverse; }
.ring-3 { width: 210px; height: 210px; animation-duration: 13s; }

.ring-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 2px solid rgba(26, 232, 240, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 232, 240, 0.13), rgba(58, 78, 181, 0.22));
  box-shadow: 0 0 70px rgba(26, 232, 240, 0.17), inset 0 0 38px rgba(26, 232, 240, 0.08);
  transform: translate(-50%, -50%);
}

.ring-core img {
  width: 100px;
}

.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}

.dot-1 { animation: orbit1 18s linear infinite; }
.dot-2 { animation: orbit2 13s linear infinite; background: var(--indigo2); box-shadow: 0 0 14px var(--indigo2); }
.dot-3 { animation: orbit3 25s linear infinite; }

.float-card {
  position: absolute;
  min-width: 126px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(14, 24, 48, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: float 6s ease-in-out infinite;
  text-align: center;
}

.float-card span {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.float-card strong {
  display: block;
  color: var(--c);
  font-size: 1.08rem;
  line-height: 1.25;
}

.fc-1 { top: 9%; right: 2%; }
.fc-2 { top: 32%; left: 0; animation-delay: 0.8s; }
.fc-3 { top: 57%; right: 0; animation-delay: 1.6s; }
.fc-4 { bottom: 12%; left: 6%; animation-delay: 2.4s; }
.fc-5 { bottom: 3%; right: 18%; animation-delay: 3.2s; }
.fc-6 { top: 6%; left: 16%; animation-delay: 4s; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-inline: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 24, 48, 0.72);
}

.stats-band article {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border-inline-start: 1px solid var(--border);
}

.stats-band article:last-child {
  border-inline-start: 0;
}

.stats-band strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--c), var(--indigo2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-band span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 104px 0;
}

.section-alt {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - var(--max)) / 2));
  background: rgba(12, 19, 36, 0.78);
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-head h2,
.cta-band h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.16;
}

.section-head p {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 1rem;
}

.about-grid,
.why-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.about-card,
.mini-card,
.service-card,
.process-step,
.why-item,
.vision-panel,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 30, 53, 0.95), rgba(14, 24, 48, 0.9));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.about-card {
  padding: 34px;
}

.about-card img {
  width: 170px;
  margin-bottom: 30px;
}

.about-card h3,
.mini-card h3,
.service-card h3,
.process-step h3,
.why-item h3,
.vision-panel h3,
.contact-card strong {
  margin: 0;
  color: var(--text);
  line-height: 1.32;
}

.about-card p,
.mini-card p,
.service-card p,
.process-step p,
.why-item p,
.vision-panel p {
  margin: 12px 0 0;
}

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

.mini-card {
  padding: 24px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.mini-card span,
.process-step span,
.why-item span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--c2), var(--indigo));
  font-family: var(--ff);
  font-weight: 900;
}

.mini-card:hover,
.service-card:hover,
.why-item:hover,
.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 232, 240, 0.32);
  box-shadow: 0 18px 54px var(--c3);
}

.featured-service {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 34px;
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(26, 232, 240, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(26, 232, 240, 0.06), rgba(58, 78, 181, 0.09));
  overflow: hidden;
}

.featured-service h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.featured-service img {
  width: 300px;
  justify-self: center;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.28));
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-tags span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.service-card {
  position: relative;
  min-height: 238px;
  padding: 30px;
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.service-card::before {
  content: attr(data-code);
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--c2), var(--indigo));
  font-family: var(--ff);
  font-weight: 900;
}

.service-card span {
  position: absolute;
  inset-inline-end: 22px;
  bottom: 6px;
  color: rgba(26, 232, 240, 0.07);
  font-family: var(--ff);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.process-step {
  padding: 26px 20px;
  text-align: center;
}

.why-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.why-list {
  display: grid;
  gap: 14px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.why-item span {
  flex: 0 0 auto;
  margin: 0;
}

.why-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.why-copy h3 {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.why-copy p {
  margin-top: 10px;
}

.vision-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(circle at 8% 15%, rgba(26, 232, 240, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(18, 30, 53, 0.96), rgba(8, 13, 26, 0.96));
}

.vision-panel h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.cta-band {
  position: relative;
  z-index: 1;
  padding: 86px 18px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(26, 232, 240, 0.06), transparent 70%),
    var(--card);
}

.cta-band .eyebrow {
  justify-content: center;
}

.cta-band p {
  max-width: 620px;
  margin: 16px auto 30px;
}

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

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 28px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.contact-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 232, 240, 0.18);
  border-radius: 14px;
  color: var(--c);
  background: var(--c4);
  font-size: 1.25rem;
}

.contact-card small {
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  font-size: 1.12rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.site-footer img {
  width: 180px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(160px) translate(-50%, -50%); }
  to { transform: rotate(360deg) translateX(160px) translate(-50%, -50%); }
}

@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(108px) translate(-50%, -50%); }
  to { transform: rotate(480deg) translateX(108px) translate(-50%, -50%); }
}

@keyframes orbit3 {
  from { transform: rotate(240deg) translateX(210px) translate(-50%, -50%); }
  to { transform: rotate(600deg) translateX(210px) translate(-50%, -50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc,
  .hero-actions {
    margin-inline: auto;
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid,
  .why-layout,
  .featured-service {
    grid-template-columns: 1fr;
  }

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

  .process-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: rgba(8, 13, 26, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    display: none;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .section-shell,
  .section,
  .stats-band,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .section {
    padding: 72px 0;
  }

  .section-alt {
    padding-inline: 11px;
  }

  .brand img {
    width: 138px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

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