/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --text-light: #334155;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent2: #ec4899;
  --accent3: #06b6d4;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-light: rgba(15, 23, 42, 0.08);
  --dark-bg: #0f172a;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #4f46e5, #06b6d4);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

/* Cursor: فقط على أجهزة الـ hover */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}
@media (hover: none) {
  .cursor,
  .cursor-follower { display: none !important; }
}

*, html, body { cursor: auto !important; }

a, a *,
button, button *,
.btn-primary-glow,
.btn-ghost,
.btn-cta,
.chat-toggle,
.whatsapp-float,
.qr-btn,
.svc-card,
.svc-img-card,
.service-main-card,
.accordion-button { cursor: pointer !important; }

input[type="text"],
input,
textarea,
.chat-input { cursor: text !important; }

select { cursor: pointer !important; }

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.25s ease, width 0.3s, height 0.3s;
}

.cursor-follower.hover-effect {
  width: 60px;
  height: 60px;
  background: rgba(79, 70, 229, 0.1);
  border-color: var(--accent);
}


/* ============================================================
   NAVBAR
   ============================================================ */
nav,
.navbar-custom {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
  width: 100%;
}

nav.scrolled { padding: 16px 0; }

.nav-logo {
  font-weight: 900;
  font-size: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--text);
  color: white;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
  color: white;
}

