/* ================== Reset ================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html, body {
  overflow-x: clip;
  width: 100%;
}

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

/* ================= Design Tokens (Global Vars) ================= */
:root {
  /* Brand */
  --primary-color: #1E40AF;
  --secondary-color: #8B5CF6;
  --tertiary-color: #7C3AED;
  --accent-color: #3B82F6;

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #F9FAFB;
  --muted: #FAFAFB;

  /* Text */
  --text: #111827;
  --text-soft: #4B5563;
  --text-light: #9CA3AF;
  --white: #ffffff;

  /* Border & Shadows */
  --border: #F3F4F6;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow: 0 10px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, .18);

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;

  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;

  /* Motion */
  --transition: all .3s ease;

  /* Layout Containers (Global) */
  --container: 1120px;
  --container-wide: 1280px;
  --page-inline-pad: 20px;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Reveal defaults */
  --reveal-distance: 24px;
  --reveal-duration: .7s;
  --reveal-ease: cubic-bezier(.2, .65, .2, 1);

  /* Component-Level Variables */
  --header-bg: rgba(255, 255, 255, 0);
  --header-bg-scrolled: rgba(255, 255, 255, .95);
  --header-pad-block: 1rem;

  --hero-pad-block: 140px 100px;
  --hero-min-h: 90vh;
  --hero-gap: 2rem;
  --hero-img-max: 520px;
  --hero-content-nudge: 24px;
  --hero-title-size: clamp(2.5rem, 6vw, 3.5rem);
  --hero-subtitle-size: clamp(1rem, 2.5vw, 1.25rem);

  --partners-pad: 80px;

  --steps-pad: 100px;
  --steps-gap: 2rem;

  --services-top-pad: 120px;
  --service-item-pad: 100px;
  --service-gap: 60px;
  --service-visual-w: 42%;
  --service-card-gap: 1rem;

  --comp-pad: 80px;
  --comp-gap: 0;
  --comp-safe-pad: 8px;
  --comp-feature-scale: 1.02;
  --comp-card-max: 400px;

  --serve-pad: 80px;
  --serve-gap: 2rem;

  --mission-pad: 80px;
  --mission-title: clamp(2.2rem, 5vw, 3rem);
  --mission-text: clamp(1rem, 2vw, 1.15rem);

  --contact-pad: 64px;
  --contact-card-max: 900px;
  --contact-gap: 32px;

  --footer-pad: 56px 28px;
  --btt-size: 50px;
}

/* ================= Base ================= */
body {
  font-family: var(--font-en);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition);
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-inline-pad);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--page-inline-pad);
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.7rem);
  text-align: center;
  margin-block-end: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-soft);
}

/* ========= Typography Wrapping & Hyphenation Fix ========= */
h1, h2, h3, h4, p, li, a, button, .btn, .service-description, .service-tagline, .service-tagline-secondary, .section-title, .section-subtitle, .mission-text, .contact-title, .contact-subtitle {
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: manual;
}

/* For English specifically keep hyphenation off */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4, html[lang="en"] p, html[lang="en"] li {
  hyphens: none;
}

/* ================= Buttons ================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #1a2f8a;
  transform: translateY(-2px);
}

.btn-hero-primary {
  background: var(--white);
  color: var(--primary-color);
  padding: 18px 32px;
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 16px 30px;
}

.btn-hero-secondary:hover {
  background: #fff;
  color: var(--primary-color);
}

.btn-service {
  background: var(--service-cta-bg, var(--accent-color));
  color: var(--service-cta-text, #fff);
  padding: 18px 32px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: var(--transition);
}

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--service-cta-hover, #2563eb);
}

/* Navbar CTA override */

.navbar .sign-up-btn {
  background: #1E40AF;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition: .3s;
  font-size: 15px;
  border: none;
  box-shadow: none;
  display: inline-block;
}

.navbar .sign-up-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: rgba(255, 255, 255, .2);
  transition: left .3s;
}

.navbar .sign-up-btn:hover::before {
  left: 100%;
}

