/* =============================================
   ETC — STYLE.CSS v3  |  Full Redesign
   ============================================= */

/* ── SELF-HOSTED FONTS ───────────────────────── */
/* Cairo — Arabic subset */
@font-face { font-family:'Cairo'; font-style:normal; font-weight:400; font-display:swap;
  src:url('./fonts/cairo-arabic-400-normal.woff2') format('woff2'),url('./fonts/cairo-arabic-400-normal.woff') format('woff');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:600; font-display:swap;
  src:url('./fonts/cairo-arabic-600-normal.woff2') format('woff2'),url('./fonts/cairo-arabic-600-normal.woff') format('woff');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:700; font-display:swap;
  src:url('./fonts/cairo-arabic-700-normal.woff2') format('woff2'),url('./fonts/cairo-arabic-700-normal.woff') format('woff');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:900; font-display:swap;
  src:url('./fonts/cairo-arabic-900-normal.woff2') format('woff2'),url('./fonts/cairo-arabic-900-normal.woff') format('woff');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
/* Cairo — Latin subset */
@font-face { font-family:'Cairo'; font-style:normal; font-weight:400; font-display:swap;
  src:url('./fonts/cairo-latin-400-normal.woff2') format('woff2'),url('./fonts/cairo-latin-400-normal.woff') format('woff');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:600; font-display:swap;
  src:url('./fonts/cairo-latin-600-normal.woff2') format('woff2'),url('./fonts/cairo-latin-600-normal.woff') format('woff');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:700; font-display:swap;
  src:url('./fonts/cairo-latin-700-normal.woff2') format('woff2'),url('./fonts/cairo-latin-700-normal.woff') format('woff');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; font-style:normal; font-weight:900; font-display:swap;
  src:url('./fonts/cairo-latin-900-normal.woff2') format('woff2'),url('./fonts/cairo-latin-900-normal.woff') format('woff');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+FEFF,U+FFFD; }
/* Inter — Latin */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap;
  src:url('./fonts/inter-latin-300-normal.woff2') format('woff2'),url('./fonts/inter-latin-300-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src:url('./fonts/inter-latin-400-normal.woff2') format('woff2'),url('./fonts/inter-latin-400-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src:url('./fonts/inter-latin-600-normal.woff2') format('woff2'),url('./fonts/inter-latin-600-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src:url('./fonts/inter-latin-700-normal.woff2') format('woff2'),url('./fonts/inter-latin-700-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap;
  src:url('./fonts/inter-latin-800-normal.woff2') format('woff2'),url('./fonts/inter-latin-800-normal.woff') format('woff'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:900; font-display:swap;
  src:url('./fonts/inter-latin-900-normal.woff2') format('woff2'),url('./fonts/inter-latin-900-normal.woff') format('woff'); }

/* ── TOKENS ─────────────────────────────────── */
:root {
  --primary:        #1B2A6B;
  --primary-light:  #2c42a5;
  --primary-dark:   #0f1a4a;
  --accent:         #00AEEF;
  --accent-dark:    #0090c8;
  --accent-glow:    rgba(0, 174, 239, 0.25);

  --bg-main:        #0a0e27;
  --bg-secondary:   #080c1e;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);

  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(0, 174, 239, 0.45);

  --text-primary:   #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted:     #94a3b8;

  --gradient:       linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --shadow-glow:    0 0 60px rgba(0, 174, 239, 0.2);
  --shadow-card:    0 12px 48px rgba(0, 0, 0, 0.4);

  --radius:         18px;
  --radius-lg:      28px;
  --transition:     all 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-en);
}
body[dir="rtl"] { font-family: var(--font-ar); }
body[dir="ltr"] { font-family: var(--font-en); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
svg { display: inline-block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
html, body { overflow-x: hidden; }

/* ── KEYFRAMES ──────────────────────────────── */
@keyframes particleFade {
  0%   { opacity: 0; transform: translateY(0); }
  10%  { opacity: 0.7; transform: translateY(-20px); }
  90%  { opacity: 0.1; transform: translateY(-110px); }
  100% { opacity: 0; transform: translateY(-130px); }
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.04); }
}
@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes nodeCounterRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 18px rgba(0,174,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,174,239,0); }
}
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jConnectorPulse {
  0%,100% { opacity: 0.5; transform: scaleX(1); }
  50%      { opacity: 1;   transform: scaleX(1.1); }
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}
@keyframes borderGlow {
  0%,100% { border-color: var(--border); box-shadow: none; }
  50%      { border-color: var(--border-accent); box-shadow: 0 0 24px var(--accent-glow); }
}
@keyframes toastIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateY(-10px); } }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 1120px;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 60px;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(8, 12, 30, 0.97);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 174, 239, 0.2);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.nav-logo { display: flex; align-items: center; height: 32px; }
.logo-svg { height: 100%; width: auto; color: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-link:hover  { color: var(--text-primary); background: rgba(0,174,239,0.12); }
.nav-link.active { color: var(--accent);        background: rgba(0,174,239,0.15); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.lang-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,174,239,0.08);
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 0 20px 14px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 10px 16px; font-size: 1rem; font-weight: 600;
  color: var(--text-secondary); border-radius: 12px; transition: var(--transition);
}
.mobile-link:hover { background: rgba(0,174,239,0.1); color: var(--accent); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 600px; height: 600px; background: rgba(27,42,107,0.45); top: -5%; left: -15%; animation-delay: 0s; }
.orb2 { width: 450px; height: 450px; background: rgba(0,174,239,0.18); bottom: 0; right: -10%; animation-delay: -4s; }

.particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--accent); border-radius: 50%; opacity: 0;
  animation: particleFade var(--dur) linear var(--delay) infinite;
}

