/* ════════════════════════════════════════════════════════════════
   CLEAR VISION - HIGH-END DIGITAL TRANSFORMATION STYLESHEET
   Aesthetics: Deep Cyber Black, Bright Neon Cyan, Glassmorphism
════════════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --clr-bg-deep: #05060A; /* Deepest blue/black */
  --clr-bg-surface: #0B0E17; /* Elevated surface */
  --clr-bg-glass: rgba(11, 14, 23, 0.4);
  
  --clr-primary: #00abc1; /* The Real ClearVision Brand Teal/Cyan */
  --clr-primary-glow: rgba(0, 171, 193, 0.3);
  --clr-primary-dark: #008fa3;
  
  --clr-accent: #3355FF; /* Deep tech blue for gradients */
  --clr-danger: #FF2E54;
  
  --clr-text-main: #FFFFFF;
  --clr-text-muted: #8F9BB3;
  
  /* Borders & Shadows */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
  --border-glow: 1px solid rgba(0, 171, 193, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Typography */
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Alexandria', sans-serif;
  
  /* Layout */
  --max-width: 1300px;
  --rad-sm: 8px;
  --rad-md: 16px;
  --rad-lg: 24px;
  --rad-xl: 32px;
}

/* ── BASE RESET & SMOOTH SCROLL (Lenis compatibility) ── */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--clr-bg-deep);
  color: var(--clr-text-main);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in 0.4s ease forwards;
  transition: opacity 0.18s ease;
  
  /* Noise Texture Overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

/* ── CUSTOM CURSOR ── */
.custom-cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background-color: var(--clr-primary); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}
.custom-cursor-follower {
  position: fixed; top: 0; left: 0; width: 40px; height: 40px;
  border: 1px solid var(--clr-primary); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body:hover .custom-cursor { opacity: 1; }
body:hover .custom-cursor-follower { opacity: 1; }

.cursor-hover .custom-cursor {
  width: 60px; height: 60px; background-color: rgba(0, 171, 193, 0.2); 
  border: 1px solid rgba(0, 171, 193, 0.5);
}
.cursor-hover .custom-cursor-follower {
  width: 0; height: 0; opacity: 0;
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-follower { display: none !important; }
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
p { color: var(--clr-text-muted); }

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-cyan {
  color: var(--clr-primary);
  /* Override transparent fill from gradient-text parents */
  -webkit-text-fill-color: var(--clr-primary);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--clr-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-primary);
  flex-shrink: 0;
}

/* ── LAYOUT ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
@media (max-width: 767px) { .container { padding: 0 20px; } }
.section { padding: 120px 0; position: relative; z-index: 1; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: 100px;
  z-index: 100; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  height: 80px; background: rgba(5, 6, 10, 0.9); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border-bottom: var(--border-subtle);
}
.navbar__inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { 
  max-width: 220px; height: auto; max-height: 60px; object-fit: contain;
  user-select: none; -webkit-user-drag: none; transition: max-width 0.3s;
}
@media (max-width: 767px) {
  .navbar__logo img { max-width: 140px; } /* Slightly larger on mobile than before */
}

.navbar__nav { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .navbar__nav { display: none; } }
.navbar__link {
  font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); padding: 8px 0;
  position: relative; transition: color 0.3s ease;
}
.navbar__link:hover, .navbar__link.active { color: #fff; }
.navbar__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
  background: var(--clr-primary); transition: width 0.3s ease; box-shadow: 0 0 8px var(--clr-primary);
}
[dir="rtl"] .navbar__link::after { left: auto; right: 0; }
.navbar__link:hover::after, .navbar__link.active::after { width: 100%; }

