:root{
  --bg:#050507;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --border:rgba(255,255,255,.10);
  --text:#e8ecf2;
  --muted:rgba(232,236,242,.72);
  --primary:#6D28D9;
  --primary2:#2563EB;
  --accent:#22D3EE;
  --accent2:#22C55E;
  --shadow:0 22px 70px rgba(0,0,0,.48);
  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:22px;
  --space-6:28px;
  --space-7:36px;
  --space-8:44px;
  --space-9:56px;
  --container-x: clamp(16px, 2.6vw, 34px);
  --grid-gap: clamp(16px, 1.8vw, 24px);
  --card-pad: clamp(20px, 2vw, 28px);
  --section-top: clamp(20px, 3vw, 30px);
  --section-bottom: clamp(40px, 5vw, 64px);
  --hero-top: clamp(84px, 10vh, 104px);
  --hero-bottom: clamp(32px, 6vh, 52px);
  --radius-m:18px;
  --radius-s:14px;
  --radius-xs:12px;
  --radius-l:22px;
  --radius-xl:26px;
  --radius-2xl:30px;
  --tap-y:10px;
  --tap-x:12px;
  --control-y:12px;
  --control-x:14px;
  --pill-y:8px;
  --pill-x:12px;
  --tag-y:7px;
  --tag-x:10px;
  --nav-h:84px;
  --nav-h-sm:78px;
}

*{box-sizing:border-box}
html{scroll-behavior:auto; overflow-x:hidden}
body{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color:var(--text);
  direction:rtl;
  position:relative;
  overflow-x:hidden;
  line-height: 1.7; /* Global line-height fix */
  letter-spacing: normal; /* Ensure Arabic text connects properly */
}

body::before{content:""; position:fixed; inset:0; background:rgba(0,0,0,.0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); pointer-events:none; z-index:60; transition: background .22s ease, backdrop-filter .22s ease, -webkit-backdrop-filter .22s ease}
body.nav-open::before{background:rgba(0,0,0,.52); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); pointer-events:auto}

h1,h2,h3,h4,h5,h6{margin:0 0 0.8rem 0; line-height: 1.3; font-weight: 700;}
p{margin:0 0 1.2rem 0;}
figure{margin:0}
ul,ol{margin:0 0 1.2rem 0; padding-inline-start:1.2em}


.bg-abstract{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.noise{
  position:absolute;
  inset:0;
  background-image: url("../img/noise.svg");
  background-size: 420px 420px;
  opacity:.045;
  mix-blend-mode: overlay;
}
.orb{
  position:absolute;
  width:720px;
  height:720px;
  border-radius:999px;
  filter: blur(120px);
  opacity:.18;
  transform: translate3d(0,0,0);
  animation: orbDrift 16s ease-in-out infinite;
  will-change: transform;
}
.orb.o1{left:-260px; top:-260px; background: radial-gradient(circle at 30% 30%, rgba(109,40,217,.9), rgba(109,40,217,0) 62%); animation-duration: 20s}
.orb.o2{right:-320px; top:-280px; background: radial-gradient(circle at 40% 40%, rgba(37,99,235,.9), rgba(37,99,235,0) 62%); animation-duration: 24s; animation-direction: reverse}
.orb.o3{right:-340px; bottom:-340px; background: radial-gradient(circle at 35% 35%, rgba(34,211,238,.85), rgba(34,211,238,0) 62%); animation-duration: 28s}

@keyframes orbDrift{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(38px,-22px) scale(1.03)}}

body[data-path="/"] .bg-abstract{opacity:.55}
body[data-path="/"] .orb{opacity:.10; filter: blur(140px)}
body[data-path="/"] .noise{opacity:.03}

.bg-abstract::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 20% 18%, rgba(109,40,217,.10), transparent 62%),
    radial-gradient(920px 520px at 86% 14%, rgba(37,99,235,.09), transparent 62%),
    radial-gradient(920px 620px at 70% 92%, rgba(34,211,238,.07), transparent 66%),
    linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.0) 42%, rgba(0,0,0,.55) 100%);
  opacity:.85;
}

.bg-abstract::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity:.055;
  mask-image: radial-gradient(ellipse at 50% 18%, rgba(0,0,0,.9), transparent 70%);
}

.nav, .main, .footer{position:relative; z-index:1}

.main{min-height: calc(100svh - var(--nav-h))}

body[data-path="/"] .main{padding-top:0}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:100%; margin:0 auto; padding:0 var(--container-x)}

.nav-inner--full{width:100%; max-width:100%; margin: 0 auto; padding:0 var(--container-x)}

.skip-link{
  position:absolute;
  top:-40px;
  left:16px;
  padding:var(--tap-y) var(--control-x);
  border-radius:var(--radius-xs);
  background:rgba(0,0,0,.7);
  color:var(--text);
  border:1px solid var(--border);
}
.skip-link:focus{top:16px; z-index:9999}

.nav{
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background:rgba(5,5,7,.9);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition: background .15s ease, border-color .15s ease, backdrop-filter .15s ease;
}
body[data-path="/"] .nav{background: rgba(5,5,7,.6); border-bottom-color: rgba(255,255,255,.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px)}
body[data-path="/"] .nav.is-solid{background:rgba(5,5,7,.95); border-bottom-color: rgba(255,255,255,.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px)}
.nav-inner{display:flex; align-items:center; justify-content:space-between; height:var(--nav-h); gap:var(--space-4)}

.nav-toggle{display:none; align-items:center; justify-content:center; width:44px; height:44px; border-radius:var(--radius-s); border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); color:var(--text)}
.nav-toggle:hover{background:rgba(255,255,255,.08)}
.nav-toggle-lines{position:relative; width:18px; height:2px; background:rgba(232,236,242,.92); border-radius:999px; transition: background .2s ease}
.nav-toggle-lines::before,.nav-toggle-lines::after{content:""; position:absolute; left:0; right:0; height:2px; background:rgba(232,236,242,.92); border-radius:999px; transition: transform .2s ease, top .2s ease}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}
body.nav-open .nav-toggle-lines{background:transparent}
body.nav-open .nav-toggle-lines::before{top:0; transform: rotate(45deg)}
body.nav-open .nav-toggle-lines::after{top:0; transform: rotate(-45deg)}


