:root {
      --color-bg: #020817;
      --color-bg-elevated: #0b1326;
      --color-bg-soft: #111827;
      --color-primary: #0067fe;
      --color-primary-soft: #07a3fa;
      --color-accent: #091010;
      --color-text: #ffffff;
      --color-text-muted: #9ca3c7;
      --color-border: #1f2937;

      --radius-lg: 24px;
      --radius-md: 16px;
      --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
      --nav-height: 72px;
    }
/* Dark theme contrast improvement */
:root[data-theme="dark"] {
  --color-text-muted: #b6c2e2;
}

    /* Optional light mode */
    :root[data-theme="light"] {
      --color-bg: #f5f7ff;
      --color-bg-elevated: #ffffff;
      --color-bg-soft: #e5efff;
      --color-text: #1c2342;
      --color-text-muted: #4b5563;
      --color-border: #d1d5db;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
      background:
        radial-gradient(circle at top left, #0067fe33, transparent 60%),
        radial-gradient(circle at bottom right, #00ddf633, transparent 60%),
        var(--color-bg);
      color: var(--color-text);
      min-height: 100vh;
      line-height: 1.6;
      scroll-behavior: smooth;
    }

    body.rtl {
      text-align: right;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      font: inherit;
      border: none;
      cursor: pointer;
      background: none;
      color: inherit;
    }

    .container {
      width: 100%;
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* NAVBAR */
    header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(22px);
      background: linear-gradient(
          to bottom,
          rgba(2, 8, 23, 0.9),
          rgba(2, 8, 23, 0.6),
          transparent
        );
      border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    }

    .nav {
      height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      font-size: 1rem;
    }

    body.rtl .logo {
      flex-direction: row-reverse;
    }

    .logo-mark {
      width: 44px;
      height: 44px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 20%, #ffffff, #07a3fa);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 18px rgba(0, 148, 255, 0.8);
    }
    /* Logo image inside header circle */
.logo-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  z-index: 2;
  transform: translateZ(0);
}
/* ================================
   LOGO IMAGE — THEME SWITCH
================================ */

/* Dark theme (default) */
.logo-mark-img {
  content: url("images/vmedxlogo-dark.png");
}

/* Light theme logo */
:root[data-theme="light"] .logo-mark-img {
  content: url("images/vmedxlogo-light.png");
}
:root[data-theme="light"] .logo-mark {
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.08),
    0 8px 18px rgba(15,23,42,0.12);
}

    .logo-mark::before,
    .logo-mark::after {
      content: "";
      position: absolute;
      width: 70%;
      height: 32%;
      border-radius: 999px;
      border: 2px solid #ffffff;
      border-color: #ffffff transparent transparent transparent;
      transform: rotate(90deg);
      z-index: 1;
      display: none;
    }

    .logo-mark::after {
      transform: rotate(-90deg);
    }

    .logo span {
      color: #ffffff;
    }

    .logo .accent {
      color: var(--color-primary-soft);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.95rem;
    }

    body.rtl .nav-links {
      flex-direction: row;
      direction: rtl;
    }

    .nav-links a {
      position: relative;
      color: var(--color-text-muted);
      transition: color 0.2s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 0;
      height: 2px;
      background: linear-gradient(
        to right,
        var(--color-primary),
        var(--color-accent)
      );
      border-radius: 999px;
      transition: width 0.25s ease;
    }

    .nav-links a:hover {
      color: #ffffff;
    }


.nav-links a:hover::after {
      width: 100%;
    }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    body.rtl .nav-cta {
      flex-direction: row;
      direction: rtl;
    }

    .btn {
      padding: 0.7rem 1.4rem;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      transition: transform 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease, color 0.15s ease;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-accent)
      );
      color: #ffffff;
      box-shadow: var(--shadow-soft);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 20px 40px rgba(0, 102, 255, 0.55);
    }

    .btn-ghost {
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(15, 23, 42, 0.55);
      color: var(--color-text-muted);
    }

    .btn-ghost:hover {
      background: rgba(15, 23, 42, 0.9);
      color: #ffffff;
    }

    .btn-login {
      border: 1px solid rgba(0, 212, 255, 0.45);
      background: rgba(0, 103, 254, 0.12);
      color: var(--color-text);
      padding-inline: 1rem;
      min-height: 42px;
    }

    .btn-login:hover {
      background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 103, 254, 0.22));
      color: #ffffff;
      transform: translateY(-1px);
    }

    :root[data-theme="light"] .btn-login {
      background: rgba(0, 103, 254, 0.08);
      border-color: rgba(0, 103, 254, 0.28);
      color: #0067fe;
    }

    :root[data-theme="light"] .btn-login:hover {
      background: #0067fe;
      color: #ffffff;
    }

    .theme-toggle {
      width: 40px;
      height: 22px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      position: relative;
      padding: 2px;
    }

    .theme-toggle-thumb {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #f9fafb;
      transition: transform 0.2s ease;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.6);
    }

    /* ================================
   THEME TOGGLE ICON (SUN / MOON)
================================ */

.theme-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

/* 🌙 Light theme = moon icon */
:root[data-theme="light"] .theme-icon::before {
  content: "🌙";
}

