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

:root {
  --blue-dark:  #0a2540;
  --blue-mid:   #1a56db;
  --blue-light: #3b82f6;
  --blue-pale:  #eff6ff;
  --white:      #ffffff;
  --gray-100:   #f8fafc;
  --gray-200:   #e2e8f0;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(10,37,64,.10);
  --shadow-lg:  0 12px 40px rgba(10,37,64,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: 'Inter', 'Cairo', sans-serif; line-height: 1.6; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo span, .logo-en { color: var(--blue-mid); font-weight: 600; font-size: 1rem; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue-mid); }

.btn-nav {
  background: var(--blue-mid);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background .2s, transform .2s !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  background: var(--blue-pale);
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-mid);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  transition: all .2s;
  font-family: inherit;
}
.lang-toggle:hover { background: var(--blue-mid); color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1e3a8a 55%, var(--blue-light) 100%);
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(59,130,246,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(255,255,255,.05) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 24px 140px;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: .3px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 24px;
}
html[lang="en"] .hero-content h1 { line-height: 1.15; letter-spacing: -1px; }

.highlight {
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content > p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-domain {
  margin-top: 28px;
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  letter-spacing: 1px;
  font-weight: 500;
  direction: ltr;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
  font-family: inherit;
}
.btn-primary { background: var(--white); color: var(--blue-mid); }
.btn-primary:hover { background: var(--blue-pale); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-white {
  background: var(--white); color: var(--blue-mid);
  font-weight: 700; padding: 14px 36px;
  border-radius: 10px; cursor: pointer; border: none;
  font-size: 1rem; transition: all .25s; font-family: inherit;
}
.btn-white:hover { background: var(--blue-pale); transform: translateY(-2px); box-shadow: var(--shadow); }

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-100); }

.section-label {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
html[lang="ar"] .section-label { letter-spacing: 0; }
.section-label.light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}
html[lang="en"] .section-title { letter-spacing: -.5px; line-height: 1.2; }
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1.02rem;
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 52px;
}
.section-sub.light { color: rgba(255,255,255,.75); }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.about-text > p {
  color: var(--gray-500);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.9;
}

/* Vision & Mission cards */
.vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.vm-card {
  background: var(--blue-pale);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 22px 20px;
}
.vm-icon { font-size: 1.4rem; margin-bottom: 10px; }
.vm-card h4 { font-size: .95rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 8px; }
.vm-card p { font-size: .88rem; color: var(--gray-500); line-height: 1.7; }

/* Values */
.values-column { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.values-header {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  background: var(--blue-pale);
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
}
html[lang="ar"] .values-header { letter-spacing: 0; }

.value-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.value-card:hover { transform: translateY(-3px); }
.value-card.accent { background: var(--blue-mid); border-color: var(--blue-mid); }
.value-card.accent .value-letter,
.value-card.accent .value-content h4,
.value-card.accent .value-content p { color: var(--white); }
.value-card.accent .value-content p { color: rgba(255,255,255,.8); }

.value-letter {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-mid);
  min-width: 44px;
  text-align: center;
  line-height: 1;
}
.value-content h4 { font-size: 1rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 4px; }
.value-content p  { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.service-card.featured { background: var(--blue-mid); border-color: var(--blue-mid); }
.service-card.featured h3,
.service-card.featured .service-list li { color: var(--white); }
.service-card.featured .service-list li::before { background: rgba(255,255,255,.5); }

.service-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 14px; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: .84rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-mid);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ===== CLIENTS / STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.big-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.big-stat-card:hover { transform: translateY(-4px); }
.big-stat-card.accent { background: var(--blue-mid); border-color: var(--blue-mid); }
.big-stat-card.accent .big-stat-number,
.big-stat-card.accent .big-stat-label { color: var(--white); }
.big-stat-card.highlight-card { background: var(--blue-dark); border-color: var(--blue-dark); }
.big-stat-card.highlight-card .big-stat-number,
.big-stat-card.highlight-card .big-stat-label { color: var(--white); }

.big-stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue-mid);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-unit { font-size: 1rem; font-weight: 600; margin-right: 4px; margin-left: 4px; }
.big-stat-label {
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 600;
  line-height: 1.5;
}

/* ===== CONTACT ===== */
.contact-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1e3a8a 60%, var(--blue-light) 100%);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.contact-form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  direction: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.38); }
.form-group input:focus,
.form-group textarea:focus { border-color: #60a5fa; }
.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  margin-top: 14px;
  color: #86efac;
  font-weight: 600;
  font-size: .92rem;
}

.contact-info { display: flex; flex-direction: column; gap: 30px; padding-top: 8px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.info-item strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}
html[lang="ar"] .info-item strong { letter-spacing: 0; }
.info-item p { color: var(--white); font-size: .95rem; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-dark); padding: 28px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer .logo { color: var(--white); }
.footer .logo span { color: #60a5fa; }
.footer p { color: rgba(255,255,255,.42); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ===== RTL ===== */
html[dir="rtl"] .nav-inner,
html[dir="rtl"] .nav-right,
html[dir="rtl"] .nav-links  { flex-direction: row-reverse; }
html[dir="rtl"] .hero-content { direction: rtl; }
html[dir="rtl"] .about-grid { direction: rtl; }
html[dir="rtl"] .vm-cards { direction: rtl; }
html[dir="rtl"] .value-card { flex-direction: row-reverse; }
html[dir="rtl"] .section-label,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-sub { text-align: right; }
html[dir="rtl"] .service-card { direction: rtl; }
html[dir="rtl"] .service-list li { flex-direction: row; }
html[dir="rtl"] .contact-wrapper { direction: rtl; }
html[dir="rtl"] .info-item { flex-direction: row; direction: rtl; }
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .footer-links { flex-direction: row-reverse; }
html[dir="rtl"] .form-group label { text-align: right; }

/* LTR overrides when in EN mode */
html[dir="ltr"] .value-card { flex-direction: row; }
html[dir="ltr"] .service-list li { flex-direction: row; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about-grid,
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .vm-cards       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 18px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .services-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  html[dir="rtl"] .footer-inner { align-items: center; }
  .vm-cards { grid-template-columns: 1fr; }
}
