:root {
  --blue: #1f5883;
  --blue-dark: #163f61;
  --blue-mid: #2a6fa0;
  --blue-light: #4a90c4;
  --blue-pale: #e8f2fa;
  --blue-ghost: #f0f7fc;
  --accent: #f0a500;
  --accent-dark: #c87d00;
  --text-dark: #0d1f2d;
  --text-mid: #2c4a62;
  --text-light: #5a7a94;
  --white: #ffffff;
  --gray-bg: #f4f8fc;
  --border: #cce0f0;
  --shadow: rgba(31,88,131,0.10);
  --shadow-lg: rgba(31,88,131,0.18);
  --grad-blue: linear-gradient(135deg, #1f5883 0%, #2a6fa0 60%, #1f5883 100%);
  --grad-accent: linear-gradient(135deg, #f0a500 0%, #f5c842 50%, #f0a500 100%);
  --grad-bg: linear-gradient(160deg, #f0f7fc 0%, #e8f2fa 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  direction: rtl;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px var(--shadow);
  transition: all 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px var(--shadow-lg); }

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; object-fit: contain; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.lang-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  color: var(--text-mid);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn.active {
  background: var(--blue);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--blue-pale); color: var(--blue); }
.nav-links > li > a svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-links > li:hover > a svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}
.dropdown a:hover { background: var(--blue-pale); color: var(--blue); }
.dropdown a .d-icon { font-size: 16px; width: 22px; text-align: center; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-demo {
  padding: 10px 20px;
  background: var(--grad-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(31,88,131,0.35);
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-demo:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(31,88,131,0.45); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: white;
  z-index: 999;
  overflow-y: auto;
  padding: 90px 24px 40px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn-demo {
  margin-top: 20px;
  justify-content: center;
  font-size: 16px;
  padding: 14px;
}
.mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-lang button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-mid);
  transition: all 0.2s;
}
.mobile-lang button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 13px 28px;
  background: var(--grad-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 20px rgba(31,88,131,0.35);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(31,88,131,0.45); }

.btn-secondary {
  padding: 13px 28px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-secondary:hover { background: var(--blue); color: white; transform: translateY(-2px); }

.btn-accent {
  padding: 13px 28px;
  background: var(--grad-accent);
  color: var(--text-dark);
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 20px rgba(240,165,0,0.35);
  transition: all 0.3s;
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(240,165,0,0.45); }

/* ===== SECTION BASE ===== */
section { padding: 88px 24px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 580px;
}
.section-header { text-align: center; margin-bottom: 55px; }
.section-header .section-desc { margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,88,131,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(31,88,131,0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--grad-blue);
  padding: 44px 24px;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding: 0 20px;
}
.stat-item:first-child { border-right: none; }
.stat-num {
  font-size: 44px;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 70px 24px 28px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: rgba(255,255,255,0.65);
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--blue-light); text-decoration: none; }

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: white;
  animation: pulse-wa 2s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--grad-blue);
  padding: 140px 24px 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.7; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--accent); font-weight: 700; }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 40px var(--shadow);
}
.contact-form h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  background: var(--gray-bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s;
  direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(31,88,131,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--grad-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 18px rgba(31,88,131,0.35);
  transition: all 0.3s;
  margin-top: 6px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31,88,131,0.45); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-lang { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  section { padding: 60px 16px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form { padding: 22px; }
}

/* ===== NEW ADDITIONS ===== */

/* Mobile lang row */
.mobile-lang-row {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.mlang-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-mid);
  transition: all 0.2s;
}
.mlang-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* ===== HERO REDESIGN ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #f0f7fc 0%, #e8f2fa 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(31,88,131,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(31,88,131,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31,88,131,0.09);
  border: 1px solid rgba(31,88,131,0.18);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 22px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.28;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.typewriter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--blue);
}
.typewriter-text {
  color: var(--blue);
  min-height: 1.2em;
  display: inline-block;
}
.typewriter-cursor {
  display: inline-block;
  color: var(--blue);
  animation: blink 0.8s ease infinite;
  font-weight: 300;
  margin-inline-start: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Certified badge ABOVE dashboard */
.hero-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 8px 28px rgba(31,88,131,0.4);
  margin-bottom: -14px;
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-inline-start: 20px;
}
.hero-cert-badge .hcb-icon { font-size: 22px; }
.hero-cert-badge strong { display: block; font-size: 13px; font-weight: 800; }
.hero-cert-badge span { display: block; font-size: 11px; opacity: 0.8; }