/* ☀️ Dark theme = sun icon */
:root[data-theme="dark"] .theme-icon::before {
  content: "☀️";
}


    :root[data-theme="light"] .theme-toggle-thumb {
      transform: translateX(16px);
      background: #0f172a;
    }

    /* MOBILE NAV */
    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 4px;
    }

    .nav-toggle span {
      width: 19px;
      height: 2px;
      border-radius: 999px;
      background: #e5e7eb;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

:root[data-theme="light"] .nav-toggle span {
      background: #0067fe;
    }

/* Arabic mobile first-paint overflow guard */
@media (max-width: 768px) {
  html[dir="rtl"],
  html[dir="rtl"] body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html[dir="rtl"] header,
  html[dir="rtl"] main,
  html[dir="rtl"] section,
  html[dir="rtl"] .container,
  html[dir="rtl"] .nav,
  html[dir="rtl"] .news-slider,
  html[dir="rtl"] .hero,
  html[dir="rtl"] .hero-grid {
    max-width: 100vw;
    overflow-x: clip;
  }

  html[dir="rtl"] .nav {
    direction: rtl;
    min-width: 0;
  }

  html[dir="rtl"] .logo {
    min-width: 0;
    flex-shrink: 1;
  }

  html[dir="rtl"] .logo span {
    white-space: nowrap;
  }

  html[dir="rtl"] .hero > .container > .hero-grid > div:first-child {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  html[dir="rtl"] .hero-title,
  html[dir="rtl"] .hero-body,
  html[dir="rtl"] .eyebrow,
  html[dir="rtl"] .hero-meta {
    max-width: 100%;
    text-align: right;
  }
}

    .nav-mobile-open .nav-toggle span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .nav-mobile-open .nav-toggle span:nth-child(2) {
      opacity: 0;
    }

    .nav-mobile-open .nav-toggle span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .nav-mobile-panel {
      display: none;
      flex-direction: column;
      gap: 1rem;
      padding-bottom: 1rem;
    }

    .nav-mobile-panel a {
      color: var(--color-text-muted);
      font-size: 0.95rem;
    }

    .nav-mobile-panel a:hover {
      color: #ffffff;
    }

    .nav-mobile-panel .btn {
      width: 100%;
      justify-content: center;
    }

    /* HERO SECTION */
    main {
      padding-bottom: 6rem;
    }

    section {
      padding: 4rem 0;
    }

    .hero {
      padding-top: 3rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 2.5rem;
      align-items: center;
    }

    /* RTL — align hero text column to the right */
body.rtl .hero > .container > .hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}


    

    :root[data-theme="dark"] .eyebrow {
  color: #7dd3fc; /* soft cyan, medical feel */
  opacity: 0.85;
}


    body.rtl .eyebrow {
      letter-spacing: 0.12em;
    }

    .hero-title {
      font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
      font-weight: 800;
      margin: 0.75rem 0 0.75rem;
    }

    :root[data-theme="dark"] .hero-title span {
  background: linear-gradient(
    120deg,
    #eaf2ff,
    #7dd3fc,
    #38bdf8
  );
  -webkit-background-clip: text;
  color: transparent;
}


    .hero-body {
      color: var(--color-text-muted);
      max-width: 34rem;
      margin-bottom: 1.5rem;
      font-size: 0.98rem;
    }
.hero-meta{
  display:flex;
  gap:3rem;
  flex-wrap:wrap;
  margin-top:2rem;
}

.hero-meta-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem; /* 🔹 smaller gap */
}


.hero-meta-top strong {
  display: block;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.hero-metrics-row{
  max-width:1100px;
  margin:2rem auto 0;
}




/* ================================
   HERO METRICS — ARABIC FIX ONLY
================================ */

/* RTL — align hero meta top text to the right (Arabic only) */


/* Arabic: align the whole metrics block correctly */
body.rtl .hero-metrics-row {
  align-items: flex-end;   /* push everything to the right */
}

/*
body.rtl .hero-metrics-row {
  align-items: stretch; 
}
*/
/* ================================
   HERO METRICS — ARABIC ONLY
   Circle on RIGHT, text on LEFT
================================ */

body.rtl .hero-metric-circle {
  flex-direction:row;   /* circle moves right */
  justify-content: flex-start;
  width: 100%;
  text-align: right;
}

body.rtl .progress-ring-wrapper {
  margin-left: 0.6rem;   /* space between text and circle */
  margin-right: 0;
}

body.rtl .progress-ring-caption {
  text-align: right;
}





    .hero-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}


    .hero-meta strong {
      display: block;
      font-size: 1.1rem;
      color: #e5e7eb;
    }


.hero-visual {
      border-radius: 32px;
      background: radial-gradient(circle at top left, #0067fe, #020617);
      padding: 1.4rem;
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
      min-height: 320px;
    }

    .hero-orbit {
      position: absolute;
      width: 140%;
      height: 140%;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.15);
      top: -10%;
      left: -20%;
      transform: rotate(-8deg);
    }

    .hero-orbit:nth-child(2) {
      top: -22%;
      left: -32%;
      opacity: 0.4;
    }

    .hero-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden; /* 🔥 THIS IS CRITICAL */
  display: flex;
  z-index: 1;
  align-items: center;
   transform: translateX(-20px);
  justify-content: center;
   box-shadow:
    inset 0 0 0 4px rgba(255,255,255,0.12),
    0 20px 40px rgba(0,0,0,0.35);
  background: radial-gradient(
    circle at top,
    #38bdf8,
    #0b5ed7 70%
  );
}

.hero-avatar-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
  background: radial-gradient(circle at top, #38bdf8, #001b4f);
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.15),
    0 20px 40px rgba(0, 103, 254, 0.45);
}

.hero-avatar-circle img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-2%);
}



    

    .hero-avatar-label {
      padding: 0.4rem 0.8rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.7);
      border: 1px solid rgba(148, 163, 184, 0.5);
      font-size: 0.78rem;
      color: var(--color-text-muted);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .hero-avatar-label span {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 8px #22c55e;
    }

    .hero-stats {
  position: absolute;

  right: 1.4rem;
  top: 4.2rem; /* 👈 aligns with avatar */

  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);

  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 220px;
}
/* ================================
   HERO STATS — LIGHT MODE FIX
================================ */
:root[data-theme="light"] .hero-stats {
  color: #e5e7eb; /* same as dark mode */
}

:root[data-theme="light"] .hero-stats strong {
  color: #ffffff;
}


    .hero-stats strong {
      display: block;
      font-size: 0.92rem;
      color: #e5e7eb;
    }

    /* GENERIC SECTION STYLES */
    .section-heading {
      text-align: center;
      max-width: 34rem;
      margin: 0 auto 2.5rem;
    }

    body.rtl .section-heading {
      text-align: center;
    }

    .section-heading h2 {
      font-size: 1.8rem;
      margin-bottom: 0.5rem;
    }

    .section-heading p {
      font-size: 0.95rem;
      color: var(--color-text-muted);
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
    }

    .card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top left, #111827, #020617);
      border: 1px solid rgba(148, 163, 184, 0.18);
      padding: 1.5rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .card h3 {
      font-size: 1.05rem;
      margin-bottom: 0.5rem;
    }

    .card p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.25rem 0.7rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.25);
      font-size: 0.75rem;
      color: var(--color-text-muted);
    }


