/* ═══════════════════════════════════════════════════
   DYNAWIX — النمط المشترك لجميع الصفحات
   اللون الأساسي: أسود / رمادي داكن + ذهبي
═══════════════════════════════════════════════════ */

:root {
  --bg:        #0c0c0c;
  --bg2:       #111111;
  --bg3:       #161616;
  --card:      #1a1a1a;
  --card2:     #1f1f1f;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.12);
  --gold:      #d4a017;
  --gold2:     #f0c040;
  --gold3:     #ffd700;
  --text:      #f0f0f0;
  --text2:     #a8a8a8;
  --text3:     #666;
  --white:     #ffffff;
  --grad-gold: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);
  --grad-dark: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 8px 30px rgba(212,160,23,0.25);
  --radius:    12px;
  --radius2:   20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── خلفية الحبيبات الدقيقة ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ═══════ NAVBAR ═══════ */
.navbar {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 900;
  background: rgba(12,12,12,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center;
  padding: 0 5%;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.55rem; font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 2rem;
}
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold2); }

.nav-cta {
  background: var(--grad-gold) !important;
  color: #000 !important;
  padding: 9px 22px; border-radius: 25px;
  font-weight: 800 !important; font-size: 0.88rem !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--gold2); border-radius: 2px;
  transition: 0.3s;
}

/* ═══════ SHARED SECTION STYLES ═══════ */
.s-wrap { padding: 90px 5%; position: relative; z-index: 1; }
.s-wrap-sm { padding: 60px 5%; position: relative; z-index: 1; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold2);
  padding: 5px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; line-height: 1.2;
  color: var(--white);
}
.section-title .gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.section-sub {
  color: var(--text2); font-size: 1rem;
  line-height: 1.9; max-width: 620px;
  margin: 0.8rem auto 0;
}
.text-center { text-align: center; }

/* ═══════ CARDS ═══════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(212,160,23,0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,160,23,0.1);
}
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--white); }
.card p  { color: var(--text2); font-size: 0.88rem; line-height: 1.85; }

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 30px;
  font-size: 0.95rem; font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s;
}
.btn-gold {
  background: var(--grad-gold); color: #000;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,160,23,0.4); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold2); color: var(--gold2); }

/* ═══════ DIVIDER ═══════ */
.gold-line {
  width: 60px; height: 3px;
  background: var(--grad-gold);
  border-radius: 3px;
  margin: 1rem auto 0;
}

/* ═══════ BADGE ═══════ */
.badge {
  display: inline-block;
  background: var(--grad-gold);
  color: #000; font-size: 0.72rem; font-weight: 800;
  padding: 3px 12px; border-radius: 12px;
  letter-spacing: 0.5px;
}