.hero-container {
  max-width: 860px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  position: relative; z-index: 2;
}
.hero-text { animation: fadeInUp 0.8s ease both; }

.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,174,239,0.1);
  border: 1px solid rgba(0,174,239,0.3);
  padding: 7px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 24px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulseRing 2s ease infinite;
  display: inline-block;
}

.gradient-text {
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 900; line-height: 0.9; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.hero-logo-wrap {
  margin-bottom: 16px;
}
.hero-logo-svg {
  width: clamp(260px, 48vw, 560px);
  height: auto;
  display: block;
  color: #ffffff;
  filter: drop-shadow(0 0 32px rgba(0,174,239,0.35));
  animation: shimmer-logo 6s ease-in-out infinite;
}
@keyframes shimmer-logo {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(0,174,239,0.3)); }
  50%       { filter: drop-shadow(0 0 48px rgba(0,174,239,0.6)); }
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700; margin-bottom: 18px;
  color: var(--text-secondary); line-height: 1.3;
}
.hero-typewriter {
  font-size: clamp(1.3rem, 3vw, 2rem);
  min-height: 50px; margin-bottom: 28px; font-weight: 700;
}
.cursor { animation: cursorBlink 1s infinite; color: var(--accent); }
.hero-desc {
  font-size: 1rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.75; margin-bottom: 36px;
  text-align: center;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 50px; font-weight: 700;
  font-size: 0.92rem; transition: var(--transition); letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,174,239,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(0,174,239,0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border-accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0,174,239,0.1);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.btn-full { width: 100%; }

/* ORBIT SYSTEM */
.hero-image {
  display: flex; align-items: center; justify-content: center;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.orbit-system {
  position: relative;
  width: 380px; height: 380px;
  flex-shrink: 0;
}
.orbit-ring {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(0,174,239,0.2);
  border-radius: 50%;
  animation: orbRotate 24s linear infinite;
}
.orbit-ring::before, .orbit-ring::after {
  content: '';
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(0,174,239,0.1);
}
.orbit-ring::before { inset: 20px; }
.orbit-ring::after  { inset: -20px; }
.orbit-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,174,239,0.07);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0,174,239,0.15);
}
.orbit-logo-svg { width: 140px; height: auto; }

.o-wrap {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  animation: orbRotate 24s linear var(--orb-delay) infinite;
}
.o-node {
  position: absolute;
  top: -190px; left: -36px;
  width: 72px; height: 72px;
  animation: nodeCounterRotate 24s linear var(--orb-delay) infinite;
  cursor: pointer;
}
.o-node-inner {
  width: 100%; height: 100%;
  background: rgba(10,14,39,0.9);
  border: 1.5px solid rgba(0,174,239,0.3);
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; transition: var(--transition);
  backdrop-filter: blur(10px);
}
.o-node:hover .o-node-inner {
  border-color: var(--accent);
  background: rgba(0,174,239,0.12);
  transform: scale(1.12);
  box-shadow: 0 0 20px var(--accent-glow);
}
.o-icon { font-size: 1.4rem; }
.o-label { font-size: 0.62rem; font-weight: 700; color: var(--text-muted); text-align: center; }

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px; margin: 0 auto;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
  position: relative;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 8px;
  opacity: 0.7;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--gradient);
  border-radius: 2px; margin: 16px auto 18px;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   CUSTOMER JOURNEY SECTION
   ═══════════════════════════════════════════════ */
.journey-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.journey-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,174,239,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.journey-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 20px 0 40px;
  scrollbar-width: none;
}
.journey-flow::-webkit-scrollbar { display: none; }

.journey-step {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
  cursor: default;
}
.j-step-bubble {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27,42,107,0.6), rgba(0,174,239,0.15));
  border: 2px solid rgba(0,174,239,0.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; transition: var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.j-step-bubble:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-6px) scale(1.06);
}
.j-step-bubble--final {
  background: linear-gradient(135deg, rgba(27,42,107,0.8), rgba(0,174,239,0.3));
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.j-step-num {
  font-size: 0.62rem; font-weight: 900;
  color: var(--accent); letter-spacing: 0.05em;
  line-height: 1; margin-bottom: 2px;
}
.j-step-icon { font-size: 1.6rem; }
.j-step-name {
  margin-top: 12px; font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); text-align: center;
  max-width: 80px; line-height: 1.3;
}

.journey-connector {
  display: flex; align-items: center;
  padding: 0 8px; flex-shrink: 0; margin-top: -20px;
}
.j-arrow {
  font-size: 1.5rem; color: var(--accent); opacity: 0.45;
  animation: jConnectorPulse 2.5s ease-in-out infinite;
  display: block;
}

.journey-note {
  text-align: center;
  font-size: 0.9rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
  padding: 18px 24px;
  background: rgba(0,174,239,0.05);
  border: 1px solid rgba(0,174,239,0.12);
  border-radius: 14px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════ */
.services-section {
  padding: 120px 0;
  background: var(--bg-main);
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(27,42,107,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0,174,239,0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.svc-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
  cursor: default;
}
/* Big faded step number */
.svc-card::before {
  content: attr(data-step);
  position: absolute;
  top: -18px; right: 18px;
  font-size: 110px; font-weight: 900;
  color: rgba(0,174,239,0.055);
  font-family: var(--font-en);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: var(--transition);
}
/* Top accent line */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.svc-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0,174,239,0.12);
  background: var(--bg-card-hover);
}
.svc-card:hover::before { color: rgba(0,174,239,0.1); }
.svc-card:hover::after  { transform: scaleX(1); }