.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;

  /* fallback */
  background: #0067fe;
  color: #ffffff;
}

/* ---------- DARK THEME ---------- */
:root[data-theme="dark"] .icon-circle {
  background: linear-gradient(
    135deg,
    #38bdf8,
    #2563eb
  );
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.45),
    0 8px 20px rgba(37, 99, 235, 0.55);
}

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] .icon-circle {
  background: linear-gradient(
    135deg,
    #0067fe,
    #00a3ff
  );
  box-shadow:
    0 0 0 1px rgba(0, 103, 254, 0.35),
    0 6px 16px rgba(0, 103, 254, 0.25);
}


    /* ABOUT SECTION */
    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 2rem;
      align-items: center;
    }

    body.rtl .about-grid {
      direction: rtl;
    }

    .about-points {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .about-points p {
      font-size: 0.85rem;
      color: var(--color-text-muted);
    }

    .about-visual {
      border-radius: 32px;
      background: radial-gradient(circle at top, #111827, #020617);
      padding: 1.4rem;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(148, 163, 184, 0.25);
    }

    .about-visual-inner {
      border-radius: 24px;
      background: linear-gradient(145deg, #0067fe, #00ddf6);
      padding: 1.4rem;
      position: relative;
      overflow: hidden;
    }

    .about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden; /* VERY important */
  background: radial-gradient(circle at top, #38bdf8, #001b4f);
  border: 4px solid rgba(255, 255, 255, 0.22);
  position: relative;
  margin-bottom: 1rem;
  box-shadow:
    0 12px 30px rgba(0, 103, 254, 0.45);
}
.about-avatar img {
  width: 125%;
  height: 125%;
  object-fit: cover;
  object-position: center top;

  /* 👇 move image UP */
  transform: translateY(-2%);
}



    

    .about-tag {
      font-size: 0.8rem;
      color: #e5e7eb;
      margin-bottom: 0.25rem;
    }

    .about-visual p {
      font-size: 0.8rem;
      color: #dbeafe;
    }

    /* SOLUTIONS SECTION */
    #solutions .card ul {
      list-style: none;
      margin-top: 0.8rem;
      font-size: 0.85rem;
      color: var(--color-text-muted);
    }

    #solutions .card li {
      margin-bottom: 0.35rem;
      display: flex;
      gap: 0.4rem;
    }

    #solutions .card li::before {
      content: "•";
      color: var(--color-accent);
    }
/*
    body.rtl #solutions .card li {
      flex-direction: row-reverse;
    }
*/
    /* COURSES SECTION */
    #courses .grid-3 {
      align-items: stretch;
    }

    .course-tag {
      font-size: 0.75rem;
      color: var(--color-text-muted);
      margin-bottom: 0.35rem;
    }

    .course-meta {
      font-size: 0.78rem;
      color: var(--color-text-muted);
      margin-top: 0.4rem;
    }

    /* PRICING SECTION */
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
    }

    .pricing-card {
      border-radius: 26px;
      background: radial-gradient(circle at top, #111827, #020617);
      border: 1px solid rgba(148, 163, 184, 0.25);
      padding: 1.8rem 1.4rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      position: relative;
      overflow: hidden;
    }

    .pricing-card.popular {
      border-color: var(--color-accent);
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55),
        0 22px 50px rgba(8, 47, 73, 0.9);
    }

    .pricing-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: rgba(8, 47, 73, 0.9);
      border: 1px solid rgba(56, 189, 248, 0.6);
      color: #e0f2fe;
    }

    .pricing-title {
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--color-text-muted);
    }

    .pricing-price {
      font-size: 1.6rem;
      font-weight: 700;
    }

.pricing-price span {
      font-size: 0.85rem;
      color: var(--color-text-muted);
      font-weight: 500;
    }

    .pricing-features {
      list-style: none;
      font-size: 0.85rem;
      color: var(--color-text-muted);
      margin: 0.3rem 0 1rem;
    }

    .pricing-features li {
      margin-bottom: 0.35rem;
      display: flex;
      gap: 0.4rem;
    }

    .pricing-features li::before {
      content: "✓";
      color: #22c55e;
      font-weight: 600;
    }

    body.rtl .pricing-features li {
      flex-direction: row-reverse;
    }

body.rtl .pricing-card {
  direction: rtl;
  text-align: right;
}

body.rtl .pricing-badge {
  right: auto;
  left: 1rem;
}

body.rtl .pricing-title {
  letter-spacing: 0.08em;
}

body.rtl .pricing-price {
  direction: ltr;
  text-align: right;
  align-self: flex-end;
}

body.rtl .pricing-features {
  padding: 0;
}

body.rtl .pricing-features li {
  justify-content: flex-start;
  text-align: right;
}

body.rtl .card,
body.rtl .solutions-page-grid,
body.rtl .contact-panel,
body.rtl .tech-panel {
  direction: rtl;
  text-align: right;
}

body.rtl .solutions-page-grid .card ul {
  padding-right: 1.2rem;
  padding-left: 0;
}