.navbar-custom { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #f1f5f9; z-index: 1000; height: 80px; display: flex; align-items: center; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-size: 1.6rem; font-weight: 900; text-decoration: none; color: #0f172a; font-family: 'Cairo', sans-serif; }
.nav-logo span { color: #4f46e5; }
.nav-links { list-style: none; display: flex; gap: 35px; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: #475569; font-weight: 700; font-size: 1.05rem; transition: 0.3s; }
.nav-links a:hover { color: #4f46e5; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-switch { background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 16px; border-radius: 50px; cursor: pointer; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 14px; color: #4f46e5; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.lang-switch:hover { background: #4f46e5; color: white; border-color: #4f46e5; }
.nav-cta { background: #4f46e5; color: white !important; padding: 10px 24px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.3s; box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2); }
.mobile-toggle { background: none; border: none; font-size: 24px; color: #0f172a; cursor: pointer; display: none; }
@media (max-width: 991.98px) {
  .nav-links { position: absolute; top: 80px; right: 0; width: 100%; background: white; flex-direction: column; padding: 30px 0; box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-top: 1px solid #f1f5f9; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.3s; }
  .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-toggle { display: block; }
  .d-none-mobile { display: none !important; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero,
.hero-services,
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #fdfdfd;
}

.hero-services {
  padding: 180px 0 100px;
  background: radial-gradient(circle at top left, var(--surface) 0%, #ffffff 100%);
  text-align: center;
  min-height: unset;
}

.hero-section {
  padding: 160px 0 120px;
  background: linear-gradient(135deg, var(--surface) 0%, #ffffff 100%);
  min-height: unset;
}

/* Orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.orb1 { width: 700px; height: 700px; background: var(--accent); top: -200px; right: -100px; }
.orb2 { width: 500px; height: 500px; background: var(--accent2); bottom: -100px; left: -100px; }
.orb3 { width: 400px; height: 400px; background: var(--accent3); top: 50%; left: 40%; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease forwards;
}

.hero-tag i { color: var(--accent2); font-size: 18px; }

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text);
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 820px;
}

.hero-desc {
  font-size: 19px;
  color: var(--muted);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 45px;
  font-weight: 600;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.6s ease both;
}

/* Hero Cards */
.hero-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 36px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 1);
}

.hcard-num { font-size: 54px; font-weight: 900; color: var(--text); line-height: 1; }
.hcard-label { font-size: 16px; color: var(--muted); font-weight: 700; margin-top: 8px; }

.hcard-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 24px;
}

.hcard-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.hcard-desc { font-size: 15px; color: var(--muted); line-height: 1.7; font-weight: 600; margin: 0; }
.glass-grad { background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05)); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-glow,
.btn-primary-custom {
  background: var(--text);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary-custom {
  padding: 20px 52px;
  border-radius: 100px;
  font-size: 18px;
}

.btn-primary-glow:hover,
.btn-primary-custom:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
  color: white;
}

.btn-ghost,
.btn-outline-custom {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.btn-outline-custom {
  border: 2px solid var(--border);
  padding: 18px 48px;
  border-radius: 100px;
  font-size: 18px;
}

.btn-ghost:hover { background: var(--surface); border-color: rgba(15, 23, 42, 0.15); transform: translateY(-3px); color: var(--text); }
.btn-outline-custom:hover { border-color: var(--text); background: var(--surface); }

.btn-cta {
  background: var(--accent);
  color: white;
  padding: 18px 45px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  border: none;
  width: 100%;
  font-family: 'Cairo', sans-serif;
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: scale(1.05);
}


/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker {
  display: flex;
  gap: 80px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-item { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 800; color: var(--text); }
.ticker-item i { color: var(--accent); font-size: 18px; }


/* ============================================================
   SECTIONS (عام)
   ============================================================ */
.section { padding: 140px 0; position: relative; z-index: 1; }

.section-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before { content: ''; width: 40px; height: 2px; background: var(--accent); }

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.section-title .muted { color: var(--muted); }

.section-badge {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}


/* ============================================================
   SERVICE CARDS
   ============================================================ */

/* الكارت الأساسي */
.svc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.svc-card:hover { transform: translateY(-12px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06); }

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: right;
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-card.dark-card { background: var(--text); color: white; }
.svc-card.dark-card .svc-icon { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.1); color: white; }
.svc-card.dark-card .svc-name,
.svc-card.dark-card .svc-arrow { color: white; }
.svc-card.dark-card .svc-desc { color: rgba(255, 255, 255, 0.7); }

.svc-num { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 30px; }

.svc-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 30px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.svc-card:hover .svc-icon { background: var(--text); color: white; }

.svc-name { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.svc-desc { font-size: 16px; color: var(--muted); line-height: 1.8; font-weight: 600; margin-bottom: 0; flex-grow: 1; }

.svc-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 30px;
  transition: gap 0.3s;
  align-self: flex-start;
}

.svc-card:hover .svc-arrow { gap: 16px; color: var(--accent); }

/* كارت صورة */
.svc-img-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.svc-img-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 60px rgba(79, 70, 229, 0.12);
  border-color: var(--accent);
}

.svc-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-img-card:hover img { transform: scale(1.1); }

.svc-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 30px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0) 100%);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.svc-img-card:hover .svc-card-overlay { transform: translateY(0); opacity: 1; }

.svc-card-icon { font-size: 30px; color: #ffffff; margin-bottom: 15px; }
.svc-card-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: #ffffff; line-height: 1.3; }
.svc-card-desc { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.85); line-height: 1.7; margin-bottom: 0; }

/* كارت outline */
.service-card-outline {
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 48px 40px;
  background: transparent;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-outline:hover {
  border-color: var(--text);
  background: white;
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* كارت solid */
.service-card-solid {
  background: white;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 40px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-solid:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.09);
  transform: translateY(-8px);
}

/* كارت dark */
.service-card-dark {
  background: var(--text);
  color: white;
  border-radius: 32px;
  padding: 48px 40px;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-dark:hover { background: var(--accent); transform: translateY(-8px); }

/* service icons */
.service-icon,
.icon-box {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  font-size: 28px;
  margin-bottom: 28px;
}

.icon-box {
  background: var(--dark-bg);
  color: white;
  font-size: 32px;
  margin-bottom: 30px;
}

.outline-icon { background: var(--surface); color: var(--text); }
.solid-icon { background: var(--surface2); color: var(--accent); }
.dark-icon { background: rgba(255, 255, 255, 0.12); color: white; }

/* service-main-card */
.service-main-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 50px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-main-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(79, 70, 229, 0.1);
}

.service-number {
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  font-weight: 900;
  color: var(--surface2);
  z-index: 0;
  opacity: 0.5;
}

.service-content { position: relative; z-index: 1; }

.features-list { list-style: none; padding: 0; margin-top: 25px; }

.features-list li {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.features-list li i { color: var(--accent); font-size: 18px; }


/* ============================================================
   TECH SECTION
   ============================================================ */
.tech-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.tech-card:hover::before { transform: scaleX(1); }

.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.10);
  border-color: var(--accent);
}

.tech-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.tech-card-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.tech-card-desc { font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
  margin-bottom: 6px;
}

.tech-badge-green  { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.tech-badge-blue   { background: rgba(79, 70, 229, 0.10); color: #4f46e5; }
.tech-badge-orange { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.tech-badge-red    { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.tech-featured {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: transparent;
  color: white;
}

.tech-featured .tech-card-title { color: #ffffff; }
.tech-featured .tech-card-desc  { color: rgba(255, 255, 255, 0.75); }
.tech-featured::before { background: linear-gradient(90deg, #25d366, #128c7e); }

.tech-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 10px;
}


/* ============================================================
   SERVICES SHOWCASE
   ============================================================ */
.services-showcase {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.showcase-header { margin-bottom: 70px; }

.showcase-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 15px;
}

.showcase-desc { font-size: 19px; font-weight: 600; color: var(--muted); line-height: 1.8; }


/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-container {
  background: var(--text);
  border-radius: 40px;
  padding: 70px 50px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.stat-item {
  background: var(--surface);
  padding: 60px 20px;
  text-align: center;
  transition: background 0.3s;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 100%;
  position: relative;
}

/* الـ divider الداخلي في stats-container */
.stats-container .stat-item {
  background: transparent;
  padding: unset;
  border: none;
}

.stats-container .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-item.no-border-end { border-left: none; }
.stat-item:hover { background: white; }

.stat-num { font-size: 58px; font-weight: 900; line-height: 1; color: var(--text); }
.stat-label { font-size: 16px; color: var(--muted); margin-top: 12px; font-weight: 700; }

.stats-container .stat-num { color: white; }
.stats-container .stat-label { color: rgba(255, 255, 255, 0.6); }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-box {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.about-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s ease; }
.about-img-box:hover img { transform: scale(1.05); }

.about-badge {
  position: absolute;
  bottom: 40px; right: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  padding: 24px 32px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-badge-num { font-size: 32px; font-weight: 900; color: var(--text); line-height: 1; }

.pill-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  height: 100%;
}

.pill-item:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05); }
.pill-num { font-size: 34px; font-weight: 900; color: var(--text); }
.pill-label { font-size: 15px; color: var(--muted); font-weight: 700; margin-top: 8px; }


/* ============================================================
   FOUNDATION / VM / CONTACT SECTIONS
   ============================================================ */
.foundation-section,
.services-section,
.contact-section {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.services-section { background: var(--surface); padding: 130px 0; }

.foundation-card {
  background: var(--dark-bg);
  color: white;
  border-radius: 40px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.foundation-card::after {
  content: '\f135';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: -30px;
  bottom: -50px;
  font-size: 220px;
  opacity: 0.06;
  color: white;
}

.date-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px 34px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 32px;
}

.vm-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 55px 45px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-card:hover {
  transform: translateY(-10px);
  border-color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.vm-icon {
  width: 85px;
  height: 85px;
  background: var(--text);
  color: white;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 32px;
}

.vm-card.mission .vm-icon {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.contact-box {
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px;
  text-align: center;
  transition: all 0.3s;
}

.contact-box:hover { border-color: var(--text); background: var(--surface); }

.contact-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  transition: 0.3s;
  text-align: center;
}

.contact-info-card:hover { border-color: var(--accent); background: var(--surface); }

.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--surface2);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: 0.3s;
}

.contact-info-card:hover .contact-icon { background: var(--accent); color: white; }

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--surface2);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s;
}

.social-links a:hover { background: var(--accent); color: white; }


/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section { padding: 120px 0; background: var(--surface); }

.price-card {
  background: white;
  border-radius: 35px;
  padding: 45px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.price-card.featured {
  background: var(--dark-bg);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.price-card.featured .price-btn { background: var(--accent); border: none; }

.price-btn {
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  font-weight: 800;
  margin-top: 30px;
  border: 2px solid var(--border);
  background: transparent;
  color: inherit;
  transition: 0.3s;
}


/* ============================================================
   WORK PROCESS
   ============================================================ */
.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  border-top: 2px dashed var(--border);
  z-index: -1;
}

.step-circle {
  width: 80px;
  height: 80px;
  background: white;
  border: 4px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 25px;
  color: var(--accent);
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--text);
  color: white;
}

.cta-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  color: white;
}

.cta-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.guarantee-section {
  padding: 110px 0;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
}


/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 20px;
  font-weight: 600;
  color: var(--text);
  background-color: var(--surface);
  transition: 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: none;
  background-color: white;
  outline: none;
}

.form-label {
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}


/* ============================================================
   ACCORDION
   ============================================================ */
.custom-accordion .accordion-item {
  border: 1px solid var(--border);
  border-radius: 24px !important;
  margin-bottom: 18px;
  overflow: hidden;
  background: white;
  transition: all 0.3s;
}

.custom-accordion .accordion-item:hover { border-color: var(--text); }

.custom-accordion .accordion-button {
  padding: 26px 32px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  background: white;
}

.custom-accordion .accordion-button:not(.collapsed) { background: var(--surface); }

.custom-accordion .accordion-body {
  padding: 0 32px 32px;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.85;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 100px 0 40px;
}

.footer-logo { font-size: 32px; font-weight: 900; color: var(--text); margin-bottom: 24px; display: block; text-decoration: none; }
.footer-desc { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 30px; font-weight: 600; }

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
}

.social-btn:hover { background: var(--text); color: white; transform: translateY(-4px); }

.footer-col-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0; }


/* ============================================================
   WHATSAPP FLOAT + CHAT WIDGET
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 110px; left: 30px;
  z-index: 9000;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 32px;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: all 0.3s;
  animation: floatWA 3s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4); color: white; }

.whatsapp-tooltip {
  position: absolute;
  left: 80px; top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: white;
  font-size: 15px; font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.chat-toggle {
  position: fixed;
  bottom: 30px; left: 30px;
  z-index: 9000;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  transition: all 0.3s;
}

.chat-toggle:hover { transform: scale(1.1); background: var(--accent); }

.chat-window {
  position: fixed;
  bottom: 110px; left: 30px;
  z-index: 8999;
  width: 380px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: scale(0.8) translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header { background: var(--surface); padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.chat-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; font-weight: 800; flex-shrink: 0; }
.chat-header-info h4 { font-size: 17px; font-weight: 800; color: var(--text); margin: 0; }
.chat-header-info p { font-size: 14px; color: var(--muted); margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.chat-header-info p::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; }

.chat-body {
  padding: 24px;
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fdfdfd;
}

.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 10px; }

.msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.7;
  animation: msgIn 0.3s ease;
  font-weight: 600;
}

.msg.bot { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 20px 20px 4px 20px; align-self: flex-start; }
.msg.user { background: var(--text); color: white; border-radius: 20px 20px 20px 4px; align-self: flex-end; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qr-btn { background: white; border: 1px solid var(--border); color: var(--text); padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 700; transition: all 0.2s; font-family: 'Cairo', sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); }
.qr-btn:hover { background: var(--surface); border-color: var(--text); }

.typing { display: flex; gap: 6px; align-items: center; padding: 16px 20px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-footer { padding: 20px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; background: white; }
.chat-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; color: var(--text); font-size: 15px; font-family: 'Cairo', sans-serif; outline: none; transition: border-color 0.3s; font-weight: 600; }
.chat-input::placeholder { color: var(--muted); }
.chat-input:focus { border-color: var(--text); background: white; }
.chat-send { width: 48px; height: 48px; border-radius: 14px; background: var(--text); border: none; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; transition: background 0.3s; flex-shrink: 0; transform: rotate(180deg); }
.chat-send:hover { background: var(--accent); }


/* ============================================================
   PAGE HEADERS (services, contact, terms, privacy)
   ============================================================ */
.page-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}

.terms-header,
.privacy-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, transparent 100%);
  text-align: center;
}