.svc-card-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.svc-card-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(27,42,107,0.5), rgba(0,174,239,0.15));
  border: 1px solid rgba(0,174,239,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.svc-card:hover .svc-card-icon-wrap {
  background: linear-gradient(135deg, rgba(27,42,107,0.8), rgba(0,174,239,0.3));
  box-shadow: 0 0 20px rgba(0,174,239,0.25);
}
.svc-card-icon { font-size: 1.5rem; }
.svc-card-label {
  font-size: 0.72rem; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  line-height: 1.3;
}

.svc-card-headline {
  font-size: 1.2rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.35;
  margin-bottom: 14px;
}
.svc-card-pain {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.75; flex: 1;
  margin-bottom: 24px;
  text-align: justify;
}
.svc-card-btn {
  display: inline-flex; align-items: center;
  padding: 11px 22px; border-radius: 50px;
  background: rgba(0,174,239,0.1);
  border: 1.5px solid rgba(0,174,239,0.25);
  color: var(--accent); font-size: 0.82rem; font-weight: 700;
  transition: var(--transition); align-self: flex-start;
  cursor: pointer; letter-spacing: 0.02em;
  font-family: inherit;
}
.svc-card-btn:hover {
  background: var(--accent);
  color: #fff; border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,174,239,0.35);
}

/* ═══════════════════════════════════════════════
   HERO DASHBOARD  (replaces orbit system)
   ═══════════════════════════════════════════════ */
.hero-dashboard {
  position: relative;
  width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 32px 28px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,174,239,0.1),
    0 0 60px rgba(0,174,239,0.07) inset;
  animation: dashFloat 6s ease-in-out infinite;
  overflow: hidden;
}
@keyframes dashFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-10px) rotate(0.3deg); }
  66%      { transform: translateY(-5px) rotate(-0.2deg); }
}
.hd-glow-bg {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,0.08) 0%, transparent 70%);
  top: -60px; right: -60px;
  pointer-events: none;
  animation: hdGlowPulse 4s ease-in-out infinite;
}
@keyframes hdGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.15); }
}
.hd-top { position: relative; z-index: 1; margin-bottom: 24px; }
.hd-bar {
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  border-radius: 2px;
  margin-bottom: 12px;
}
.hd-label {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); opacity: 0.7;
  margin-bottom: 6px;
}
.hd-title {
  font-size: 1.45rem; font-weight: 900;
  line-height: 1.25; color: var(--text-primary);
  margin: 0;
}

/* Service list */
.hd-svc-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.hd-svc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: hdSvcIn 0.6s both;
  animation-delay: calc(var(--i) * 80ms + 400ms);
}
@keyframes hdSvcIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hd-svc:hover {
  background: rgba(0,174,239,0.07);
  border-color: rgba(0,174,239,0.25);
  transform: translateX(5px);
}
.hd-svc:hover .hd-svc-arrow { opacity: 1; transform: translateX(3px); }
.hd-svc-num {
  font-size: 0.58rem; font-weight: 900;
  color: var(--accent); opacity: 0.55;
  width: 18px; flex-shrink: 0; letter-spacing: 0.04em;
}
.hd-svc-icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.hd-svc-name {
  flex: 1; font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-svc-arrow {
  font-size: 0.75rem; color: var(--accent);
  opacity: 0; transition: all 0.3s ease; flex-shrink: 0;
}

/* Stats row */
.hd-stats-row {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  position: relative; z-index: 1;
}
.hd-stat {
  flex: 1; text-align: center;
  padding: 0 8px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hd-stat:last-child { border-right: none; }
.hd-stat b {
  display: block;
  font-size: 1.5rem; font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}
.hd-stat span { font-size: 0.65rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   JOURNEY — STEP CARDS  (replaces bubble flow)
   ═══════════════════════════════════════════════ */
.journey-track { position: relative; margin-top: 60px; }
.journey-progress-bar {
  position: absolute;
  top: 46px;    /* vertically center on the dot row */
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}
.journey-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 2px;
  transition: width 1.6s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.journey-progress-dot {
  position: absolute;
  right: -7px; top: -6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0,174,239,0.8), 0 0 28px rgba(0,174,239,0.4);
  transition: right 1.6s cubic-bezier(0.4,0,0.2,1);
}
.j-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.j-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.38s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
}
.j-card::before {
  content: attr(data-step-num);
  position: absolute;
  bottom: -12px; right: 8px;
  font-size: 4.5rem; font-weight: 900;
  color: rgba(0,174,239,0.04);
  line-height: 1;
  pointer-events: none;
}
.j-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.j-card:hover,
.j-card.j-active {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,174,239,0.15);
}
.j-card:hover::after,
.j-card.j-active::after { transform: scaleX(1); }
.j-card--final { border-color: rgba(0,174,239,0.2); }
.j-card-dot {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27,42,107,0.6), rgba(0,174,239,0.18));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: all 0.35s ease;
}
.j-card:hover .j-card-dot,
.j-card.j-active .j-card-dot {
  background: linear-gradient(135deg, rgba(27,42,107,0.9), rgba(0,174,239,0.35));
  box-shadow: 0 0 20px rgba(0,174,239,0.3);
  transform: scale(1.08);
}
.j-card-num {
  font-size: 0.6rem; font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent); opacity: 0.65;
  margin-bottom: 5px;
}
.j-card-title {
  font-size: 0.85rem; font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3; margin-bottom: 8px;
}
.j-card-pain {
  font-size: 0.7rem; font-style: italic;
  color: rgba(255, 180, 120, 0.75);
  line-height: 1.55; margin-bottom: 10px;
  padding: 8px 10px;
  background: rgba(255, 140, 60, 0.06);
  border-left: 2px solid rgba(255, 140, 60, 0.25);
  border-radius: 0 6px 6px 0;
}
[dir="rtl"] .j-card-pain {
  border-left: none;
  border-right: 2px solid rgba(255, 140, 60, 0.25);
  border-radius: 6px 0 0 6px;
}
.j-card-desc {
  font-size: 0.71rem; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 12px;
}
.j-card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  transition: gap 0.25s ease;
}
.j-card-link:hover { gap: 8px; }

