/* ═══════════════════════════════════════════════════════════
   B_A_7_R — STYLES v2
   Color system: #0A0A0A dark / #D4AF37 gold / #FFFFFF light
   Fonts: Cormorant Garamond · DM Sans · Josefin Sans · Noto Kufi Arabic
═══════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

/* ─── CUSTOM PROPERTIES — DARK ──────────────────────────── */
:root {
  /* Colours */
  --bg:          #0A0A0A;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --border:      rgba(255,255,255,0.06);
  --border-gold: rgba(212,175,55,0.32);

  --text:        #F0EDE6;
  --text-2:      #888480;
  --text-3:      #4A4745;

  --gold:        #D4AF37;
  --gold-light:  #E8CB5A;
  --gold-dark:   #A8891E;
  --silver:      #C0C0C0;

  /* Gradients */
  --grad-gold:   linear-gradient(135deg, #D4AF37 0%, #E8CB5A 50%, #D4AF37 100%);
  --grad-bg:     linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-label:   'Josefin Sans', sans-serif;
  --font-arabic:  'Noto Kufi Arabic', 'Segoe UI', sans-serif;

  /* Spacing */
  --max-w:       1240px;
  --nav-h:       72px;
  --section-py:  100px;
  --section-px:  24px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:     cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    180ms;
  --dur-med:     350ms;
  --dur-slow:    600ms;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
}

/* ─── LIGHT THEME ───────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #FFFFFF;
  --surface:     #F5EFE6;
  --surface-2:   #EFE7D8;
  --border:      rgba(0,0,0,0.08);
  --border-gold: rgba(139,102,20,0.30);

  --text:        #1A1A1A;
  --text-2:      #6B6460;
  --text-3:      #AAAAAA;

  --gold:        #8B6614;
  --gold-light:  #A87D1A;
  --gold-dark:   #6A4E10;

  --grad-gold:   linear-gradient(135deg, #8B6614 0%, #A87D1A 50%, #8B6614 100%);
  --grad-bg:     linear-gradient(180deg, #FFFFFF 0%, #F8F4EE 100%);
}

/* ─── BODY ──────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--dur-slow) var(--ease-out),
              color var(--dur-med) var(--ease-out);
}

/* ─── ARABIC MODE ───────────────────────────────────────── */
[data-lang="ar"] body,
[data-lang="ar"] * {
  font-family: var(--font-arabic);
}
[data-lang="ar"] h1,
[data-lang="ar"] h2,
[data-lang="ar"] h3,
[data-lang="ar"] .section-title {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* ─── BASE ELEMENTS ─────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
svg { display: block; }

/* ─── UTILITY ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LOGO ADAPTIVE (light mode invert) ─────────────────── */
[data-theme="light"] .logo-adaptive {
  filter: brightness(0) saturate(0);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out),
              transform 0.65s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements animate on load */
.reveal-up {
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out) both;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  border: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--grad-gold);
  color: #1A1200;
  box-shadow: 0 4px 24px rgba(212,175,55,0.22);
}
.btn-gold:hover {
  box-shadow: 0 8px 40px rgba(212,175,55,0.40);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.06);
}

.btn-lg { padding: 16px 36px; font-size: 0.9rem; }
.btn-sm { padding: 10px 20px; font-size: 0.78rem; }

/* ─── NAVBAR ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med);
}
#navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: var(--border);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(255,255,255,0.95);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 40px;
  height: 26px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover {
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ctrl-btn: lang and theme toggle buttons */
.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all var(--dur-fast);
  background: transparent;
}
.ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.06);
}
.ctrl-btn svg { width: 18px; height: 18px; }

.icon-sun { display: none; }
.icon-moon { display: block; }

.lang-label-en,
.lang-label-ar { line-height: 1; }

/* nav-cta */
.nav-cta { margin-left: 4px; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(212,175,55,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 80% 80%, rgba(212,175,55,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-wave-wrap {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 280px;
  pointer-events: none;
}

.hero-wave {
  width: 100%;
  height: 100%;
}

.hw1 {
  fill: rgba(212,175,55,0.07);
  animation: waveFloat1 9s ease-in-out infinite alternate;
}
.hw2 {
  fill: rgba(212,175,55,0.05);
  animation: waveFloat2 11s ease-in-out infinite alternate-reverse;
}
.hw3 {
  fill: rgba(212,175,55,0.03);
  animation: waveFloat3 13s ease-in-out infinite alternate;
}

@keyframes waveFloat1 {
  from { transform: translateY(0); }
  to   { transform: translateY(-18px); }
}
@keyframes waveFloat2 {
  from { transform: translateY(0) scaleX(1); }
  to   { transform: translateY(-14px) scaleX(1.02); }
}
@keyframes waveFloat3 {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

[data-theme="light"] .hw1 { fill: rgba(0,80,120,0.07); }
[data-theme="light"] .hw2 { fill: rgba(0,60,100,0.05); }
[data-theme="light"] .hw3 { fill: rgba(0,40,80,0.04); }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px var(--section-px);
  width: 100%;
  max-width: var(--max-w);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.h1-line1,
.h1-line2,
.h1-line3 { display: block; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}

/* ─── STATS ─────────────────────────────────────────────── */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}

.stats-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-sym {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-txt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
}

/* ─── SECTION HEADERS ───────────────────────────────────── */
.section-hd {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── WEB / MOBILE SERVICES ─────────────────────────────── */
#web-services,
#mobile-services {
  padding: var(--section-py) 0;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── SERVICE CARD ──────────────────────────────────────── */
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--dur-med) var(--ease-out);
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med);
}
.svc-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px var(--border-gold);
}
.svc-card:hover::before { opacity: 1; }

