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

:root {
  --font-heading: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  /* Color Palette */
  --bg-dark: #242a38;
  --bg-card: rgba(22, 27, 38, 0.75);
  --bg-card-hover: rgba(30, 38, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.3);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent: #8b5cf6;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0f172a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Gradients & Effects */
.bg-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

.orb-1 {
  top: -50px;
  right: -50px;
  background: rgba(59, 130, 246, 0.25);
}

.orb-2 {
  top: 600px;
  left: -100px;
  background: rgba(139, 92, 246, 0.2);
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ==========================================================================
   2. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-glow);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3. NAVBAR & DROPDOWNS
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
}

.logo-mark {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.logo-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover { color: var(--text-main); }

/* Dropdowns */
.nav-dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: var(--transition);
}

.dropdown-btn:hover, .nav-dropdown:hover .dropdown-btn {
  color: var(--text-main);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero-inner {
  max-width: 850px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.88rem;
  color: #60a5fa;
  margin-bottom: 24px;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px #60a5fa;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. SECTIONS GENERAL
   ========================================================================== */
.section { padding: 90px 0; }
.section-alt { background: rgba(255, 255, 255, 0.015); }

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   6. SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.service-card.featured {
  border-color: var(--primary);
  position: relative;
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-list li {
  position: relative;
  padding-right: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.service-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  right: 0;
}

/* ==========================================================================
   7. CALCULATOR
   ========================================================================== */
.calc-panel {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

.calc-block {
  margin-bottom: 30px;
}

.calc-block-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-num {
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.option-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.option-card input {
  position: absolute;
  opacity: 0;
}

.option-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.option-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.option-price {
  font-size: 0.85rem;
  color: var(--primary);
}

.summary-card {
  position: sticky;
  top: 100px;
}

.summary-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-total {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 16px;
}

.summary-total span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.summary-total-sm { font-size: 1.5rem; }

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.summary-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   8. ABOUT & CONTACT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-points {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-point {
  display: flex;
  gap: 16px;
  color: var(--primary);
}

.about-point h5 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1rem;
}

.about-point p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.visual-row {
  margin-bottom: 16px;
}

.visual-row span {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.visual-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.visual-bar span {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
}

.contact-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form-row input:focus, .form-row textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   9. FOOTER & FLOATING WHATSAPP
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
  background: #111624;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-links h5, .footer-contact h5 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.footer-links a, .footer-contact a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .calc-panel { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-links.active { right: 0; }
  .burger { display: flex; }
  
  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    margin-top: 8px;
  }

  .hero-actions { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px;
}

.logo svg {
    height: 42px;
    width: auto;
    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}
body {
    background-color: #0a192f;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

.checkout-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(17, 34, 64, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 5px;
    color: #ffffff;
}

p {
    text-align: center;
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 20px;
}

.order-summary {
    background: rgba(2, 12, 27, 0.6);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #ccd6f6;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: #020c1b;
    border: 1px solid #233554;
    border-radius: 6px;
    color: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus {
    border-color: #64ffda;
    outline: none;
}

.form-row {
    display: flex;
    gap: 10px;
}

.alert-box {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    color: #ccd6f6;
    margin-bottom: 15px;
    line-height: 1.6;
}

.alert-box a {
    color: #64ffda;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: #64ffda;
    color: #0a192f;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #4cdbc2;
}





/* ===================== CALCULATOR & SOCIAL STYLES ===================== */
.calc-label {
  font-weight: 700;
  font-size: 16px;
  color: #e2e8f0;
}

.calc-options, .calc-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.calc-opt, .calc-chk {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.calc-opt:hover, .calc-chk:hover {
  border-color: rgba(0, 168, 150, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.calc-result-box {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
}

.result-subtitle {
  color: #a0aec0;
  font-size: 14px;
}

.price-display {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  margin: 5px 0;
}

.whatsapp-send-btn {
  width: 100%;
  background: linear-gradient(135deg, #0083ab, #00a896);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.whatsapp-send-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* تنسيق أزرار السوشيال ميديا الحديثة */
.social-share-container {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.social-title {
  display: block;
  color: #a0aec0;
  font-size: 14px;
  margin-bottom: 15px;
}

.social-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover i {
  transform: scale(1.15);
}

.social-btn.whatsapp:hover { background: rgba(37, 211, 102, 0.15); border-color: #25d366; color: #25d366; }
.social-btn.telegram:hover { background: rgba(0, 136, 204, 0.15); border-color: #0088cc; color: #0088cc; }
.social-btn.twitter:hover  { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; }
.social-btn.linkedin:hover { background: rgba(10, 102, 194, 0.15); border-color: #0a66c2; color: #0a66c2; }
.social-btn.instagram:hover{ background: rgba(225, 48, 108, 0.15); border-color: #e1306c; color: #e1306c; }



/* 1. منع حدوث أي تمرير أفقي أو فراغات جانبية بالخطأ */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 2. ضبط الحاوية العامة (Container) لتتأقلم مع الشاشات الصغيرة وتزيل الفراغات */
.container {
  width: 100%;
  max-width: 1200px; /* أو العرض الافتراضي لديك */
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

/* 3. التأكد من أن جميع العناصر والبطاقات لا تتجاوز عرض الشاشة */
* {
  box-sizing: border-box;
}

img, video, .glass-card {
  max-width: 100%;
  height: auto;
}



/* ==========================================================
   MOBILE NAVIGATION MENU FIX
   ========================================================== */

/* إعدادات الهيدر والعناصر العليا لضمان الاستجابة */
header, .navbar, .navbar-inner {
  position: relative;
  z-index: 99999;
}

.navbar-actions {
  position: relative;
  z-index: 1000000 !important;
}

/* تنسيق زر القائمة (burgerBtn) ليكون قابلاً للنقر دائماً */
#burgerBtn, .menu-toggle, .hamburger, [class*="menu-btn"] {
  position: relative;
  z-index: 1000001 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
}

#burgerBtn span {
  width: 24px;
  height: 2px;
  background: var(--text-main, #fff);
  transition: all 0.3s ease;
}

/* حالة زر الهامبرغر عند التفعيل */
#burgerBtn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#burgerBtn.active span:nth-child(2) {
  opacity: 0;
}
#burgerBtn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* منع عناصر الخلفية من حجب النقر */
.bg-orb, .bg-grid {
  pointer-events: none;
}

/* إظهار وإخفاء القائمة في الموبايل بناءً على كلاس open */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%; /* مخفية تماماً خارج الشاشة جهة اليمين */
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--bg-dark, #0b0f19);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    transition: 0.3s ease-in-out;
    border-left: 1px solid var(--border-color, rgba(255,255,255,0.08));
    overflow-y: auto;
    z-index: 999999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }

  /* هذا الكلاس يفعله الجافاسكريفت لتنزلق القائمة وتظهر داخل الشاشة */
  .nav-links.open {
    right: 0;
  }
}