.navbar .sign-up-btn:hover {
  background: var(--dark-purple, #4c1d95);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, .3);
}

/* لو ما عندك متغيّر منفصل لبادينج الهيرو من فوق، عرّفه */
:root {
  --nav-h: 117px;
  /* لازم يطابق ارتفاع الهيدر الفعلي */
  --hero-pad-top: 140px;
  /* المسافة اللي بدك إياها فوق داخل الهيرو */
  --hero-pad-bottom: 100px;
  /* سفلي */
}

/* استخدم القيم المنفصلة بدل shorthand القديم */
.hero {
  /* الخلفية نفسها */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);


  /* خلّي الخلفية تبدأ من بداية الصفحة */
  margin-top: calc(-1 * var(--nav-h));
  /* نسحب الهيرو تحت الهيدر */
  padding-top: calc(var(--hero-pad-top) + var(--nav-h));
  /* نرجّع البادنغ عشان المحتوى ما يختفي */
  padding-bottom: var(--hero-pad-bottom);

  /* باقي خصائصك كما هي */
  color: #fff;
  overflow: hidden;
  position: relative;
  inline-size: 100%;
  min-height: var(--hero-min-h);
  display: flex;
  align-items: center;
}




.hero .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--hero-gap);
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  min-width: 0;
  margin-inline-start: var(--hero-content-nudge);
}

.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 700;
  line-height: 1.1;
  margin-block-end: 1.5rem;
  font-family: var(--font-ar);
}

.hero-subtitle {
  font-size: var(--hero-subtitle-size);
  line-height: 1.7;
  margin-block-end: 2.5rem;
  color: #DBEAFE;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 1 var(--hero-img-max);
  max-width: var(--hero-img-max);
  min-width: 0;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}



/* Hero bubbles */
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -150px;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  opacity: .6;
  animation: float-up 15s infinite ease-in;
}

.bubble:nth-child(1) {
  inline-size: 80px;
  block-size: 80px;
  inset-inline-start: 10%;
  animation-duration: 12s;
}

.bubble:nth-child(2) {
  inline-size: 40px;
  block-size: 40px;
  inset-inline-start: 20%;
  animation-duration: 10s;
  animation-delay: 2s;
  background: rgba(139, 92, 246, .1);
}

.bubble:nth-child(3) {
  inline-size: 120px;
  block-size: 120px;
  inset-inline-start: 35%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  inline-size: 60px;
  block-size: 60px;
  inset-inline-start: 50%;
  animation-duration: 15s;
  background: rgba(124, 58, 237, .1);
}

.bubble:nth-child(5) {
  inline-size: 90px;
  block-size: 90px;
  inset-inline-start: 65%;
  animation-duration: 14s;
  animation-delay: 3s;
}

.bubble:nth-child(6) {
  inline-size: 50px;
  block-size: 50px;
  inset-inline-start: 80%;
  animation-duration: 11s;
  animation-delay: 1s;
}

.bubble:nth-child(7) {
  inline-size: 150px;
  block-size: 150px;
  inset-inline-start: 90%;
  animation-duration: 20s;
  animation-delay: 5s;
  background: rgba(255, 255, 255, .05);
}

@keyframes float-up {
  0% {
    bottom: -150px;
    transform: translateX(0) rotate(0);
    opacity: 0;
  }

  10%, 90% {
    opacity: .6;
  }

  100% {
    bottom: 110vh;
    transform: translateX(100px) rotate(720deg);
    opacity: 0;
  }
}

/* فقط على الموبايل/التابلت: وسّط أزرار الهيرو */
@media (max-width: 992px) {
  .hero-buttons {
    justify-content: center;
  }
}

/* ================= Partners ================= */
.partners {
  padding-block: var(--partners-pad);
  text-align: center;
  background: #fff;
}

.partners h2 {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-ar);
}

.partners p {
  color: var(--text-soft);
  margin-block-end: 2rem;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 36px;
  font-weight: 700;

  /* 👇 أزل التعتيم واللون الرمادي */
  color: inherit;
  /* أو initial */
  opacity: 1;
}