body.nav-open{overflow:hidden}
.brand{display:flex; align-items:center; gap:var(--space-3); font-weight:800; letter-spacing:.2px}
.brand-link{display:inline-flex; align-items:center; justify-content:center; text-decoration:none; border-radius:var(--radius-s)}
.brand-link:hover{text-decoration:none}
.brand-link:focus-visible{outline:2px solid rgba(37,99,235,.55); outline-offset:4px}
.brand-logo{height:68px; width:auto; max-width:280px; display:block; filter: drop-shadow(0 14px 26px rgba(0,0,0,.32))}
.brand-mark{
  width:48px; height:48px;
  border-radius:14px;
  background: radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.9), transparent 55%),
              linear-gradient(135deg, rgba(109,40,217,.95), rgba(37,99,235,.85));
  box-shadow:0 10px 22px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.14);
}
.brand small{display:block; font-weight:600; color:var(--muted); margin-top:2px}
.nav-links{display:flex; gap:var(--space-2); align-items:center; flex-wrap:wrap}
.nav-link{padding:var(--tap-y) var(--tap-x); border-radius:999px; color:rgba(229,231,235,.88); border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.035); transition: background .1s ease, transform .1s ease, border-color .1s ease}
.nav-link:hover{background:rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); text-decoration:none; transform:translateY(-1px)}
.nav-link.is-active{background:rgba(109,40,217,.18); border:1px solid rgba(109,40,217,.30)}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
  padding:var(--control-y) calc(var(--control-x) + 2px);
  border-radius:var(--radius-s);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  transition: transform .1s cubic-bezier(0.2, 0.8, 0.2, 1), background .1s ease, box-shadow .1s ease, border-color .1s ease;
  will-change: transform;
  line-height: 1.2; /* Reset line-height for buttons */
}
.btn:hover{transform:translateY(-2px); background:rgba(255,255,255,.08); box-shadow:0 14px 34px rgba(0,0,0,.28); text-decoration:none}
.btn:active{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(135deg, rgba(109,40,217,.96), rgba(37,99,235,.78)); border-color:rgba(109,40,217,.42)}
.btn.primary:hover{background:linear-gradient(135deg, rgba(109,40,217,1), rgba(37,99,235,.86));}
.btn.secondary{background:rgba(34,211,238,.10); border-color:rgba(34,211,238,.30)}
.btn.secondary:hover{background:rgba(34,211,238,.14)}

.hero{padding:var(--hero-top) 0 var(--hero-bottom); position:relative}
.hero.is-tight{padding-bottom:0}
.hero.hero-landscape{
  padding:0; 
  min-height:100svh;
  background: #000000; /* Pure Black */
}
.hero.hero-landscape .hero-bleed{width:100%; max-width:none; margin:0; padding:0; min-height:100svh}

/* Professional Standard Hero for internal pages */
.hero:not(.hero-landscape) .hero-card {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) var(--container-x);
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero:not(.hero-landscape) .page-title {
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.hero:not(.hero-landscape) .hero-actions {
  justify-content: center;
  margin-top: 24px;
}

.hero-card{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius:30px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  min-height: 560px;
}
.hero.hero-landscape .hero-card{border-radius:0; min-height:100svh; display:grid; grid-template-rows: auto auto}
.hero-card.has-video{background:transparent}

.hero-video-bg{position:absolute; inset:-1px; border-radius:30px; overflow:hidden; z-index:0; pointer-events:none}
.hero.hero-landscape .hero-video-bg{border-radius:0}
.hero-video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.hero-vignette{position:absolute; inset:0; background: radial-gradient(900px 560px at 20% 28%, rgba(0,0,0,.0), rgba(0,0,0,.45) 72%), linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.44) 100%)}

.hero-card-inner{position:relative; z-index:1; display:grid; grid-template-columns: 1.12fr .88fr; gap:var(--space-3); padding:var(--space-6); align-items:stretch}
.hero.hero-landscape .hero-card-inner{min-height:auto; padding:clamp(8px, 1.4vh, 14px) clamp(16px, 2.6vw, 34px) clamp(10px, 2vh, 18px); align-items:start}
.hero-copy{align-self:center}

.hero-meta{grid-column:1 / -1}
.hero-meta-line{height:1px; background:linear-gradient(90deg, transparent, rgba(109,40,217,.38), rgba(37,99,235,.32), rgba(34,211,238,.22), transparent); opacity:.9; margin-top:var(--space-2)}
.hero-meta .hero-note{margin-top:var(--space-1); line-height:1.85}

.hero-title{font-size: clamp(36px, 3.4vw, 56px); line-height:1.5; margin:var(--space-2) 0 var(--space-2); letter-spacing:.2px; text-wrap:balance}
.hero-title,.hero-subtitle,.hero-note{text-shadow:0 10px 34px rgba(0,0,0,.85)}
.hero-subtitle{margin:0 0 var(--space-2); color:var(--muted); font-size:16px; line-height:1.85; max-width:64ch; white-space: pre-line;}
.hero-actions{display:flex; gap:var(--space-2); flex-wrap:wrap; margin-top:0}
.hero-note{line-height:1.95}

.hero-badges{display:flex; gap:var(--space-2); flex-wrap:wrap; margin-top:var(--space-2)}
.badge{padding:var(--pill-y) var(--tag-x); border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.18); color:rgba(232,236,242,.88); font-size:12px}

.hero-side{display:flex; align-items:center; justify-content:center; align-self:center}
.hero-side-card{
  width:100%;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding:var(--space-3);
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}
.hero-side-title{font-weight:900; font-size:16px; letter-spacing:.2px}
.hero-side-head{display:flex; flex-direction:column; gap:6px; margin-bottom:var(--space-3)}
.hero-side-sub{line-height:1.85; font-size:13px}
.hero-side-metrics{display:grid; gap:12px; perspective: 1000px;}
.hero-side-metric{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  border:1px solid rgba(255,255,255,.08); 
  background:linear-gradient(90deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border-radius:16px; padding:12px 16px; 
  transition: all .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideInMetric 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes slideInMetric {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Staggered Animation Only */
.hero-side-metric:nth-child(1) { animation-delay: 0.15s; }
.hero-side-metric:nth-child(2) { animation-delay: 0.25s; }
.hero-side-metric:nth-child(3) { animation-delay: 0.35s; }
.hero-side-metric:nth-child(4) { animation-delay: 0.45s; }
.hero-side-metric:nth-child(5) { animation-delay: 0.55s; }

/* Unified Hover Effects */
.hero-side-metric:hover{
  transform: translateX(-5px) scale(1.02);
  background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,.25);
  border-right-color: rgba(255,255,255,.5);
}

.hero-side-metric .k{
  font-weight:800; letter-spacing:.5px; padding:6px 12px; border-radius:99px; 
  min-width:90px; text-align:center;
  transition: all .3s ease;
  font-family: monospace, sans-serif;
  font-size: 14px;
  
  /* Unified Light Theme */
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Unified Pill Hover */
.hero-side-metric:hover .k {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.hero-side-metric .t{
  color:rgba(235,235,245,0.75); font-size:13px; line-height:1.6; font-weight: 500;
  text-align: left; width: 100%;
}

@media (min-width: 981px){
  .hero-side{justify-content:center; padding-top:0}
  .hero-side-card{max-width:520px}
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}
.video-modal.is-open .video-modal-content {
  transform: scale(1);
}
.video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.modal-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-modal-close {
  position: absolute;
  top: -40px;
  inset-inline-end: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.video-modal-close:hover {
  opacity: 1;
}
@media (max-width: 768px) {
    .video-modal-content {
        width: 94%;
    }
    .video-modal-close {
        top: -36px;
    }
}

.growth{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:28px;
  box-shadow: 0 26px 80px rgba(0,0,0,.38);
  overflow:hidden;
  position:relative;
  padding:var(--space-5);
}
.hero.hero-landscape .growth{border-radius:0; margin-top:0}
.growth.growth--in-hero{
  border-left:none;
  border-right:none;
  border-bottom:none;
  box-shadow:none;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22));
  padding:var(--space-3) clamp(16px, 2.6vw, 34px);
}
.growth::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity:.06;
  mask-image: radial-gradient(ellipse at 52% 12%, rgba(0,0,0,.95), transparent 70%);
}
.growth-head{position:relative; display:flex; align-items:flex-end; justify-content:space-between; gap:var(--space-3)}
.growth-title{font-weight:900; font-size:18px; letter-spacing:.2px}
.growth-actions{display:flex; gap:var(--space-2); flex-wrap:wrap}

.growth-body{position:relative; display:grid; grid-template-columns: 240px 1fr; gap:var(--space-3); margin-top:var(--space-3)}
.growth-metrics{display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:var(--space-3)}
.growth-metric{border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03); border-radius:18px; padding:var(--space-3); min-height:72px; display:flex; flex-direction:column; justify-content:center}
.growth-metric strong{display:block; font-size:18px; letter-spacing:.2px}
.growth-metric span{display:block; color:var(--muted); margin-top:4px; font-size:13px}

.growth-chart{border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.18); border-radius:22px; padding:var(--space-3); display:flex; flex-direction:column; gap:var(--space-2)}
.growth-chart-title{font-weight:900; letter-spacing:.3px; color:rgba(232,236,242,.92)}
.growth-bars{flex:1; display:grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap:var(--space-1); align-items:end; height:96px}
.growth-bars span{display:block; border-radius:12px; background: linear-gradient(180deg, rgba(34,211,238,.60), rgba(109,40,217,.70)); box-shadow: 0 10px 30px rgba(0,0,0,.35)}