body.rtl .solutions-page-grid .card li {
  text-align: right;
}

    /* TECHNOLOGY SECTION */
    .tech-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 2rem;
      align-items: center;
    }

    body.rtl .tech-grid {
      direction: rtl;
    }

    .timeline {
      border-left: 1px dashed rgba(148, 163, 184, 0.4);
      padding-left: 1.2rem;
      margin-top: 1rem;
    }

    body.rtl .timeline {
      border-left: none;
      border-right: 1px dashed rgba(148, 163, 184, 0.4);
      padding-left: 0;
      padding-right: 1.2rem;
    }

    .timeline-step {
      margin-bottom: 0.9rem;
      position: relative;
    }

    .timeline-step::before {
      content: "";
      position: absolute;
      left: -1.5rem;
      top: 0.35rem;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-accent)
      );
      box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    }

    body.rtl .timeline-step::before {
      left: auto;
      right: -1.5rem;
    }

    .timeline-step h4 {
      font-size: 0.9rem;
      margin-bottom: 0.2rem;
    }

    .timeline-step p {
      font-size: 0.82rem;
      color: var(--color-text-muted);
    }

    .tech-panel {
      border-radius: 28px;
      border: 1px solid rgba(148, 163, 184, 0.25);
      padding: 1.4rem;
      background: radial-gradient(circle at top left, #0f172a, #020617);
      box-shadow: var(--shadow-soft);
    }

    .tech-metric {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0.75rem;
      font-size: 0.85rem;
      color: var(--color-text-muted);
    }

    /* ================================
   TECH METERS — THEME AWARE
================================ */

/* Base */
.tech-meter {
  width: 56%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

/* Filled bar */
.tech-meter span {
  display:block;
  height:100%;
  width:0;
  border-radius:999px;

  transition:width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ---------- DARK THEME ---------- */
:root[data-theme="dark"] .tech-meter {
  background: rgba(255, 255, 255, 0.15);
}

:root[data-theme="dark"] .tech-meter span {
  background: linear-gradient(
    90deg,
    #38bdf8,
    #2563eb
  );
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] .tech-meter {
  background: #e5e7eb;
}

:root[data-theme="light"] .tech-meter span {
  background: linear-gradient(
    90deg,
    #0067fe,
    #00a3ff
  );
}


    /* CONTACT SECTION */
    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 2rem;
      align-items: flex-start;
    }

    body.rtl .contact-grid {
      direction: rtl;
    }

    form {
      display: grid;
      gap: 1rem;
    }

    label {
      font-size: 0.85rem;
      color: var(--color-text-muted);
      margin-bottom: 0.2rem;
      display: block;
    }

    input,
    textarea,
    select {
      width: 100%;
      border-radius: 14px;
      border: 1px solid var(--color-border);
      padding: 0.7rem 0.8rem;
      background: rgba(15, 23, 42, 0.85);
      color: var(--color-text);
      font: inherit;
      outline: none;
      transition: border 0.15s ease, box-shadow 0.15s ease,
        background 0.15s ease;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    input:focus,
    textarea:focus,
    select:focus {
      border-color: var(--color-primary-soft);
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
      background: rgba(15, 23, 42, 0.95);
    }

    .contact-panel {
      border-radius: 24px;
      padding: 1.4rem;
      border: 1px solid rgba(148, 163, 184, 0.3);
      background: radial-gradient(circle at top left, #111827, #020617);
      font-size: 0.9rem;
      color: var(--color-text-muted);
    }

    .contact-panel strong {
      color: #e5e7eb;
    }

    .contact-list {
      list-style: none;
      margin-top: 0.6rem;
    }

.contact-list li {
      margin-bottom: 0.3rem;
    }

    /* FOOTER */
    footer {
      border-top: 1px solid rgba(148, 163, 184, 0.25);
      padding: 1.5rem 0 2.5rem;
      font-size: 0.78rem;
      color: var(--color-text-muted);
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.2rem;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: var(--color-text-muted);
    }

    .footer-links a:hover {
      color: #ffffff;
    }

    body.rtl .footer-inner {
      flex-direction: row-reverse;
    }

    /* RESPONSIVE STYLES */
    @media (max-width: 960px) {
      .hero-grid,
      .about-grid,
      .tech-grid,
      .contact-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-visual {
        order: -1;
      }

      .pricing-grid,
      .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 768px) {
  .hero-avatar {
    transform: none;
  }
}
@media (max-width: 768px) {
  .hero-stats {
    position: static;
    margin-top: 1.2rem;
    max-width: 100%;
  }
}

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .nav-toggle {
        display: inline-flex;
      }

      .nav-mobile-panel {
        display: flex;
      }

      body.rtl .nav-mobile-panel {
        align-items: center;
        text-align: center;
      }

      .hero {
        padding-top: 2.2rem;
      }

      section {
        padding: 3rem 0;
      }

      .pricing-grid,
      .grid-3 {
        grid-template-columns: minmax(0, 1fr);
      }

      .about-points {
        grid-template-columns: minmax(0, 1fr);
      }

      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      body.rtl .footer-inner {
        align-items: flex-end;
      }
    }

    @media (max-width: 480px) {
      .hero-title {
        font-size: 2rem;
      }

      .btn {
        padding-inline: 1.1rem;
      }
    }
    /* ================================
   LIGHT THEME READABILITY FIX
   (Dark theme untouched)
================================ */
/* ================================
   LOGO FIX — LIGHT THEME
================================ */

:root[data-theme="light"] .logo span {
  color: #1c2342; /* dark navy, high contrast */
}

:root[data-theme="light"] .logo .accent {
  color: #0067fe; /* brand blue */
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(0, 103, 254, 0.08), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0, 221, 246, 0.08), transparent 60%),
    var(--color-bg);
}

/* Global text contrast */
:root[data-theme="light"] {
  --color-text: #1c2342;
  --color-text-muted: #475569;
}

/* Navbar */
:root[data-theme="light"] header {
  background: linear-gradient(
    to bottom,
    rgba(245, 247, 255, 0.95),
    rgba(245, 247, 255, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(28, 35, 66, 0.12);
}

:root[data-theme="light"] .nav-links a {
  color: #334155;
}

:root[data-theme="light"] .nav-links a:hover {
  color: #0067fe;
}

/* Buttons */
:root[data-theme="light"] .btn-ghost {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1c2342;
}

:root[data-theme="light"] .btn-ghost:hover {
  background: #f1f5f9;
  color: #0067fe;
}

/* Hero section */
:root[data-theme="light"] .hero-title span {
  background: linear-gradient(
    120deg,
    #1c2342,
    #0067fe,
    #07a3fa
  );
  -webkit-background-clip: text;

  color: transparent;
}

:root[data-theme="light"] .hero-body {
  color: #475569;
}

:root[data-theme="light"] .hero-meta strong {
  color: #1c2342;
}

/* Cards */
:root[data-theme="light"] .card,
:root[data-theme="light"] .pricing-card,
:root[data-theme="light"] .tech-panel,
:root[data-theme="light"] .contact-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .card p,
:root[data-theme="light"] .pricing-features,
:root[data-theme="light"] .timeline-step p {
  color: #475569;
}

/* Pills & labels */
:root[data-theme="light"] .pill,
:root[data-theme="light"] .hero-avatar-label {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

/* Forms */
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select {
  background: #ffffff;
  color: #1c2342;
  border: 1px solid #cbd5e1;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #94a3b8;
}

:root[data-theme="light"] input:focus,
:root[data-theme="light"] textarea:focus,
:root[data-theme="light"] select:focus {
  border-color: #0067fe;
  box-shadow: 0 0 0 1px rgba(0, 103, 254, 0.35);
}

/* Footer */
:root[data-theme="light"] footer {
  color: #475569;
}

:root[data-theme="light"] .footer-links a:hover {
  color: #0067fe;
}
/* ================================
   HERO CIRCULAR METRIC (CENTERED)
================================ */

.hero-metric-circle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}



/* RTL — put circle on the RIGHT of the text (Arabic only) */
body.rtl .hero-metric-circle {
  display: flex;
  
  align-items: center;
  gap: 0.7rem;
  text-align: right;
}


.progress-ring-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
}

.progress-ring {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 8;
}

/* ================================
   PROGRESS RING — THEME AWARE
================================ */

/* Base */
.progress-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease;
}

/* ---------- DARK THEME ---------- */
:root[data-theme="dark"] .progress-ring-fill {
  stroke: linear-gradient(#38bdf8, #2563eb); /* fallback */
  stroke: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] .progress-ring-fill {
  stroke: #0067fe;
}


/* Centered percentage */
.progress-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-center strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e5e7eb;
}

:root[data-theme="light"] .progress-ring-center strong {
  color: #1c2342;
}

/* Caption */
.progress-ring-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

body.rtl .progress-ring-caption {
  text-align: right;
}

/* ================================
   3D ANATOMY EXPLORER
================================ */

.anatomy-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}