/* ================= How It Works ================= */
.how-it-works {
  padding-block: var(--steps-pad);
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--steps-gap);
}

.step-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, .10);
  text-align: center;
  border: 1px solid var(--border);
}

.step-icon {
  inline-size: 64px;
  block-size: 64px;
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 1.5rem;
}

.step-card h3 {
  font-size: 24px;
  margin-block-end: 1rem;
}

.step-card p {
  font-size: 18px;
  color: var(--text-soft);
}

/* ================= Services ================= */
.services-section {
  padding-block-start: var(--services-top-pad);
  background: var(--muted);
}

.services-section .container {
  margin-block-end: 4rem;
}

.service-item {
  padding-block: var(--service-item-pad);
  position: relative;
  overflow: hidden;
}

.service-item .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--service-gap);
  max-width: 100%;
}

.service-item.service-odd {
  background: var(--muted);
}

.service-item.service-even {
  background: #fff;
  background-image: linear-gradient(to right, rgba(139, 92, 246, .2), rgba(255, 255, 255, 0));
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.service-content {
  flex: 1;
  min-width: 0;
}

.service-visual {
  flex-shrink: 0;
  inline-size: var(--service-visual-w);
  position: relative;
  min-width: 0;
}

.service-visual img {
  inline-size: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.service-icon-circle {
  position: absolute;
  inset-block-start: -20px;
  inset-inline-end: -15px;
  inline-size: 70px;
  block-size: 70px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}

.service-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59, 130, 246, .10);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  margin-block-end: 1.5rem;
  white-space: nowrap;
}

.service-item.service-even .service-label {
  background: rgba(139, 92, 246, .10);
  color: var(--secondary-color);
}

.service-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-block-end: 1rem;
}

.service-title .highlight {
  color: var(--accent-color);
}

.service-item.service-even .service-title .highlight {
  color: var(--secondary-color);
}

/* Force Sync color + weight only for ActionSync section */
#actionsync .service-title .highlight {
  color: #6366F1 !important;
  font-weight: 800;
}

.service-tagline-secondary {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  margin-block-end: 1.5rem;
}

.service-tagline-secondary .highlight-text {
  font-weight: 800;
  color: var(--text);
}

.service-description {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-soft);
  margin-block-end: 2rem;
}

.service-features {
  list-style: none;
  margin-block-end: 2rem;
}

.service-features li {
  position: relative;
  padding-inline-start: 2rem;
  margin-block-end: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 24px;
  block-size: 24px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.service-item.service-even .service-features li::before {
  background: var(--secondary-color);
}

.service-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-soft);
  margin-block-end: 2rem;
  font-style: italic;
}

.service-cards {
  display: flex;
  gap: var(--service-card-gap);
  margin-block-end: 2rem;
}

.info-card {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.info-card h4 {
  font-size: 1rem;
  margin-block-end: .5rem;
}

.info-card p {
  font-size: .9rem;
  color: var(--text-soft);
}

.service-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block-end: 2rem;
}

.info-card-list {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.info-card-list i {
  color: #6366F1;
  font-size: 1.2rem;
  margin-block-start: .2rem;
  flex-shrink: 0;
}

.service-item.service-even .info-card-list i {
  color: var(--secondary-color);
}

/* ================= Whom We Serve ================= */
.whom-we-serve {
  padding-block: var(--serve-pad);
  background: #fff;
}

.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--serve-gap);
}

.serve-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serve-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.serve-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.serve-card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAF5FF 0%, #EFF6FF 100%);
  padding: 2rem 1.5rem;
  text-align: center;
}

.serve-card-content h4 {
  font-size: 24px;
  font-weight: 700;
  color: #182980;
  margin: 0;
}

/* ================= Mission (Gradient) ================= */
.mission {
  inline-size: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
  color: #fff;
  padding-block: var(--mission-pad);
}

.mission-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-inline: 12px;
}

.mission-title {
  font-size: var(--mission-title);
  margin-block-end: 16px;
}

.mission-text {
  font-size: var(--mission-text);
  line-height: 1.9;
  color: #E9ECFF;
}