/* ============================================================
   GRID (terms / privacy)
   ============================================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-item {
  background: #fff;
  border: 1px solid var(--surface2);
  border-radius: 30px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08);
  transform: translateY(-5px);
}

.grid-item.wide { grid-column: span 2; }
.grid-item.full { grid-column: span 3; }

/* shared icon/title/desc for terms & privacy */
.t-icon, .p-icon {
  width: 55px; height: 55px;
  background: var(--surface);
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 25px;
  border: 1px solid var(--border);
}

.t-title, .p-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 15px; }
.t-desc, .p-desc { font-size: 16px; color: var(--muted); line-height: 1.8; font-weight: 600; margin-bottom: 0; }

/* Terms alert box */
.alert-box {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
  padding: 40px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.alert-box .t-icon { background: #fff; border-color: #feb2b2; color: #c53030; }
.alert-box .t-title { color: #c53030; }
.alert-box .t-desc { color: #9b2c2c; }

/* Privacy highlight box */
.highlight-box {
  background: var(--dark-bg);
  color: #fff;
  padding: 40px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.highlight-box .p-icon { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.highlight-box .p-title { color: #fff; }
.highlight-box .p-desc { color: rgba(255, 255, 255, 0.7); }


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

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

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-8px); background: var(--text); }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .section { padding: 100px 0; }
  .process-step::after { display: none; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-item { margin-bottom: 35px; }
  .stats-container { padding: 50px 25px; }
  .foundation-card, .vm-card { padding: 50px 35px; }
  .hero-tag { margin: 5vh 0; }
  .about-badge { display: none; }
  .about-img-box { min-height: auto; }
  .hero-services { padding: 40px 20px; }
  h1.display-3 { font-size: 2.5rem; }
  .service-main-card { padding: 25px; }
  .svc-card.fade-in.visible { padding: 20px; }
  h2.cta-title { font-size: xx-large; }
  section.hero { padding-bottom: 5vh; }
  .grid-container { grid-template-columns: 1fr; }
  .grid-item.wide, .grid-item.full { grid-column: span 1; }
  .alert-box, .highlight-box { flex-direction: column; text-align: center; }
  .alert-box .t-icon, .highlight-box .p-icon { margin: 0 auto 20px; }
  .d-flex.justify-content-center.gap-3.flex-wrap a { width: 100%; direction: ltr; text-align: center !important; justify-content: center; }
  .hcard-icon.mb-0 {
    display: none;
}
}

@media (max-width: 768px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; text-align: center; }
  .about-badge { right: 20px; bottom: 20px; padding: 16px 24px; }
  .chat-window { width: calc(100vw - 40px); left: 20px; }
}

@media (max-width: 576px) {
  .svc-img-card { height: 280px; }
  .svc-card-overlay { padding: 30px 20px; }
  .svc-card-title { font-size: 20px; }
  .tech-card { padding: 24px 20px; }
}