.hero-scroll{position:absolute; left:50%; bottom:var(--space-3); translate:-50% 0; width:44px; height:44px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.22); display:flex; align-items:center; justify-content:center; text-decoration:none}
.hero-scroll:hover{text-decoration:none; background:rgba(0,0,0,.28)}
.hero-scroll-line{width:2px; height:18px; background:rgba(232,236,242,.8); border-radius:999px; position:relative; overflow:hidden}
.hero-scroll-line::after{content:""; position:absolute; top:-10px; left:0; right:0; margin:auto; width:2px; height:10px; background:rgba(34,211,238,.9); border-radius:999px; animation: scrollHint 1.35s ease-in-out infinite}
@keyframes scrollHint{0%{transform:translateY(0); opacity:0}30%{opacity:1}100%{transform:translateY(22px); opacity:0}}

.side-panel{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius:24px;
  padding:var(--space-5);
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
}
.pill{display:inline-flex; align-items:center; gap:8px; padding:var(--pill-y) var(--pill-x); border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:rgba(229,231,235,.90); font-size:13px}
.pill-dot{width:8px; height:8px; border-radius:999px; background:var(--accent2); box-shadow:0 0 0 6px rgba(34,197,94,.14); position:relative; display:inline-block; will-change: transform, box-shadow; animation: pillDotPulse 1.8s ease-in-out infinite}
.pill-dot::after{content:""; position:absolute; inset:-10px; border-radius:999px; border:1px solid rgba(34,197,94,.32); opacity:0; transform:scale(.45); will-change: transform, opacity; animation: pillDotRing 1.8s ease-out infinite}

@keyframes pillDotPulse{
  0%,100%{transform:scale(1); box-shadow:0 0 0 6px rgba(34,197,94,.14)}
  50%{transform:scale(1.08); box-shadow:0 0 0 10px rgba(34,197,94,.08)}
}

@keyframes pillDotRing{
  0%{opacity:0; transform:scale(.45)}
  22%{opacity:.55}
  100%{opacity:0; transform:scale(1.25)}
}
.metrics{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:var(--grid-gap); margin-top:var(--space-3)}
.metric{border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.03); border-radius:18px; padding:var(--space-3)}
.metric strong{display:block; font-size:18px; letter-spacing:.2px}
.metric span{display:block; color:var(--muted); margin-top:4px; font-size:13px}

.section{
    padding:var(--section-top) 0 var(--section-bottom);
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}
.section-header{display:flex; align-items:end; justify-content:space-between; gap:var(--space-4); margin-bottom:var(--space-3)}
.section h2{margin:0; font-size:28px; line-height:1.25}
.section p.lead{margin:var(--space-1) 0 0; color:var(--muted); max-width:72ch}

.grid{display:grid; gap:var(--grid-gap)}
/* تحسين شبكة الأعمال (Portfolio Grid) */
.grid.cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* تصميم بطاقة عمل احترافية */
.card {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  contain: layout style;
  will-change: transform;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.18);
}

/* تحسين صورة العمل */
.card-media {
  border-radius: 0; /* إلغاء التكور الداخلي */
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  aspect-ratio: 4 / 3; /* نسبة أبعاد مثالية للأعمال */
  margin-bottom: 0;
  position: relative;
  width: 100%;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: brightness(0.9);
}