/* ================= Why We Stand Out (Comparison) ================= */
.why-stand-out {
  padding-block: var(--comp-pad);
  background: #fff;
}

.comparison-container {
  display: flex;
  gap: var(--comp-gap);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  padding-inline: var(--comp-safe-pad);
}

.comparison-card {
  flex: 1;
  padding: 2rem;
  border-radius: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  min-width: 280px;
  max-width: var(--comp-card-max);
  margin: 0 10px;
}

.comparison-card.featured {
  background: #e7f5ff;
  border: 1px solid #339af0;
  box-shadow: 0 10px 25px rgba(51, 154, 240, .15);
  position: relative;
  transform: scale(var(--comp-feature-scale));
  transform-origin: center;
  z-index: 1;
  padding: 3rem 2.5rem;
}

.featured-badge {
  position: absolute;
  inset-block-start: -15px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #339af0;
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comparison-card h3 {
  font-size: 1.3rem;
  margin-block-end: .75rem;
}

.comparison-card p {
  font-size: .9rem;
  color: #495057;
  margin-block-end: 1rem;
  line-height: 1.5;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  text-align: left;
  max-width: 260px;
}

.comparison-card li {
  margin-block-end: .75rem;
  font-size: .9rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.comparison-card:not(.featured) li::before {
  content: '✕';
  color: #e03131;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-block-start: 2px;
}

.comparison-card.featured li::before {
  content: '✓';
  color: #2f9e44;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-block-start: 2px;
}

.comparison-card .btn {
  margin-block-start: auto;
  inline-size: 100%;
  background: #339af0;
  border: none;
  padding: 10px;
  font-weight: 600;
  font-size: .95rem;
}

.comparison-card:not(.featured) {
  margin-top: 40px;
}

@media (max-width: 992px) {
  .comparison-card:not(.featured) {
    margin-top: 20px;
  }
}

.comparison-card.featured {
  transform: scale(1.05);
  z-index: 2;
}

/* ================= Contact & Footer ================= */
.contact {
  background: linear-gradient(135deg, #1E40AF 0%, #8B5CF6 50%, #7C3AED 100%);
  padding-block: var(--contact-pad);
  inline-size: 100%;
  overflow-x: hidden;
}

.contact-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: var(--contact-card-max);
  margin: 0 auto;
  inline-size: 100%;
}

.contact-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-block-end: 12px;
}

.contact-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-soft);
  margin-block-end: 32px;
}

.contact-content {
  display: flex;
  gap: var(--contact-gap);
  flex-wrap: wrap;
  inline-size: 100%;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 280px;
  inline-size: 100%;
}

.info-title {
  font-size: 22px;
  font-weight: 600;
  margin-block-end: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-block-end: 20px;
  inline-size: 100%;
}

.info-icon {
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.phone-icon {
  background: #1E40AF;
}

.email-icon {
  background: var(--primary-color);
}

.address-icon {
  background: #7C3AED;
}

.info-details {
  flex: 1;
  min-width: 0;
}

.info-details h4 {
  font-size: 15px;
  font-weight: 600;
  margin-block-end: 5px;
}

.info-details p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}

.form-group {
  margin-block-end: 16px;
  inline-size: 100%;
}

.form-control {
  inline-size: 100%;
  padding: 12px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 15px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .1);
  transform: translateY(-2px);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  inline-size: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 0;
  block-size: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: inline-size .6s, block-size .6s;
}

.submit-btn:hover::before {
  inline-size: 300px;
  block-size: 300px;
}

footer {
  background: #111827;
  color: #fff;
  padding-block: var(--footer-pad);
  opacity: 0;
  transform: translateY(24px);
  inline-size: 100%;
  overflow-x: hidden;
}

footer.animate {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--reveal-ease), transform .6s var(--reveal-ease);
}

.footer-content {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  padding-inline: var(--page-inline-pad);
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  margin-block-end: 12px;
}

.footer-description {
  font-size: 15px;
  color: #fff;
  margin-block-end: 26px;
  max-width: 500px;
  margin-inline: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-block-end: 32px;
  flex-wrap: wrap;
}