.anatomy-ui h3 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.anatomy-ui ul {
  list-style: none;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.anatomy-ui li {
  margin-bottom: 0.4rem;
}

@media (max-width: 960px) {
  .anatomy-wrapper {
    grid-template-columns: 1fr;
  }
}
/* ================================
   ANATOMY IMAGE INTERACTION
================================ */
 

.anatomy-image-wrapper {
  position: relative;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
}






.anatomy-image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;

  clip-path: inset(0 round 32px);
}





/* Invisible clickable areas */
.organ {
  position: absolute;
  background: transparent;
  border: 2px solid rgba(2, 8, 23, 0.85);
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.organ:hover {
  background: rgba(2, 8, 23, 0.6);
}




/* ===== HOTSPOT POSITIONS ===== */
/* Adjust percentages if needed */

/* Brain */
.hotspot-brain {
  top: 3%;
  left: 49%;
  transform: translateX(-50%);
}

/* Lungs */
.hotspot-lungs {
  top: 22%;
  left: 44%;
  transform: translateX(-50%);
}

/* Heart */
.hotspot-heart {
  top: 23%;
  left: 46%;
}

/* ✅ Stomach (FIXED) */
.hotspot-stomach {
  top: 35%;
  left: 52%;
  transform: translateX(-50%);
}

/* Pancreas */
.hotspot-pancreas {
  top: 36%;
  left: 43%;
}

/* Hand */
.hotspot-hand {
  top: 45%;
  left: 66%;
}
/* ================================
   HERO STATS — RTL FIX (AR ONLY)
================================ */

body.rtl .hero-stats {
  right: auto;        /* disable English positioning */
  left: 1.4rem;       /* move card to the left */
  text-align: right;  /* Arabic text alignment */
}

/* ================================
   HERO AVATAR — RTL FIX (AR ONLY)
   Keeps English untouched
================================ */

body.rtl .hero-avatar {
  transform: translateX(20px); /* mirror the English offset */
}
.contact-phone {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.contact-phone:hover {
  text-decoration: underline;
}

/* Mobile hint: show call affordance */
@media (max-width: 768px) {
  .contact-phone {
    color: #0067fe;
  }
}
.contact-email {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Mobile emphasis */
@media (max-width: 768px) {
  .contact-email {
    color: #0067fe;
  }
}
/* Mobile nav visibility (CSS-only, stable) */
.nav-mobile-panel {
  display: none;
}

.nav.nav-mobile-open + .nav-mobile-panel {
  display: flex;
}



.news-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.news-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}


/* Pause on hover (desktop) */
.news-bar:hover .news-track {
  animation-play-state: paused;
}

.news-card {
  flex: 0 0 320px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Overlay text */
.news-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.news-overlay h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #020617; /* BLACK */
}

.news-overlay p {
  font-size: 0.78rem;
  color: #1e293b; /* DARK GRAY */
}


/* Auto-scroll animation */
@keyframes news-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RTL support */
body.rtl .news-track {
  animation-direction: reverse;
}

/* ================================
   MOBILE OPTIMIZATION
================================ */



/* ================================
   PARTNERS SECTION
================================ */

.partners-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(2, 8, 23, 0.35)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.partners-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-text);
}

/* Grid */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Partner card */
.partner-card {
  background: radial-gradient(circle at top, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 1.6rem;
  width: 220px;
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 0 0 1px rgba(56,189,248,0.35),
    0 10px 30px rgba(56,189,248,0.25),
    0 0 40px rgba(56,189,248,0.15);
}

.partner-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;

  border-radius: 50%;
  background: #ffffff;
  padding: 10px;
  
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}


/* LIGHT THEME */
:root[data-theme="light"] .partners-section {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(241, 245, 249, 0.85)
  );
}

:root[data-theme="light"] .partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* ================================
   CONTACT — FOLLOW US
================================ */

.contact-follow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-follow .instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.contact-follow .instagram-link:hover {
  text-decoration: underline;
}

/* Icon styling */
.instagram-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Mobile emphasis */
@media (max-width: 768px) {
  .contact-follow .instagram-link {
    color: #0067fe;
  }
}