.svc-featured {
  border-color: var(--border-gold);
}

/* Badges */
.svc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad-gold);
  color: #1A1200;
  padding: 4px 10px;
  border-radius: 100px;
}
[data-lang="ar"] .svc-badge { right: auto; left: 16px; }

.svc-badge-new {
  background: linear-gradient(135deg, #D4AF37 0%, #C0C0C0 100%);
}

/* Icon */
.svc-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: all var(--dur-med);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card:hover .svc-icon {
  border-color: var(--border-gold);
  background: rgba(212,175,55,0.08);
}

/* Body */
.svc-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.svc-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.svc-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Tags list */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.svc-tags li {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-3);
}

/* Meta row */
.svc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.svc-price {
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.svc-del {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ─── MAINTENANCE ───────────────────────────────────────── */
#maintenance {
  padding: 64px 0;
}

.maintenance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.maintenance-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.maint-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.maint-icon svg { width: 26px; height: 26px; }

.maint-body { flex: 1; min-width: 180px; }
.maint-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 10px;
}
.maint-body p { color: var(--text-2); font-size: 0.93rem; }

.maint-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  flex-shrink: 0;
}
.price-from {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.price-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.price-period {
  font-family: var(--font-label);
  font-size: 0.76rem;
  color: var(--text-3);
}

/* ─── WHY ───────────────────────────────────────────────── */
#why {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .why-card { background: var(--surface-2); }

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.why-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.why-card:hover::after { transform: scaleX(1); }
[data-lang="ar"] .why-card::after { transform-origin: right; }

.why-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  transition: all var(--dur-med);
}
.why-icon svg { width: 20px; height: 20px; }
.why-card:hover .why-icon {
  border-color: var(--border-gold);
  background: rgba(212,175,55,0.08);
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ─── PROCESS ───────────────────────────────────────────── */
#process {
  padding: var(--section-py) 0;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 20px;
}

.process-connector {
  position: absolute;
  top: 70px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 10%, var(--gold) 50%, var(--border) 90%, transparent 100%);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.step-num {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 14px;
}
.step-circle {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  transition: all var(--dur-med) var(--ease-out);
}
.step-circle svg { width: 22px; height: 22px; }
.process-step:hover .step-circle {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.08);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ─── PORTFOLIO ─────────────────────────────────────────── */
#portfolio {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.port-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  transition: all var(--dur-fast);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(212,175,55,0.10);
  border-color: var(--border-gold);
  color: var(--gold);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.port-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
}
[data-theme="light"] .port-item { background: var(--surface-2); }
.port-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.port-item.hidden { display: none; }

.port-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  overflow: hidden;
}
.port-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%);
}
[data-theme="light"] .port-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.port-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-med);
}
.port-item:hover .port-overlay { opacity: 1; }

.port-info { padding: 18px 22px; }
.port-info h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.port-tech {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 10px;
  font-family: var(--font-label);
  letter-spacing: 0.05em;
}

.port-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.web-tag {
  background: rgba(30,100,150,0.15);
  border: 1px solid rgba(30,100,150,0.35);
  color: #5ab0d0;
}
.mobile-tag {
  background: rgba(212,175,55,0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.port-note {
  text-align: center;
  color: var(--text-3);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 40px;
  font-family: var(--font-display);
}

/* ─── ABOUT ─────────────────────────────────────────────── */
#about {
  padding: var(--section-py) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.about-logo-wrap {
  width: 100%;
  max-width: 300px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.about-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,0.1) 0%, transparent 70%);
}
.about-logo { width: 100%; position: relative; z-index: 1; }
.about-brand-label {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.about-text .section-tag { display: block; margin-bottom: 12px; }
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.about-text p {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ─── ABOUT MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out),
              visibility var(--dur-med);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  max-width: 600px;
  width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--dur-med) var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--dur-fast);
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-close svg { width: 16px; height: 16px; }
[data-lang="ar"] .modal-close { right: auto; left: 20px; }

.modal-logo {
  width: 80px;
  margin: 0 auto 24px;
}