.social-link {
  inline-size: 38px;
  block-size: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: .3s;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid #1F2937;
  padding-block-start: 24px;
  font-size: 14.5px;
  color: #fff;
}

/* ================= Back to Top ================= */
.back-to-top {
  position: fixed;
  inset-block-end: 30px;
  inset-inline-end: 30px;
  inline-size: var(--btt-size);
  block-size: var(--btt-size);
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #1a2f8a;
  transform: translateY(-5px);
}

/* ================= Reveal (fade-up / stagger) ================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  will-change: opacity, transform;
  transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease);
}

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

.stagger>* {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease);
}

.stagger.is-visible>* {
  opacity: 1;
  transform: none;
}

.stagger>*:nth-child(1) {
  transition-delay: .05s;
}

.stagger>*:nth-child(2) {
  transition-delay: .15s;
}

.stagger>*:nth-child(3) {
  transition-delay: .25s;
}

.stagger>*:nth-child(4) {
  transition-delay: .35s;
}

.stagger>*:nth-child(5) {
  transition-delay: .45s;
}

.stagger>*:nth-child(6) {
  transition-delay: .55s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================= Responsive ================= */
@media (max-width:1200px) {
  .container, .container-wide {
    padding-inline: var(--page-inline-pad);
  }

  .comparison-container {
    flex-direction: column;
    align-items: center;
  }

  .comparison-card {
    margin: 10px 0;
  }
}

@media (max-width:992px) {
  .main-nav, .header-actions {
    display: none !important;
  }

  .main-header .container {
    justify-content: center;
  }

  .hero {
    padding-block: 120px 60px;
  }

  .hero .container-wide {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-content {
    margin-inline-start: 0;
  }

  .hero-image {
    flex-basis: 420px;
    max-width: 420px;
  }

  .steps-grid, .serve-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    flex-direction: column;
  }

  .service-item .container-wide {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }

  .service-visual {
    inline-size: 100%;
    max-width: 450px;
    margin-inline: auto;
  }

  .service-icon-circle {
    inset-block-start: -20px;
    inset-inline-end: calc(50% - 35px);
  }

  .comparison-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .comparison-card {
    inline-size: 100%;
    max-width: 500px;
  }

  .comparison-card.featured {
    transform: scale(1);
  }

  .mission-inner {
    padding-inline: 8px;
  }
}

@media (max-width:768px) {
  .container, .container-wide {
    padding-inline: 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-cards {
    flex-direction: column;
  }

  .contact-container {
    padding: 22px;
  }

  .contact-title {
    font-size: 26px;
  }

  .comparison-card {
    padding: 2rem 1.5rem;
  }

  .back-to-top {
    inset-block-end: 20px;
    inset-inline-end: 20px;
    inline-size: 45px;
    block-size: 45px;
  }
}

/* ================= RTL ================= */
html[dir="rtl"] {
  font-family: var(--font-ar);
}

@media (min-width: 993px) {
  html[dir="rtl"] .service-item.service-odd .container-wide {
    flex-direction: row;
  }

  html[dir="rtl"] .service-item.service-even .container-wide {
    flex-direction: row-reverse;
  }
}

html[dir="rtl"] .service-icon-circle {
  inset-inline-end: auto;
  inset-inline-start: -20px;
}

html[dir="rtl"] .back-to-top {
  inset-inline-end: auto;
  inset-inline-start: 30px;
}

html[dir="rtl"] .back-to-top.show {
  inset-inline-start: 30px;
}

@media (max-width: 992px) {
  html[dir="rtl"] .service-icon-circle {
    inset-inline-start: 50%;
    inset-inline-end: auto;
    transform: translateX(-50%);
  }
}

/* ================= Desktop Layout Alignment ================= */
@media (min-width: 993px) {
  .main-header .container, .hero .container-wide, .service-item .container-wide {
    max-width: 1200px !important;
    margin-inline: auto;
    padding-inline: 40px;
  }

  .hero {
    justify-content: center;
  }

  .hero .container-wide {
    align-items: center;
    justify-content: space_between;
    gap: 4rem;
  }

  .hero-content {
    margin-inline-start: 0;
  }

  .hero-title, .hero-subtitle {
    text-align: start;
  }

  .hero-image {
    max-width: 500px;
    flex-shrink: 0;
  }

  .service-item .container-wide {
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
  }

  .service-content {
    max-width: 550px;
  }

  .service-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .service-title, .service-description, .service-tagline-secondary {
    text-align: start;
  }
}







/* === Partner 120x120 image squares === */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  justify-items: center;
}