/* ═══════════════════════════════════════════════
   SERVICES STORY SECTION
   ═══════════════════════════════════════════════ */
.story-section {
  background: var(--bg-secondary);
  position: relative;
}

/* ── Hook ── */
.story-hook-wrap {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}
.story-hook-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.story-hook { max-width: 760px; margin: 0 auto; }
.sh-eyebrow {
  display: inline-block;
  font-size: 0.65rem; font-weight: 900;
  color: var(--accent); letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sh-headline {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 24px;
}
.sh-body {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.8; max-width: 620px;
  margin: 0 auto 28px;
}
.sh-question {
  font-size: 1.3rem; font-weight: 800;
  color: var(--accent); margin-bottom: 36px;
}
.sh-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-muted);
  animation: shHintBob 2.2s ease-in-out infinite;
}
@keyframes shHintBob {
  0%,100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ── Scroll driver — 480vh gives panel-flip room ── */
.story-panels-outer {
  height: 480vh;
  position: relative;
  background: var(--bg-secondary); /* fills visible gap when stage is hidden */
}

/* ── Stage is fixed (avoids overflow-x:hidden sticky bug) ── */
.story-sticky-stage {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-secondary);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Children must also be blocked — pointer-events:none on parent doesn't block descendants */
.story-sticky-stage .sp { pointer-events: none; }
.story-sticky-stage.stage-visible {
  opacity: 1;
  pointer-events: all;
}
.story-sticky-stage.stage-visible .sp { pointer-events: auto; }
/* CRITICAL: .sp.sp-active sets pointer-events:all which has equal specificity and
   comes later in the file — this !important rule ensures panels NEVER intercept
   clicks when the stage is not visible, regardless of active state */
.story-sticky-stage:not(.stage-visible) .sp { pointer-events: none !important; }

/* ── Progress rail ── */
.sp-rail {
  position: absolute;
  left: 36px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 20;
}
[dir="rtl"] .sp-rail { left: auto; right: 36px; }
.sp-rail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.4s ease;
  cursor: pointer;
}
.sp-rail-dot.sp-rail-active {
  background: var(--accent);
  width: 10px; height: 10px;
  box-shadow: 0 0 12px rgba(0,174,239,0.7);
}

/* ── Individual panel ── */
.sp {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 96px 80px 40px 100px;
  color: inherit; cursor: default;
  background: var(--bg-secondary);
  overflow: hidden;
  /* default hidden state — waiting below */
  opacity: 0;
  transform: translateY(100px) scale(0.97);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity, filter;
  transition:
    opacity   1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter    0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .sp { padding: 96px 100px 40px 80px; }
.sp.sp-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: all;
  cursor: pointer;
  z-index: 3;
}
.sp.sp-exit {
  opacity: 0;
  transform: translateY(-100px) scale(0.97);
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
  /* exit is snappier than entry */
  transition:
    opacity   0.7s cubic-bezier(0.4, 0, 1, 1),
    transform 0.7s cubic-bezier(0.4, 0, 1, 1),
    filter    0.55s cubic-bezier(0.4, 0, 1, 1);
}

/* ── SVG watermark ── */
.sp-wm {
  position: absolute;
  right: 56px; top: 50%;
  transform: translateY(-50%);
  height: 78%; width: auto;
  color: var(--accent);
  opacity: 0.055;
  pointer-events: none; user-select: none;
  flex-shrink: 0;
}
[dir="rtl"] .sp-wm { right: auto; left: 56px; }

/* ── Panel content ── */
.sp-content {
  max-width: 720px; width: 100%;
  position: relative; z-index: 2;
}
.sp-num-tag {
  font-size: 0.58rem; font-weight: 900;
  color: var(--accent); letter-spacing: 0.18em;
  margin-bottom: 10px; opacity: 0.8;
}
.sp-name {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 900; line-height: 1.15;
  color: var(--text-primary); margin: 0 0 18px;
}
.sp-pain {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 185, 120, 0.88);
  line-height: 1.65;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: rgba(255,140,60,0.06);
  border-left: 3px solid rgba(255,140,60,0.28);
  border-radius: 0 10px 10px 0;
}
[dir="rtl"] .sp-pain {
  border-left: none;
  border-right: 3px solid rgba(255,140,60,0.28);
  border-radius: 10px 0 0 10px;
}
.sp-solve {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.75; margin: 0 0 20px;
}
.sp-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px; margin: 0 0 24px;
}
.sp-list li {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.sp-list li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; opacity: 0.55;
}
.sp-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  padding: 10px 22px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.sp-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}
[dir="rtl"] .sp-cta:hover { transform: translateX(-3px); }

