/* ==================================================================
   Reynx Studio — Home CSS (نسخة موحّدة ونظيفة)
   دُمجت من كل نسخ الثيمات المتراكمة، وحُلّت كل التعارضات لصالح
   آخر قيمة كانت فعليًا ظاهرة على الموقع (Neutral Black + Bronze accent
   + Beige background finish + Home Sections Pro Restyle + RTL Final).
   ================================================================== */

:root {
  /* الخلفية والسطوح الأساسية (ثيم فاتح) */
  --paper: #ffffff;
  --paper-dim: #f5f5f5;
  --surface: rgba(28, 28, 29, .72);
  --surface-solid: #1d1d1e;
  --line: rgba(0, 0, 0, .13);
  --line-strong: rgba(0, 0, 0, .27);

  /* النصوص */
  --ink: #171717;
  --ink-soft: #3f3f3f;
  --ink-mute: #6b6b6b;
  --ink-faint: #8f8f8f;

  /* لهجة برونزية/بيج (Accent) — من Home Sections Pro Restyle */
  --rx-section-bg: #ffffff;
  --rx-section-panel: rgba(245, 244, 242, .85);
  --rx-section-panel-strong: rgba(238, 237, 235, .95);
  --rx-stone-line: rgba(25, 22, 18, .14);
  --rx-stone-line-strong: rgba(25, 22, 18, .30);
  --rx-beige: #d5c8b8;
  --rx-beige-soft: #aaa096;
  --rx-bronze: #927658;
  --rx-bronze-bright: #8a6d4d;
  --rx-white: #161616;
  --rx-copy: #3d3d3d;
  --rx-copy-dim: #6f6b66;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.rx-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.rx-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

/* ─── Antigravity particles (GPGPU WebGL hero field) ───
   z-index: 0 يخلّيها فوق خلفية الهيرو (شفافة، والجرادينت بتاعت
   الصفحة شايفة من تحتها) وتحت كل عناصر المحتوى الموضعية
   (التايتل z-auto، الأزرار z3، السوشيال/سكرول z5) — أي حاجة
   position مثلها وبعدها في الـ DOM بتترسم فوقها بنفس الـ
   stacking level. */
.rx-hero .particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rx-hero .particles [data-container] {
  position: absolute;
  inset: 0;
}

.rx-hero .particles canvas {
  display: block;
}

/* ─── Hero Container — Perfect Center ─── */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 120px 24px 160px 140px;
}

/* ─── Hero Content — Left-Aligned Stack ─── */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 740px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY — Staggered Title
   ═══════════════════════════════════════════════════════════════ */

.hero-subtitle {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  left: calc(1.5% + 120px);
  top: 34%;
  font-weight: 500;
  color: #161616;
  letter-spacing: 6px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.1s;
}