.hero-dashboard {
  background: white;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 70px rgba(31,88,131,0.18);
  border: 1px solid var(--border);
  width: 100%;
  position: relative;
  z-index: 1;
  animation: float 4s ease infinite;
  
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.dash-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border); }
.dash-title { font-size:14px;font-weight:800;color:var(--text-dark); }
.dash-badge { background:rgba(31,88,131,0.1);color:var(--blue);border-radius:6px;padding:4px 10px;font-size:12px;font-weight:700; }
.dash-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px; }
.dash-stat { background:var(--blue-ghost);border-radius:10px;padding:12px;text-align:center; }
.dash-stat-num { font-size:20px;font-weight:900;color:var(--blue);margin-bottom:3px; }
.dash-stat-label { font-size:10px;color:var(--text-light); }
.dash-chart { height:80px;background:var(--blue-ghost);border-radius:10px;overflow:hidden;margin-bottom:14px; }
.dash-bars { display:flex;align-items:flex-end;gap:5px;padding:8px 10px;height:100%; }
.dash-bar { flex:1;border-radius:3px 3px 0 0;background:var(--blue);opacity:0.65;transition:opacity 0.3s; }
.dash-bar:hover{opacity:1;}
.dash-modules { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.dash-module { display:flex;align-items:center;gap:7px;background:var(--blue-ghost);border-radius:7px;padding:7px 9px; }
.dash-module-icon { width:26px;height:26px;background:var(--blue);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0; }
.dash-module-name { font-size:11px;font-weight:700;color:var(--text-mid); }

/* Growth badge BELOW dashboard */
.hero-growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 28px var(--shadow-lg);
  margin-top: -14px;
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-inline-end: 20px;
}
.hero-growth-badge .hgb-icon { font-size: 22px; }
.hero-growth-badge strong { display: block; font-size: 13px; font-weight: 800; color: var(--text-dark); }
.hero-growth-badge span { display: block; font-size: 11px; color: var(--text-light); }

/* ===== MODULES INFINITE SLIDER ===== */
.modules-slider-wrap {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 80px;
}
.modules-slider-fade {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.modules-slider-fade-right { right: 0; background: linear-gradient(to left, white 30%, transparent); }
.modules-slider-fade-left { left: 0; background: linear-gradient(to right, white 30%, transparent); }

.modules-slider-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  will-change: transform;
}
.module-slide {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  height: 100%;
  border-inline-end: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 140px;
  justify-content: center;
  user-select: none;
}
.module-slide:hover { background: var(--blue-ghost); }
.module-slide.active {
  background: var(--blue-pale);
}
.module-slide.active .ms-icon { font-size: 30px; }
.module-slide.active .ms-label {
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
}
.ms-icon {
  font-size: 22px;
  transition: all 0.3s;
  display: block;
}
.ms-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.3s;
}

/* ===== INTEGRATION SEAMLESS MARQUEE ===== */
.integ-marquee-outer {
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}
.integ-marquee-fade {
  position: absolute;
  top: 0;
  width: 130px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.integ-marquee-fade-r { right: 0; background: linear-gradient(to left, var(--text-dark), transparent); }
.integ-marquee-fade-l { left: 0; background: linear-gradient(to right, var(--text-dark), transparent); }

.integ-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: seamless-marquee 32s linear infinite;
}
.integ-marquee-track:hover { animation-play-state: paused; }

@keyframes seamless-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.integ-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 28px;
  border-inline-end: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}
.integ-item:hover {
  background: rgba(31,88,131,0.25);
  color: var(--blue-light);
}
.integ-item span { font-size: 22px; }