/* ── Closing note ── */
.story-close-wrap {
  padding: 60px 0 100px;
  text-align: center;
}
.story-close {
  font-size: 1.05rem; color: var(--text-muted);
  font-style: italic; max-width: 560px;
  margin: 0 auto;
  padding: 28px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Page-fade transition overlay ── */
.pt-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-secondary);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ── Works gallery (service sub-pages) ── */
.works-section { background: var(--bg-secondary); padding: 80px 0; }
.works-section .container { padding-bottom: 32px; }
.works-rail { display: flex; gap: 16px; overflow-x: auto; padding: 0 60px 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.works-rail::-webkit-scrollbar { display: none; }
.work-card { flex: 0 0 280px; height: 190px; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s; }
.work-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.work-card:hover img { transform: scale(1.06); }
.work-card-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); font-size: 0.78rem; font-weight: 600; color: #fff; }
.work-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; opacity: 0.25; }
.works-loading { padding: 40px 60px; color: var(--muted); font-size: 0.9rem; }
.works-empty { padding: 0 60px; color: var(--muted); font-size: 0.9rem; }
.works-footer { text-align: center; padding: 8px 60px 0; }
.works-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 0.88rem; text-decoration: none; border: 1.5px solid rgba(0,174,239,0.3); padding: 11px 26px; border-radius: 50px; transition: all 0.3s; }
.works-more:hover { border-color: var(--accent); background: rgba(0,174,239,0.08); transform: translateY(-2px); }
/* Lightbox */
#worksLightbox { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.93); align-items: center; justify-content: center; }
#worksLightbox.open { display: flex; }
.wlb-img { max-width: min(900px,90vw); max-height: 85vh; border-radius: 12px; object-fit: contain; }
.wlb-close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.3rem; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.wlb-close:hover { background: rgba(255,255,255,0.22); }
.wlb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.6rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.wlb-nav:hover { background: rgba(255,255,255,0.22); }
.wlb-prev { left: 20px; } .wlb-next { right: 20px; }
.wlb-info { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.65); padding: 7px 18px; border-radius: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.65); white-space: nowrap; }
@media(max-width:768px) { .works-rail { padding: 0 24px 20px; } .works-footer { padding: 8px 24px 0; } .work-card { flex: 0 0 220px; height: 155px; } }

/* ═══════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════ */
.about-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(27,42,107,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 70px;
}

.about-story,
.about-vision,
.about-mission {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.about-story:hover,
.about-vision:hover,
.about-mission:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.about-card-eyebrow {
  font-size: 0.7rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.about-story p,
.about-vision p,
.about-mission p {
  font-size: 0.93rem; color: var(--text-muted);
  line-height: 1.8; text-align: justify;
}
.about-story strong,
.about-vision strong,
.about-mission strong {
  color: var(--text-secondary);
}

/* FOUNDER */
.founder-section { margin-top: 0; }
a.founder-card-link {
  text-decoration: none; color: inherit;
  display: block; transition: var(--transition);
}
.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex; align-items: center; gap: 40px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.founder-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
a.founder-card-link:hover .founder-card,
.founder-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,174,239,0.1);
}
a.founder-card-link:hover .founder-card::before { transform: scaleX(1); }

.founder-img-wrapper {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0,174,239,0.3);
  box-shadow: 0 0 30px rgba(0,174,239,0.2);
}
.founder-img { width: 100%; height: 100%; object-fit: cover; }
.founder-info { flex: 1; }
.founder-name {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 4px;
  color: var(--text-primary);
}
.founder-title {
  font-size: 0.85rem; color: var(--accent);
  font-weight: 700; margin-bottom: 16px; opacity: 0.85;
}
.founder-quote p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; font-style: italic;
  text-align: justify;
}
.founder-click-hint {
  margin-top: 14px; font-size: 0.78rem; font-weight: 800;
  color: var(--accent); opacity: 0.65; transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
a.founder-card-link:hover .founder-click-hint { opacity: 1; }

/* ═══════════════════════════════════════════════
   PROJECTS / COMPANIES SECTION
   ═══════════════════════════════════════════════ */
.projects-section {
  padding: 120px 0;
  background: var(--bg-main);
  position: relative; overflow: hidden;
}
.projects-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.projects-orb1 {
  width: 500px; height: 500px;
  background: rgba(27,42,107,0.3);
  top: -100px; right: -100px;
}

/* Filters */
.projects-controls { margin-bottom: 44px; }
.filter-buttons {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 10px;
}
.filter-btn {
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer; font-family: inherit;
}
.filter-btn:hover { border-color: rgba(0,174,239,0.3); color: var(--text-secondary); }
.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,174,239,0.3);
}

/* Company Grid */
.co-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.co-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: var(--text-muted);
  font-size: 0.95rem;
}

.co-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.co-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,174,239,0.1);
}

