/* =========================================================
   Mulfi.net — Shared Styles (AR/EN)
   File: /css/style.css
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060B18;
  --bg2: #0A1020;
  --card: #0D1628;
  --border: rgba(139,92,246,0.18);
  --purple: #8B5CF6;
  --purple2: #6D28D9;
  --purple-glow: rgba(139,92,246,0.35);
  --cyan: #22D3EE;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Tajawal', sans-serif;
  min-height: 100vh;
  overflow-x: hidden; /* حماية من السحب يمين/يسار */
}

/* عناصر عامة تمنع تمدد مزعج */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* تحسين الوصول: إظهار التركيز فقط عند التنقل بالكيبورد */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid rgba(139,92,246,0.7);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Background Effects ---------- */
/* 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Grid BG */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Glow Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.blob1 { width: 500px; height: 500px; background: rgba(139,92,246,0.12); top: -150px; right: -100px; }
.blob2 { width: 400px; height: 400px; background: rgba(34,211,238,0.07); bottom: -100px; left: -100px; }

/* Floating Glyphs */
.glyph {
  position: fixed;
  font-family: 'Courier New', monospace;
  color: rgba(139,92,246,0.08);
  font-weight: 700;
  pointer-events: none;
  z-index: 0;
  animation: floatGlyph 20s ease-in-out infinite;
}
.glyph1 { font-size: 6rem; top: 15%; left: 3%; animation-delay: 0s; }
.glyph2 { font-size: 4rem; top: 60%; right: 4%; animation-delay: -7s; }
.glyph3 { font-size: 5rem; bottom: 20%; left: 8%; animation-delay: -14s; }
.glyph4 { font-size: 3.5rem; top: 35%; left: 45%; animation-delay: -3s; }

@keyframes floatGlyph {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-25px) rotate(3deg); }
}

/* ---------- Navbar ---------- */
nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(6,11,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

nav.scrolled {
  padding: 0.7rem 3rem;
  box-shadow: 0 4px 40px rgba(139,92,246,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.nav-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text { font-size: 1.4rem; font-weight: 900; color: var(--white); letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links li a,
.nav-links li button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.nav-links li a:hover,
.nav-links li button:hover {
  color: var(--white);
  background: rgba(139,92,246,0.1);
}

.nav-links li a.active,
.nav-links li button.active { color: var(--purple); }

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  inset-inline: 1rem;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

/* Language button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.9rem;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 8px;
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-left: 0.01rem;
  margin-right: 0.01rem;
}
.lang-btn:hover {
  background: rgba(139,92,246,0.2);
  border-color: var(--purple);
}
.lang-flag { font-size: 1rem; }

/* ---------- Pages ---------- */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px; /* مساحة للنافبار */
  position: relative;
  z-index: 1;
}
.page.active { display: block; }

/* ---------- Home / Hero ---------- */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

/* Logo Hero */
.hero-logo-wrap {
  position: relative;
  margin-bottom: 2rem;
  animation: logoEntrance 1s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.5) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.hero-logo-wrap svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 30px var(--purple-glow));
}

.hero-logo-ring {
  position: absolute;
  inset: -15px;
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  animation: spinRing 12s linear infinite;
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  transform: translateX(-50%);
}

@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.3s both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.9;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.8s 0.5s both;
}

.hero-title span {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.7s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.9s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
  padding: 0.85rem 2.25rem;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 25px rgba(139,92,246,0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(139,92,246,0.55); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-outline {
  padding: 0.85rem 2.25rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-3px); }

/* ---------- Services ---------- */
.services-strip {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
}

.section-title span {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 20px 50px rgba(139,92,246,0.15);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Slideshow ---------- */
.slideshow-section {
  padding: 2rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.slideshow-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.slides-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, transparent 70%);
}

.slide-icon-col {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(34,211,238,0.1));
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
}

.slide-content { position: relative; z-index: 1; }
.slide-content h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.75rem; }
.slide-content p { color: var(--muted); line-height: 1.8; font-size: 1rem; max-width: 550px; }

.slide-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(139,92,246,0.08);
  font-family: 'Courier New', monospace;
  z-index: 1;
}