.partner-card {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  position: relative;
  overflow: hidden;
  transition: .35s ease;
}

.partner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease-in-out;
}

.partner-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  border-color: rgba(59, 130, 246, .35);
  background: #fff;
}

.partner-card:hover::after {
  transform: translateX(120%);
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;

  /* 👇 ألغِ التعتيم والغراي سكيل */
  filter: none;
  /* كان grayscale(100%) */
  opacity: 1;
  /* كان .9 */
  transition: .35s ease;
  mix-blend-mode: normal;
}

.partner-card:hover img {
  transform: scale(1.06);
  opacity: 1;
  filter: none;
}

/* --- Decorative Floating Squares --- */
.decorative-square {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  opacity: 0.8;
  animation: floatSquaresQuote 6s ease-in-out infinite;
  z-index: 1;
}

.square-1 {
  width: 45px;
  height: 45px;
  top: 10px;
  left: 1%;
  animation-delay: 0s;
}

.square-2 {
  width: 30px;
  height: 30px;
  top: 180px;
  left: 25%;
  animation-delay: 1s;
}

.square-3 {
  width: 25px;
  height: 25px;
  top: 90px;
  left: 40%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

.square-4 {
  width: 35px;
  height: 35px;
  top: 190px;
  left: 70%;
  animation-delay: 3s;
}

.square-5 {
  width: 28px;
  height: 28px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

.square-6 {
  width: 35px;
  height: 35px;
  top: 40px;
  left: 105%;
  animation-delay: 3s;
}

@keyframes floatSquaresQuote {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-10px);
    opacity: 0.8;
  }
}