/* Why cert badge */
.why-cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blue);
  color: white;
  border-radius: 14px;
  padding: 14px 18px;
  position: absolute;
  top: -18px;
  inset-inline-start: 20px;
  box-shadow: 0 8px 28px rgba(31,88,131,0.45);
  z-index: 2;
}
.wcb-icon { font-size: 26px; }
.why-cert-badge strong { display: block; font-size: 13px; font-weight: 800; }
.why-cert-badge span { display: block; font-size: 11px; opacity: 0.8; }

.why-main-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 50px var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  margin-top: 28px;
}
.why-card-img {
  background: var(--blue-ghost);
  border-radius: 14px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}
.why-card-text strong { display: block; font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.why-card-text span { font-size: 12px; color: var(--text-light); }

/* ===== FOOTER STANDARDIZED ===== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 65px 24px 28px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; display: block; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.48);
  max-width: 280px;
  margin-top: 4px;
}
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: rgba(255,255,255,0.6);
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; transform: translateY(-2px); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.3px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--blue-light); text-decoration: none; }
.footer-bottom .sep { margin: 0 6px; opacity: 0.4; }

/* ===== WHY grid fix ===== */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: start;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  transition: all 0.3s;
}
.why-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--shadow); border-color: var(--blue-light); }
.why-item-icon { width: 40px; height: 40px; background: var(--blue-pale); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 9px; transition: all 0.3s; }
.why-item:hover .why-item-icon { background: var(--blue); }
.why-item h4 { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.why-item p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ===== COMPAT BADGE ===== */
.compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(31,88,131,0.18);
  border: 1px solid rgba(31,88,131,0.38);
  border-radius: 16px;
  padding: 20px 30px;
}
.compat-icon { font-size: 28px; }
.compat-badge strong { display: block; font-size: 15px; font-weight: 800; color: var(--blue-light); }
.compat-badge span { display: block; font-size: 12px; color: rgba(255,255,255,0.48); }