.slide-controls {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139,92,246,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.slide-dot.active { background: var(--purple); width: 24px; border-radius: 4px; }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  color: var(--text);
  font-size: 1.1rem;
  user-select: none;
}
.slide-arrow:hover { background: rgba(139,92,246,0.3); }
.slide-arrow.prev { right: 1rem; }
.slide-arrow.next { left: 1rem; }

/* ---------- Works ---------- */
.works-header {
  padding: 4rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.works-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(139,92,246,0.15);
  border-color: var(--purple);
  color: var(--purple);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.work-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(139,92,246,0.15);
}
.work-card:hover .work-thumb::before { opacity: 1; }

.work-thumb-t1 { background: linear-gradient(135deg, #1a0a3d, #0a1628); }
.work-thumb-t2 { background: linear-gradient(135deg, #0a2820, #061420); }
.work-thumb-t3 { background: linear-gradient(135deg, #1a1a0a, #0a0f20); }
.work-thumb-t4 { background: linear-gradient(135deg, #1a0a1a, #0a1020); }
.work-thumb-t5 { background: linear-gradient(135deg, #0a1a2a, #060b18); }
.work-thumb-t6 { background: linear-gradient(135deg, #1a0f0a, #120818); }

.work-info { padding: 1.5rem; }

.work-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.work-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.work-info p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.work-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.work-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 50px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; font-weight: 900; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }

.contact-methods { display: flex; flex-direction: column; gap: 1rem; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s;
}
.contact-method:hover { border-color: rgba(139,92,246,0.4); }

.contact-method-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-text { font-size: 0.9rem; }
.contact-method-text strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.contact-method-text span { color: var(--muted); font-size: 0.82rem; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
}

.form-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.75rem; }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: all 0.2s;
  direction: rtl;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.04);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}

.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: #0D1628; }

.hp { display: none; }

.form-submit { width: 100%; }

.status-msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}
.status-msg.ok {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  display: block;
}
.status-msg.bad {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.site-footer a { color: var(--purple); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- WhatsApp Button ---------- */
.wa-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.wa-btn svg { width: 28px; height: 28px; fill: white; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav { padding: 1rem .3rem; }
  nav.scrolled { padding: 0.6rem .3rem; }

  .nav-links li a,
  .nav-links li button { padding: 0.45rem 0.7rem; font-size: 0.88rem; }

  .slide { flex-direction: column; padding: 2.5rem 1.5rem; gap: 1.5rem; }
  .slide-icon-col { width: 80px; height: 80px; font-size: 2.5rem; }

  .contact-wrap { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }

  .slide-arrow { display: none; }
}

/* =========================
   Mobile Menu (Hamburger) — RTL first
   ========================= */

/* زر الهامبرجر */
.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(139,92,246,0.10);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  transition: all 0.2s;
}
.nav-toggle:hover{ background: rgba(139,92,246,0.18); border-color: rgba(139,92,246,0.35); }
.nav-toggle span{
  display:block;
  width:22px; height:2px;
  background: var(--text);
  border-radius:2px;
  transition: transform .25s, opacity .2s;
}

/* القائمة الجانبية (AR: تفتح من اليسار) */
.mobile-menu{
  position: fixed;
  top: 0;
  left: 0;               /* ✅ من اليسار للعربي */
  right: auto;
  width: min(320px, 86vw);
  height: 100vh;
  background: rgba(13,22,40,0.92);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  border-left: none;
  transform: translateX(-110%);  /* ✅ مخفية خارج اليسار */
  transition: transform 0.3s ease;
  z-index: 300;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu.open{
  transform: translateX(0);      /* تظهر */
}

.mobile-close{
  align-self: flex-end; /* في RTL زر الإغلاق يكون يسار داخل اللوحة */
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(139,92,246,0.10);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

/* روابط الموبايل */
.mobile-link{
  width: 100%;
  text-align: left;

  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.mobile-link:hover{
  border-color: rgba(139,92,246,0.45);
  background: rgba(139,92,246,0.10);
}

.lang-mobile{ display:flex; align-items:center; gap:8px; justify-content:flex-end; }

/* الخلفية السوداء */
.mobile-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

/* عرض الهامبرجر بالموبايل وإخفاء قائمة الديسكتوب */
@media (max-width: 768px){
  .nav-links{ display:none; }
  .nav-toggle{ display:inline-flex; }
}