.hero-title-staggered > span {
  position: absolute;
  font-family: 'NEXTSTEP', sans-serif;
  display: block;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Line 1: "Ideas" */
.line-1 {
  left: calc(3.5% + 120px);
  top: 37%;
  font-size: 100px;
  color: #161616;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .16);
  animation-delay: 0.2s;
}

/* Line 2: "World Remembers" — أبيض بسيط (النسخة النهائية بيّضت التدرّج) */
.line-2 {
  left: calc(5.8% + 120px);
  top: 47%;
  font-size: 45px;
  font-weight: 300;
  letter-spacing: 1px;
  gap: 16px;
  color: #161616;
  animation-delay: 0.56s;
  animation-name: fadeUp;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

/* خط رفيع تحت العنوان */
.hero-title-staggered::after {
  content: '';
  left: calc(30.8% + 120px);
  top: 52%;
  position: absolute;
  width: 80px;
  height: 2px;
  border-radius: 50px;
  background: linear-gradient(90deg, transparent, #a8a8a8, transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(0, 0, 0, .12);
  animation: rxLineGlow 4s ease-in-out infinite;
}

@keyframes rxLineGlow {
  0%, 100% { background-position: 0% 0; opacity: 0.45; }
  50%      { background-position: 100% 0; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   DESCRIPTION
   ═══════════════════════════════════════════════════════════════ */

.hero-description {
  position: absolute;
  font-family: 'Poppins', sans-serif;
  left: calc(4.5% + 120px);
  top: 54%;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: #333333;
  line-height: 1.75;
  letter-spacing: 0.2px;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.72s;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.rx-hero-btns {
  position: absolute;
  left: calc(7.5% + 150px);
  top: 62%;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.98s;
  z-index: 3;
}

.rx-hero-btn {
  position: relative;
  font-family: 'Poppins', 'Cairo', sans-serif;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
  overflow: hidden;
}

/* Primary Button — "Start Now" */
.rx-btn-primary {
  background: linear-gradient(135deg, #1e1e20 0%, #131314 58%, #050505 100%);
  color: #fafafa;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.rx-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rx-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #2b2b2e 0%, #1a1a1c 58%, #0d0d0e 100%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.rx-btn-primary:hover::before { opacity: 1; }

.rx-btn-primary i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.rx-btn-primary:hover i { transform: translateX(4px); }

/* Outline Button — "About Us" */
.rx-btn-outline {
  background: rgba(181, 150, 112, .10);
  color: #2e2620;
  border: 1px solid rgba(120, 95, 65, .45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rx-btn-outline:hover {
  background: rgba(181, 150, 112, .20);
  border-color: rgba(120, 95, 65, .65);
  color: #14100c;
  transform: translateY(-3px) scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.rx-hero-social {
  position: absolute;
  left: 97%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}

/* أيقونات سوشيال: من غير دوائر — لون ثيم الموقع (أسود على الفاتح) */
.rx-social-link {
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #161616;
}

.rx-social-link:hover {
  background: transparent;
  border-color: transparent;
  color: #000000;
  transform: scale(1.2);
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   PARTICLES — Silver Dust
   ═══════════════════════════════════════════════════════════════ */

.rx-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.rx-particle {
  position: absolute;
  border-radius: 50%;
  animation: rxFloat 10s ease-in-out infinite;
}

.rx-particle:nth-child(1)  { left: 8%;  top: 18%; width: 3px; height: 3px; background: rgba(255, 255, 255, 0.55); animation-delay: 0s;    animation-duration: 8s; }
.rx-particle:nth-child(2)  { left: 18%; top: 55%; width: 5px; height: 5px; background: rgba(181, 150, 112, .48); animation-delay: 1.2s;  animation-duration: 11s; }
.rx-particle:nth-child(3)  { left: 32%; top: 25%; width: 2px; height: 2px; background: rgba(255, 255, 255, 0.48); animation-delay: 2.5s;  animation-duration: 7s; }
.rx-particle:nth-child(4)  { left: 48%; top: 78%; width: 4px; height: 4px; background: rgba(181, 150, 112, .48); animation-delay: 0.6s;  animation-duration: 9s; }
.rx-particle:nth-child(5)  { left: 62%; top: 12%; width: 3px; height: 3px; background: rgba(255, 255, 255, 0.42); animation-delay: 3.2s;  animation-duration: 12s; }
.rx-particle:nth-child(6)  { left: 72%; top: 52%; width: 6px; height: 6px; background: rgba(181, 150, 112, .48); animation-delay: 1.8s;  animation-duration: 8s; }
.rx-particle:nth-child(7)  { left: 85%; top: 22%; width: 2px; height: 2px; background: rgba(255, 255, 255, 0.42); animation-delay: 2.8s;  animation-duration: 10s; }
.rx-particle:nth-child(8)  { left: 12%; top: 82%; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.38); animation-delay: 4.2s;  animation-duration: 9s; }
.rx-particle:nth-child(9)  { left: 42%; top: 42%; width: 3px; height: 3px; background: rgba(181, 150, 112, .48); animation-delay: 0.9s;  animation-duration: 13s; }
.rx-particle:nth-child(10) { left: 92%; top: 68%; width: 2px; height: 2px; background: rgba(255, 255, 255, 0.38); animation-delay: 3.8s;  animation-duration: 7s; }

@keyframes rxFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  20%      { transform: translateY(-25px) translateX(8px); opacity: 0.6; }
  40%      { transform: translateY(-10px) translateX(-12px); opacity: 0.35; }
  60%      { transform: translateY(-35px) translateX(6px); opacity: 0.7; }
  80%      { transform: translateY(-15px) translateX(-4px); opacity: 0.45; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL DOWN INDICATOR
   ═══════════════════════════════════════════════════════════════ */

.rx-scroll-down {
  position: absolute;
  bottom: 28px;
  /* سنتر بدون transform: fadeUp animation كان بيلغي translateX(-50)
     ويشوّشه يمين — دلوقتيleft/right + margin-auto ثابت في أي وقت */
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.4s;
  transition: opacity 0.3s ease;
}

.rx-scroll-down span {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(50, 50, 50, .75);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.rx-scroll-down i {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(8px); opacity: 0.9; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL (fade/blur on scroll)
   ═══════════════════════════════════════════════════════════════ */

.rx-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rx-delay, 0s);
}

.rx-reveal.rx-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .rx-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(35px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION SHELL — About / Work / Why / Testimonials / FAQ / Footer
   ═══════════════════════════════════════════════════════════════ */

.rx-about-section,
.rx-work-section,
.rx-why-section,
.rx-tech-section,
.testimonials,
.rx-faq-section,
.rx-footer {
  position: relative;
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
  padding: 132px 0;
  isolation: isolate;
  color: var(--ink);
}

.rx-about-section::before,
.rx-work-section::before,
.rx-why-section::before,
.rx-tech-section::before,
.testimonials::before,
.rx-faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rx-stone-line), transparent);
  pointer-events: none;
}

/* خط الفصل بين الهيرو (الجزء الأول) وقسم About — نفس لغة فواصل باقي
   الأقسام (gradient بايختين) بس أوضح شوية عشان يبان قصد زي خط
   "Our Capabilities" — وفوقه بمسافة كفاية من SCROLL DOWN — */
.rx-about-section::before {
  background: linear-gradient(90deg, transparent, rgba(25, 22, 18, .3), transparent);
}

.rx-about-head,
.rx-work-head,
.rx-section-head,
.section-header {
  position: relative;
  margin-bottom: 54px;
  overflow: visible;
}

.rx-about-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rx-bronze-bright);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.rx-about-title,
.rx-section-head h2,
.section-title {
  margin: 0;
  color: var(--rx-white);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
  overflow: visible;
}

.rx-about-title > span,
.rx-section-head h2 > span,
.section-title > span {
  display: block;
}

.rx-about-gradient,
.testimonials .gradient-text,
.gradient-text {
  display: inline-block;
  line-height: 1.5;
  padding-bottom: 0.15em;
  background: linear-gradient(100deg, #1d1c1a 0%, #8a6d4d 55%, #b09468 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 9px 22px rgba(148, 116, 84, .12));
}

.rx-section-head.rx-center,
.section-header.centered {
  text-align: center;
}

.rx-section-head.rx-center > div,
.section-header.centered > div {
  margin-inline: auto;
}

/* .rx-section-sub عرضه max-width:560px، أضيق من الكونتينر — من غير
   margin-inline:auto كان الصندوق بيلزق على حافة الكونتينر (يمين، لأن
   الصفحة RTL) بدل ما يتمركز زي العنوان اللي فوقه، فكان الوصف بيبان
   مزحّط عن العنوان. margin: auto بيخلي الصندوق نفسه يتمركز، مش بس
   النص جواه. */
.rx-section-sub {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--rx-copy);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .98rem;
  line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT / VISION + WHY CARDS
   ═══════════════════════════════════════════════════════════════ */

.rx-about-grid,
.rx-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rx-why-grid { grid-template-columns: repeat(4, 1fr); }

.rx-about-card,
.rx-why-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--rx-stone-line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(246, 245, 243, .97));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .45s ease, background .45s ease, box-shadow .45s ease;
}

.rx-why-card { min-height: 225px; padding: 26px; }

.rx-about-card::before,
.rx-why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 170px at 0% 0%, rgba(207, 180, 148, .13), transparent 72%);
  opacity: .72;
  pointer-events: none;
}

.rx-about-card::after,
.rx-why-card::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(0, 0, 0, .04), 0 0 0 36px rgba(0, 0, 0, .03);
  pointer-events: none;
}

.rx-about-card:hover,
.rx-why-card:hover {
  transform: translateY(-8px);
  border-color: var(--rx-stone-line-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(239, 238, 236, 1));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.rx-about-icon,
.rx-why-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(225, 210, 192, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, #242321, #76614d);
  color: #f5eee5;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.rx-why-icon { width: 44px; height: 44px; margin-bottom: 23px; border-radius: 13px; }

.rx-about-card:hover .rx-about-icon,
.rx-why-card:hover .rx-why-icon {
  transform: scale(1.12) rotate(-5deg);
}

.rx-about-card h3,
.rx-why-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  color: var(--rx-white);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.rx-about-card p,
.rx-why-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--rx-copy);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .86rem;
  line-height: 1.85;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION REFINEMENT — مونوكروم زجاجي فخم مودرن
   (بيغطي .rx-why-* كمان لأنهم نفس التصميم — التماسك أهم)
   ═══════════════════════════════════════════════════════════════ */

/* — التاج: أسود + خط رفيع قصاده (إحساس editorial) — */
.rx-about-tag { color: #161616; }
.rx-about-tag::before {
  content: '';
  width: 34px;
  height: 1px;
  background: #161616;
  flex: none;
}

/* — السطر التاني: نفس فونت السطر الأول (السانس الهندري في الصورة) —
   التايتل كله خط واحد متّحد، من غير سيريف — */
.rx-about-title .rx-about-gradient {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -.055em;
  background: none;
  color: #141414;
  filter: none;
  padding-bottom: .1em;
  line-height: 1.4;
}

/* — الكروت: زجاج مورّق + شعرة فاتحة + ظل ناعم —
   من غير البرونزي ولا الدواوات الزخرفية — */
.rx-about-grid,
.rx-why-grid { gap: 22px; }

.rx-about-card,
.rx-why-card {
  min-height: 250px;
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 16px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(17, 18, 20, .08),
    0 20px 55px rgba(15, 18, 22, .13);
}

/* شيل التوهج البرونزي جوه الكارت */
.rx-about-card::before,
.rx-why-card::before { content: none; }

/* سهم صغير ↗ بيظهر مع الهوفر (بدل الدايرة القديمة) */
.rx-about-card::after,
.rx-why-card::after {
  content: '↗';
  top: 34px;
  right: auto;
  left: auto;
  bottom: auto;
  inset-inline-end: 32px;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1;
  color: #141414;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.rx-about-card:hover::after,
.rx-why-card:hover::after { opacity: .8; transform: translate(0, 0); }

.rx-about-card:hover,
.rx-why-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .78);
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(17, 18, 20, .07),
    0 26px 60px rgba(15, 18, 22, .18);
}

/* — الأيقونات: حلقة رفيعة + أيقونة سودا، ومع الهوفر بتتعكّس (أسود صلب) — */
.rx-about-icon,
.rx-why-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  border: 1px solid rgba(17, 18, 20, .25);
  border-radius: 50%;
  background: transparent;
  color: #111111;
  font-size: 1.05rem;
  box-shadow: none;
}
.rx-about-card:hover .rx-about-icon,
.rx-why-card:hover .rx-why-icon {
  transform: none;
  background: #111111;
  border-color: #111111;
  color: #f6f6f6;
}

/* — النص: أدق وأوضح — */
.rx-about-card h3,
.rx-why-card h3 {
  margin: 0 0 12px;
  color: #101113;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.rx-about-card p,
.rx-why-card p {
  color: #3f434a;
  font-size: .875rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   WORK / FEATURED PROJECTS
   ═══════════════════════════════════════════════════════════════ */

.rx-work-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}

.rx-work-col {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}

.rx-work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--rx-stone-line);
  border-radius: 25px;
  background: #f5f4f2;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .30);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .5s ease, box-shadow .5s ease;
}

.rx-work-card-large { min-height: 510px; }

.rx-work-card:hover {
  transform: translateY(-8px);
  border-color: var(--rx-stone-line-strong);
  box-shadow: 0 30px 85px rgba(0, 0, 0, .52);
}

.rx-work-media {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  background:
    radial-gradient(260px 180px at 70% 22%, rgba(195, 164, 127, .20), transparent 70%),
    linear-gradient(145deg, #272421 0%, #171616 55%, #0b0b0c 100%);
  color: rgba(239, 232, 222, .72);
}

.rx-work-media::before {
  content: 'REYNX';
  position: absolute;
  top: 22px;
  left: 25px;
  color: rgba(225, 207, 185, .34);
  font-family: 'Poppins', sans-serif;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: 4px;
}

.rx-work-media::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(219, 199, 175, .16);
  transform: rotate(34deg);
  box-shadow: 0 0 0 22px rgba(219, 199, 175, .025), 0 0 0 44px rgba(219, 199, 175, .018);
}

.rx-work-media i { position: relative; z-index: 1; font-size: 2.1rem; opacity: .62; }

.rx-work-info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 23px 23px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .97));
}

.rx-work-cat {
  display: block;
  margin-bottom: 5px;
  color: var(--rx-bronze-bright);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rx-work-info h3 {
  margin: 0;
  color: var(--rx-white);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .rx-work-grid { grid-template-columns: 1fr; }
  .rx-work-card-large { min-height: 390px; }
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS (feedback marquee)
   ═══════════════════════════════════════════════════════════════ */

.testimonials { width: 100%; max-width: none; overflow: hidden; padding-inline: 0; }
.testimonials .section-header { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }

.testimonials-marquee {
  position: relative;
  padding: 8px 0 18px;
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

/* ─── RTL FIX (Marquee) ────────────────────────────────────────────
   الصفحة كلها dir="rtl"، فالمتصفح كان بيحاذي .marquee-content
   (اللي عرضه max-content وأصغر من الحاوية) لليمين تلقائيًا، بينما
   حسابات الأنيميشن (translateX من 0 لـ -50%) متبنية على افتراض إن
   العنصر شمال زي أي marquee عادي. التضارب ده هو اللي كان بيخلي
   الشريط يبان مش واخد عرض الصفحة كامل وفيه فراغ، خصوصًا لما الشاشة
   تتصغّر. الحل: نفرض direction: ltr على المارکي بس (مش على باقي
   الصفحة) عشان يتصرف بشكل متسق بغض النظر عن اتجاه الصفحة. */
.testimonials-marquee,
.marquee-row,
.marquee-content {
  direction: ltr;
}

.marquee-track { display: flex; flex-direction: column; gap: 18px; }
.marquee-row { overflow: hidden; width: 100%; margin: 0 0 18px; }
.marquee-content { display: flex; gap: 18px; width: max-content; will-change: transform; }
.row-left .marquee-content  { animation: marqueeLeft 40s linear infinite; }
.row-right .marquee-content { animation: marqueeRight 45s linear infinite; }
.marquee-row:hover .marquee-content { animation-play-state: paused; }

@keyframes marqueeLeft  { from { transform: translateX(0); }   to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.t-card.glass {
  box-sizing: border-box;
  position: relative;
  width: 355px;
  min-height: 215px;
  padding: 25px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--rx-stone-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(247, 246, 244, .97));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .32);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-card.glass:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--rx-stone-line-strong);
}

.t-stars {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  color: var(--rx-bronze-bright);
  font-size: .76rem;
  letter-spacing: 4px;
}

.t-text {
  position: relative;
  z-index: 1;
  min-height: 77px;
  margin: 0 0 22px;
  color: var(--rx-copy);
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .82rem;
  line-height: 1.75;
  font-style: italic;
  /* الكارت نفسه بقى LTR بسبب الفكس فوق، فبنرجّع النص العربي/الطبيعي
     يتحاذى صح جوه الكارت (يمين) بدل ما يورث LTR ويبان النص شمال. */
  direction: rtl;
  text-align: right;
}

.t-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  /* نفس السبب: نرجّع ترتيب الأفاتار والاسم يبان طبيعي RTL جوه الكارت. */
  direction: rtl;
}

.t-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid rgba(244, 232, 216, .25);
  border-radius: 50%;
  background: linear-gradient(145deg, #81715f, #302a24);
  color: #f3eee7;
  font-size: .67rem;
  font-weight: 700;
}

.t-info h4 { margin: 0 0 3px; color: var(--rx-white); font-size: .78rem; font-weight: 600; }
.t-info span { color: var(--rx-copy-dim); font-size: .64rem; }

@media (max-width: 768px) {
  .t-card.glass { width: min(310px, calc(100vw - 70px)); }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */

.rx-faq-section {
  width: min(960px, calc(100% - 96px));
  padding-bottom: 100px;
}

.rx-faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 38px; }

.rx-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rx-stone-line);
  border-radius: 18px;
  background: var(--rx-section-panel);
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}