/* Buttons & Actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 99px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; border: none; font-family: inherit;
  opacity: 1;
}
.btn--solid {
  background: var(--clr-primary); color: #000;
  box-shadow: 0 4px 24px rgba(0, 171, 193, 0.25);
}
.btn--solid:hover {
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 171, 193, 0.4);
  background: #00e0fc;
}
.btn--outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  backdrop-filter: blur(10px);
}
.btn--outline:before {
  content: ''; position: absolute; inset: 0; background: var(--clr-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: -1;
}
[dir="rtl"] .btn--outline:before { transform-origin: right; }
.btn--outline:hover { border-color: transparent; color: #000; box-shadow: 0 0 20px var(--clr-primary-glow); }
.btn--outline:hover:before { transform: scaleX(1); }
.btn--sm { padding: 10px 24px; font-size: 0.9rem; }

.navbar__actions { display: flex; align-items: center; gap: 24px; }
@media (max-width: 1024px) { .navbar__actions .btn { display: none; } }

.lang-btn {
  background: transparent; border: none; color: rgba(255, 255, 255, 0.6);
  font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: color 0.3s ease;
}
.lang-btn:hover, .lang-btn.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255, 0.3); }
.lang-switcher { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,0.05); padding: 6px 16px; border-radius: 99px; border: var(--border-subtle); }
.lang-sep { color: rgba(255,255,255,0.2); user-select: none; }


/* ── NEW HERO MINIMAL (Clean & Premium) ── */
.hero-minimal {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--clr-bg);
  padding: 120px 20px 60px;
}
.hero-minimal__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-minimal__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slight transparency to let background blend if needed */
}
.hero-minimal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,0.4) 0%, rgba(5,6,10,0.85) 100%);
  z-index: 1;
}
.hero-minimal__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-minimal__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.hero-minimal__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--clr-primary);
}
.hero-minimal__title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: #fff;
}
[dir="rtl"] .hero-minimal__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.3;
}
.hero-minimal__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--clr-text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-minimal__cta .btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ── CAPABILITIES OVERVIEW (Old Hero) ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 60px; /* Reduced since it's no longer the top section */
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* Cyber Grid Overlay */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.hero__content {
  position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 40px;
}
@media (max-width: 992px) { .hero__content { grid-template-columns: 1fr; text-align: center; } }

.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero__badge-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--clr-primary); box-shadow: 0 0 10px var(--clr-primary); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 171, 193, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 171, 193, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 171, 193, 0); } }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__badge-text { font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--clr-primary); }

.hero__title { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 24px; position: relative; }
[dir="rtl"] .hero__title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.4; padding-bottom: 20px; } /* Alexandria is wider, needs smaller scale */

.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--clr-text-muted); max-width: 600px; margin-bottom: 40px; }
/* Hero elements start hidden — GSAP reveals them. Prevents flash-then-disappear. */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero-cta-wrap > *,
.stat-item,
#heroHologram,
.holo-card {
  opacity: 0;
}
/* Once GSAP has run (class added by JS), always show */
.gsap-ready .hero__badge,
.gsap-ready .hero__title,
.gsap-ready .hero__subtitle,
.gsap-ready .hero-cta-wrap > *,
.gsap-ready .stat-item,
.gsap-ready #heroHologram,
.gsap-ready .holo-card {
  opacity: 1;
}
.hero-cta-wrap { opacity: 1; }
.hero-cta-wrap > * { opacity: 0; }
@media (max-width: 992px) { 
  .hero__subtitle { margin: 0 auto 40px; } 
}

.hero__visual { 
  position: relative; width: 100%; height: 500px; display: flex; align-items: center; justify-content: center;
  perspective: 1000px; transform-style: preserve-3d;
}

/* Central Radar / Core */
.holo-core {
  position: absolute; width: 100px; height: 100px; border-radius: 50%;
  background: var(--clr-primary); box-shadow: 0 0 60px var(--clr-primary);
  filter: blur(20px); opacity: 0.5; animation: pulse 4s infinite alternate;
}
.holo-ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(0, 171, 193, 0.4);
  transform-style: preserve-3d;
}
.holo-ring-outer {
  width: 450px; height: 450px; border-style: solid; border-width: 1px 0;
  animation: rotate-ring 20s linear infinite;
}
.holo-ring-inner {
  width: 300px; height: 300px; border: 2px dashed rgba(0, 255, 157, 0.2);
  animation: rotate-ring 15s linear infinite reverse;
}
@keyframes rotate-ring { 0% { transform: rotateX(60deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateZ(360deg); } }

/* Floating Cards */
.holo-card {
  position: absolute; display: flex; align-items: center; gap: 16px;
  background: rgba(11, 14, 23, 0.6); border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px; border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transform-style: preserve-3d; transition: border-color 0.3s ease;
}
.holo-card:hover { border-color: rgba(255,255,255,0.2); }
.holo-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 171, 193, 0.1); color: var(--clr-primary); font-size: 1.2rem;
}
.holo-info { display: flex; flex-direction: column; }
.holo-lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-primary); margin-bottom: 4px; font-weight: 700; }
.holo-val { font-size: 0.95rem; color: var(--clr-text-muted); white-space: nowrap; }