/* ================================
   FOLLOW US — ICON CIRCLE
================================ */

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Icon circle */
.instagram-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
}

/* Dark theme */
:root[data-theme="dark"] .instagram-icon {
  color: #e5e7eb;
}

/* Light theme */
:root[data-theme="light"] .instagram-icon {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0067fe;
}

/* Hover */
.instagram-link:hover .instagram-icon {
  background: rgba(0, 103, 254, 0.15);
}

/* ================================
   CONTACT PANEL — LIGHT MODE FIX
================================ */

:root[data-theme="light"] .contact-panel {
  color: #475569; /* base readable text */
}

/* Panel title */
:root[data-theme="light"] .contact-panel strong {
  color: #1c2342; /* dark navy */
}

/* Labels like Email, Phone, Use case, etc */
:root[data-theme="light"] .contact-panel strong[data-key] {
  color: #334155;
}

/* Normal text spans */
:root[data-theme="light"] .contact-panel span {
  color: #475569;
}

/* Email & phone links */
:root[data-theme="light"] .contact-panel a {
  color: #0067fe;
  font-weight: 500;
}

/* Hover */
:root[data-theme="light"] .contact-panel a:hover {
  text-decoration: underline;
}

/* Follow us row */
:root[data-theme="light"] .contact-follow strong {
  color: #334155;
}

/* ================================
   BODY SYSTEMS — NEW DESIGN
================================ */

.system-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.system-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  padding: 18px;
  background:
    radial-gradient(circle at top, #0067fe, #020617);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

:root[data-theme="light"] .system-circle {
  background: #f8fbff;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.25),
    0 18px 40px rgba(15,23,42,0.12);
}


.system-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

/* Tabs */
.system-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.system-tabs button {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 1rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.system-tabs button {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.system-tabs button:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
  color: #e5e7eb;
  transform: translateY(-1px);
}

:root[data-theme="light"] .system-tabs button:hover {
  background: rgba(0, 103, 254, 0.12);
  border-color: #0067fe;
  color: #0067fe;
}


.system-tabs button.active {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  border-color: transparent;
}

/* Conditions list */
#systemInfo li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .system-circle {
    width: 280px;
    height: 280px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  #systemInfo li {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (hover: none) {
  .system-tabs button:active {
    transform: scale(0.96);
  }
}

/* Fix Arabic list alignment inside cards */
:root[dir="rtl"] .card ul {
  padding-right: 1.2rem;
  padding-left: 0;
}

:root[dir="rtl"] .card li {
  text-align: right;
  list-style-position: inside;
}

/* Hide CTA buttons in navbar on mobile */
@media (max-width: 768px) {
  .nav-actions,
  .book-demo,
  .get-started {
    display: none !important;
  }
}

/* ============================
   INFINITE NEWS CAROUSEL
============================ */
.carousel-zone {
  padding: 5rem 0 6rem;
  overflow-x: hidden;
}


.carousel-title {
  text-align: center;
  margin-bottom: 1rem;
}





















/* =========================
   FORM VALIDATION UI
========================= */

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-status {
  display: none;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid transparent;
}

.form-status.success,
.form-status.error {
  display: grid;
  gap: 0.25rem;
}

.form-status strong {
  font-size: 1rem;
}

.form-status span {
  color: var(--color-text-muted);
  line-height: 1.55;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-status.error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

:root[data-theme="light"] .form-status.success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #047857;
}

:root[data-theme="light"] .form-status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

input.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248,113,113,0.6);
}

/* =========================
   CINEMATIC VIDEO SHOWCASE
========================= */

.video-showcase {
  padding: 5rem 0 6rem;
}

.video-frame {
  position: relative;
  width: min(960px, 92%);
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow:
    0 0 70px rgba(56,189,248,0.18),
    inset 0 0 40px rgba(56,189,248,0.25);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  background: #000;
  border-radius: 26px;
  z-index: 1;
  position: relative;
}

.video-frame video:fullscreen {
  border-radius: 0;
}


.video-glow {
  position: absolute;
  inset: -40px;
  z-index: 0;                      /* ⬅ push glow BEHIND video */
  background: radial-gradient(circle at center, rgba(56,189,248,0.35), transparent 65%);
  pointer-events: none;
}

@media (max-width: 380px) {
  .hero-metrics-row {
    gap: 1.3rem;
  }

  .hero-metric-circle {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.rtl .hero-metric-circle {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .partner-card {
    width: 170px;
    height: 110px;
  }

  .partner-card img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  #contact form {
    scroll-margin-bottom: 140px;
  }
}

/* ===============================
   SCROLL / LOAD ANIMATIONS
================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#contact {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

#contact.scroll-focus form,
#contact.scroll-focus .contact-panel {
  animation: sectionFocusPulse 1.15s ease;
}

@keyframes sectionFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22),
      0 20px 45px rgba(0, 103, 254, 0.24);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

/* Hero load animation */
.hero-title,
.hero-body,
.hero-meta,
.hero-visual {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-loaded .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-loaded .hero-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-loaded .hero-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.hero-loaded .hero-visual {
  opacity: 1;
  transform: translateY(-70px);
  transition-delay: 0.6s;
}

/* =========================
   EXPANDABLE CARD SYSTEM
========================= */

.expandable-grid .card:nth-child(n+4){
  display:none;
}

.expandable-grid.expanded .card{
  display:block;
}

/* button */

.expand-btn-wrapper{
  text-align:center;
  margin-top:40px;
}

.expand-btn{
  background:linear-gradient(135deg,#3ba8ff,#0066ff);
  color:white;
  border:none;
  padding:12px 28px;
  border-radius:30px;
  font-weight:600;
  cursor:pointer;
  transition:all .3s ease;
}

.expand-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 30px rgba(0,120,255,.35);
}

/* hidden details */

.card-details{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:all .45s ease;
}

.card.active .card-details{
  max-height:500px;
  opacity:1;
  margin-top:10px;
}

/* hover card effect */

.card{
  cursor:pointer;
  transition:all .35s ease;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 22px 50px rgba(0,0,0,.4);
}

/* =========================
   HERO METRICS DASHBOARD
========================= */

.metrics-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(220px,1fr));
  gap:2rem;
}