.rx-faq-item:hover,
.rx-faq-item.active {
  border-color: var(--rx-stone-line-strong);
  background: rgba(236, 234, 231, .95);
}

.rx-faq-item.active { transform: translateX(5px); }

.rx-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: var(--rx-white);
}

.rx-faq-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--rx-bronze-bright);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-faq-item.active .rx-faq-icon { transform: rotate(180deg); }

.rx-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

.rx-faq-answer p {
  padding: 0 25px 23px;
  margin: 0;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .84rem;
  line-height: 1.85;
  color: var(--rx-copy);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.rx-footer { padding-top: 30px; padding-bottom: 55px; }

.rx-footer-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rx-stone-line);
  border-radius: 28px;
  padding: 50px 50px 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(248, 247, 245, .98));
  box-shadow: 0 25px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.rx-footer-box::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(0, 0, 0, .04), 0 0 0 68px rgba(0, 0, 0, .03);
  pointer-events: none;
}

.rx-footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.rx-footer-col { display: flex; flex-direction: column; gap: 10px; }

.rx-footer-col h4 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--rx-bronze-bright);
  margin-bottom: 6px;
}

.rx-footer-col a {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .85rem;
  color: var(--rx-copy);
  text-decoration: none;
  transition: color 0.25s ease;
  width: fit-content;
}

.rx-footer-col a:hover { color: var(--rx-white); }

.rx-footer-divider { height: 1px; background: var(--rx-stone-line); margin: 34px 0 22px; }

.rx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.rx-footer-copy,
.rx-footer-note {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: .78rem;
  color: var(--rx-copy-dim);
}

.rx-footer-social { display: flex; gap: 10px; }

.rx-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .05);
  border: 1px solid var(--rx-stone-line);
  color: var(--rx-copy);
  font-size: .85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.rx-footer-social a:hover {
  background: var(--rx-beige);
  border-color: var(--rx-beige);
  color: #151413;
  transform: translateY(-2px);
}