.modal-box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.modal-body {
  text-align: left;
  margin-bottom: 32px;
}
[data-lang="ar"] .modal-body { text-align: right; }
.modal-body p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.96rem;
}
.modal-body p:last-child { margin-bottom: 0; }

/* ─── FAQ ───────────────────────────────────────────────── */
#faq {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
[data-theme="light"] .faq-item { background: var(--surface-2); }
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--border-gold);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  background: transparent;
  transition: color var(--dur-fast);
}
[data-lang="ar"] .faq-q { text-align: right; }
.faq-q:hover { color: var(--gold); }
.faq-q[aria-expanded="true"] { color: var(--gold); }

.faq-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-fast);
}
.faq-q[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-a.open { max-height: 500px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ─── CONTACT ───────────────────────────────────────────── */
#contact {
  padding: var(--section-py) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: all var(--dur-med) var(--ease-out);
}
.contact-row:hover {
  border-color: var(--border-gold);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
[data-lang="ar"] .contact-row:hover { transform: translateX(-4px); }

.wa-row { border-color: rgba(37,211,102,0.2); }
.wa-row:hover { border-color: rgba(37,211,102,0.5) !important; }

.contact-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.wa-row .contact-icon { color: #25d366; border-color: rgba(37,211,102,0.25); }
.contact-icon svg { width: 20px; height: 20px; }

.contact-lbl {
  display: block;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.contact-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-social h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--dur-fast);
}
.social-tile:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.social-tile svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── FOOTER ────────────────────────────────────────────── */
#footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { width: 36px; height: auto; }
.footer-name {
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-label);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all var(--dur-fast);
}
.footer-social a:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; }
[data-lang="ar"] .footer-social { justify-content: flex-start; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-3);
}

.lang-sm-btn {
  font-family: var(--font-label);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  background: transparent;
  transition: all var(--dur-fast);
}
.lang-sm-btn:hover { border-color: var(--border-gold); color: var(--gold); }

/* ─── MOBILE STICKY BAR ─────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  gap: 12px;
}
[data-theme="light"] .mobile-bar {
  background: rgba(255,255,255,0.97);
  border-top-color: var(--border);
}

.mbar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--dur-fast);
}
.mbar-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.mbar-wa {
  background: #25d366;
  color: #fff;
}
.mbar-wa:hover { background: #20b858; }

.mbar-call {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.mbar-call:hover { border-color: var(--gold); color: var(--gold); }

/* ─── RTL ADJUSTMENTS ───────────────────────────────────── */
[data-lang="ar"] .nav-links { margin-left: 0; margin-right: auto; }
[data-lang="ar"] .svc-badge { right: auto; left: 16px; }
[data-lang="ar"] .footer-top { direction: rtl; }

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-up { opacity: 1; animation: none; }
}

/* ─── RESPONSIVE — 1024px ───────────────────────────────── */
@media (max-width: 1024px) {
  .svc-grid        { grid-template-columns: repeat(2, 1fr); }
  .svc-grid-3      { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .process-row     { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-connector { display: none; }
  .about-layout    { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-visual    { align-items: center; }
  .about-text      { text-align: left; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
  .footer-nav      { justify-content: flex-start; grid-column: 1 / -1; }
  .footer-social   { justify-content: flex-end; }
}

/* ─── RESPONSIVE — 768px ────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: 72px;
    --section-px: 20px;
  }

  /* Nav */
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-med) var(--ease-out),
                opacity var(--dur-med);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  [data-theme="light"] .nav-links { background: rgba(255,255,255,0.98); }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 12px 16px; width: 100%; font-size: 0.84rem; }
  .nav-cta  { display: none; }

  /* Stats */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
  }
  .stat-sep:nth-of-type(2) { display: none; }
  .stat { padding: 20px 14px; }

  /* Service grids */
  .svc-grid     { grid-template-columns: 1fr; }
  .svc-grid-3   { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .process-row  { grid-template-columns: 1fr; }

  /* Maintenance */
  .maintenance-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 24px;
  }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .social-grid    { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { justify-content: flex-start; grid-column: auto; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Mobile sticky bar */
  .mobile-bar { display: flex; }

  /* Modal */
  .modal-box { padding: 32px 24px; }

  /* Hero CTAs stacked */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }
}

/* ─── RESPONSIVE — 480px ────────────────────────────────── */
@media (max-width: 480px) {
  .stats-bar  { grid-template-columns: 1fr; }
  .stat-sep   { display: none !important; }
  .social-grid { grid-template-columns: 1fr; }
  .port-grid  { grid-template-columns: 1fr; }
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ─── SELECTION ─────────────────────────────────────────── */
::selection { background: rgba(212,175,55,0.28); color: var(--text); }

/* ─── FOCUS VISIBLE ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .mobile-bar { display: none !important; }
}