/* ═══════ FLOATING BUTTONS ═══════ */
.float-wrap {
  position: fixed; left: 22px; bottom: 28px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-call {
  background: linear-gradient(135deg, #d4a017, #f0c040);
  box-shadow: 0 4px 20px rgba(212,160,23,0.5);
}
.float-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  animation: waPulse 2.5s infinite;
}
.float-btn svg { width: 25px; height: 25px; fill: #fff; }
.float-call svg { fill: #000; }

.float-tip {
  position: absolute; left: 64px;
  top: 50%; transform: translateY(-50%);
  background: var(--card2); border: 1px solid var(--border2);
  color: var(--text); padding: 5px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-btn:hover .float-tip { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ═══════ FOOTER ═══════ */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 2.5rem 5%; text-align: center;
  position: relative; z-index: 1;
}
.footer-logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--white);
  display: inline-block; margin-bottom: 0.6rem;
}
.footer-logo span {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer p { color: var(--text3); font-size: 0.84rem; margin-top: 0.3rem; }

/* ═══════ GRID HELPERS ═══════ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }

/* ═══════ SEPARATOR SECTIONS ═══════ */
.bg-alt { background: var(--bg2); }
.bg-alt2 { background: var(--bg3); }

/* ═══════ MOBILE ═══════ */
@media (max-width: 820px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; right: 0; left: 0;
    background: rgba(12,12,12,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 5%; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .s-wrap { padding: 70px 5%; }
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
.anim-1 { animation: fadeUp 0.7s 0.1s both; }
.anim-2 { animation: fadeUp 0.7s 0.25s both; }
.anim-3 { animation: fadeUp 0.7s 0.4s both; }
.anim-4 { animation: fadeUp 0.7s 0.55s both; }

/* ═══════ COUNTER ═══════ */
.stats-row {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; margin-top: 3rem;
}
.stat-box { text-align: center; }
.stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 2.8rem; font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; line-height: 1;
}
.stat-lbl { color: var(--text2); font-size: 0.85rem; margin-top: 4px; }

/* ═══════ OFFER BOX ═══════ */
.offer-box {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(135deg, #1c1600 0%, #1a1a1a 60%);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: var(--radius2);
  padding: 3rem;
  position: relative; overflow: hidden;
  text-align: center;
}
.offer-box::before {
  content: '';
  position: absolute; top: -60%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(212,160,23,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.offer-discount {
  font-family: 'Tajawal', sans-serif;
  font-size: 5rem; font-weight: 900; line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block;
}
.offer-features {
  list-style: none; margin: 1.5rem 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem; text-align: right;
}
.offer-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text);
}
.offer-features li::before {
  content: '✓';
  color: var(--gold2); font-weight: 900; flex-shrink: 0;
}

/* ═══════ WHY CARDS ═══════ */
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem; text-align: center;
  transition: all 0.3s;
}
.why-card:hover {
  border-color: rgba(212,160,23,0.25);
  transform: translateY(-4px);
}
.why-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p  { color: var(--text2); font-size: 0.87rem; line-height: 1.8; }

/* ═══════ TECH TICKER ═══════ */
.ticker-wrap {
  overflow: hidden; margin-top: 3.5rem;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.ticker-track {
  display: flex; gap: 1rem; width: max-content;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 22px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text2); white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════ SERVICE PAGE HERO ═══════ */
.svc-hero {
  min-height: 65vh;
  display: flex; align-items: center;
  padding: 120px 5% 70px;
  position: relative; overflow: hidden;
}
.svc-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 100% 50%, rgba(212,160,23,0.05) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 0% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
}
.svc-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
.svc-hero-inner { position: relative; z-index: 1; max-width: 680px; }

/* ═══════ SERVICE SECTION BLOCKS ═══════ */
.svc-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  padding: 60px 5%;
  position: relative; z-index: 1;
}
.svc-block.reverse { direction: ltr; }
.svc-block.reverse > * { direction: rtl; }
.svc-block-text h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--white); margin-bottom: 1rem;
}
.svc-block-text h3 .gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.svc-block-text p { color: var(--text2); font-size: 0.95rem; line-height: 2; }
.svc-block-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; font-size: 5rem;
  position: relative; overflow: hidden;
}
.svc-block-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,0.06), transparent 70%);
}

/* ═══════ CTA STRIP ═══════ */
.cta-strip {
  background: linear-gradient(135deg, #1c1600 0%, #1a1a1a 100%);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: var(--radius2);
  padding: 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,160,23,0.07), transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 0.7rem;
}
.cta-strip p { color: var(--text2); margin-bottom: 1.8rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════ OTHER SERVICES ═══════ */
.other-svcs {
  display: flex; flex-wrap: wrap;
  gap: 0.7rem; justify-content: center;
  margin-top: 1.5rem;
}
.other-link {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text2); text-decoration: none;
  padding: 8px 16px; border-radius: 25px;
  font-size: 0.84rem; font-weight: 600;
  transition: all 0.25s;
}
.other-link:hover { border-color: var(--gold2); color: var(--gold2); }

/* ═══════ CONTACT ROW ═══════ */
.contact-links {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-top: 2rem;
}
.contact-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s;
}
.contact-link:hover { border-color: var(--gold2); color: var(--gold2); }

/* ═══════ SEPARATOR LINE ═══════ */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 768px) {
  .svc-block { grid-template-columns: 1fr; gap: 1.5rem; padding: 40px 5%; }
  .svc-block.reverse { direction: rtl; }
  .offer-features { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
}