.metric-card{
  display:flex;
  align-items:center;
  gap:1rem;

  padding:18px 20px;
  border-radius:14px;

  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);

  backdrop-filter:blur(10px);

  transition:all .35s ease;
}

.metric-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

/* circle bigger */

.metric-card svg{
  width:70px;
  height:70px;
}

/* percentage text */

.progress-ring-center strong{
  font-size:1rem;
  font-weight:700;
}

/* metric text */

.metric-label{
  font-size:.95rem;
  opacity:.85;
}

/* light theme */

[data-theme="light"] .metric-card{
  background:rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.08);
}

/* TECHNOLOGY TIMELINE ANIMATION */

.tech-step{
  opacity:0;
  transform:translateX(-40px);
  transition:all .6s ease;
}

.tech-step.show{
  opacity:1;
  transform:translateX(0);
}

/* number appears first */

.tech-step h4{
  opacity:0;
  transform:translateX(-10px);
  transition:all .4s ease;
}

.tech-step.show h4{
  opacity:1;
  transform:translateX(0);
}

/* description appears after */

.tech-step p{
  opacity:0;
  transform:translateX(-10px);
  transition:all .4s ease .2s;
}

.tech-step.show p{
  opacity:1;
  transform:translateX(0);
}

/* stagger animation for show-more cards */

.stagger-card{
  opacity:0;
  transform:translateX(-50px);
  transition:opacity .45s ease, transform .45s ease;
}

.stagger-card.show{
  opacity:1;
  transform:translateX(0);
}

.carousel-container{
    width: 100%;
    max-width: 1200px;
    height: 450px;
    position: relative;
    perspective: 1000px;
}
.carousel-track{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-card{
    position: absolute;
    width: 280px;
    height: 380px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}
.carousel-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-card.center{
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}
.carousel-card.left-1,
.carousel-card.right-1{
    z-index: 5;
    transform: scale(0.9) translateZ(-100px);
    opacity: 0.9;
}
.carousel-card.left-2,
.carousel-card.right-2{
    z-index: 1;
    transform: scale(0.8) translateZ(-300px);
    opacity: 0.7;
}
.carousel-card.left-1 img,
.carousel-card.left-2 img,
.carousel-card.right-1 img,
.carousel-card.right-2 img{
    filter: grayscale(100%);
}
.carousel-card.left-1{
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
}
.carousel-card.left-2{
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
}
.carousel-card.right-1{
    transform: translateX(200px) scale(0.9) translateZ(-100px);
}
.carousel-card.right-2{
    transform: translateX(400px) scale(0.8) translateZ(-100px);
}
.carousel-card.hidden{
    opacity: 0;
    pointer-events: none;
}
.dots{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.dot{
    width: 12px;
    height: 12px;
    background: #cccccc70;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active{
    background: white;
    transform: scale(1.2);
}
.nav-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #01030f;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    border: none;
    padding-bottom: 4px;
}
.nav-arrow:hover{
    transform: translateY(-50%) scale(1.1);
}
.nav-arrow.left{
    left: 20px;
    padding-right: 3px;
}
.nav-arrow.right{
    right: 20px;
    padding-left: 3px;
}
@media (max-width: 768px) {

}

.news-slider {
    position: relative;
    width: 1072px;
    max-width: 100vw;
    height: 247.38px;
    margin: auto;
    overflow: hidden;
}
.news-list {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    width: max-content;
    transition: 1s;
}
.news-item img {
    width: 1072px;
    height: 100%;
    max-width: 100vw;
    object-fit: cover;
}
.news-buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: auto;
}
.news-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFF5;
    color: #FFF;
    border: none;
    font-family: monospace;
    font-weight: bold;
    pointer-events: auto;
    touch-action: manipulation;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.news-dots {
    position: absolute;
    bottom: 10px;
    color: #FFF;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 5;
}
.news-dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background-color: #FFF;
    margin: 20px;
    transition: 1s;
}
.news-dots li.active {
    width: 30px;
}
@media screen and (max-width: 768px) {
    .news-slider {
        height: 150px;
    }
}

/* ===============================
   PAGE HERO (ALL NEW PAGES)
================================ */

.page-hero{
  text-align:center;
  padding:90px 20px 34px;
}

.page-hero h1,
.page-hero p {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-hero p {
  transition-delay: 0.12s;
}

.page-loaded .page-hero h1,
.page-loaded .page-hero p {
  opacity: 1;
  transform: translateY(0);
}

.page-hero h1{
  font-size:48px;
  margin-bottom:20px;
}

.page-hero p{
  max-width:700px;
  margin:auto;
  opacity:.8;
}


/* ===============================
   SOLUTIONS PAGE GRID
================================ */

.solutions-page-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  padding:60px 8%;
}