/* ===== NO SECTOR CTA ===== */
.no-sector-cta {
  background: white;
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 44px 32px;
  text-align: center;
  margin-top: 40px;
  transition: all 0.3s;
}
.no-sector-cta:hover { border-color: var(--blue-light);color: var(--text-dark); background: var(--blue-ghost); }
.no-sector-cta h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.no-sector-cta p { font-size: 15px; color: var(--text-light); margin-bottom: 22px; }

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-badge { margin: 0 auto 22px; }
  .hero-subtitle { margin: 0 auto 28px; }
  .why-layout { grid-template-columns: 1fr; }
  .why-visual-wrap { display: none; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .modules-slider-wrap { height: 70px; }
  .module-slide { min-width: 120px; padding: 0 18px; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .module-slide { min-width: 100px; padding: 0 12px; }
  .module-slide .ms-label { font-size: 11px; }
}

/* ===== SEAMLESS INFINITE MARQUEE (no gaps, no white start) ===== */
/* Used for: modules carousel, integration logos, client logos */
/* seamlessMarquee removed — using Swiper */
@keyframes seamlessMarqueeRTL {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ===== LTR language support ===== */
[dir="ltr"] .contact-item:hover { transform: translateX(4px) !important; }
[dir="ltr"] .why-cert { inset-inline-start: -18px; }
[dir="ltr"] .footer-col ul li a { flex-direction: row; }
[dir="ltr"] .hero-cert-overlay { inset-inline-start: 12px; }

/* ===== CTA SECTION improved ===== */
.cta-section-improved {
  background: var(--grad-blue);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section-improved::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-section-improved .cta-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}
.cta-grid-text h2 { font-size: clamp(24px,3.8vw,42px); font-weight: 900; color: white; margin-bottom: 10px; }
.cta-grid-text p  { font-size: 16px; color: rgba(255,255,255,.82); line-height: 1.7; }
.cta-grid-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.cta-phone-box {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
}
.cta-phone-box .cpb-label { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.cta-phone-box .cpb-num   { font-size: 20px; font-weight: 900; color: white; letter-spacing: .5px; }
@media(max-width:760px){
  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-grid-actions { align-items: center; }
}

/* ===== CLIENT LOGOS MARQUEE (seamless) ===== */
/* clients swiper styles now in index.html inline CSS */
.client-logo-pill { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-inline-end: 1px solid var(--border); white-space: nowrap; cursor: default; transition: background .2s; height: 60px; }
.client-logo-pill:hover { background: var(--blue-ghost); }
.client-logo-pill .clp-icon { font-size: 24px; }
.client-logo-pill .clp-name { font-size: 13px; font-weight: 700; color: var(--text-mid); }

/* ===== CLIENTS PAGE — filter + cards ===== */
.clients-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  background: white;
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.clients-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.client-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all .3s;
}
.client-detail-card:hover { transform: translateY(-5px); box-shadow: 0 14px 42px var(--shadow-lg); }
.client-card-header {
  background: var(--blue-ghost);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.client-card-logo {
  width: 60px; height: 60px;
  background: var(--grad-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.client-card-info h3 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 3px; }
.client-card-info .sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  padding: 3px 10px;
}
.client-card-body { padding: 20px; }
.client-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.client-stats-row { display: flex; gap: 16px; }
.csr-item { text-align: center; flex: 1; background: var(--blue-ghost); border-radius: 10px; padding: 10px 6px; }
.csr-item .csr-num { font-size: 18px; font-weight: 900; color: var(--blue); }
.csr-item .csr-label { font-size: 10px; color: var(--text-light); }
@media(max-width:900px){ .clients-cards-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:600px){ .clients-cards-grid{grid-template-columns:1fr;} }

/* ===== MOBILE APP PAGE — service cards ===== */
.app-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.app-service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.app-service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: var(--grad-blue);
  transform: scaleY(0);
  transition: transform .3s;
  transform-origin: top;
}
.app-service-card:hover::before { transform: scaleY(1); }
.app-service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 42px var(--shadow-lg); }
.app-service-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.app-service-card h3 { font-size: 17px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.app-service-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.app-service-features { list-style: none; }
.app-service-features li { font-size: 12px; color: var(--text-mid); padding: 3px 0; display: flex; align-items: center; gap: 7px; }
.app-service-features li::before { content: '✓'; color: var(--blue); font-weight: 800; }
@media(max-width:900px){ .app-services-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:600px){ .app-services-grid{grid-template-columns:1fr;} }

/* ===== HERO VISUAL fix — cert badge truly on top of image ===== */
.hero-visual-wrapper { position: relative; width: 100%; padding-left: 10px;}
.hero-cert-top {
  position: absolute;
  top: -16px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  border-radius: 50px;
  padding: 8px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(31,88,131,.45);
  z-index: 4;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.hero-cert-top .hct-icon { font-size: 18px; }
[dir="ltr"] .hero-cert-top { transform: translateX(50%); inset-inline-start: auto; inset-inline-end: 50%; }

/* LTR Marquee direction */
@keyframes seamlessMarqueeLTR {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ===== RTL/LTR misc fixes ===== */
[dir="ltr"] .sys-card::before { transform-origin: left; }
[dir="ltr"] .sys-card:hover::before { transform-origin: right; }
[dir="ltr"] .app-service-card::before { transform-origin: left; }
[dir="ltr"] .breadcrumb { direction: ltr; }
[dir="ltr"] .hero-cert-top { inset-inline-start: auto; inset-inline-end: auto; left: 50%; transform: translateX(-50%); }
[dir="ltr"] .modules-carousel-wrap::before { left: 0; right: auto; background: linear-gradient(to right, white, transparent); }
[dir="ltr"] .modules-carousel-wrap::after  { right: 0; left: auto; background: linear-gradient(to left, white, transparent); }
[dir="ltr"] .marquee-wrap::before { left: 0; right: auto; background: linear-gradient(to right, var(--text-dark), transparent); }
[dir="ltr"] .marquee-wrap::after  { right: 0; left: auto; background: linear-gradient(to left, var(--text-dark), transparent); }
[dir="ltr"] .clients-marquee-wrap::before { left: 0; right: auto; background: linear-gradient(to right, white, transparent); }
[dir="ltr"] .clients-marquee-wrap::after  { right: 0; left: auto; background: linear-gradient(to left, white, transparent); }
