:root {
  --bg: #0a1118;
  --bg-soft: #101922;
  --surface: rgba(17, 25, 35, 0.88);
  --surface-2: rgba(20, 29, 40, 0.92);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.1);

  --text: #edf2f7;
  --text-soft: #b7c1cd;
  --text-muted: #8e99a7;

  --title: #dbe5ef;
  --primary: #7fd6bf;
  --primary-2: #5eb8ff;
  --accent: #b7e07a;

  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --section-space: 78px;
  --transition: 0.32s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="ar"] body {
  font-family: "Cairo", sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(94, 184, 255, 0.08), transparent 20%),
    radial-gradient(circle at 85% 80%, rgba(127, 214, 191, 0.08), transparent 18%),
    linear-gradient(180deg, #0a1118 0%, #0b121a 45%, #0c131b 100%);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.bg-shape {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.shape-1 {
  width: 260px;
  height: 260px;
  top: 40px;
  left: -60px;
  background: #4b97d9;
}

.shape-2 {
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: 20px;
  background: #68b89b;
}

.container {
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 10px 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 14, 21, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(127, 214, 191, 0.18), rgba(94, 184, 255, 0.18));
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.15rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link-item i {
  font-size: 0.95rem;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--text);
  background: rgba(255,255,255,0.045);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn,
.menu-btn,
.drawer-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}

.lang-btn:hover,
.menu-btn:hover,
.drawer-close:hover {
  background: rgba(255,255,255,0.06);
}

.menu-btn {
  display: none;
  font-size: 1.2rem;
}

.btn-primary-custom,
.btn-secondary-custom {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-primary-custom {
  color: #081118;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 26px rgba(94, 184, 255, 0.16);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
}

.btn-secondary-custom {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
}

.btn-secondary-custom:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Mobile Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  background: rgba(5, 9, 14, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  width: min(88vw, 360px);
  height: 100vh;
  z-index: 1300;
  padding: 20px;
  background: rgba(10, 16, 23, 0.98);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: 0;
  transform: translateX(-110%);
  border-left: 0;
  border-right: 1px solid var(--line);
}

html[dir="ltr"] .mobile-drawer {
  right: 0;
  left: auto;
  transform: translateX(110%);
  border-left: 1px solid var(--line);
  border-right: 0;
}

.mobile-drawer.open {
  transform: translateX(0) !important;
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  font-weight: 700;
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

.mobile-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

/* Hero */
.hero-section {
  padding: 160px 0 100px;
  margin-top: -108px;
  background: url('elgamal-header.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10, 17, 24, 0.90) 0%, rgba(10, 17, 24, 0.25) 100%);
  z-index: -1;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #c7d7e4;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--title);
}

.hero-subtitle {
  margin-bottom: 12px;
  color: #d2dce7;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 700;
  line-height: 1.85;
}

.hero-text {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.stat-box i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(127, 214, 191, 0.08);
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-box strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--text);
}

.stat-box span {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.hero-card {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.95), rgba(13, 20, 29, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-card-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-card-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

.hero-card-top span:nth-child(1) { background: #ef7d7d; }
.hero-card-top span:nth-child(2) { background: #d8c173; }
.hero-card-top span:nth-child(3) { background: #78cb9b; }

.hero-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-info-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 214, 191, 0.1);
  color: var(--text);
}

.hero-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--title);
}

.hero-info p {
  margin: 0;
  color: var(--text-soft);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Sections */
.section-block {
  padding: var(--section-space) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  position: relative;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(127, 214, 191, 0.08);
  border: 1px solid rgba(127, 214, 191, 0.12);
  color: #c6e9dc;
  font-size: 0.9rem;
  font-weight: 700;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--title);
}

.section-text {
  margin: 0 auto;
  color: var(--text-soft);
  max-width: 680px;
  font-size: 0.98rem;
}

/* Cards */
.soft-card,
.service-card,
.product-card,
.reason-card,
.process-card,
.contact-card,
.map-card {
  height: 100%;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.soft-card:hover,
.service-card:hover,
.product-card:hover,
.reason-card:hover,
.process-card:hover,
.contact-card:hover,
.map-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h3,
.service-card h3,
.product-card h3,
.reason-card h3,
.process-card h3,
.map-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--title);
  line-height: 1.4;
}

.soft-card p,
.service-card p,
.product-card p,
.reason-card p,
.process-card p,
.contact-card p,
.map-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.icon-wrap {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(127, 214, 191, 0.12), rgba(94, 184, 255, 0.12));
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1.15rem;
}

/* Service/Product spacing polish */
.service-card,
.product-card {
  display: flex;
  flex-direction: column;
}

.service-card .icon-wrap,
.product-card .icon-wrap {
  margin-bottom: 14px;
}

.service-card h3,
.product-card h3 {
  margin-bottom: 10px;
}

/* Reasons */
.reason-number,
.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(183, 224, 122, 0.08);
  border: 1px solid rgba(183, 224, 122, 0.14);
  color: #dceab0;
  font-size: 0.88rem;
  font-weight: 800;
}

/* Contact */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item .icon-wrap {
  margin-bottom: 0;
}

.contact-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item a,
.contact-item p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Contact Form */
.form-card {
  height: 100%;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.form-card:hover {  
  transform: translateY(-4px);  
  border-color: rgba(255,255,255,0.1);  
}

.form-label {
  font-weight: 700;
  color: var(--title);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form-control {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 214, 191, 0.15);
  color: var(--text);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.custom-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
  flex: 1 1 auto;
}

.custom-check:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.custom-check .form-check-input {
  margin-top: 0;
  width: 1.1em;
  height: 1.1em;
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  cursor: pointer;
  box-shadow: none;
}

.custom-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-check .form-check-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.custom-check:has(.form-check-input:checked) {
  background: rgba(127, 214, 191, 0.08);
  border-color: rgba(127, 214, 191, 0.2);
}

.custom-check:has(.form-check-input:checked) .form-check-label {
  color: var(--title);
}

/* Footer */
.site-footer {
  padding: 26px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(8, 13, 19, 0.92);
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-soft);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Alignment */
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .soft-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .product-card,
html[dir="rtl"] .reason-card,
html[dir="rtl"] .process-card,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .map-card {
  text-align: right;
}

html[dir="ltr"] .hero-copy,
html[dir="ltr"] .soft-card,
html[dir="ltr"] .service-card,
html[dir="ltr"] .product-card,
html[dir="ltr"] .reason-card,
html[dir="ltr"] .process-card,
html[dir="ltr"] .contact-card,
html[dir="ltr"] .map-card {
  text-align: left;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 991.98px) {
  :root {
    --section-space: 64px;
  }

  .hero-stats,
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-space: 56px;
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-shell {
    min-height: 70px;
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .soft-card,
  .service-card,
  .product-card,
  .reason-card,
  .process-card,
  .contact-card,
  .map-card {
    padding: 20px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .mobile-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}
