:root {
  --blue: #315cf4;
  --blue-dark: #173fd8;
  --black: #020202;
  --white: #ffffff;
  --muted: #b8bdc7;
  --muted-2: #858b98;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Cairo", sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(49, 92, 244, 0.23), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(49, 92, 244, 0.14), transparent 32%),
    linear-gradient(180deg, #020202 0%, #070707 52%, #020202 100%);
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-padding {
  padding: 110px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 2, 2, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 170px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(49, 92, 244, 0.32);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--white);
  display: block;
  margin: 5px auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(58px, 9vw, 128px);
      line-height: 1.4;
  letter-spacing: -0.08em;
  margin: 22px 0 28px;
}

h2 {
  font-size: clamp(38px, 5vw, 72px);
    line-height: 1.4;
    letter-spacing: -0.06em;
}

h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.hero-text {
  max-width: 680px;
  font-size: 19px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(49, 92, 244, 0.36);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
}

.hero-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 90px rgba(0, 0, 0, 0.45);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(49, 92, 244, 0.28);
  filter: blur(55px);
}

.hero-card img {
  width: 76%;
  position: relative;
  z-index: 1;
}

.hero-card-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats {
  padding: 24px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.stats-grid div {
  padding: 28px;
  border-right: 1px solid var(--card-border);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  font-size: 18px;
  margin-bottom: 8px;
}

.stats-grid span {
  color: var(--muted-2);
  font-size: 14px;
}

.two-column,
.why-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 80px;
}

.two-column p {
  max-width: 820px;
  margin-top: 24px;
  font-size: 18px;
}

.arabic {
  font-family: "Cairo", "Inter", sans-serif;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 18px;
}

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

.service-card,
.solution-card,
.cta-box,
.why-list div {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius);
}

.service-card {
  min-height: 335px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card:hover,
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(49, 92, 244, 0.65);
  background: rgba(49, 92, 244, 0.09);
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 18px;
  font-weight: 900;
  margin-bottom: 28px;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card .arabic {
  margin-top: 16px;
  color: #d7d9df;
}

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

.solution-card {
  padding: 34px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.solution-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(49, 92, 244, 0.18);
  filter: blur(18px);
}

.solution-card span {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}

.solution-card h3 {
  margin-bottom: 12px;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-list div {
  padding: 28px;
}

.why-list strong {
  display: block;
  font-size: 19px;
  margin-bottom: 12px;
}

.cta-box {
  padding: 70px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(49, 92, 244, 0.24), transparent 56%),
    rgba(255, 255, 255, 0.055);
}

.cta-box p {
  margin: 18px auto 30px;
  max-width: 560px;
}

.footer {
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  background: rgba(255, 255, 255, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 170px;
  margin-bottom: 18px;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer a {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  color: var(--muted-2);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(49, 92, 244, 0.12);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (max-width: 1024px) {
  .hero-grid,
  .two-column,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-padding {
    padding: 74px 0;
  }

  .navbar {
    height: 76px;
  }

  .brand img {
    width: 138px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    background: rgba(2, 2, 2, 0.94);
    backdrop-filter: blur(18px);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero-card {
    min-height: 340px;
  }

  .hero-card-footer {
    font-size: 10px;
    left: 18px;
    right: 18px;
  }

  .stats-grid,
  .services-grid,
  .solution-grid,
  .why-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--card-border);
  }

  .stats-grid div:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: auto;
  }

  .cta-box {
    padding: 42px 22px;
  }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.lang-btn {
  border: 0;
  min-width: 42px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}

.footer {
  padding: 78px 0 28px;
  background:
    radial-gradient(circle at 8% 18%, rgba(49, 92, 244, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.95fr 0.95fr;
  gap: 22px;
}

.footer-brand,
.footer-card {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius);
  padding: 28px;
}

.footer-brand p {
  max-width: 440px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.footer-socials a {
  margin: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
}

.footer-card a,
.footer-contact span {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.55;
}

.footer-card a:hover,
.footer-socials a:hover {
  color: var(--white);
  border-color: rgba(49, 92, 244, 0.65);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-size: 14px;
}

.footer-tagline {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

[dir="rtl"] body {
  font-family: "Cairo", "Inter", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: -0.03em;
}

[dir="rtl"] .hero-card-footer,
[dir="rtl"] .eyebrow,
[dir="rtl"] .section-label,
[dir="rtl"] .solution-card span,
[dir="rtl"] .footer h4 {
  letter-spacing: 0;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .language-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-btn {
    flex: 1;
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

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

/* Leadership & Team */
.leadership {
  position: relative;
  overflow: hidden;
}

.leadership::before,
.team::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(49, 92, 244, 0.16);
  filter: blur(90px);
  pointer-events: none;
}

.leadership::before {
  right: -170px;
  top: 20%;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}

.leader-card,
.leader-content {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.leader-card {
  padding: 42px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 26%, rgba(49, 92, 244, 0.42), transparent 42%),
    linear-gradient(145deg, rgba(49, 92, 244, 0.16), rgba(255, 255, 255, 0.04));
}

.leader-mark {
  position: absolute;
  top: 34px;
  left: 34px;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}

.leader-mark img {
  width: 70px;
}

.leader-card span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  margin-bottom: 18px;
}

.leader-card h2 {
  max-width: 560px;
}

.leader-content {
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-content h2 {
  margin: 18px 0 24px;
}

.leader-content p {
  font-size: 18px;
  max-width: 780px;
}

.team {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(49, 92, 244, 0.06), rgba(255, 255, 255, 0));
}

.team::before {
  left: -180px;
  top: 12%;
}

.team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.team-head h2 {
  margin-top: 18px;
  max-width: 820px;
}

.carousel-controls {
  display: inline-flex;
  gap: 10px;
}

.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 92, 244, 0.7);
  background: rgba(49, 92, 244, 0.18);
}

.team-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 380px);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) rgba(255, 255, 255, 0.08);
}

.team-member {
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(49, 92, 244, 0.38), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  border-color: rgba(49, 92, 244, 0.76);
}

.team-member img {
  width: 100%;
  height: auto;
  display: block;
}

[dir="rtl"] .leader-card span {
  letter-spacing: 0;
}

[dir="rtl"] .leader-mark {
  left: auto;
  right: 34px;
}

@media (max-width: 1024px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .team-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .leader-card,
  .leader-content {
    padding: 30px;
  }

  .leader-card {
    min-height: 360px;
  }

  .leader-mark {
    width: 78px;
    height: 78px;
    top: 24px;
    left: 24px;
  }

  [dir="rtl"] .leader-mark {
    right: 24px;
  }

  .team-carousel {
    grid-auto-columns: minmax(270px, 82vw);
  }

  .carousel-controls {
    width: 100%;
  }

  .carousel-btn {
    flex: 1;
  }
}