/* Positioning the Cards */
.holo-card-1 { top: 10%; right: 10%; }
.holo-card-2 { bottom: 20%; right: 20%; z-index: 5; }
.holo-card-3 { top: 40%; left: 0%; z-index: 4; }

@media (max-width: 992px) {
  .hero__visual { height: 350px; transform: scale(0.75); margin-top: 30px; }
  .holo-card-1 { top: -20px; right: -10px; }
  .holo-card-2 { bottom: -20px; left: -10px; right: auto; }
  .holo-card-3 { top: 50%; right: -20px; left: auto; }
  
  .hero__content { padding: 0 16px; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.5rem); line-height: 1.3; }
  .hero__subtitle { font-size: clamp(1rem, 4vw, 1.2rem); margin-bottom: 30px; }
  .hero-cta-wrap { display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .hero-cta-wrap .btn { width: 100%; justify-content: center; }
  
  .stat-group { flex-direction: column; gap: 20px; margin-top: 40px; align-items: center; }
  .stat-item { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; width: 100%; text-align: center; }
  .stat-item:last-child { border-bottom: none; }
}


/* ── INFINITE PARTNERS MARQUEE ── */
.partners { padding: 40px 0; margin-top: 80px; border-top: var(--border-subtle); border-bottom: var(--border-subtle); background: var(--clr-bg-surface); overflow: hidden; position: relative; display: block; }
.partners::before, .partners::after { content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; pointer-events: none; }
.partners::before { left: 0; background: linear-gradient(to right, var(--clr-bg-deep), transparent); }
.partners::after { right: 0; background: linear-gradient(to left, var(--clr-bg-deep), transparent); }
.partners-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-primary);
  opacity: 0.5;
  margin-bottom: 20px;
  font-family: var(--font-en);
}
[dir="rtl"] .partners-label { font-family: var(--font-ar); letter-spacing: 0; }
.partners-track { display: flex; width: max-content; animation: scroll-left 30s linear infinite; }
.partners-group { display: flex; align-items: center; justify-content: space-around; gap: 120px; padding-right: 120px; }
.partner-link { display: inline-flex; align-items: center; justify-content: center; }
.partner-img { height: 42px; width: auto; object-fit: contain; mix-blend-mode: screen; filter: grayscale(1) opacity(0.5); transition: filter 0.4s ease, transform 0.4s ease; transform: translateZ(0); }
.partner-link:hover .partner-img { filter: grayscale(0) opacity(1); transform: scale(1.1); }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="rtl"] .partners-track { animation: scroll-right 30s linear infinite; }
@keyframes scroll-right { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* Clients strip — scrolls opposite direction to tech partners */
@keyframes scroll-right-loop { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }
.clients-track { direction: ltr; } /* Force LTR so overflow hides on the correct side in RTL pages */
.clients-inner { display: flex; width: max-content; direction: ltr; animation: scroll-right-loop 35s linear infinite; }
[dir="rtl"] .clients-inner { animation: scroll-left 35s linear infinite; } /* In RTL: partners go right, clients go left — opposite */
.clients-inner .partner-img { height: 64px; }

/* ── BENTO GRID SOLUTIONS ── */
.solutions { padding: 140px 0; background: var(--clr-bg-deep); }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
  padding-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── GSAP STICKY SCROLL SERVICES ── */
.gsap-services { padding: 100px 0; background: var(--clr-bg-deep); }
.gsap-services-layout { display: flex; align-items: flex-start; gap: 60px; position: relative; }

/* Left Side: Sticky Visualizer */
.gsap-vis-wrapper {
  position: sticky;
  top: 15vh; /* Pins nicely near the center */
  width: 50%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsap-visualizer {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}
.g-vis-radial { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,171,193,0.08), transparent 70%); transition: background 0.8s ease; opacity: 1; }
.g-vis-content { z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.g-vis-icon { font-size: 5rem; color: var(--clr-primary); filter: drop-shadow(0 0 25px currentColor); animation: float 6s infinite; transition: all 0.5s ease; }
.g-vis-text { font-size: 2rem; font-weight: 800; color: #FFF; background: linear-gradient(135deg, #FFF, rgba(255,255,255,0.6)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 3D Rings */
.g-vis-ring { position: absolute; border: 1px solid rgba(255,255,255,0.05); border-radius: 50%; }
.ring-1 { width: 300px; height: 300px; animation: spin 20s linear infinite; }
.ring-2 { width: 500px; height: 500px; border-style: dashed; animation: spin-reverse 30s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

/* Right Side: Scrollable Stories */
.gsap-stories { width: 50%; display: flex; flex-direction: column; padding-bottom: 20vh; }
.gsap-story {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.2; /* GSAP will animate this */
  transform: scale(0.95);
  transition: opacity 0.5s, transform 0.5s;
  padding: 20px 40px;
}
.gsap-story.active { opacity: 1; transform: scale(1); }
.gsap-story-title { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 20px; color: #FFF; }
.gsap-story-desc { font-size: 1.15rem; color: var(--clr-text-muted); line-height: 1.7; margin-bottom: 30px; }
.gsap-story-features { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.gsap-story-features li { display: flex; align-items: center; gap: 16px; font-size: 1.1rem; color: var(--clr-text-light); }
.gsap-story-features i { font-size: 1.3rem; width: 24px; text-align: center; }

@media (max-width: 992px) {
  .gsap-services-layout { flex-direction: column; gap: 30px; }
  
  /* Compact Sticky Visualizer for Mobile */
  .gsap-vis-wrapper { 
    width: 100%; 
    height: 180px; /* Much smaller so it doesn't block the screen */
    position: sticky; 
    top: 80px; 
    z-index: 10; 
    padding: 0 16px; 
    margin-bottom: 20px; 
  }
  .gsap-visualizer { border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
  .g-vis-content { gap: 12px; }
  .g-vis-icon { font-size: 3.5rem; }
  .g-vis-text { font-size: 1.4rem; }
  .ring-1, .ring-2 { display: none; } /* Hide rings to prevent overlap */

  /* Scrollable Stories */
  .gsap-stories { width: 100%; padding-bottom: 10vh; padding: 0 16px; }
  .gsap-story { min-height: 50vh; opacity: 0.3; transform: scale(1); padding: 30px 20px; margin-bottom: 40px; background: rgba(255,255,255,0.02); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
  .gsap-story.active { opacity: 1; border-color: rgba(0, 171, 193, 0.3); }
  
  .v-card-content { padding: 24px; }
}

/* ── RESLUDE SPOTLIGHT ── */
.reslude-spotlight { padding: 160px 0; background: #030407; position: relative; overflow: hidden; }
.reslude-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 1024px) { .reslude-wrapper { grid-template-columns: 1fr; } }
.reslude-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 0%, #A5B4CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Keep the green ResLude span visible inside gradient heading */
.reslude-title .text-glow { -webkit-text-fill-color: #0de283; }
.text-glow { text-shadow: 0 0 30px var(--clr-primary-glow); }
.reslude-desc { font-size: 1.1rem; margin-bottom: 32px; color: var(--clr-text-muted); max-width: 500px; }
.reslude-features { list-style: none; margin: 0; padding: 0; }
.reslude-features li { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 1.05rem; font-weight: 500; }
.reslude-features li i { display: none; }
.reslude-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0de283;
  flex-shrink: 0;
}

.reslude-visual { position: relative; width: 100%; aspect-ratio: 4/3; }
.reslude-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; }
.glow-1 { top: 10%; right: 10%; width: 300px; height: 300px; background: rgba(13, 226, 131, 0.15); animation: pulse-slow 8s infinite alternate; }
.glow-2 { bottom: 10%; left: 10%; width: 400px; height: 400px; background: rgba(30, 41, 59, 0.4); animation: float 10s infinite; }

.reslude-dashboard {
  position: absolute; inset: 20px; background: rgba(11, 14, 23, 0.8); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--rad-xl); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; flex-direction: column; overflow: hidden; z-index: 1;
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reslude-visual:hover .reslude-dashboard { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); }
[dir="rtl"] .reslude-dashboard { transform: perspective(1000px) rotateY(15deg) rotateX(5deg); }
[dir="rtl"] .reslude-visual:hover .reslude-dashboard { transform: perspective(1000px) rotateY(5deg) rotateX(2deg); }

.mock-header { height: 60px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 24px; justify-content: space-between; }
.mock-logo { width: 100px; height: 16px; background: rgba(13, 226, 131, 0.3); border-radius: 4px; }
.mock-nav { display: flex; gap: 12px; }
.mock-nav div { width: 40px; height: 12px; background: rgba(255,255,255,0.05); border-radius: 4px; }

.mock-body { display: flex; flex: 1; padding: 24px; gap: 24px; }
.mock-sidebar { width: 80px; display: flex; flex-direction: column; gap: 16px; }
.mock-sidebar div { width: 100%; height: 20px; background: rgba(255,255,255,0.03); border-radius: 4px; }

.mock-main { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mock-card { height: 120px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); }
.card-cyan { border-color: rgba(13, 226, 131, 0.3); background: linear-gradient(135deg, rgba(13, 226, 131, 0.1), transparent); }
.card-blue { border-color: rgba(30, 41, 59, 0.6); background: linear-gradient(135deg, rgba(30, 41, 59, 0.2), transparent); }

.mock-chart { flex: 1; border-radius: 12px; background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.02); padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mock-bar { flex: 1; background: #0de283; opacity: 0.8; border-radius: 4px 4px 0 0; transform-origin: bottom; }

/* ── STATS / NUMBERS ── */
.stats-wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-top: 60px; padding: 60px; background: rgba(255,255,255,0.02); border-radius: var(--rad-xl); border: var(--border-subtle); backdrop-filter: blur(10px); }
.stat-item { text-align: center; flex: 1; min-width: 200px; }
.stat-num { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 12px; font-family: var(--font-en); }
[dir="rtl"] .stat-num { font-family: var(--font-en); /* Keep numbers LTR matching */ }
.stat-lbl { font-size: 0.95rem; color: var(--clr-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ── FOOTER ── */
.footer { padding: 80px 0 40px; background: #020305; border-top: var(--border-subtle); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 200px; background: var(--clr-primary); filter: blur(150px); opacity: 0.1; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo img { height: 40px; margin-bottom: 24px; }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 320px; line-height: 1.8; margin-bottom: 24px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--clr-primary); }

.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
@media(max-width: 600px) { .footer-bottom { flex-direction: column; gap: 16px; text-align: center; } }

/* ═══════════════════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
@media (max-width: 1024px) {
  .hamburger { display: flex !important; }
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger:hover { background: rgba(0,171,193,0.1); border-color: rgba(0,171,193,0.3); }

/* ═══════════════════════════════════════════════════
   MOBILE NAV DRAWER
═══════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100vw);
  height: 100vh;
  background: #07090f;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 500;
  transform: translateX(110%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: ltr; /* always slides from right regardless of page dir */
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-nav__overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

body.nav-open { overflow: hidden; }

.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.mobile-nav__header .navbar__logo img {
  max-width: 160px;
  height: auto;
  max-height: 44px;
}

.mobile-nav__close {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.mobile-nav__close:hover {
  background: rgba(255, 46, 84, 0.1);
  border-color: rgba(255, 46, 84, 0.3);
  color: #ff2e54;
}

.mobile-nav__links {
  list-style: none;
  flex: 1;
  direction: inherit; /* text follows page direction, layout stays fixed */
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 4px;
}

.mobile-nav__links li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s;
}
[dir="rtl"] .mobile-nav__links li {
  transform: translateX(-20px);
}

.mobile-nav.is-open .mobile-nav__links li { opacity: 1; transform: translateX(0); }
.mobile-nav.is-open .mobile-nav__links li:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(2) { transition-delay: 0.13s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(3) { transition-delay: 0.18s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(4) { transition-delay: 0.23s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(5) { transition-delay: 0.28s; }

.mobile-nav__links li a {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  padding: 14px 20px;
  border-radius: 12px;
  transition: color 0.3s, background 0.3s;
  text-decoration: none;
}
.mobile-nav__links li a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-nav__links li a.active { color: var(--clr-primary); background: rgba(0,171,193,0.08); }

.mobile-nav__divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 16px;
}

.mobile-nav__footer {
  padding: 20px 24px 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s 0.35s, transform 0.4s 0.35s;
}
.mobile-nav.is-open .mobile-nav__footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav__footer .lang-switcher {
  align-self: flex-start;
}

.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 28px;
  background: var(--clr-primary);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 24px rgba(0,171,193,0.3);
}
.mobile-nav__cta:hover {
  background: #00e0fc;
  box-shadow: 0 8px 32px rgba(0,171,193,0.5);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   MOBILE SECTION IMPROVEMENTS
═══════════════════════════════════════════════════ */

/* Hologram — scaled down on mobile, never hidden */
@media (max-width: 480px) {
  .hero__content { padding-bottom: 60px; }
  .hero__title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero__visual {
    height: 220px;
    transform: scale(0.62);
    transform-origin: center top;
    margin-top: 10px;
  }
}

/* Tablet hero */
@media (max-width: 992px) and (min-width: 481px) {
  .hero__visual {
    height: 260px;
    transform: scale(0.72);
    transform-origin: center top;
  }
}

/* ── MOBILE SPACING FIXES ── */
@media (max-width: 767px) {
  .section { padding: 80px 0; }

  .stats-wrap {
    padding: 24px 16px;
    margin-top: 32px;
    gap: 8px;
  }
  .stat-item {
    min-width: 0;
    padding: 0 8px;
  }
  .stat-num {
    font-size: 2rem;
  }
  .stat-lbl {
    font-size: 0.72rem;
    letter-spacing: 0;
  }
  .hero__visual {
    height: 260px;
    margin-top: 20px;
  }
  .hero-cta-wrap {
    flex-direction: column;
    gap: 12px !important;
    width: 100%;
  }
  .hero-cta-wrap .btn {
    width: 100%;
    justify-content: center;
  }

  /* ResLude spotlight — stack vertically, keep dashboard */
  .reslude-spotlight { padding: 70px 0; }
  .reslude-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .reslude-visual {
    aspect-ratio: unset;
    height: 400px;
    max-width: 460px;
    margin: 0 auto;
    overflow: hidden; /* prevent 3D transform overflow */
  }
  /* Flatten 3D tilt on mobile — prevents overflow bleed */
  .reslude-dashboard,
  [dir="rtl"] .reslude-dashboard {
    transform: none;
    border-radius: 16px;
  }
  .reslude-visual:hover .reslude-dashboard,
  [dir="rtl"] .reslude-visual:hover .reslude-dashboard {
    transform: none;
  }
  /* Compact inner mock layout on mobile so chart has room */
  .mock-body { padding: 12px 16px; gap: 16px; }
  .mock-card { height: 80px; }
  .mock-main { gap: 12px; }
  .mock-chart { padding: 12px; }
  .reslude-desc { margin: 0 auto 32px; }
  .reslude-features li { justify-content: center; }

  /* ResLude CTA row */
  .reslude-cta-row {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .reslude-cta-row .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  /* Section headers */
  .section-header h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* GSAP stories */
  .gsap-story { padding: 24px 16px; margin-bottom: 24px; }
  .gsap-story-title { font-size: 1.6rem; }
}