@keyframes fadeInUpQuote {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======= Partners title tweak: bold only for the span ======= */
.partners .section-title {
  font-weight: 400 !important;
}

.partners .section-title .em {
  font-weight: 800 !important;
}

/* Partners title: bold only for "Scientific & Tech" */
.partners [data-translate-key="partners_title"] {
  font-weight: 400 !important;
}

.partners [data-translate-key="partners_title"] .em {
  font-weight: 800 !important;
}


/* === Insight cards icons === */
.info-card {
  position: relative;
  padding-top: 3.2rem;
}

.info-card .card-icon {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #EEF2FF, #E0E7FF);
  color: #6366F1;
  font-size: 18px;
}

.service-item.service-even .info-card .card-icon {
  background: linear-gradient(180deg, #F3E8FF, #EDE9FE);
  color: #7C3AED;
}

/* === Ensure white background for Insight image === */
.service-visual img.img-white {
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

/* Force square 399x399 white background for Action image */
.img-square-399 {
  width: 450px !important;
  height: 450px !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 16px;
  padding: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== RTL: خَلّي علامة ✓/✗ على اليمين والنص جنبها ===== */
html[dir="rtl"] .comparison-card ul {
  direction: rtl;
  /* القايمة عربي */
  text-align: right;
  /* محاذاة يمين */
}

html[dir="rtl"] .comparison-card li {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  /* ترتيب عادي، لأننا رح نثبّت الأيقونة يدويًا */
  gap: .5rem;
}

/* أهم جزء: ثبّت الأيقونة على اليمين مهما كانت القواعد القديمة */
html[dir="rtl"] .comparison-card li::before {
  position: static !important;
  /* ألغِ أي تموضع absolute/relative سابق */
  display: inline-block;
  /* منطقياً: خليها تظهر كبداية السطر (يمين في RTL) */
  order: -1;
  /* يسبق النصّ داخل الـflex */
  margin-inline-start: .25rem;
  /* مسافة صغيرة بعد الأيقونة */
  margin-inline-end: 0;
  /* في حال كان فيه left/right قديم: */
  left: auto !important;
  right: auto !important;
  float: none !important;
}

/* لو فيه كارد مميّز (الخانة الوسطى) وبتحس مسافتها مختلفة، نزبط نفس الشي */
html[dir="rtl"] .comparison-card.featured li::before {
  position: static !important;
  order: -1;
  margin-inline-start: .25rem;
  margin-inline-end: 0;
}

/* خلي الكرت المميّز مرجع للتموضع */
.comparison-card.featured {
  position: relative;
}

/* وسّط شارة BEST فوق الكرت تمامًا */
.comparison-card.featured .featured-badge {
  position: absolute !important;
  top: -12px;
  /* عدّلها إذا بدك أعلى/أدنى */
  left: 50% !important;
  /* نقطة المنتصف أفقياً */
  right: auto !important;
  transform: translateX(-50%) !important;
  /* مركز الشارة عند المنتصف */
  margin: 0 !important;
  float: none !important;
  /* إلغاء أي فلوت قديم */
  z-index: 1;
  /* تبقى فوق حدود الكرت */
}



/* لما المنيو مفتوحة، ثبّت الهيدر فوق كل شيء */
.navbar.is-open {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  /* أعلى من أي بانِل/باك دروب */
}

/* عطّل أي تأثير scroll أثناء الفتح */
.navbar.is-open.header-scrolled {
  transform: none !important;
  box-shadow: var(--shadow-sm);
  background: var(--header-bg-scrolled, rgba(255, 255, 255, .95));
}

/* (اختياري) لو الـbackdrop عم يغطي الهيدر عندك */
.navbar.is-open+.backdrop {
  z-index: 9998;
  /* أقل من الهيدر المثبّت */
}


.t-multiline {
  white-space: pre-line;
}

/* عطّل تمييز اللينكات على الهوم */
html.is-home .navbar .nav-links a.is-active {
  color: inherit !important;
  /* يرجّع اللون الافتراضي */
}

html.is-home .navbar .nav-links a.is-active::after {
  content: none !important;
  /* يخفي الخط السفلي المتدرّج */
}

.navbar .nav-links a,
.navbar .nav-links a:link,
.navbar .nav-links a:visited,
.navbar .nav-links a:active {
  color: #475569 !important;
  text-decoration: none;
}

.navbar .nav-links a:hover {
  color: var(--primary-color) !important;
}

html.is-home .navbar .nav-links a.is-active {
  color: #475569 !important;
}

html.is-home .navbar .nav-links a.is-active::after {
  content: none !important;
}


.hero {
  padding-block: 0 !important;
}

.hero .container-wide {
  padding-top: 175px;
  /* عدّل الرقم حسب ما يلزم */
  padding-bottom: 100px;
}

/* Override: place Back-to-Top on the left (LTR & RTL) */
.back-to-top {
  inset-inline-start: 30px !important;
  inset-inline-end: auto !important;
}

@media (max-width: 768px) {
  .back-to-top {
    inset-inline-start: 20px !important;
    inset-inline-end: auto !important;
  }
}


/* ===== Back-to-Top: دايمًا على اليسار (LTR/RTL) – CSS فقط ===== */
:root body #back-to-top.back-to-top,
:root[dir] body #back-to-top.back-to-top {
  position: fixed !important;
  bottom: 30px !important;
  left: 30px !important;          /* ← يسار دائمًا */
  right: auto !important;
  /* عطّل المنطقي بالكامل */
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  /* وقائي: لو كان في inset shorthand */
  inset: auto auto 30px 30px !important;
}

/* لو أي سكربت أو ستايل حطّ inline style، انسفه */
#back-to-top[style] {
  left: 30px !important;
  right: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
}

/* موبايل */
@media (max-width: 768px) {
  :root body #back-to-top.back-to-top,
  :root[dir] body #back-to-top.back-to-top {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    inset: auto auto 20px 20px !important;
  }
  #back-to-top[style]{
    left: 20px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
  }
}