/* Cover */
.co-card-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(0,174,239,0.18) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; overflow: hidden; position: relative;
  flex-shrink: 0;
}
.co-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.co-card:hover .co-card-cover img { transform: scale(1.08); }
/* Hover overlay with "View Work" */
.co-card-cover::after {
  content: 'View Work →';
  position: absolute; inset: 0;
  background: rgba(10,14,39,0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.06em; color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.co-card:hover .co-card-cover::after { opacity: 1; }

/* Card body */
.co-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.co-card-industry {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.co-card-name {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 7px; line-height: 1.3;
}
.co-card-desc {
  font-size: 0.82rem; color: var(--text-muted);
  line-height: 1.6; flex: 1; margin-bottom: 12px;
}
.co-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.co-card-tag {
  font-size: 0.68rem; font-weight: 700;
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.2);
  color: var(--accent); padding: 3px 10px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   COMPANY MODAL (Level 2)
   ═══════════════════════════════════════════════ */
.proj-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5, 8, 20, 0.92);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  padding: 20px;
}
.proj-modal-overlay.show {
  opacity: 1; pointer-events: all;
}
.proj-modal-box {
  background: #0d1330;
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: var(--radius-lg);
  width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,174,239,0.1);
  animation: fadeInUp 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,174,239,0.3) transparent;
}
.proj-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--text-muted);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer; border: none; font-family: inherit;
}
.proj-modal-close:hover { background: rgba(0,174,239,0.2); color: #fff; }
.proj-modal-hero {
  height: 260px;
  background: linear-gradient(135deg, var(--primary-dark), rgba(0,174,239,0.2));
  overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.proj-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.proj-modal-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, #0d1330, transparent);
  pointer-events: none;
}
.proj-modal-body { padding: 28px 32px 36px; }
.proj-modal-cat {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(0,174,239,0.1);
  border: 1px solid rgba(0,174,239,0.2);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.proj-modal-title {
  font-size: 1.6rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: 6px;
}
.proj-modal-desc {
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.7;
}

/* Service portfolio cards inside modal */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.svc-portfolio-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.svc-portfolio-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.svc-portfolio-card:hover::after { transform: scaleX(1); }
.svc-portfolio-card:hover {
  border-color: rgba(0,174,239,0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,174,239,0.12);
}
.svc-card-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--primary-dark), rgba(0,174,239,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; overflow: hidden; position: relative;
  transition: all 0.35s ease;
}
.svc-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.svc-portfolio-card:hover .svc-card-thumb img { transform: scale(1.07); }
.svc-card-thumb::after {
  content: '🔍';
  position: absolute; inset: 0;
  background: rgba(10,14,39,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.svc-portfolio-card:hover .svc-card-thumb::after { opacity: 1; }
.svc-card-name {
  padding: 14px 14px 4px;
  font-size: 0.88rem; font-weight: 800; color: var(--text-primary);
  line-height: 1.3;
}
.svc-card-count {
  padding: 0 12px 6px;
  font-size: 0.72rem; color: var(--text-muted);
}
.svc-card-chips { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.svc-card-chip {
  font-size: 0.62rem; font-weight: 700;
  background: rgba(0,174,239,0.08);
  color: var(--accent);
  border: 1px solid rgba(0,174,239,0.15);
  padding: 2px 8px; border-radius: 20px;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX (Level 3)
   ═══════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(3, 5, 15, 0.96);
  backdrop-filter: blur(32px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.show { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit; transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(0,174,239,0.15);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); z-index: 10;
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover {
  background: rgba(0,174,239,0.15);
  border-color: rgba(0,174,239,0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,174,239,0.2);
}
.lightbox-nav:disabled { opacity: 0.2; cursor: default; transform: translateY(-50%) scale(0.9); }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

.lightbox-inner {
  display: flex; align-items: center; gap: 36px;
  max-width: 1100px; width: 100%; padding: 0 90px;
  animation: lbIn 0.35s ease;
}
@keyframes lbIn { from { opacity:0; transform: scale(0.97); } to { opacity:1; transform: scale(1); } }
.lightbox-img-wrap {
  flex: 1; max-height: 75vh;
  position: relative;
  /* padding makes room for stack cards peeking below-right */
  padding-bottom: 14px; padding-right: 14px;
}

/* Stack cards — peek behind the main card */
.lb-stack-card {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
/* Middle card */
#lbStack1 {
  top: 7px; left: 7px; right: 7px; bottom: 7px;
  background: rgba(0,174,239,0.08);
  z-index: 2;
  transform: rotate(-2deg);
  transform-origin: bottom center;
}
/* Back card */
#lbStack2 {
  top: 14px; left: 14px; right: 0; bottom: 0;
  background: rgba(0,174,239,0.04);
  z-index: 1;
  transform: rotate(-4.5deg);
  transform-origin: bottom center;
}
.lb-stack-card.lb-hidden { opacity: 0; pointer-events: none; }

/* Main card — front */
.lb-main-card {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  height: 100%;
}
.lb-main-card img {
  max-width: 100%; max-height: 73vh;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lb-main-card img.lb-fading { opacity: 0; transform: scale(0.98); }
.lightbox-info {
  width: 260px; flex-shrink: 0;
}
.lightbox-service-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 800;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.2);
  padding: 5px 12px; border-radius: 20px;
}
.lightbox-caption {
  font-size: 1.15rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: 10px; line-height: 1.35;
}
.lightbox-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.lightbox-counter {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.lightbox-counter::before {
  content: '';
  flex: 1; height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
.contact-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative; overflow: hidden;
}
.contact-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.contact-orb1 { width: 400px; height: 400px; background: rgba(27,42,107,0.3); top: -80px; left: -80px; }
.contact-orb2 { width: 300px; height: 300px; background: rgba(0,174,239,0.08); bottom: -60px; right: -60px; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
  position: relative; z-index: 1;
}
.contact-info h3 {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 28px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.contact-link:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  background: rgba(0,174,239,0.05);
}
[dir="rtl"] .contact-link:hover { transform: translateX(-4px); }
.contact-link-icon { font-size: 1.4rem; flex-shrink: 0; }

.contact-link-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-link-value { font-size: 0.97rem; font-weight: 600; color: var(--text-primary); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 8px; color: var(--text-secondary);
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: 12px;
  color: #fff; font-family: inherit; font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(0,174,239,0.08);
}
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 99999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; min-width: 300px; max-width: 90vw;
}
.toast {
  background: var(--bg-card); border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: 12px;
  animation: toastIn 0.3s ease; pointer-events: all;
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
body[dir="rtl"] .toast { border-left: 1px solid var(--border); border-right: 4px solid var(--accent); }
.toast.toast-error { border-color: #ef4444; }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-msg { font-size: 0.95rem; color: #fff; font-weight: 600; line-height: 1.4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-15px); } }

/* ═══════════════════════════════════════════════
   PORTAL MODAL (SERVICE REQUEST)
   ═══════════════════════════════════════════════ */
.portal-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 9999; display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.portal-modal-overlay.show { display: flex; opacity: 1; }
.portal-modal-container {
  background: var(--bg-main); width: 100%; max-width: 800px; max-height: 90vh;
  border-radius: 24px; border: 1px solid rgba(0,174,239,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px); transition: transform 0.3s;
}
.portal-modal-overlay.show .portal-modal-container { transform: translateY(0); }
.portal-modal-header {
  padding: 24px 32px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.portal-modal-title { font-size: 1.4rem; font-weight: 800; color: #fff; }
.portal-modal-sub { font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.portal-modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: var(--transition); cursor: pointer;
  border: none; font-family: inherit; flex-shrink: 0;
}
.portal-modal-close:hover { background: #ef4444; }
.portal-modal-body { padding: 32px; overflow-y: auto; flex: 1; }

.steps-bar { background: rgba(255,255,255,0.02); padding: 16px 32px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.steps-row { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step-item:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; left: 50%;
  width: 100%; height: 2px; background: var(--border); z-index: 0;
}
html[dir="rtl"] .step-item:not(:last-child)::after { right: 50%; left: auto; }
.step-item.active:not(:last-child)::after { background: var(--accent); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-main);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; z-index: 1; transition: var(--transition);
}
.step-item.active .step-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 6px; font-weight: 600; }
.step-item.active .step-label { color: var(--accent); }

.section-card { display: none; animation: fadeIn 0.4s; }
.section-card.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sec-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.sec-icon { font-size: 2rem; }
.sec-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 24px; }
.field-label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.req { color: #ef4444; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: rgba(0,0,0,0.2);
  border: 1px solid var(--border); border-radius: 12px; color: #fff;
  font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: none;
}
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.radio-cards input { display: none; }
.radio-cards label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 16px; cursor: pointer; transition: var(--transition); text-align: center;
}
.radio-cards input:checked + label { border-color: var(--accent); background: rgba(0,174,239,0.1); color: var(--accent); }
.nav-btns { display: flex; justify-content: space-between; margin-top: 40px; gap: 16px; }
.nav-btns .btn { flex: 1; }
.success-wrap { display: none; text-align: center; padding: 40px 20px; }
.success-wrap.show { display: block; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
/* FIX #5 — SVG logo in footer */
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.footer-logo-svg {
  width: clamp(140px, 22vw, 240px);
  height: auto; display: block;
  color: rgba(255,255,255,0.55);
  filter: drop-shadow(0 0 10px rgba(0,174,239,0.18));
}
.footer-tagline {
  color: var(--text-secondary); font-size: 1rem; margin-bottom: 16px;
}
.footer-copy {
  color: var(--text-muted); font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════
   SERVICES CARDS GRID (Company Modal Level 2)
   ═══════════════════════════════════════════════ */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-top: 4px;
}
.svc-portfolio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 16px; cursor: pointer; transition: var(--transition);
  text-align: center; position: relative; overflow: hidden;
}
.svc-portfolio-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,174,239,0.06), transparent);
  opacity: 0; transition: var(--transition);
}
.svc-portfolio-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,174,239,0.15);
}
.svc-portfolio-card:hover::before { opacity: 1; }
.svc-card-thumb {
  width: 100%; height: 130px; object-fit: cover;
  border-radius: 12px; margin-bottom: 12px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.svc-card-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.svc-card-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.svc-card-count { font-size: 0.78rem; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 4px; }
.svc-card-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 8px; }
.svc-card-chip {
  font-size: 0.65rem; background: rgba(0,174,239,0.1); color: var(--accent);
  border: 1px solid rgba(0,174,239,0.3); padding: 2px 8px; border-radius: 10px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (769px – 1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-container { gap: 24px; }
  .orbit-system { width: 340px; height: 340px; }
  .orbit-center { width: 180px; }
  .o-node { width: 70px; height: 70px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-main { grid-column: unset; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-card { gap: 20px; padding: 30px; }
  .founder-img-wrapper { width: 130px; height: 130px; }
  .section-header h2 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Base ── */
  html { font-size: 16px; }

  /* ── Navbar ── */
  .nav-links { display: none; }
  .lang-toggle-btn { display: flex; font-size: 0.85rem; padding: 6px 14px; }
  .hamburger { display: flex; }

  /* ── Hero ── */
  .hero { padding: 90px 0 60px; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2; }
  .hero-text h2, .hero-text h3 { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
  .hero-desc { font-size: clamp(0.95rem, 3.5vw, 1.05rem); max-width: 100%; }
  .hero-buttons { justify-content: center; flex-direction: column; align-items: center; gap: 12px; }
  .btn { width: 100%; max-width: 280px; font-size: 1rem; padding: 14px 24px; }
  .availability-badge { font-size: 0.85rem; }

  /* ── Orbit ── */
  .orbit-system { width: 270px; height: 270px; }
  .orbit-center { width: 130px; }
  .o-node { width: 58px; height: 58px; }
  .o-icon { font-size: 1rem; }
  .o-label { font-size: 0.42rem; }

  /* ── Section Headers ── */
  .section-header h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.25; }
  .section-header p { font-size: clamp(0.9rem, 3.5vw, 1.05rem); }
  .section-header { margin-bottom: 36px; }

  /* ── Services (teaser tiles) ── */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .svc-card { padding: 20px 14px; border-radius: 16px; }
  .svc-icon { font-size: 2rem; margin-bottom: 10px; }
  .svc-name { font-size: clamp(0.85rem, 3vw, 1rem); line-height: 1.4; }
  .svc-desc { font-size: 0.8rem; line-height: 1.6; }

  /* ── Story hook section ── */
  .story-hook-wrap { padding: 60px 0 48px; }
  .sh-headline { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── Services Story Section — full mobile reset ── */
  .story-panels-outer { height: auto !important; }
  .story-sticky-stage {
    position: relative !important;
    top: unset !important; left: unset !important; right: unset !important;
    height: auto !important; opacity: 1 !important; pointer-events: all !important;
    display: flex; flex-direction: column; gap: 2px;
  }
  .story-sticky-stage.stage-visible { opacity: 1 !important; }
  /* Reset each panel from absolute→block so they stack normally */
  .sp {
    position: relative !important;
    inset: unset !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    padding: 48px 20px 40px;
    display: block !important;
    min-height: unset !important;
  }
  /* SVG watermarks — hidden on mobile */
  .sp-wm { display: none !important; }
  /* Hide the side progress rail */
  .sp-rail { display: none !important; }

  /* ── Story Panels list ── */
  .sp-list { grid-template-columns: 1fr; gap: 6px; }

  /* ── Projects / Filter ── */
  /* FIX #9 — filter buttons wrap on mobile */
  .filter-buttons { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .filter-btn { padding: 7px 14px; font-size: 0.82rem; border-radius: 20px; }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-title { font-size: clamp(1rem, 4vw, 1.2rem); }
  .project-desc { font-size: 0.9rem; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .about-story, .about-vision, .about-mission { padding: 28px 20px; }
  .about-card, .about-philosophy, .about-arsenal { padding: 24px 20px; }
  .founder-card { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .founder-img-wrapper { width: 110px; height: 110px; }
  .founder-quote {
    border-left: none; padding-left: 0;
    border-top: 3px solid rgba(255,255,255,0.12); padding-top: 16px;
    font-size: clamp(0.88rem, 3.2vw, 1rem); line-height: 1.8;
  }
  body[dir="rtl"] .founder-quote { border-right: none; padding-right: 0; }

  /* ── Contact ── */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrapper { padding: 24px 18px; }
  .contact-info h3 { font-size: clamp(1.2rem, 4.5vw, 1.5rem); }

  /* ── Company Modal (Level 2) ── */
  .proj-modal-body { padding: 20px 16px; }
  .proj-modal-hero { height: 200px; }
  .proj-modal-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .services-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-card-thumb { height: 100px; }
  .two-col { grid-template-columns: 1fr; }

  /* ── Lightbox (Level 3) — FIX #11 nav visible, FIX #12 height cap ── */
  .lightbox-inner {
    flex-direction: column; gap: 16px;
    padding: 0 16px; width: 100%;
    padding-top: 56px; /* room for close btn */
  }
  .lightbox-img-wrap {
    max-height: 52vh; /* FIX #12 — cap height on mobile */
    width: 100%;
  }
  .lb-main-card img { max-height: 52vh; }
  .lightbox-info { width: 100%; text-align: center; }
  /* FIX #11 — shrink nav buttons so they're always visible */
  .lightbox-prev { left: 6px; width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-next { right: 6px; width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-close { top: 12px; right: 14px; width: 40px; height: 40px; }
  /* Stack cards rotate is fine on mobile, just shrink the offset */
  #lbStack1 { top: 5px; left: 5px; right: 5px; bottom: 5px; }
  #lbStack2 { top: 10px; left: 10px; right: 0; bottom: 0; }

  /* ── Footer ── */
  .footer { padding: 40px 0 32px; }
  .footer-tagline { font-size: 0.9rem; }
  .footer-copy { font-size: 0.8rem; }
  .footer-logo-svg { width: clamp(120px, 40vw, 180px); }

  /* ── Portal Modal ── */
  .portal-modal-header { padding: 20px; }
  .portal-modal-body { padding: 20px; }
  .nav-btns { flex-direction: column; }
  .radio-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-text h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .orbit-system { width: 230px; height: 230px; }
  .orbit-center { width: 115px; }
  .o-node { width: 50px; height: 50px; }
  .hero-container { gap: 28px; }
  .container { padding: 0 14px; }
  .nav-container { padding: 10px 14px; }

  /* Single-column service tiles on very small screens */
  .services-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .svc-card { padding: 18px 14px; }

  /* FIX #10 — story panels padding on small screens */
  .sp { padding: 32px 14px 28px !important; }
  .sp-content h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .sp-content p { font-size: 0.9rem; }

  /* Proj modal box full width */
  .proj-modal-box { margin: 4px; border-radius: 12px; }

  /* Company modal service grid: 1 col on tiny screens */
  .services-cards-grid { grid-template-columns: 1fr; }

  /* FIX #9 — filter buttons scrollable (no wrap) on very small screens */
  .filter-buttons {
    flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════
   RTL OVERRIDES
   ═══════════════════════════════════════════════ */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .lightbox-prev { right: 6px; left: auto; }
[dir="rtl"] .lightbox-next { left: 6px; right: auto; }
[dir="rtl"] .lightbox-close { left: 14px; right: auto; }
[dir="rtl"] .proj-modal-close { left: 16px; right: auto; }
[dir="rtl"] .contact-link-icon { order: 1; }
[dir="rtl"] .toast { text-align: right; }
[dir="rtl"] .lightbox-inner { direction: rtl; }
[dir="rtl"] .lightbox-counter::before { order: 2; }
[dir="rtl"] .steps-row { direction: rtl; }
[dir="rtl"] .sec-header { flex-direction: row-reverse; }
[dir="rtl"] .founder-quote { border-left: none; padding-left: 0; border-right: 3px solid rgba(255,255,255,0.12); padding-right: 20px; }
@media (max-width: 768px) {
  [dir="rtl"] .founder-quote { border-right: none; padding-right: 0; }
  [dir="rtl"] .lightbox-prev { right: 6px; left: auto; }
  [dir="rtl"] .lightbox-next { left: 6px; right: auto; }
}