.card:hover .card-media img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* محتوى البطاقة */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(90deg, #fff, #ccc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* الوسوم (Tags) */
.card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto; /* دفع للأسفل */
  padding-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.card:hover .tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

/* زر التفاصيل - يظهر بشكل أنيق */
.card .card-action {
  margin-top: 20px;
  opacity: 0.8;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.card:hover .card-action {
  opacity: 1;
}

.card .btn {
  width: 100%;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

.card .btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pricing-card .pricing-badge{
  align-self:flex-start;
  margin-bottom: 4px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-size:12px;
  font-weight:700;
}

.pricing-card h3 {
  margin: 0;
}

.pricing-card .pricing-price{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.pricing-card .pricing-amount{
  font-size:38px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.5px;
  background: linear-gradient(135deg, #fff 25%, rgba(255,255,255,.72));
  background-clip: text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.pricing-card .pricing-period{
  color: rgba(255,255,255,.72);
  font-weight:650;
  font-size:14px;
}

.pricing-card .pricing-desc{
  display:block;
  margin: 0;
  line-clamp: unset;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  color: rgba(255,255,255,.72);
}

.pricing-card .pricing-features{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap:10px;
}

.pricing-card .pricing-features li{
  position:relative;
  padding-inline-start: 28px;
  color: rgba(255,255,255,.82);
  line-height:1.7;
}

.pricing-card .pricing-features li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:.5em;
  width:18px;
  height:18px;
  border-radius:6px;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.30);
}

.pricing-card .pricing-features li::after{
  content:"";
  position:absolute;
  inset-inline-start:5px;
  top:.74em;
  width:8px;
  height:4px;
  border-left:2px solid rgba(34,197,94,1);
  border-bottom:2px solid rgba(34,197,94,1);
  transform: rotate(-45deg);
}

.pricing-card .card-action{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:auto;
  width:100%;
}

.pricing-card .card-body{
  height:100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card .btn{
  width:100%;
  min-height:48px;
  border-radius:16px;
  font-weight:750;
  letter-spacing:.15px;
}

.pricing-card .pricing-features{
  margin-bottom:auto;
}

@media (min-width: 860px){
  .pricing-card .card-action{
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card--highlight{
  border-color: rgba(109,40,217,.30);
  box-shadow: 0 20px 60px rgba(0,0,0,.40);
}

.pricing-card--highlight .pricing-badge{
  background: linear-gradient(135deg, rgba(109,40,217,.40), rgba(37,99,235,.28));
  border-color: rgba(109,40,217,.45);
}

/* تنسيق صفحة الدفع (Modern Payment Page) */
.payment-page-wrapper {
  padding: var(--space-6) 0;
  min-height: 80vh;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(360px, 400px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

@media (max-width: 991px) {
  .payment-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

/* Sidebar & Summary */
.payment-summary-card {
  position: sticky;
  top: 100px;
  background: rgba(2,6,23,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px;
}

.summary-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 20px;
}

.summary-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.summary-desc {
  font-size: 14px;
  color: var(--muted);
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}

.detail-row.total-row {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.detail-value.price {
  color: var(--primary);
  font-size: 22px;
}

.detail-value.price small {
  font-size: 14px;
  font-weight: normal;
  color: var(--muted);
}

/* Payment Methods */
.instructions-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.method-card-option {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

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

.method-card-option.selected {
  background: linear-gradient(135deg, rgba(109,40,217,0.15), rgba(37,99,235,0.1));
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.method-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.2s;
}

.method-card-option.selected .method-icon-wrap {
  background: var(--primary);
  color: #fff;
}

.method-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.check-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}

.method-card-option.selected .check-circle {
  opacity: 1;
  transform: scale(1);
  background: #22c55e;
  color: #fff;
}

.check-circle svg {
  width: 14px;
  height: 14px;
}

/* Warning Box */
.warning-box {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 16px;
  padding: 20px;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fbbf24;
  margin-bottom: 12px;
  font-size: 15px;
}

.warning-header svg {
  width: 20px;
  height: 20px;
}

.warning-list {
  margin: 0;
  padding: 0 20px 0 0;
  list-style-type: disc;
}

.warning-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  line-height: 1.5;
}

.warning-list li:last-child {
  margin-bottom: 0;
}

/* Transfer Box */
.transfer-box {
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.transfer-box label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.the-number {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: rgba(109,40,217,0.15);
}

.transfer-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Confirmation Form */
.confirmation-card {
  background: linear-gradient(180deg, rgba(30,41,59,0.4) 0%, rgba(15,23,42,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
}

@media (max-width: 768px) {
  .confirmation-card { padding: 24px; }
}

.card-header {
  margin-bottom: 32px;
}

.card-header h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}

.card-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 48px 16px 16px;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.15);
  outline: none;
}

/* Coupon */
.coupon-wrapper {
  display: flex;
  gap: 12px;
}

.coupon-input {
  padding-right: 16px; /* Reset padding for coupon input */
  text-transform: uppercase;
}

.btn-apply {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 0 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-apply:hover {
  background: rgba(255,255,255,0.15);
}

.coupon-msg {
  margin-top: 8px;
  font-size: 13px;
}

.coupon-msg .success { color: #4ade80; }
.coupon-msg .error { color: #ef4444; }

.info-alert {
  display: flex;
  gap: 16px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.alert-icon {
  color: #3b82f6;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.alert-content strong {
  display: block;
  color: #60a5fa;
  margin-bottom: 4px;
  font-size: 15px;
}

.alert-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(109,40,217,0.3);
}

.btn-submit:hover {
  background: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109,40,217,0.4);
}

.btn-submit svg {
  width: 20px;
  height: 20px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.secure-note svg {
  width: 16px;
  height: 16px;
}

.accent-line{height:1px; background:linear-gradient(90deg, transparent, rgba(109,40,217,.38), rgba(37,99,235,.32), rgba(34,211,238,.22), transparent); margin:var(--space-6) 0}
.hero .accent-line{margin:var(--space-4) 0}

.filters{display:flex; gap:var(--space-1); flex-wrap:wrap}
.chip{
  border-radius:999px;
  padding:var(--tap-y) var(--tap-x);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(229,231,235,.90);
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.chip:hover{transform: translateY(-1px); background:rgba(255,255,255,.06)}
.chip[aria-pressed="true"]{background:rgba(37,99,235,.18); border-color:rgba(37,99,235,.34)}

.details{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:var(--radius-l);
  padding:var(--space-4);
}
.details h2{margin:0 0 8px}
.details ul{margin:var(--space-2) 0 0; padding:0 var(--space-4); color:rgba(229,231,235,.86); line-height:1.9}

.form{display:grid; gap:var(--space-3)}
.field label{display:block; margin:0 0 var(--space-1); color:rgba(229,231,235,.88); font-weight:700; font-size:13px}
.field input,.field textarea{
  width:100%;
  padding:var(--control-y) var(--control-x);
  border-radius:var(--radius-s);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.select{
  width:100%;
  padding:var(--control-y) var(--control-x);
  border-radius:var(--radius-s);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  appearance:none;
}
.select:focus{border-color:rgba(37,99,235,.55); box-shadow:0 0 0 6px rgba(37,99,235,.16); background:rgba(0,0,0,.26)}
.field textarea{min-height:140px; resize:vertical}
.field input:focus,.field textarea:focus{border-color:rgba(37,99,235,.55); box-shadow:0 0 0 6px rgba(37,99,235,.16); background:rgba(0,0,0,.26)}
.error{color:#fecaca; font-size:13px; margin-top:6px}
.alert{border-radius:var(--radius-m); padding:var(--space-3); border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04)}
.alert.success{border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.08)}
.alert.warn{border-color: rgba(254,215,170,.26); background: rgba(254,215,170,.08)}

.footer{
  padding:var(--space-8) 0 var(--space-4);
  margin-top: 0;
  border-top:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #020617 0%, #000000 100%);
  font-size:14px;
  position:relative;
  z-index: 0;
  overflow:hidden;
  content-visibility: auto; /* Performance: Skip rendering off-screen footer */
  contain-intrinsic-size: 1000px; /* Prevent scrollbar jumping */
}
.footer::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(109,40,217,.5), rgba(34,211,238,.5), transparent);
}
.footer-top{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap:var(--space-6);
  margin-bottom:var(--space-6);
}
.footer-col-brand{display:flex; flex-direction:column; gap:var(--space-2)}
.footer-links{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px}
.footer-links a{color:var(--muted); transition:all .1s ease; display:inline-block; position:relative}
.footer-links a:hover{color:#fff; transform: translateX(-4px); text-decoration:none; text-shadow:0 0 12px rgba(255,255,255,.25)}
.footer-title{margin-bottom:var(--space-3); font-weight:800; font-size:16px; color:#fff; letter-spacing:.2px; text-shadow:0 0 20px rgba(255,255,255,.15)}
.contact-item{display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; color:var(--muted); line-height:1.6; transition: transform .2s ease}
.contact-item:hover{transform:translateX(-2px); color:rgba(232,236,242,.9)}
.contact-icon{
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(34,211,238,.4));
  font-size: 16px;
  margin-top: 2px;
}
.contact-item a:hover{color:#fff; text-decoration:none}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:var(--space-4);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:var(--space-3);
  color:rgba(232,236,242,.55);
  font-size:13px;
}
.footer-legal{display:flex; gap:12px; align-items:center}
.sep{opacity:.4}
.text-white{color:#fff}

@media (max-width: 980px){
  .footer-top{
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-3);
    text-align: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .footer-col-brand .brand-logo {
    width: 280px;
    height: auto;
    max-width: 100%;
    margin-bottom: var(--space-2);
    filter: drop-shadow(0 0 20px rgba(109,40,217,0.3));
  }
  .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-links a:hover{transform:none}
  .contact-item{justify-content:center}
  .footer-bottom{flex-direction:column; justify-content:center; text-align:center}
}
.muted{color:var(--muted)}
.social{display:flex; gap:var(--space-2); flex-wrap:wrap; justify-content:center}
.social a{padding:var(--tap-y) var(--tap-x); border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); text-decoration:none}
.social a:hover{background:rgba(255,255,255,.06)}

.reveal,[data-reveal]{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.page-title{font-size:clamp(28px, 3.2vw, 38px); line-height:1.15; letter-spacing:.2px}
.page-lead{color:var(--muted); font-size:15px; line-height:1.9; max-width:72ch}
.row{display:flex; gap:var(--space-3); flex-wrap:wrap}
.w-full{width:100%}
.mt-2{margin-top:var(--space-2)}
.mt-3{margin-top:var(--space-3)}
.mt-4{margin-top:var(--space-4)}
.mb-2{margin-bottom:var(--space-2)}
.mb-3{margin-bottom:var(--space-3)}
.grid-span-2{grid-column: span 2}
.lh-19{line-height:1.9}
.lh-195{line-height:1.95}
.lh-2{line-height:2}

.section.is-tight{padding-bottom:0}
.section-showcase{padding-top:var(--space-4)}

.showcase-card{border:1px solid rgba(255,255,255,.10); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border-radius:28px; box-shadow: 0 26px 80px rgba(0,0,0,.38); padding:var(--space-5)}
.showcase-head{display:flex; align-items:flex-end; justify-content:space-between; gap:var(--space-3); margin-bottom: 3.5rem;}
.showcase-head h2{margin:0 0 0.75rem 0; line-height: 1.4;}
.showcase-head .lead{margin-bottom:0; line-height: 1.8; color: var(--muted); max-width: 60ch;}

.showcase-rail {
  margin-top: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none; /* IE/Edge */
  touch-action: pan-x;
}
.showcase-rail::-webkit-scrollbar {
  display: none;
}

.showcase-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 var(--space-2);
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
}

@media (min-width: 768px) {
  .showcase-slide {
    flex: 0 0 50%;
    min-width: 50%;
    scroll-snap-align: start;
  }
}

.showcase-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .22);
  aspect-ratio: 16 / 9;
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  display: block;
}

.showcase-slide:hover .showcase-media {
  transform: scale(1.02);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Hide captions as requested */
.showcase-cap {
  display: none;
}

/* Design Quality Slider Specifics */
.design-quality-slider .showcase-slide {
  flex: 0 0 92%;
  min-width: 92%;
  padding: 0 var(--space-2);
  scroll-snap-align: center;
}

@media (min-width: 640px) {
  .design-quality-slider .showcase-slide {
    flex: 0 0 50%;
    min-width: 50%;
    scroll-snap-align: center;
  }
}

.design-quality-slider .showcase-media {
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.design-quality-slider .showcase-slide:hover .showcase-media {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255,255,255,0.2);
}


.showcase-dots{display:flex; justify-content:center; gap:10px; margin-top:var(--space-4)}
.showcase-dot{width:10px; height:10px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); transition: transform .18s ease, background .18s ease, border-color .18s ease}
.showcase-dot.is-active{background:rgba(109,40,217,.55); border-color:rgba(109,40,217,.62); transform: scale(1.1)}

/* تحسين تخطيط قسم السوشيال ميديا */
.social-split {
  display: grid;
  grid-template-columns: minmax(340px, 40%) 1fr; /* تخصيص 40% للبطاقة الثابتة والباقي للسلايدر */
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}

/* توحيد تصميم البطاقات بأسلوب Glassmorphism */
.social-card {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px -1px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(24px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  contain: layout style;
  will-change: transform;
}

.social-card .pill {
  margin-bottom: 16px;
  align-self: flex-start;
}

.social-slider{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
}

.social-slider .showcase-rail{
  flex:1;
  min-height:0;
}

.social-slider .showcase-track{
  height:100%;
}

.social-slider .showcase-slide{
  height:100%;
  display:flex;
  padding:0 var(--space-2); /* Add padding for spacing */
  flex: 0 0 100%; /* Force single card */
  min-width: 100%;
  scroll-snap-align: center; /* Center align */
}

.social-card:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 32px -4px rgba(0,0,0,.3);
}

/* تحسين نقاط التنقل */
.social-slider .showcase-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-slider .showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-slider .showcase-dot.is-active {
  background: var(--primary);
  width: 24px; /* تمديد النقطة النشطة لتصبح كبسولة */
  box-shadow: 0 0 12px rgba(109,40,217,.4);
}

/* تحسين التجاوب للتابلت والموبايل */
@media (max-width: 1024px) {
  .social-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .social-card {
    text-align: center;
    align-items: center;
    height: auto; /* السماح بالتمدد الطبيعي */
    max-height: none; /* إزالة أي حد أقصى للارتفاع */
    overflow: visible; /* منع التمرير */
  }

  .social-card .pill {
    align-self: center;
    margin-bottom: 4px; /* Reduced margin to balance with h3 margin-top */
  }

  .social-slider {
    height: auto;
    min-height: 400px; /* ضمان ارتفاع أدنى للسلايدر */
  }

  /* تحسين قائمة النقاط في التابلت - العودة للقائمة العمودية المضغوطة */
  .social-points {
    display: flex;
    flex-direction: column; /* عمودي دائماً */
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
  }

  .social-points li {
    width: 100%;
    max-width: none;
    text-align: right;
    padding: 10px 12px 10px 40px; /* نفس الحشو المضغوط */
  }
  
  .social-card .row {
    width: 100%;
    justify-content: center;
    flex-direction: row;
  }
}

/* Removed conflicting tablet styles */

@media (max-width: 768px) {
  /* Removed conflicting mobile styles */
  
  /* جعل البطاقة نفسها تملأ المساحة المتاحة */
  .social-slide {
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-l);
    padding: 24px calc(16px + env(safe-area-inset-right)) 24px calc(16px + env(safe-area-inset-left));
    box-sizing: border-box;
  }
  
  /* تعطيل تأثيرات التحويل الخاصة بالـ JS في الموبايل - إلغاء هذا التعطيل! */
  /* .social-slider .showcase-track { transform: none !important; }  <-- تم الحذف */
  
  .social-points {
    flex-direction: column;
  }
  
  .social-points li {
    max-width: 100%;
  }

  /* ضبط حجم الأيقونة في الموبايل */
  .social-slide-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }
  
  .social-slide-icon svg {
    width: 32px;
    height: 32px;
  }
}
/* تنسيق نقاط القائمة بشكل احترافي ومضغوط */
.social-points {
  list-style: none !important;
  padding: 0;
  margin: 16px 0 0; /* تقليل الهامش العلوي */
  display: flex;
  flex-direction: column;
  gap: 8px; /* تقليل الفجوة بين العناصر */
  width: 100%;
}

.social-points li {
  border: 1px solid rgba(255,255,255,.10); 
  background: rgba(255,255,255,.03); 
  border-radius: 12px; /* تقليل التكور قليلاً ليتناسب مع الحجم الأصغر */
  padding: 10px 12px 10px 40px; /* تقليل الحشو الداخلي بشكل كبير */
  line-height: 1.3;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto; /* إزالة الحد الأدنى للارتفاع الكبير */
  height: auto;
  box-sizing: border-box;
}

.social-points li::before {
  content: "";
  position: absolute;
  left: 12px; /* الأيقونة على اليسار */
  top: 50%;
  transform: translateY(-50%);
  width: 16px; /* تصغير الأيقونة قليلاً */
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-points li:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(34,197,94,.3);
  transform: translateX(-4px);
}

/* تنسيقات تكميلية للشرائح */
.social-slide {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px -1px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(24px, 2.5vw, 32px);
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout style;
}

.social-slider .social-slide::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(109,40,217,.60), rgba(37,99,235,.40), rgba(255,255,255,.10));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.55;
}

.social-slider .social-slide:hover{
  border-color: rgba(255,255,255,.28);
}

.social-slide .meta {
  margin-top: auto; /* دفع الميتا للأسفل */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-slide .row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.social-slide .btn {
  flex: 1;
  justify-content: center;
}

/* تنسيق أيقونة الخدمة لتكون العنوان البصري */
.social-slide-icon {
  width: 80px; /* تكبير الحجم */
  height: 80px;
  border-radius: 50%; /* جعلها دائرية */
  /* خلفية متدرجة تشبه الزر الرئيسي ولكن بلمسة زجاجية */
  background: linear-gradient(135deg, rgba(109,40,217,.2), rgba(37,99,235,.2));
  border: 1px solid rgba(109,40,217,.3);
  box-shadow: 0 0 24px rgba(109,40,217,.15); /* توهج ناعم */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px; /* توسيط أفقي ومسافة سفلية */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة مرنة */
  color: #fff;
}

.social-slide-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform 0.4s ease;
}

/* تأثير التوهج عند التحويم */
.social-slide:hover .social-slide-icon {
  background: linear-gradient(135deg, rgba(109,40,217,.5), rgba(37,99,235,.5));
  border-color: rgba(109,40,217,.8);
  box-shadow: 0 0 40px rgba(109,40,217,.4);
  transform: scale(1.1); /* تكبير كامل الأيقونة */
}

.social-slide:hover .social-slide-icon svg {
  transform: scale(1.1) rotate(5deg); /* حركة بسيطة للأيقونة */
}

/* توسيط محتوى البطاقة */
.social-slide {
  text-align: center;
  align-items: center;
}

.social-slider .showcase-dots {
  margin-top: 24px;
}

.section-consult{padding-top:0; position:relative; z-index:10; margin-top: -var(--space-6); margin-bottom:var(--space-5)}
.consult-card{display:grid; grid-template-columns: 1fr 1fr; gap:0; border:1px solid rgba(255,255,255,.10); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border-radius:28px; box-shadow: 0 26px 80px rgba(0,0,0,.38); overflow:hidden}
.consult-media{background:rgba(0,0,0,.22); position:relative; aspect-ratio: 1 / 1; padding:14px}
.consult-media::before{content:none}
.consult-media::after{content:none}
.consult-media img{width:100%; height:100%; object-fit:contain; object-position:center; display:block}
.consult-body{padding:var(--space-5); display:flex; flex-direction:column; gap:var(--space-3); text-align:center; align-items:center; justify-content:center}
.consult-title{margin:0; font-size:clamp(22px, 2.2vw, 34px); line-height:1.4; letter-spacing:.2px}
.consult-sub{line-height:1.9; max-width:62ch; margin-inline:auto}
.consult-person{display:flex; align-items:center; justify-content:center; gap:10px; margin-top:2px}
.consult-label{color:var(--muted)}
.consult-actions{display:flex; gap:var(--space-2); flex-wrap:wrap; margin-top:var(--space-2); justify-content:center}
.consult-actions .btn{padding-inline:22px}
.reveal.is-visible,[data-reveal].is-visible{opacity:1; transform: translateY(0)}

.page-enter{opacity:0; transform: translateY(8px)}
.page-enter.page-enter-active{opacity:1; transform: translateY(0); transition: opacity .28s ease, transform .28s ease}
.page-exit{opacity:1}
.page-exit.page-exit-active{opacity:0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease}

/* Services & Work Sliders */
.services-slider-container .showcase-slide,
.work-slider-container .showcase-slide {
  flex: 0 0 85%;
  min-width: 85%;
  padding: 0 var(--space-2);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .services-slider-container .showcase-slide,
  .work-slider-container .showcase-slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .services-slider-container .showcase-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
  }
  .work-slider-container .showcase-slide {
    flex: 0 0 25%;
    min-width: 25%;
  }
}

@media (max-width: 980px){
  .nav-inner{height:var(--nav-h-sm)}
  .brand-logo{height:44px; max-width:220px}
  .hero{padding:clamp(72px, 9vh, 88px) 0 clamp(28px, 5vh, 44px)}
  .hero-card-inner{grid-template-columns: 1fr; padding:var(--space-5)}
  .hero.hero-landscape .hero-card-inner{gap:var(--space-4); padding:var(--space-4) var(--container-x) var(--space-6)}
  .hero-actions{flex-direction:column; align-items:stretch}
  .hero-actions .btn{width:100%}
  .hero-side{justify-content:stretch}
  .section-header{flex-direction:column; align-items:stretch; gap:var(--space-2); text-align:center}
  .section-header .btn{width:100%; justify-content:center}
  .section h2{font-size:24px; line-height:1.3}
  .section p.lead{font-size:14px; line-height:1.85}
  .growth-body{grid-template-columns: 1fr}
  .growth-metrics{grid-template-columns: repeat(2, minmax(0,1fr))}
  .growth.growth--in-hero{padding:var(--space-4) var(--container-x)}
  .growth.growth--in-hero .growth-head{flex-direction:column; align-items:stretch}
  .growth.growth--in-hero .growth-actions{justify-content:stretch}
  .growth.growth--in-hero .growth-actions .btn{width:100%}
  .social-split{grid-template-columns: 1fr}
  .social-card,.social-slider{border-radius:22px}
  .social-slide{min-height:auto}
  .nav-toggle{display:inline-flex}

@media (max-width: 600px){
  .social-card{padding:16px; text-align:center}
  .social-card .pill{justify-content:center}
  .social-points li{text-align:right}
  .social-card .row{flex-direction:column; align-items:stretch}
  .social-card .btn{width:100%; justify-content:center}
}
  .nav-toggle{display:inline-flex}
  .nav-toggle{display:inline-flex}
  .nav-inner{position:relative}
  .nav-links{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:var(--space-2);
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    padding:var(--space-4);
    border-radius:var(--radius-xl);
    border:1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(22,9,46,.92), rgba(5,5,7,.92));
    box-shadow: 0 26px 70px rgba(0,0,0,.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform-origin: top;
    max-height:0;
    opacity:0;
    visibility:hidden;
    transform: translateY(-10px) scale(.985);
    pointer-events:none;
    overflow:hidden;
    transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1), max-height .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .25s;
  }
  .nav-links > *{opacity:0; transform: translateY(-6px); transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1)}
  body.nav-open .nav-links{
    max-height:80vh;
    opacity:1;
    visibility:visible;
    transform: translateY(0) scale(1);
    pointer-events:auto;
    transition: opacity .18s ease, transform .22s cubic-bezier(.22,1,.36,1), max-height .35s cubic-bezier(.22,1,.36,1), visibility 0s;
  }
  body.nav-open .nav-links > *{opacity:1; transform: translateY(0)}
  body.nav-open .nav-links > :nth-child(1){transition-delay:30ms}
  body.nav-open .nav-links > :nth-child(2){transition-delay:55ms}
  body.nav-open .nav-links > :nth-child(3){transition-delay:80ms}
  body.nav-open .nav-links > :nth-child(4){transition-delay:105ms}
  body.nav-open .nav-links > :nth-child(5){transition-delay:130ms}
  body.nav-open .nav-links > :nth-child(6){transition-delay:155ms}
  body.nav-open .nav-links > :nth-child(7){transition-delay:180ms}
  body.nav-open .nav-links .btn, body.nav-open .nav-links .nav-link{width:100%; justify-content:center}
  .grid.cols-3{grid-template-columns: repeat(2, minmax(0,1fr));}
  .grid.cols-4{grid-template-columns: repeat(2, minmax(0,1fr));}
  .grid.layout-split{grid-template-columns: 1fr;}
  .grid.layout-split .grid-span-2{grid-column: auto}
  .showcase-card{padding:var(--space-4)}
  .showcase-head{flex-direction:column; align-items:stretch}
  .consult-card{grid-template-columns: 1fr; gap:0}
  .consult-media{aspect-ratio: 1 / 1; padding:0}
  .consult-media img{object-fit:cover}
  .consult-body{padding:var(--space-4)}
  
  /* Center align Selected Works and Services cards on mobile */
  .section .card { text-align: center; }
  .section .card .meta { justify-content: center; }
}

@media (min-width: 981px){
  .hero.hero-landscape .hero-card-inner{padding:clamp(10px, 2.2vh, 18px) clamp(18px, 3vw, 44px) clamp(10px, 2.2vh, 18px)}
}

@media (max-width: 640px){
  .main{text-align:center}
  .main .container{text-align:center}
  .row{justify-content:center}
  body.nav-open .nav-links{border-radius:0; left:0; right:0}
  .hero-title{font-size: clamp(30px, 8.6vw, 40px)}
  .hero-subtitle{font-size:15px}
  .hero-badges{gap:var(--space-1); justify-content:center}
  .filters{justify-content:center}
  .meta{justify-content:center}
  .badge{font-size:11px}
  .accent-line{margin:var(--space-4) 0}
  .growth.growth--in-hero .growth-chart{display:none}
  .grid.cols-3{grid-template-columns: 1fr;}
  .grid.cols-4{grid-template-columns: 1fr;}
  .grid-span-2{grid-column: auto}
  .showcase-slide{padding:0 var(--space-1)}
  .consult-actions .btn{width:100%}
}

/* تنسيقات احترافية للهاتف للسلايدر */
@media (max-width: 768px){
  .social-split {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    overflow: hidden; /* لمنع التمدد الأفقي */
  }

  /* تحسين عرض البطاقة العلوية (الملخص) */
  .social-card {
    padding: 20px 16px; /* تقليل الهوامش الجانبية */
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .social-card h3 {
    font-size: 18px; /* تصغير الخط قليلاً ليتناسب */
    margin: 12px 0 8px;
    word-wrap: break-word;
  }

  .social-card p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
  }

  .social-points {
    width: 100%;
    box-sizing: border-box;
  }

  .social-points li {
    padding: 12px 16px 12px 42px; /* مسافة للأيقونة يسار النص */
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
  }

  .social-points li::before {
    left: 12px; /* الأيقونة يسار */
    right: auto;
    width: 18px;
    height: 18px;
  }

  /* إصلاح الأزرار المقصوصة */
  .social-card .row {
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    box-sizing: border-box;
  }

  .social-card .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 12px 16px;
  }

  /* تحسين عرض السلايدر الاجتماعي على الهاتف */
  .social-slider {
    width: calc(100% + (2 * var(--container-x)));
    margin-inline: calc(-1 * var(--container-x));
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .social-slider .showcase-rail {
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    display: block;
  }
  
  .social-slider .showcase-slide {
    padding: 0;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .social-slide {
    min-height: auto;
    height: auto; /* السماح بالتمدد */
    padding: 24px calc(16px + env(safe-area-inset-right)) 24px calc(16px + env(safe-area-inset-left)); /* حشو متوازن */
    border-radius: var(--radius-l);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* محاذاة للأعلى */
    align-items: center; /* توسيط العناصر */
  }
  
  .social-slide-icon {
    width: 64px; /* تصغير الأيقونة */
    height: 64px;
    margin-bottom: 8px;
  }
  
  .social-slide-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .social-slide h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
  }

  .social-slide p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    display: block; /* ضمان الظهور */
    max-width: 100%;
  }

  /* إصلاح أزرار السلايدر - عرض عمودي كامل */
  .social-slide .row {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column; /* أزرار فوق بعضها */
    gap: 10px;
  }

  .social-slide .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    justify-content: center;
    min-height: 44px;
  }
  
  /* تحسين الوسوم في الموبايل */
  .social-slide .meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
  }

  .tag {
    font-size: 11px;
    padding: 6px 10px;
    white-space: nowrap; /* منع الالتفاف داخل الوسم للحفاظ على شكله */
    flex: 0 1 auto; /* السماح بالتقلص */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* تنسيقات إضافية للشاشات الصغيرة جداً */
@media (max-width: 480px){
  .social-slider {
    padding: 0;
  }

  .social-slide {
    padding: 20px 14px;
  }
  
  .social-slide h3 {
    font-size: 17px;
  }
  
  .social-slide p {
    font-size: 13px;
  }
}

/* تحسين الأداء والتمرير السلس */
@media (hover: none) and (pointer: coarse) {
  .social-slider .showcase-rail {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  
  .social-slider .showcase-rail:active {
    cursor: grabbing;
  }
  
  .social-slide {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn,.nav-link,.card,.chip,.reveal,.select{transition:none !important}
  .orb{animation:none !important}
  .hero-scroll-line::after{animation:none !important}
  .pill-dot,.pill-dot::after{animation:none !important}
}

.social-slider[data-showcase-root]{
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 24px -1px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow:hidden;
  min-height:0 !important;
  display: flex;
  flex-direction: column;
}

.social-slider[data-showcase-root] .showcase-rail{
  overflow-x: auto !important;
  overflow-y: hidden;
  display: flex !important;
  white-space: nowrap;
  position: relative; /* Ensure offsetParent */
  direction: rtl; /* Force RTL for Arabic content */
  margin:0 !important;
  padding:0 !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
}

.social-slider[data-showcase-root] .showcase-slide{
  display: block !important;
  width:100% !important;
  min-width:100% !important;
  padding:0 !important;
  margin:0 !important;
  height:100%;
  white-space: normal;
  scroll-snap-align: center;
  flex: 0 0 100%;
}

.social-slider[data-showcase-root] .social-slide{
  width:100%;
  height:100%;
  border:0;
  background: transparent;
  border-radius:0;
  box-shadow:none;
  padding: clamp(24px, 2.5vw, 32px);
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:16px;
  justify-content:space-between;
}

.social-slider[data-showcase-root] .showcase-dots{
  margin:0;
  padding: 0 0 18px;
}

.social-slider[data-showcase-root] .social-slide .row{
  width:100%;
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-slider[data-showcase-root] .social-slide .btn{
  width:100%;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 750;
  letter-spacing: .15px;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.social-slider[data-showcase-root] .social-slide .btn:not(.primary){
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}

.social-slider[data-showcase-root] .social-slide .btn:not(.primary):hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.20);
}

.social-slider[data-showcase-root] .social-slide .btn.primary{
  border-color: rgba(109,40,217,.46);
  box-shadow: 0 16px 38px rgba(0,0,0,.32), 0 0 0 1px rgba(109,40,217,.12) inset;
}

.social-slider[data-showcase-root] .social-slide .btn:focus-visible{
  outline: 2px solid rgba(109,40,217,.65);
  outline-offset: 3px;
}

@media (min-width: 1025px){
  .social-slider[data-showcase-root] .showcase-rail{
    padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) 0 !important;
  }

  .social-slider[data-showcase-root] .showcase-track{
    height:auto;
    align-items: stretch;
  }

  .social-slider[data-showcase-root] .showcase-slide{
    height:auto;
    align-items: stretch;
  }

  .social-slider[data-showcase-root] .social-slide{
    height:auto;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(26px, 2.2vw, 34px);
  }

  .social-slider[data-showcase-root] .showcase-dots{
    padding: 16px 0 22px;
  }
}

@media (max-width: 768px){
  .social-slider[data-showcase-root]{
    border-radius: 20px;
  }

  .social-slider[data-showcase-root] .social-slide{
    padding: 22px calc(16px + env(safe-area-inset-right)) 22px calc(16px + env(safe-area-inset-left));
  }
}

/* =========================================
   Performance & Video Optimization
   ========================================= */
.hero-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #000000;
}

.hero-poster-mobile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: none; /* مخفي افتراضياً */
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* تقليل السطوع */
  transition: opacity 1s ease;
}

@media (max-width: 768px) {
  /* Video enabled on mobile */
}

/* تحسينات عامة للأداء */
img {
  content-visibility: auto; /* تحسين الريندر */
}

.reveal {
  will-change: transform, opacity; /* تحسين الأنيميشن */
}

.social-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr; /* توحيد الاتجاه للحسابات */
}

.social-slider[data-showcase-root] {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================
   Modern Scroll Snap Slider
   ========================================= */
.showcase-rail {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  cursor: grab;
  touch-action: pan-x pan-y;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0; /* Gap handled by padding in slides */
}

.showcase-rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.showcase-rail:active {
  cursor: grabbing;
  scroll-snap-type: none; /* Disable snap while dragging for smoother feel */
}

.showcase-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* Desktop: Show multiple slides or smaller centered slide if needed */
@media (min-width: 769px) {
  .showcase-slide {
    flex: 0 0 50%; /* Show 2 slides on desktop if desired, or keep 100% but smaller max-width */
    width: 50%; 
  }
  
  /* If we want single centered slide on desktop but not full width */
  /*
  .showcase-slide {
    flex: 0 0 60%;
    width: 60%;
  }
  */
}

/* تنسيق البطاقة داخل الشريحة */
.social-slide {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  user-select: none; /* Prevent text selection while dragging */
}

/* النقاط */
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-dot.is-active {
  background: var(--primary);
  transform: scale(1.2);
  width: 24px;
  border-radius: 4px;
}

/* Glow Animation for Consultation Button */
@keyframes glowing {
  0% { box-shadow: 0 0 5px rgba(34, 211, 238, 0.2); }
  50% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), 0 0 10px rgba(34, 211, 238, 0.4); }
  100% { box-shadow: 0 0 5px rgba(34, 211, 238, 0.2); }
}

.btn-glow {
  animation: glowing 2s infinite;
}

.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

/* تحسينات الموبايل */
@media (max-width: 768px) {
  .showcase-slide {
    flex: 0 0 90%; /* Show part of next slide to encourage scrolling */
    width: 90%;
    padding: 0 8px;
  }
  
  /* Center the single slide */
  .showcase-rail {
    padding-inline-start: 5% !important; /* Half of remaining 10% */
    padding-inline-end: 5% !important;
  }
  
  .social-slide {
    padding: 20px;
  }
  
  .social-slider[data-showcase-root] .social-slide .row{
    display:flex;
    flex-direction: column;
    align-items: stretch;
  }

  .social-slider[data-showcase-root] .social-slide .btn{
    width:100%;
    justify-content:center;
  }
}