.solutions-page-grid > .card,
.solutions-page-grid .pricing-card,
.solutions-page-grid .contact-grid,
.solutions-page-grid .tech-grid {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.page-loaded .solutions-page-grid > .card,
.page-loaded .solutions-page-grid .pricing-card,
.page-loaded .solutions-page-grid .contact-grid,
.page-loaded .solutions-page-grid .tech-grid,
.page-loaded .solutions-page-grid.reveal,
.solutions-page-grid.visible > .card,
.solutions-page-grid.visible .pricing-card,
.solutions-page-grid.visible .contact-grid,
.solutions-page-grid.visible .tech-grid,
.solutions-page-grid.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-loaded .solutions-page-grid > .card:nth-child(2),
.page-loaded .solutions-page-grid .pricing-card:nth-child(2),
.solutions-page-grid.visible > .card:nth-child(2),
.solutions-page-grid.visible .pricing-card:nth-child(2) {
  transition-delay: 0.12s;
}

.page-loaded .solutions-page-grid > .card:nth-child(3),
.page-loaded .solutions-page-grid .pricing-card:nth-child(3),
.solutions-page-grid.visible > .card:nth-child(3),
.solutions-page-grid.visible .pricing-card:nth-child(3) {
  transition-delay: 0.24s;
}

.page-loaded .solutions-page-grid > .card:nth-child(4),
.solutions-page-grid.visible > .card:nth-child(4) {
  transition-delay: 0.36s;
}

.page-loaded .solutions-page-grid > .card:nth-child(5),
.solutions-page-grid.visible > .card:nth-child(5) {
  transition-delay: 0.48s;
}

.page-loaded .solutions-page-grid > .card:nth-child(6),
.solutions-page-grid.visible > .card:nth-child(6) {
  transition-delay: 0.6s;
}

.solutions-page-grid .card {
  cursor: default;
}

.solutions-page-grid .card-details {
  max-height: none;
  overflow: visible;
  opacity: 1;
  margin-top: 10px;
}

.solutions-page-grid .stagger-card {
  opacity: 1;
  transform: none;
}

.solutions-page-grid ul {
  margin-top: 0.85rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.solutions-page-grid li {
  margin-bottom: 0.35rem;
}

/* ===============================
   MOBILE POLISH
================================ */

@media (max-width: 900px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    gap: 0.65rem;
  }

  .nav-cta {
    gap: 0.45rem;
  }

  .nav-cta > .btn:not(#langToggle):not(.btn-login) {
    display: none;
  }

  .btn-login {
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
  }

  .nav-mobile-panel {
    padding: 0.75rem 0 1rem;
    align-items: center;
    text-align: center;
  }

  .nav-mobile-panel .btn {
    display: inline-flex;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-grid {
    gap: 1.4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.08;
  }

  .hero-body {
    font-size: 0.95rem;
  }

  .hero-meta {
    gap: 1.2rem;
  }

  .hero-visual {
    min-height: 280px;
    width: calc(100% - 2rem);
    max-width: 1120px;
    margin: 1.1rem auto 0;
    transform: none;
  }

  .hero-loaded .hero-visual {
    transform: none;
  }

  .hero-avatar {
    width: 180px;
    height: 180px;
    transform: none;
    margin-inline: auto;
  }

  body.rtl .hero-avatar {
    transform: none;
  }

  .hero-avatar-circle {
    width: 165px;
    height: 165px;
  }

  .hero-stats {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  body.rtl .hero-stats {
    left: 1rem;
    right: 1rem;
  }

  .metrics-cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .metric-card {
    padding: 14px 16px;
  }

  .progress-ring-wrapper {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
  }

  .progress-ring {
    width: 70px;
    height: 70px;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .system-circle {
    width: min(78vw, 320px);
    height: min(78vw, 320px);
  }

  .system-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-tabs button {
    width: 100%;
    font-size: 0.9rem;
    white-space: normal;
  }

  .pricing-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  body.rtl .pricing-card {
    align-items: stretch;
  }

  body.rtl .pricing-badge {
    position: static;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    margin-bottom: 0.55rem;
    white-space: nowrap;
  }

  body.rtl .pricing-title,
  body.rtl .pricing-price {
    align-self: stretch;
    text-align: right;
  }

  .carousel-container {
    height: 360px;
    overflow: hidden;
  }

  .carousel-card {
    width: 220px;
    height: 300px;
  }

  .carousel-card.left-1 {
    transform: translateX(-125px) scale(0.86) translateZ(-100px);
  }

  .carousel-card.right-1 {
    transform: translateX(125px) scale(0.86) translateZ(-100px);
  }

  .carousel-card.left-2,
  .carousel-card.right-2 {
    opacity: 0;
    pointer-events: none;
  }

  .nav-arrow.left {
    left: 8px;
  }

  .nav-arrow.right {
    right: 8px;
  }

  .news-slider {
    width: 100%;
    height: clamp(135px, 36vw, 210px);
    border-radius: 0 0 18px 18px;
  }

  .news-item img {
    width: 100vw;
  }

  .news-buttons button {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .video-frame {
    width: 100%;
    border-radius: 18px;
  }

  .page-hero {
    padding: 64px 16px 22px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .solutions-page-grid {
    padding: 34px 1rem 56px;
  }
}

@media (max-width: 520px) {
  header {
    background: rgba(2, 8, 23, 0.86);
  }

  .logo {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  #langToggle {
    min-width: 2.7rem !important;
    padding: 0.45rem 0.7rem !important;
  }

  .theme-toggle {
    width: 38px;
  }

  section {
    padding: 2.8rem 0;
  }

  .hero-meta-top {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-metrics-row {
    margin-top: 1rem;
  }

  .metric-card {
    align-items: center;
    border-radius: 12px;
  }

  .progress-ring-wrapper,
  .metric-card svg {
    width: 62px;
    height: 62px;
  }

  .progress-ring-wrapper {
    flex-basis: 62px;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }

  .card,
  .pricing-card,
  .contact-panel,
  .tech-panel {
    border-radius: 18px;
    padding: 1.15rem;
  }

  form {
    padding: 1rem;
    border-radius: 18px;
  }

  .partners-grid {
    gap: 1rem;
  }

  .partner-card {
    width: 155px;
    height: 106px;
    padding: 1rem;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Final override: Arabic mobile must not open with sideways overflow. */
@media (max-width: 768px) {
  html[dir="rtl"],
  html[dir="rtl"] body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  html[dir="rtl"] header,
  html[dir="rtl"] main,
  html[dir="rtl"] section,
  html[dir="rtl"] .container,
  html[dir="rtl"] .nav,
  html[dir="rtl"] .news-slider,
  html[dir="rtl"] .hero,
  html[dir="rtl"] .hero-grid {
    max-width: 100vw;
    overflow-x: clip;
  }

  html[dir="rtl"] .nav {
    direction: rtl;
    min-width: 0;
  }

  html[dir="rtl"] .logo {
    min-width: 0;
    flex-shrink: 1;
  }

  html[dir="rtl"] .logo span {
    white-space: nowrap;
  }

  html[dir="rtl"] .hero > .container > .hero-grid > div:first-child {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  html[dir="rtl"] .hero-title,
  html[dir="rtl"] .hero-body,
  html[dir="rtl"] .eyebrow,
  html[dir="rtl"] .hero-meta {
    max-width: 100%;
    text-align: right;
  }
}