@media (max-width: 992px) { .rx-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (max-width: 576px) {
  .rx-footer-box { padding: 32px 22px 24px; }
  .rx-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .rx-footer-bottom { flex-direction: column; text-align: center; }
}

/* لا فاصل ظاهر فوق الفوتر */
.rx-footer::before,
.rx-footer::after,
.about-cta::before,
.about-cta { border-top: none !important; }
.rx-footer::before,
.rx-footer::after { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   BODY / PAGE BACKGROUND
   ═══════════════════════════════════════════════════════════════ */

html, body {
  background: linear-gradient(180deg, #d3d9dd 0%, #b7bfc5 100%);
  background-attachment: fixed;
  color: var(--ink);
}

body { position: relative; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
  pointer-events: none;
}

/* Grain مُعطّل — الخلفية جرادينت سادة */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

/* Navbar (شفافة بالكامل — تفاصيلها في ملف الـ navbar لو موجودة) */
.navbar,
.navbar::before,
.navbar::after {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* النافبار على الخلفية البيضا — نصوص وعناصر غامقة */
.navbar .nav-links a { color: rgba(0, 0, 0, .62); }
.navbar .nav-links a:hover { color: #000; }
.navbar .nav-links a.active { color: #000; }

.navbar .search-btn,
.navbar .action-icon,
.navbar .lang-btn { color: rgba(0, 0, 0, .7); }

.navbar .search-btn:hover,
.navbar .action-icon:hover,
.navbar .lang-btn:hover { color: #000; }

.navbar .login-btn-alt {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .3);
  color: #111;
}
.navbar .login-btn-alt:hover {
  background: rgba(0, 0, 0, .1);
  border-color: rgba(0, 0, 0, .5);
}

.navbar .hamburger-icon span { background: #111; }

/* Focus accessibility */
:where(a, button, input):focus-visible {
  outline: 2px solid var(--rx-bronze-bright);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  .hero-container { padding: 100px 28px 150px; justify-content: flex-start; }
  .rx-hero-social { display: none; }
  .rx-why-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-audio-btn { display: none; }
  .rx-about-section,
  .rx-work-section,
  .rx-why-section,
  .rx-tech-section,
  .rx-footer,
  .testimonials .section-header { width: min(100% - 52px, 820px); }
  .rx-work-grid { grid-template-columns: 1fr; }
  .rx-work-card-large { min-height: 390px; }
}

@media (max-width: 900px) {
  .hero-subtitle,
  .line-1,
  .line-2,
  .hero-description,
  .rx-hero-btns { left: 8%; }
  .line-1 { font-size: clamp(58px, 11vw, 92px); }
  .line-2 { font-size: clamp(28px, 5.5vw, 45px); }
  .rx-hero-social { right: 4%; left: auto; }
  body::before { background-position: center center; }
}

@media (max-width: 768px) {
  .rx-work-section { padding: 20px 28px 60px; }
  .rx-faq-section { padding: 60px 24px 70px; }
  .rx-faq-question { padding: 18px 20px; font-size: 0.92rem; }
  .rx-faq-answer p { padding: 0 20px 18px; font-size: 0.88rem; }
  .t-text { font-size: .8rem; }
}

@media (max-width: 640px) {
  .rx-about-section,
  .rx-work-section,
  .rx-why-section,
  .rx-tech-section,
  .testimonials .section-header,
  .rx-faq-section,
  .rx-footer {
    width: calc(100% - 38px);
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .rx-about-grid,
  .rx-why-grid { grid-template-columns: 1fr; }
  .rx-about-title,
  .rx-section-head h2,
  .section-title { font-size: clamp(2.25rem, 13vw, 4rem); }
  .rx-about-card,
  .rx-why-card { min-height: auto; padding: 24px; }
  .rx-work-card-large { min-height: 330px; }
  .rx-faq-item.active { transform: none; }
  .rx-footer-box { padding: 32px 22px 24px; }
}

@media (max-width: 600px) {
  .hero-subtitle { top: 31%; letter-spacing: 4px; }
  .line-1 { top: 36%; }
  .line-2 { top: 46%; }
  .hero-description { top: 55%; max-width: 82%; font-size: .82rem; }
  .rx-hero-btns { top: 66%; flex-wrap: wrap; }
  .rx-hero-social { display: none; }
}

@media (max-width: 576px) {
  .hero-container { padding: 100px 20px 170px; }
  .rx-hero-btns { position: static; margin: 20px 0 0; flex-direction: column; width: 100%; gap: 12px; }
  .rx-hero-btns .rx-hero-btn { width: 100%; padding: 13px 28px; }
  .rx-scroll-down { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .rx-about-card:hover,
  .rx-why-card:hover,
  .rx-work-card:hover,
  .rx-faq-item:hover { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   RTL — النسخة النهائية بس (باقي النسخ اتشالت)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --rtl-edge-gap: 60px;
  --rtl-subtitle-top: 34%;
  --rtl-line1-top:    37%;
  --rtl-line2-top:    50%;
  --rtl-underline-top: 57%;
  --rtl-desc-top:      58%;
  --rtl-btns-top:      65%;
}

html[dir="rtl"] .hero-subtitle          { left: auto; right: calc(1.5% + var(--rtl-edge-gap)); text-align: right; color: #161616; }
html[dir="rtl"] .line-1                 { left: auto; right: calc(3.5% + var(--rtl-edge-gap)); color: #161616; }
html[dir="rtl"] .line-2                 { left: auto; right: calc(5.8% + var(--rtl-edge-gap) + 12px); word-spacing: -7px; color: #161616; }
html[dir="rtl"] .hero-title-staggered::after { left: auto; right: calc(12.5% + var(--rtl-edge-gap) + 8px); width: 65px; }
html[dir="rtl"] .hero-description       { left: auto; right: calc(4.5% + var(--rtl-edge-gap)); text-align: right; color: #161616; }
html[dir="rtl"] .rx-hero-btns           { left: auto; right: calc(7.5% + var(--rtl-edge-gap) + 30px); justify-content: flex-end; }

html[dir="rtl"] .hero-subtitle              { top: var(--rtl-subtitle-top); }
html[dir="rtl"] .line-1                     { top: var(--rtl-line1-top); }
html[dir="rtl"] .line-2                     { top: var(--rtl-line2-top); }
html[dir="rtl"] .hero-title-staggered::after { top: var(--rtl-underline-top); }
html[dir="rtl"] .hero-description           { top: var(--rtl-desc-top); }
html[dir="rtl"] .rx-hero-btns               { top: var(--rtl-btns-top); }

html[dir="rtl"] .rx-hero-social { left: 2%; right: auto; }
html[dir="rtl"] .rx-audio-btn { right: auto; left: 32px; }

html[dir="rtl"] .rx-btn-primary i { transform: scaleX(-1); }
html[dir="rtl"] .rx-btn-primary:hover i { transform: scaleX(-1) translateX(4px); }

@media (max-width: 900px) {
  html[dir="rtl"] .hero-subtitle,
  html[dir="rtl"] .line-1,
  html[dir="rtl"] .line-2,
  html[dir="rtl"] .hero-description,
  html[dir="rtl"] .rx-hero-btns {
    right: 6%;
    left: auto;
  }
}
/* End RTL. */

/* ═══════════════════════════════════════════════════════════════
   HERO FIGURE — الشخصية في السنتر + النص فوقها
   ═══════════════════════════════════════════════════════════════ */

/* — الشخصية: بالظبط في نص الهيرو — */
.rx-hero-figure {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: min(88vh, 920px);
  width: auto;
  max-width: 96vw;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  /* حلوان الحواف في الخلفية (فوق + الجوانب + تحت) */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 5%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 5%, #000 80%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* — المحتوى: عمود في السنتر فوق الشخصية —
   z-index: auto مقصود: عشان ما يعملش stacking context،
   كده الـ mix-blend-mode بتاع التايتل يشوف الشخصية/الخلفية تحته. */
.rx-hero .rx-hero-content {
  position: absolute;
  inset: 0;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 110px;
}

.rx-hero .hero-content {
  align-items: center;
  text-align: center;
  max-width: min(920px, 94vw);
}

/* إلغاء التموضع القديم (absolute + left/top بتاع LTR وRTL كله) */
html[dir] .rx-hero .hero-subtitle,
html[dir] .rx-hero .hero-title-staggered,
html[dir] .rx-hero .hero-description,
html[dir] .rx-hero .rx-hero-btns,
html[dir] .rx-hero .line-1,
html[dir] .rx-hero .line-2 {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  text-align: center;
  max-width: none;
}

/* — التايتل الكبير: رمادي فاتح #c5ccd1 + difference —
   فوق الخلفية بيطلع أسود صلب، وفوق الشخصية بيطلع أبيض/رمادي فاتح:
   يعني (ابيض و اسود) بنسخة نص واحدة من غير أي تكرار — */
html[dir] .rx-hero .line-1,
html[dir] .rx-hero .line-2 {
  color: #c5ccd1;
  mix-blend-mode: difference;
  text-shadow: none;
}

/* — النص الصغير: أسود صلب #000 + دروب شادو اسود حقيقي —
   من غير difference عشان الظل يفضل اسود مظبوط
   (الـ difference بيقلب الأسود لرمادي) — */
html[dir] .rx-hero .hero-subtitle,
html[dir] .rx-hero .hero-description {
  color: #000000;
  mix-blend-mode: normal;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, .9),
    0 1px 2px rgba(0, 0, 0, .75);
}

/* — Eyebrow — سيريف فخم Playfair Display — */
html[dir] .rx-hero .hero-subtitle {
  font-family: 'Playfair Display', 'Cairo', Georgia, serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
html[dir="rtl"] .rx-hero .hero-subtitle { letter-spacing: .16em; }

/* — H1 — نفس كود فونت عنوان صفحة السيرفس بالظبط:
   'Poppins' (وزن 300 أخف متاح) + تباعد -.065em + سطر 1.03
   — Cairo بيخلف للعربي، وممنوع Manrope/Inter/Alexandria (مش محمّلة) — */
html[dir] .rx-hero .hero-title-staggered {
  position: relative;
  margin: 10px 0 0;
  font-family: 'Poppins', 'Cairo', sans-serif;
}

html[dir] .rx-hero .line-1 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(64px, 10.5vw, 150px);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: 1.03;
}

html[dir] .rx-hero .line-2 {
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(26px, 4.4vw, 56px);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 6px;
}
html[dir="rtl"] .rx-hero .line-1,
html[dir="rtl"] .rx-hero .line-2 { letter-spacing: normal; }

/* خط التوهج البرونزي الصغير — في النص بالظبط تحت التايتل */
html[dir] .rx-hero .hero-title-staggered::after {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -14px;
  transform: translateX(-50%);
  width: 92px;
  background: linear-gradient(90deg, transparent, #c5ccd1, transparent);
  box-shadow: 0 0 12px rgba(197, 204, 209, .5);
  mix-blend-mode: difference;
}

/* — الوصف (سطر واحد قصير) — سيريف فخم Playfair Display — */
html[dir] .rx-hero .hero-description {
  font-family: 'Playfair Display', 'Cairo', Georgia, serif;
  margin-top: 22px;
  font-size: clamp(.92rem, 1.3vw, 1.02rem);
  line-height: 1.7;
  font-weight: 500;
  max-width: 560px;
}

/* — مخفيين مؤقتًا للمعاينة (امسح السطر ده عشان يرجعوا) —
   بيطفي الأصلي + نسخة الـ ghost مع بعض — */
html[dir] .rx-hero .hero-subtitle,
html[dir] .rx-hero .hero-description { display: none; }

/* — الأزرار: خلفيات صلبة تقرا فوق السودا والفاتحة — */
html[dir] .rx-hero .rx-hero-btns {
  margin-top: 30px;
  justify-content: center;
  gap: 16px;
}

/* أكسنت برونزي على سهم السكرول */
.rx-hero .rx-scroll-down i { color: #111111; }

html[dir] .rx-hero .rx-btn-primary {
  background: #111214;
  color: #f6f6f6;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
html[dir] .rx-hero .rx-btn-primary:hover {
  background: #f6f6f6;
  color: #111214;
  border-color: rgba(0, 0, 0, .45);
}

html[dir] .rx-hero .rx-btn-outline {
  background: rgba(246, 245, 243, .94);
  color: #17181a;
  border: 1px solid rgba(0, 0, 0, .35);
}
html[dir] .rx-hero .rx-btn-outline:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, .6);
  color: #000000;
}

/* — الشعار أسود على خلفية الصفحة الفاتحة — */
.logo-img { filter: brightness(0); }

/* ═══════════════════════════════════════════════════════════════
   GHOST LAYER — نسخة من النص ماسكوبة بصورة الشخصية:
   تظهر بس جوّه الشخصية (وش + جسم) بلون أبيض صلب،
   والنص الأصلي يفضل أسود + ظله على الخلفية الفاتحة.
   حجم الماسك متحسب بنفس معادلة الشخصية (contain داخل 96vw×H)
   عشان يظبط معاها ميلي-ملي في كل المقاسات.
   ═══════════════════════════════════════════════════════════════ */
.rx-hero .rx-hero-content--ghost {
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: url("../assets/images/character.png");
  mask-image: url("../assets/images/character.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size:
    min(min(88vh, 920px) * 2000 / 2999, 96vw)
    min(min(88vh, 920px), 96vw * 2999 / 2000);
  mask-size:
    min(min(88vh, 920px) * 2000 / 2999, 96vw)
    min(min(88vh, 920px), 96vw * 2999 / 2000);
}

/* جوّه الـ ghost: النص أبيض صلب + من غير blend — */
html[dir] .rx-hero .rx-hero-content--ghost .hero-subtitle,
html[dir] .rx-hero .rx-hero-content--ghost .line-1,
html[dir] .rx-hero .rx-hero-content--ghost .line-2,
html[dir] .rx-hero .rx-hero-content--ghost .hero-description {
  color: #ffffff;
  mix-blend-mode: normal;
}

html[dir] .rx-hero .rx-hero-content--ghost .hero-subtitle,
html[dir] .rx-hero .rx-hero-content--ghost .hero-description {
  text-shadow:
    0 2px 10px rgba(0, 0, 0, .6),
    0 0 3px rgba(0, 0, 0, .45);
}

html[dir] .rx-hero .rx-hero-content--ghost .line-1,
html[dir] .rx-hero .rx-hero-content--ghost .line-2 {
  text-shadow: 0 3px 22px rgba(0, 0, 0, .5);
}

/* خط التوهج جوّه الـ ghost أبيض — */
html[dir] .rx-hero .rx-hero-content--ghost .hero-title-staggered::after {
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, .65);
  mix-blend-mode: normal;
}

/* — موبايل — */
@media (max-width: 768px) {
  .rx-hero-figure { height: min(72vh, 560px); }
  .rx-hero .rx-hero-content { padding: 88px 18px 96px; }
  html[dir] .rx-hero .hero-description { margin-top: 20px; }
  html[dir] .rx-hero .rx-hero-btns { margin-top: 26px; }
  .rx-hero .rx-hero-content--ghost {
    -webkit-mask-size:
      min(min(72vh, 560px) * 2000 / 2999, 96vw)
      min(min(72vh, 560px), 96vw * 2999 / 2000);
    mask-size:
      min(min(72vh, 560px) * 2000 / 2999, 96vw)
      min(min(72vh, 560px), 96vw * 2999 / 2000);
  }
}
/* ═══════════════════════════════════════════════════════════════
   WORK REFINEMENT — Featured Projects: مودرن + تكنلوجي
   (شبكة مخططات + سبوتلايت بيتبع الماوس + سكان لاين + تيلت 3D + LED)
   ═══════════════════════════════════════════════════════════════ */

.rx-work-card {
  border-radius: 18px;
  background: #fafaf9;
  border-color: rgba(17, 18, 20, .12);
  box-shadow:
    0 1px 2px rgba(10, 12, 16, .05),
    0 18px 44px -18px rgba(10, 12, 16, .35);
  transition:
    transform .5s cubic-bezier(.22, 1, .36, 1),
    border-color .45s ease,
    box-shadow .45s ease;
  transition-delay: var(--rx-delay, 0s), 0s, 0s;
}
.rx-work-card:hover,
.rx-work-card.rx-in:hover {
  transform: translateY(-10px);
  border-color: rgba(17, 18, 20, .32);
  box-shadow:
    0 2px 6px rgba(10, 12, 16, .07),
    0 36px 72px -26px rgba(10, 12, 16, .55);
}

/* — الميديا: موكب تكنلوجي محايد (من غير برونزي) + تيلت 3D — */
.rx-work-media {
  transform:
    perspective(1000px)
    rotateX(var(--rx-tilt-x, 0deg))
    rotateY(var(--rx-tilt-y, 0deg))
    scale(1.03);
  will-change: transform;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-position .6s ease;
  background:
    radial-gradient(420px 300px at var(--rx-mx, 74%) var(--rx-my, 14%), rgba(255, 255, 255, .16), transparent 68%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
    linear-gradient(150deg, #17171b 0%, #0e0e11 55%, #08080a 100%);
  color: rgba(240, 242, 245, .8);
}
.rx-work-card:hover .rx-work-media {
  background-position: 0 0, 14px 14px, 14px 14px, 0 0;
}

/* — سكان لاين بيمشي على طول الميديا — */
.rx-work-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  width: auto;
  height: 130px;
  transform: none;
  border: 0;
  box-shadow: none;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, .05) 45%,
    rgba(255, 255, 255, .13) 50%,
    rgba(255, 255, 255, .05) 55%,
    transparent);
  animation: rxWorkScan 7s linear infinite;
  pointer-events: none;
}
@keyframes rxWorkScan {
  from { top: -150px; }
  to   { top: 100%; }
}
.rx-work-col .rx-work-card:nth-child(2) .rx-work-media::after { animation-delay: -3.4s; }

/* — ليبيل REYNX: خط رفيع قصاده (HUD) — */
.rx-work-media::before {
  content: 'REYNX';
  top: 20px;
  left: 22px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .55);
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: 3.5px;
}

/* — رقم المؤشر فوق اليمين (readout) — */
.rx-work-num {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .55);
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: 2.5px;
}

/* — الأيقونة داخل شريحة زجاجية متوهجة — */
.rx-work-media i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  opacity: 1;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 44px rgba(255, 255, 255, .07);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .45s ease, box-shadow .45s ease;
}
.rx-work-card:hover .rx-work-media i {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 0 64px rgba(255, 255, 255, .18);
}

/* — شريط المعلومات: ميتا (تاج + تايتل) يسار + زرار سهم يمين — */
.rx-work-info {
  align-items: center;
  gap: 14px;
  padding: 17px 20px 18px;
  background: #fbfbfa;
}
.rx-work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.rx-work-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5a5e66;
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: 2.2px;
}
.rx-work-cat::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #161616;
  box-shadow: 0 0 0 3px rgba(17, 18, 20, .08);
  animation: rxCatBlink 2.6s ease-in-out infinite;
}
@keyframes rxCatBlink {
  50% { opacity: .3; }
}
.rx-work-info h3 {
  color: #101012;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -.015em;
}
.rx-work-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 18, 20, .16);
  border-radius: 50%;
  color: #141414;
  transition:
    background-color .4s ease,
    border-color .4s ease,
    color .4s ease,
    transform .5s cubic-bezier(.22, 1, .36, 1);
}
.rx-work-arrow i {
  font-size: .8rem;
  transform: rotate(-45deg);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.rx-work-card:hover .rx-work-arrow {
  background-color: #101012;
  border-color: #101012;
  color: #ffffff;
}
.rx-work-card:hover .rx-work-arrow i {
  transform: rotate(-45deg) translateX(3px);
}
html[dir="rtl"] .rx-work-arrow i { transform: rotate(-135deg); }
html[dir="rtl"] .rx-work-card:hover .rx-work-arrow i { transform: rotate(-135deg) translateX(3px); }

/* — التيلت ممنوع لو المستخدم بيقلّل الحركة — */
@media (prefers-reduced-motion: reduce) {
  .rx-work-media { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   WHY REFINEMENT — لمسة تكنلوجي خفيفة على الهوية الزجاجية
   (شبكة مخططات + سبوتلايت بيتبع الماوس + رقم مونو بيتقلب سهم ↗)
   ═══════════════════════════════════════════════════════════════ */

.rx-why-grid { counter-reset: rxwhy; }

.rx-why-card {
  counter-increment: rxwhy;
  background-color: rgba(255, 255, 255, .58);
  background-image:
    radial-gradient(340px 260px at var(--rx-mx, 50%) var(--rx-my, 0%), rgba(255, 255, 255, .8), transparent 68%),
    repeating-linear-gradient(0deg, rgba(17, 18, 20, .04) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(17, 18, 20, .04) 0 1px, transparent 1px 32px);
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    background-color .45s ease,
    background-position .6s ease,
    border-color .45s ease,
    box-shadow .45s ease;
}

/* الهوفر: ضوء أوضح + شبكة بتتحرك شوية + ليفت أقوى */
.rx-why-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, .76);
  background-image:
    radial-gradient(340px 260px at var(--rx-mx, 50%) var(--rx-my, 0%), rgba(255, 255, 255, .9), transparent 68%),
    repeating-linear-gradient(0deg, rgba(17, 18, 20, .05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(17, 18, 20, .05) 0 1px, transparent 1px 32px);
  background-position: 0 0, 10px 10px, 10px 10px;
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(17, 18, 20, .1),
    0 30px 65px rgba(15, 18, 22, .2);
}

/* رقم مونو 01→04 مكان التوهج القديم (بديل بالسهم ↗ مع الهوفر) */
.rx-why-card::before {
  content: counter(rxwhy, decimal-leading-zero);
  position: absolute;
  top: 34px;
  right: auto;
  bottom: auto;
  left: auto;
  inset-inline-end: 32px;
  background: none;
  opacity: 1;
  color: rgba(17, 18, 20, .42);
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  transition: opacity .35s ease;
}
.rx-why-card:hover::before { opacity: 0; }

/* الأيقونة بتاخد هالة صغيرة مع الهوفر */
.rx-why-card:hover .rx-why-icon {
  box-shadow: 0 0 0 6px rgba(17, 18, 20, .05), 0 10px 24px rgba(17, 18, 20, .18);
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS REFINEMENT — مارکي فيدباكس مودرن بروح تكنلوجي
   (تاج أسود + تايتل شين مونوكروم + ريل مقطّع + كروت زجاج بشبكة
   وسبوتلايت وسويپ مسح + أفاتار مونوكروم + قراءة مونو 5.0)
   ═══════════════════════════════════════════════════════════════ */

/* — التاج: أسود زي باقي الأقسام + خط رفيع قصاده — */
.testimonials .section-tag { color: #161616; }
.testimonials .section-tag::before {
  content: '';
  width: 34px;
  height: 1px;
  background: #161616;
  flex: none;
}

/* — السطر التاني: مونوكروم بدل البرونزي، بلمعة شين بتتحرك ببطء — */
.testimonials .gradient-text {
  background: linear-gradient(100deg, #141414 0%, #141414 42%, #9aa0a6 50%, #141414 58%, #141414 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
  animation: rxTestiSheen 8s linear infinite;
}
@keyframes rxTestiSheen {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

/* — الشريط: نقاط خلفية خفيفة + ريل مقطّع فوق وتحت (إحساس ماكنة) — */
.testimonials-marquee {
  padding: 22px 0 26px;
  background-image: radial-gradient(rgba(17, 18, 20, .10) 1px, transparent 1.3px);
  background-size: 26px 26px;
}
.testimonials-marquee::before,
.testimonials-marquee::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(17, 18, 20, .3) 0 10px, transparent 10px 20px);
  pointer-events: none;
}
.testimonials-marquee::before { top: 4px; }
.testimonials-marquee::after { bottom: 6px; }

/* — الكارت: زجاج + شبكة مخططات + سبوتلايت بيتبع الماوس — */
.t-card.glass {
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, .84);
  background-image:
    radial-gradient(300px 240px at var(--rx-mx, 50%) var(--rx-my, 0%), rgba(255, 255, 255, .95), transparent 70%),
    repeating-linear-gradient(0deg, rgba(17, 18, 20, .035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(17, 18, 20, .035) 0 1px, transparent 1px 30px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 0 0 1px rgba(17, 18, 20, .07),
    0 16px 40px rgba(15, 18, 22, .14);
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    background-color .45s ease,
    background-position .55s ease,
    border-color .45s ease,
    box-shadow .45s ease;
}
.t-card.glass:hover {
  transform: translateY(-8px) scale(1.02);
  background-color: rgba(255, 255, 255, .96);
  background-position: 0 0, 9px 9px, 9px 9px;
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(17, 18, 20, .12),
    0 26px 60px rgba(15, 18, 22, .22);
}

/* — علامة اقتباس شبح مونو تحت على الشمال — */
.t-card.glass::before {
  content: '”';
  position: absolute;
  left: 14px;
  bottom: -22px;
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(17, 18, 20, .055);
  pointer-events: none;
  transition: color .45s ease, transform .5s ease;
}
.t-card.glass:hover::before {
  color: rgba(17, 18, 20, .1);
  transform: translateY(-6px);
}

/* — خط مسح (سويپ) بيعدي على الكارت كل شوية — */
.t-card.glass::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .9) 46%, rgba(17, 18, 20, .09) 50%, rgba(255, 255, 255, .9) 54%, transparent 68%);
  transform: translateX(-135%);
  animation: rxTSweep 7s cubic-bezier(.45, 0, .2, 1) infinite;
  pointer-events: none;
}
@keyframes rxTSweep {
  0%, 72% { transform: translateX(-135%); }
  92%, 100% { transform: translateX(135%); }
}
.marquee-content .t-card:nth-child(even)::after { animation-delay: -3.5s; }

/* — النجوم: أسود صلب + قراءة مونو (5.0 / 5.0) على الطرف — */
.t-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #101113;
  letter-spacing: 3px;
}
.t-stars::after {
  content: '5.0 / 5.0';
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .55rem;
  letter-spacing: 2px;
  color: rgba(17, 18, 20, .45);
}

/* — الأفاتار: مونوكروم (أسود صلب) بدل التدرجات الملوّنة — */
.t-avatar {
  border: 1px solid rgba(17, 18, 20, .2);
  background: #101012;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  box-shadow: 0 0 0 4px rgba(17, 18, 20, .05);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.t-card.glass:hover .t-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 0 5px rgba(17, 18, 20, .12);
}

/* — معلومات المؤلف: الاسم أسود، الرول بخط مونو — */
.t-info h4 { color: #101113; }
.t-info span {
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  color: rgba(17, 18, 20, .55);
  letter-spacing: .5px;
}
html[dir="rtl"] .t-info span {
  font-family: 'Cairo', 'JetBrains Mono', sans-serif;
  letter-spacing: normal;
}

/* — احترام تقليل الحركة — */
@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee .marquee-content { animation: none; }
  .t-card.glass::after { animation: none; }
  .testimonials .gradient-text { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ REFINEMENT — نفس لغة الأقسام اللي فوق
   (زجاج + شبكة مخططات + سبوتلايت + رقم مونو + شيك دائري بيتقلب)
   ═══════════════════════════════════════════════════════════════ */

.rx-faq-list { counter-reset: rxfq; }

.rx-faq-item {
  counter-increment: rxfq;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, .72);
  background-image:
    radial-gradient(460px 280px at var(--rx-mx, 50%) var(--rx-my, 0%), rgba(255, 255, 255, .9), transparent 70%),
    repeating-linear-gradient(0deg, rgba(17, 18, 20, .035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(17, 18, 20, .035) 0 1px, transparent 1px 30px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(17, 18, 20, .07),
    0 12px 32px rgba(15, 18, 22, .1);
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    background-color .4s ease,
    background-position .55s ease,
    border-color .4s ease,
    box-shadow .4s ease;
}

.rx-faq-item:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, .88);
  background-position: 0 0, 8px 8px, 8px 8px;
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(17, 18, 20, .12),
    0 22px 50px rgba(15, 18, 22, .18);
}

/* المفتوح: مفيش ليفت، حلقة سودا أقوى إشارة للحالة */
.rx-faq-item.active {
  transform: none;
  background-color: rgba(255, 255, 255, .95);
  border-color: rgba(17, 18, 20, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(17, 18, 20, .16),
    0 18px 45px rgba(15, 18, 22, .16);
}

/* السؤال: شبكة (رقم مونو | النص | الشيك) */
.rx-faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.rx-faq-question::before {
  content: counter(rxfq, decimal-leading-zero);
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(17, 18, 20, .42);
  transition: color .35s ease;
}
.rx-faq-item.active .rx-faq-question::before { color: #101012; }

/* الشيك: حلقة رفيعة، ومع الفتح بتتقلب أسود صلب وبلف */
.rx-faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(17, 18, 20, .22);
  border-radius: 50%;
  background: transparent;
  color: #101113;
  font-size: .72rem;
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease;
}
.rx-faq-item:hover .rx-faq-icon { border-color: #101012; }
.rx-faq-item.active .rx-faq-icon {
  transform: rotate(180deg);
  background: #101012;
  border-color: #101012;
  color: #ffffff;
}

/* خط الفصل المتقطّع بين السؤال والإجابة */
.rx-faq-answer p {
  border-top: 1px dashed rgba(17, 18, 20, .15);
  padding-top: 16px;
}
.rx-faq-item.active .rx-faq-answer p { border-top-color: rgba(17, 18, 20, .3); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — لوحة سودا + نجوم متحركة (canvas) — شكل مودرن تكنلوجي
   ═══════════════════════════════════════════════════════════════ */

.rx-footer-box {
  border-color: rgba(255, 255, 255, .09);
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

/* توهج ناعم بيتبع الماوس (زي سبوتلايت أول الصفحة) */
.rx-footer-box::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 540px;
  height: 540px;
  left: var(--rx-mx, 50%);
  top: var(--rx-my, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045) 42%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.rx-footer-box:hover::after { opacity: 1; }

/* الحلقات الزخرفية: فاتحة بدل غامقة */
.rx-footer-box::before {
  border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025), 0 0 0 68px rgba(255, 255, 255, .018);
}

/* حقل Antigravity (كانفاس GPGPU) ورفع باقي المحتوى فوقه */
.rx-footer-box > :not(.rx-footer-particles) { position: relative; z-index: 1; }

/* عناوين الأعمدة: مونو رمادي فاتح بدل البرونزي */
.rx-footer-col h4 {
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-weight: 500;
  font-size: .64rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .5);
}

/* اللينكات: بيضا شفافة + هوفر أبيض صلب ونزوح بسيط */
.rx-footer-col a {
  color: rgba(255, 255, 255, .72);
  transition: color .25s ease, transform .3s ease;
}
.rx-footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
html[dir="rtl"] .rx-footer-col a:hover { transform: translateX(-4px); }

/* الفاصل والسطر السفلي */
.rx-footer-divider { background: rgba(255, 255, 255, .12); }
.rx-footer-copy,
.rx-footer-note { color: rgba(255, 255, 255, .45); }

/* السوشيال: زجاج غامق + انعكاس أبيض مع الهوفر */
.rx-footer-social a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
}
.rx-footer-social a:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0b0d;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER v3 — لوحة Antigravity (نسخة الصورة المرجعية):
   حقل النقاط GPGPU زي الهيرو بالظبط + تايتل كبير + زراير pill
   ═══════════════════════════════════════════════════════════════ */

/* نفس قواعد .rx-hero .particles — الحقل بيملا اللوحة ورا كل المحتوى */
.rx-footer-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.rx-footer-particles [data-container] { position: absolute; inset: 0; }
.rx-footer-particles canvas { display: block; }

/* مساحة أوسع حوالين الـ CTA (زي هامش الصورة المرجعية) —
   مضغوطة شوية عشان اللوحة تبان مستطيلة وماتطولش زي الأول */
.rx-footer { padding-top: 24px; padding-bottom: 42px; }
.rx-footer-box { padding: 42px 62px 24px; direction: ltr; text-align: left; }

/* المحتوى كله إنجليزي → نثبّت LTR عشان الشكل واحد في العربي والإنجليزي */
.rx-footer-box .rx-footer-col a:hover { transform: translateX(4px); }
html[dir="rtl"] .rx-footer-box .rx-footer-col a:hover { transform: translateX(4px); }

/* مسافات خفيفة بين الروابط */
.rx-footer-col { gap: 8px; }
.rx-footer-col h4 { margin-bottom: 4px; }
.rx-footer-divider { margin: 24px 0 15px; }
.rx-footer-social a { width: 34px; height: 34px; font-size: .8rem; }

/* اللوحة سوده خالص: الدايرة الزخرفية فوق اتشالت — المرجع مافيهوش غير النقاط */
.rx-footer-box::before { display: none; }

/* — اللوجو بدل التايتل —
   direction/text-align مفروضين LTR عشان يطابقوا باقي محتوى اللوحة. */
.rx-footer-brand-row {
  direction: ltr;
  text-align: left;
  margin: 0 0 30px;
}
/* العربية: اللوحة كلها بتنقلب RTL */
html[dir="rtl"] .rx-footer-box { direction: rtl; text-align: right; }
html[dir="rtl"] .rx-footer-brand-row { direction: rtl; text-align: right; }

.rx-footer-logo {
  width: 96px;
  height: 36px;
  background-color: #f2f4f6;
  -webkit-mask-image: url('../assets/images/logo.png');
  mask-image: url('../assets/images/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
}

/* — شاشات صغيرة — */
@media (max-width: 992px) {
  .rx-footer-box { padding: 38px 34px 24px; }
  .rx-footer-brand-row { margin-bottom: 26px; }
  .rx-footer-divider { margin: 20px 0 14px; }
}
@media (max-width: 576px) {
  .rx-footer { padding-top: 16px; padding-bottom: 30px; }
  .rx-footer-box { padding: 30px 22px 20px; }
  .rx-footer-brand-row { margin-bottom: 24px; }
  .rx-footer-logo { width: 78px; height: 30px; }
  .rx-footer-divider { margin: 18px 0 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER INTRO — انميشن دخول الفوتر (بسيط):
   اللوجو ← الروابط ← الفاصل ← السطر السفلي
   الحالة المخفية بتتفعّل من JS بس (rx-anim-ready) → لو الـ JS
   وقف لأي سبب المحتوى بيفضل ظاهر عادي.
   ═══════════════════════════════════════════════════════════════ */

@keyframes rxFooterRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — الحالة المخفية (تنضاف من JS) — */
.rx-footer-box.rx-anim-ready .rx-footer-brand-row,
.rx-footer-box.rx-anim-ready .rx-footer-cols,
.rx-footer-box.rx-anim-ready .rx-footer-divider,
.rx-footer-box.rx-anim-ready .rx-footer-bottom {
  opacity: 0;
  transform: translateY(18px);
}

/* — التشغيل أول ما اللوحة تبان في الشاشة — */
.rx-footer-box.rx-anim-in .rx-footer-brand-row { animation: rxFooterRise .8s cubic-bezier(.22, 1, .36, 1) .05s both; }
.rx-footer-box.rx-anim-in .rx-footer-cols      { animation: rxFooterRise .8s cubic-bezier(.22, 1, .36, 1) .25s both; }
.rx-footer-box.rx-anim-in .rx-footer-divider   { animation: rxFooterRise .7s cubic-bezier(.22, 1, .36, 1) .45s both; }
.rx-footer-box.rx-anim-in .rx-footer-bottom    { animation: rxFooterRise .7s cubic-bezier(.22, 1, .36, 1) .6s both; }

@media (prefers-reduced-motion: reduce) {
  .rx-footer-box.rx-anim-ready .rx-footer-brand-row,
  .rx-footer-box.rx-anim-ready .rx-footer-cols,
  .rx-footer-box.rx-anim-ready .rx-footer-divider,
  .rx-footer-box.rx-anim-ready .rx-footer-bottom {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* اتشالت كل الديكورات: الشبكة الخلفية، الزوايا، الماسح، لمعة التايتل،
   لمعة الخط، لمعة الزراير — الفوتر بقى: لوجو + 5 أعمدة روابط + سطر سفلي */

/* — 6) روابط الأعمدة: خط بيتمدّ تحت النص — */
.rx-footer-col a {
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .4s cubic-bezier(.22, 1, .36, 1), color .25s ease;
}
.rx-footer-col a:hover { background-size: 100% 1px; }

/* ═══════════════════════════════════════════════════════════════
   HERO GLASS — النص الأبيض يبقى شفاف + الزرار الأبيض زجاجي blur
   ═══════════════════════════════════════════════════════════════ */

/* النسخة البيضا (جوّه الشخصية): أبيض ساده صلب زي ما كانت —
   (الشفافية اللي اتضافت اتشالت) */
html[dir] .rx-hero .rx-hero-content--ghost .hero-subtitle,
html[dir] .rx-hero .rx-hero-content--ghost .line-1,
html[dir] .rx-hero .rx-hero-content--ghost .line-2,
html[dir] .rx-hero .rx-hero-content--ghost .hero-description {
  color: #ffffff;
}
html[dir] .rx-hero .rx-hero-content--ghost .line-1,
html[dir] .rx-hero .rx-hero-content--ghost .line-2 {
  text-shadow: 0 3px 22px rgba(0, 0, 0, .35);
}

/* الزرار الشفاف (About) → زجاج مصنفر بلور قوي مش شفاف */
html[dir] .rx-hero .rx-btn-outline {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .9);
  color: #101114;
  box-shadow: 0 18px 44px rgba(16, 17, 20, .22),
              inset 0 1px 0 rgba(255, 255, 255, 1),
              inset 0 0 0 1px rgba(255, 255, 255, .4);
}
html[dir] .rx-hero .rx-btn-outline:hover {
  background: rgba(255, 255, 255, .92);
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 24px 54px rgba(16, 17, 20, .3),
              inset 0 1px 0 rgba(255, 255, 255, 1),
              inset 0 0 0 1px rgba(255, 255, 255, .6);
}

/* نسخة الـ ghost من الأزرار بتتخبى (visibility مش display) عشان
   الزجاج مايتكرّرش — والheight يفضل نفسه فيتحط النص على نفس
   بالظبط مكان النص الأصلي من غير أي إزاحة */
html[dir] .rx-hero .rx-hero-content--ghost .rx-hero-btns { visibility: hidden; }

/* — احترام تقليل الحركة — */
@media (prefers-reduced-motion: reduce) {
  .rx-footer-col a { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   TECHNOLOGIES — قسم التكنلوجيا (مونوكروم: أبيض / رمادي / أسود)
   كروت بسيطة: اسم الأداة + دورها، وكhover خط بيتمدّ تحت النص
   ═══════════════════════════════════════════════════════════════ */

.rx-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rx-tech-item {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 26px;
  border: 1px solid rgba(16, 17, 20, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1),
              background-color .45s ease,
              border-color .45s ease,
              box-shadow .45s ease;
}

/* خط أسود بيتمدّ من الشمال عند الهوفر */
.rx-tech-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #101114;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.rx-tech-item h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', 'Cairo', sans-serif;
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: #101114;
}

.rx-tech-role {
  font-family: 'JetBrains Mono', 'Cairo', 'Courier New', monospace;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #5f656d;
}

.rx-tech-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(16, 17, 20, .3);
  box-shadow: 0 24px 48px rgba(16, 17, 20, .16);
}
.rx-tech-item:hover::after { transform: scaleX(1); }
.rx-tech-item:hover h3 { color: #000000; }

@media (max-width: 1024px) {
  .rx-tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .rx-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rx-tech-item { padding: 22px 18px 20px; }
}
@media (max-width: 480px) {
  .rx-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rx-tech-item { border-radius: 16px; }
  .rx-tech-role { letter-spacing: 1.6px; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-tech-item,
  .rx-tech-item::after { transition: none !important; }
}
