/* ═══════════════════════════════════════════════
   NEXPAND — Global Marketing Company
   CSS Design System — Full Updated Version
   Colors: #E6E6E6 | #A78BFA | #7B5CFF
═══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --c-bg:         #080810;
  --c-bg-2:       #0d0d1a;
  --c-bg-3:       #111122;
  --c-surface:    #12121f;
  --c-surface-2:  #1a1a2e;
  --c-border:     rgba(167, 139, 250, 0.12);
  --c-border-2:   rgba(167, 139, 250, 0.22);

  --c-primary:    #7B5CFF;
  --c-primary-2:  #A78BFA;
  --c-light:      #E6E6E6;
  --c-muted:      rgba(230, 230, 230, 0.45);
  --c-faint:      rgba(230, 230, 230, 0.18);

  --grad-primary: linear-gradient(135deg, #7B5CFF 0%, #A78BFA 100%);
  --grad-glow:    radial-gradient(ellipse at center, rgba(123, 92, 255, 0.35) 0%, transparent 70%);
  --grad-card:    linear-gradient(135deg, rgba(123, 92, 255, 0.08) 0%, rgba(167, 139, 250, 0.04) 100%);

  --font: 'Space Grotesk', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.4);
  --shadow:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(123,92,255,0.25);

  --nav-h: 76px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary); border-radius: 99px; }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }

/* ─── TYPOGRAPHY ─── */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--c-primary-2);
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-light);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-header.centered {
  text-align: center;
  margin-bottom: 72px;
}
.section-header.centered .section-label    { justify-content: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(123,92,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(123,92,255,0.55);
}

.btn-ghost {
  color: var(--c-light);
  border: 1px solid var(--c-border-2);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--c-primary-2);
  color: var(--c-primary-2);
  transform: translateY(-2px);
}

.btn-sm   { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg   { padding: 18px 40px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ─── SCROLL ANIMATIONS ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate].in-view     { opacity: 1; transform: none; }


/* ════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════ */
@media (pointer: fine) {
  html, body, a, button,
  input, select, textarea,
  [tabindex], .svc, .work-card,
  .client-logo, .tc-dot { cursor: none !important; }
}

#cursor-outer {
  position: fixed;
  top: 0; left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.75);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    width  0.45s var(--ease),
    height 0.45s var(--ease),
    border-color 0.35s,
    background   0.35s,
    opacity      0.3s;
  mix-blend-mode: screen;
  box-shadow:
    0 0 18px rgba(123, 92, 255, 0.35),
    0 0 50px rgba(123, 92, 255, 0.12),
    inset 0 0 14px rgba(123, 92, 255, 0.06);
  backdrop-filter: blur(1px);
  will-change: left, top, width, height;
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px;
  height: 5px;
  background: var(--c-primary-2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.18s, height 0.18s, background 0.18s, opacity 0.3s;
  box-shadow:
    0 0 8px rgba(167, 139, 250, 0.9),
    0 0 20px rgba(123, 92, 255, 0.5);
  will-change: left, top;
}

/* Hover state — outer ring expands */
body.cursor-hover #cursor-outer {
  width: 68px;
  height: 68px;
  border-color: rgba(123, 92, 255, 0.9);
  background: rgba(123, 92, 255, 0.07);
  box-shadow:
    0 0 28px rgba(123, 92, 255, 0.55),
    0 0 70px rgba(123, 92, 255, 0.2);
}
body.cursor-hover #cursor-dot {
  width: 3px;
  height: 3px;
}

/* Click state — brief shrink */
body.cursor-click #cursor-outer {
  width: 28px;
  height: 28px;
  background: rgba(123, 92, 255, 0.18);
  transition-duration: 0.1s;
}
body.cursor-click #cursor-dot {
  transform: translate(-50%, -50%) scale(0.6);
  transition-duration: 0.1s;
}


/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-ne   { color: var(--c-light); }
.logo-x    { color: var(--c-primary); margin: 0 1px; }
.logo-pand { color: var(--c-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-muted);
  border-radius: 99px;
  transition: color 0.25s, background 0.25s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--c-light); }

.nav-cta {
  color: var(--c-primary-2) !important;
  border: 1px solid var(--c-border-2);
  background: rgba(123,92,255,0.08);
  margin-left: 8px;
}
.nav-cta:hover {
  background: rgba(123,92,255,0.18) !important;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1010;
}
.bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-light);
  border-radius: 99px;
  transition: all 0.3s var(--ease);
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8,8,16,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: -0.01em;
  padding: 8px 24px;
  transition: color 0.25s, transform 0.25s;
}
.mobile-link:hover { color: var(--c-light); transform: translateX(8px); }
.mobile-cta { color: var(--c-primary-2) !important; margin-top: 8px; }


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

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,92,255,0.18) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: orb-float-1 10s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: orb-float-2 14s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123,92,255,0.1) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation: orb-float-3 8s ease-in-out infinite;
}
@keyframes orb-float-1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(60px,40px) scale(1.05); }
}
@keyframes orb-float-2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-40px,-60px) scale(1.08); }
}
@keyframes orb-float-3 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px,-50px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,92,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,92,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123,92,255,0.12);
  border: 1px solid rgba(123,92,255,0.3);
  color: var(--c-primary-2);
  padding: 6px 16px 6px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--c-primary-2);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(1.5); }
}

/* ─── Hero Title — VISIONS. CONNECTED. RESULTS. ─── */
.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: title-reveal 0.8s var(--ease) forwards;
}
.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.48s; }
.title-line:nth-child(3) { animation-delay: 0.66s; }
@keyframes title-reveal {
  to { opacity: 1; transform: none; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 0.9s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 1.05s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 1.2s forwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-plus {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--c-border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0;
  animation: fade-in 1s var(--ease) 1.5s forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-primary-2));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
.scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  text-transform: uppercase;
}

@keyframes fade-in { to { opacity: 1; } }


/* ════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: rgba(123,92,255,0.04);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.mx-dot { color: var(--c-primary) !important; font-size: 0.7rem !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about-section { background: var(--c-bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar-icon {
  width: 40px; height: 40px;
  background: rgba(123,92,255,0.12);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary-2);
}
.pillar strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 4px;
}
.pillar p { font-size: 0.9rem; color: var(--c-muted); line-height: 1.6; }

/* About cards */
.about-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.av-card {
  background: var(--grad-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.av-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.av-card:hover { border-color: var(--c-primary); transform: translateY(-4px); }
.av-card:hover::before { opacity: 0.04; }
.av-card-3 { grid-column: 1 / -1; }
.av-number {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}
.av-label {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.4;
  position: relative;
}
.av-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: var(--grad-glow);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: -1;
}


/* ════════════════════════════════════════════
   SERVICES — 14-Item Grid
════════════════════════════════════════════ */
.services-section { background: var(--c-bg); }

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.svc {
  position: relative;
  background: var(--c-bg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.35s;
  overflow: hidden;
}
.svc::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc:hover { background: rgba(123,92,255,0.06); }
.svc:hover::after { transform: scaleX(1); }
.svc:hover .svc-icon {
  background: rgba(123,92,255,0.2);
  border-color: var(--c-primary);
}
.svc:hover .svc-line { width: 40px; }

.svc--featured { background: linear-gradient(135deg, rgba(123,92,255,0.1) 0%, var(--c-bg) 100%); }

.svc-icon {
  width: 44px; height: 44px;
  background: rgba(123,92,255,0.1);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-2);
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.svc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-light);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.svc-line {
  width: 20px; height: 1.5px;
  background: var(--grad-primary);
  border-radius: 99px;
  transition: width 0.4s var(--ease);
  margin-top: 4px;
}

.svc-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  background: rgba(123,92,255,0.15);
  border: 1px solid rgba(123,92,255,0.3);
  padding: 3px 8px;
  border-radius: 99px;
}


/* ════════════════════════════════════════════
   PACKAGES SECTION
════════════════════════════════════════════ */
.packages-section { background: var(--c-bg); }

/* ─── 3-column grid ─── */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 56px;
}

/* ─── Individual card ─── */
.pkg-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border);
  background: var(--grad-card);
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.pkg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.pkg-card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}
.pkg-card:hover::before { opacity: 0.035; }

/* ─── Featured card (Growth) ─── */
.pkg-card--featured {
  border-color: rgba(123,92,255,0.45);
  background: linear-gradient(155deg, rgba(123,92,255,0.10) 0%, rgba(167,139,250,0.05) 50%, rgba(8,8,16,0) 100%);
  transform: translateY(-10px) scale(1.025);
  box-shadow:
    0 0 0 1px rgba(123,92,255,0.35),
    0 0 60px rgba(123,92,255,0.18),
    0 24px 80px rgba(0,0,0,0.55);
  z-index: 2;
}
.pkg-card--featured:hover {
  transform: translateY(-18px) scale(1.03);
  border-color: var(--c-primary);
  box-shadow:
    0 0 0 1px rgba(123,92,255,0.6),
    0 0 80px rgba(123,92,255,0.28),
    0 32px 80px rgba(0,0,0,0.6);
}

/* Animated glow ring behind featured card */
.pkg-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(123,92,255,0) 0deg,
    rgba(123,92,255,0.6) 90deg,
    rgba(167,139,250,0.5) 180deg,
    rgba(123,92,255,0.6) 270deg,
    rgba(123,92,255,0) 360deg
  );
  opacity: 0;
  z-index: -1;
  animation: pkg-ring-rotate 4s linear infinite;
  transition: opacity 0.5s;
}
.pkg-card--featured:hover .pkg-glow-ring { opacity: 0.5; }
@keyframes pkg-ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Inner flex layout (pins button at bottom) ─── */
.pkg-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 28px;
  gap: 0;
}

/* ─── Top block ─── */
.pkg-top { flex-shrink: 0; }

/* ─── Badge ─── */
.pkg-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.pkg-badge--popular {
  color: var(--c-primary-2);
  background: rgba(123,92,255,0.15);
  border-color: rgba(123,92,255,0.35);
  box-shadow: 0 0 16px rgba(123,92,255,0.2);
}
.pkg-badge--premium {
  color: #e2c97e;
  background: rgba(226,201,126,0.08);
  border-color: rgba(226,201,126,0.22);
}

/* ─── Icon ─── */
.pkg-icon {
  width: 52px; height: 52px;
  background: rgba(123,92,255,0.1);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-2);
  margin-bottom: 20px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.pkg-icon--featured {
  background: rgba(123,92,255,0.2);
  border-color: rgba(123,92,255,0.4);
  box-shadow: 0 0 24px rgba(123,92,255,0.25);
}
.pkg-card:hover .pkg-icon {
  background: rgba(123,92,255,0.18);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}

/* ─── Title & short desc ─── */
.pkg-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-light);
  line-height: 1.1;
  margin-bottom: 8px;
}
.pkg-short-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ─── Divider ─── */
.pkg-divider {
  height: 1px;
  background: var(--c-border);
  margin: 20px 0;
  transition: background 0.3s;
}
.pkg-divider--featured {
  background: linear-gradient(90deg, rgba(123,92,255,0.6) 0%, rgba(167,139,250,0.3) 60%, transparent 100%);
}

/* ─── Intro paragraph ─── */
.pkg-intro {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ─── Body block (grows to fill space) ─── */
.pkg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

/* ─── Includes label ─── */
.pkg-includes-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 14px;
}

/* ─── Feature list ─── */
.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pkg-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.5;
  transition: color 0.25s;
}
.pkg-card:hover .pkg-feature { color: rgba(230,230,230,0.65); }

.pkg-check {
  width: 20px; height: 20px;
  background: rgba(123,92,255,0.1);
  border: 1px solid rgba(123,92,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-2);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.3s, border-color 0.3s;
}
.pkg-check--featured {
  background: rgba(123,92,255,0.2);
  border-color: rgba(123,92,255,0.45);
}
.pkg-card:hover .pkg-check {
  background: rgba(123,92,255,0.2);
  border-color: rgba(123,92,255,0.45);
}

/* ─── Goal block ─── */
.pkg-goal {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.pkg-goal--featured {
  background: rgba(123,92,255,0.08);
  border-color: rgba(123,92,255,0.25);
}
.pkg-goal-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 5px;
}
.pkg-goal-text {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Footer with pinned button ─── */
.pkg-footer {
  flex-shrink: 0;
  margin-top: 24px;
}
.pkg-btn {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius);
  padding: 13px 24px;
}

/* ─── Specialization highlight ─── */
.pkg-specialization {
  margin-top: 24px;
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(123,92,255,0.06) 0%, rgba(167,139,250,0.03) 100%);
  transition: border-color 0.35s, transform 0.4s var(--ease);
}
.pkg-specialization:hover {
  border-color: rgba(123,92,255,0.3);
  transform: translateY(-3px);
}
.pkg-spec-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  flex-wrap: wrap;
}
.pkg-spec-icon {
  width: 64px; height: 64px;
  background: rgba(123,92,255,0.12);
  border: 1px solid rgba(123,92,255,0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-2);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.pkg-specialization:hover .pkg-spec-icon {
  background: rgba(123,92,255,0.2);
  transform: scale(1.06);
}
.pkg-spec-content { flex: 1; min-width: 260px; }
.pkg-spec-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-light);
  line-height: 1.3;
  margin-bottom: 10px;
}
.pkg-spec-text {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.pkg-spec-cta-text {
  font-size: 0.82rem;
  color: rgba(167,139,250,0.7);
  line-height: 1.5;
}
.pkg-spec-action { flex-shrink: 0; }

/* ─── Final CTA block ─── */
.pkg-final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 80px 40px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border);
  background: var(--c-bg-2);
}
.pkg-final-cta-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(123,92,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.pkg-final-cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--c-light);
  margin-bottom: 16px;
  position: relative;
}
.pkg-final-cta-desc {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
}




/* ════════════════════════════════════════════
/* ════════════════════════════════════════════
   PORTFOLIO — Video Gallery with Modal Player
════════════════════════════════════════════ */
.portfolio-section {
  background: var(--c-bg-2);
  overflow: hidden;
}

.portfolio-bg-glow {
  position: absolute;
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(123,92,255,0.08) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ─ 5-column portrait grid ─ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

/* Each video card */
.pv-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Project label above each video */
.pv-label-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-number {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pv-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-border-2);
  flex-shrink: 0;
}

.pv-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── Frame wrapper — 9:16 portrait ── */
.pv-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a14;
  border: 1px solid var(--c-border);
  transition: border-color 0.35s, box-shadow 0.35s;
  pointer-events: auto;
  cursor: pointer;
}

.pv-frame-wrap:hover {
  border-color: rgba(123, 92, 255, 0.5);
  box-shadow:
    0 0 32px rgba(123, 92, 255, 0.2),
    0 0 64px rgba(123, 92, 255, 0.08);
}

/* Thumbnail fills its container absolutely */
.pv-thumbnail-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.pv-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.pv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pv-play-btn svg {
  margin-left: 2px;
  pointer-events: none;
  transition: transform 0.3s var(--ease);
}

/* Hover effects */
.pv-frame-wrap:hover .pv-thumbnail {
  transform: scale(1.06);
}

.pv-frame-wrap:hover .pv-play-btn {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow:
    0 0 24px rgba(123, 92, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.pv-frame-wrap:hover .pv-play-btn svg {
  transform: scale(1.1);
}

/* ── Card info block (title + description under thumbnail) ── */
.pv-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 2px 0;
}

.pv-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-light);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pv-card-desc {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════════
   PORTFOLIO VIDEO MODAL
════════════════════════════════════════════ */
.pv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.pv-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}

.pv-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease);
}

.pv-modal.is-open .pv-modal-panel {
  transform: scale(1) translateY(0);
}

/* Video frame inside modal — 9:16 portrait */
.pv-modal-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0a0a14;
  border: 1px solid var(--c-border-2);
  box-shadow:
    0 0 60px rgba(123, 92, 255, 0.3),
    0 0 120px rgba(123, 92, 255, 0.1),
    0 32px 80px rgba(0, 0, 0, 0.6);
}

#pv-modal-iframe-slot {
  position: absolute;
  inset: 0;
}

#pv-modal-iframe-slot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Close button — top-right of panel */
.pv-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-border-2);
  background: var(--c-surface-2);
  color: var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.pv-modal-close:hover {
  background: rgba(200, 40, 40, 0.85);
  border-color: rgba(255, 80, 80, 0.4);
  transform: scale(1.1);
}

/* Modal info (title + desc) */
.pv-modal-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0 4px;
}

.pv-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-light);
  margin: 0;
  line-height: 1.3;
}

.pv-modal-desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.5;
}


/* ════════════════════════════════════════════
   WORK
════════════════════════════════════════════ */
.work-section { background: var(--c-bg); }

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

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

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-glow);
}
.work-card--large { grid-column: 1 / 3; grid-row: 1; }
.work-card--wide  { grid-column: 1 / 3; grid-row: 2; }

.wc-image { height: 220px; position: relative; overflow: hidden; }
.work-card--large .wc-image { height: 280px; }
.work-card--wide  .wc-image { height: 200px; }

.wc-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .wc-bg { transform: scale(1.04); }

.wc-bg-1 { background: linear-gradient(135deg, #0d0818 0%, #1a0a35 40%, #2d1065 100%); }
.wc-bg-2 { background: linear-gradient(135deg, #080d1a 0%, #0d1a35 40%, #1a2d65 100%); }
.wc-bg-3 { background: linear-gradient(135deg, #0a0810 0%, #1a0d20 40%, #3d1050 100%); }
.wc-bg-4 { background: linear-gradient(135deg, #080d10 0%, #0a1520 40%, #142535 100%); }

.wc-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.wc-s1 { width:250px;height:250px;background:rgba(123,92,255,0.4);top:-60px;right:-60px; }
.wc-s2 { width:150px;height:150px;background:rgba(167,139,250,0.3);bottom:-20px;left:40px; }
.wc-s3 { width:200px;height:200px;background:rgba(55,120,255,0.35);top:-40px;left:20px; }
.wc-s4 { width:180px;height:180px;background:rgba(167,100,255,0.4);bottom:-30px;right:30px; }
.wc-s5 { width:200px;height:200px;background:rgba(30,100,180,0.3);top:-30px;left:-30px; }
.wc-s6 { width:150px;height:150px;background:rgba(123,92,255,0.25);bottom:-20px;right:60px; }

.wc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,34,0.8) 0%, transparent 60%);
}

.wc-content { padding: 24px; }
.wc-tags { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
.wc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  background: rgba(123,92,255,0.1);
  border: 1px solid rgba(123,92,255,0.25);
  padding: 3px 10px;
  border-radius: 99px;
}
.wc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.wc-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.wc-metric { display:flex;align-items:baseline;gap:8px; }
.wc-metric-num   { font-size:1.5rem;font-weight:700;letter-spacing:-0.02em; }
.wc-metric-label { font-size:0.78rem;color:var(--c-muted); }


/* ════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════ */
.process-section { background: var(--c-bg-2); }

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.process-line {
  position: absolute;
  left: 28px; top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--c-primary) 0%, var(--c-border) 100%);
}
.process-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.process-step:last-child { margin-bottom: 0; }

.ps-number {
  width: 56px; height: 56px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-primary-2);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.process-step:hover .ps-number {
  background: rgba(123,92,255,0.12);
  border-color: var(--c-primary);
}
.ps-content { padding-top: 12px; }
.ps-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-light);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ps-desc { font-size: 0.92rem; color: var(--c-muted); line-height: 1.7; }


/* ════════════════════════════════════════════
   CLIENTS & TESTIMONIALS
════════════════════════════════════════════ */
.clients-section { background: var(--c-bg); }

.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 80px;
}
.client-logo {
  background: var(--c-bg);
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(230,230,230,0.28);
  transition: color 0.3s, background 0.3s;
}
.client-logo:hover {
  color: var(--c-primary-2);
  background: rgba(123,92,255,0.06);
}

.testimonials { max-width: 780px; margin: 0 auto; }

.testimonial-slider { position: relative; min-height: 200px; }
.testimonial {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.testimonial.active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: all;
}
.testimonial-quote {
  font-size: 1.1rem;
  color: var(--c-light);
  line-height: 1.7;
  font-style: normal;
  border-left: 2px solid var(--c-primary);
  padding-left: 24px;
  margin-bottom: 24px;
  font-weight: 400;
}
.testimonial-author { display:flex;align-items:center;gap:14px; }
.ta-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display:block;font-size:0.92rem;color:var(--c-light); }
.testimonial-author span   { font-size:0.82rem;color:var(--c-muted); }

.testimonial-controls { display:flex;justify-content:center;gap:8px;margin-top:32px; }
.tc-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--c-border-2);
  transition: background 0.3s, width 0.3s var(--ease);
}
.tc-dot.active { background: var(--c-primary); width: 24px; }


/* ════════════════════════════════════════════
   REGIONAL PRESENCE
════════════════════════════════════════════ */
.regions-section {
  background: var(--c-bg);
  overflow: hidden;
}

.regions-bg-glow {
  position: absolute;
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(123, 92, 255, 0.07) 0%,
    transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── Two-column card grid ── */
.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

/* ── Individual region card ── */
.region-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 36px 36px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.region-card:hover {
  border-color: rgba(123, 92, 255, 0.4);
  box-shadow:
    0 0 48px rgba(123, 92, 255, 0.14),
    0 24px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* Subtle glow behind card on hover */
.region-card-glow {
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  border-radius: inherit;
}
.region-card:hover .region-card-glow {
  opacity: 1;
}

/* ── Top row: flag + identity ── */
.region-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.region-flag {
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  line-height: 0;
}

.region-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-country {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.region-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-light);
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.region-divider {
  width: 100%;
  height: 1px;
  background: var(--c-border);
  margin-bottom: 24px;
}

/* ── Body: description + Instagram link ── */
.region-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.region-desc {
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Instagram CTA link ── */
.region-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border-2);
  background: rgba(123, 92, 255, 0.06);
  color: var(--c-primary-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  align-self: flex-start;
}

.region-ig-link:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(123, 92, 255, 0.35);
}

.region-ig-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.region-ig-handle {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
}

.region-ig-arrow {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.region-ig-link:hover .region-ig-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* ── Decorative accent bar ── */
.region-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.6;
  transition: opacity 0.4s var(--ease);
}
.region-card:hover .region-accent { opacity: 1; }

.region-accent--oman {
  background: linear-gradient(90deg,
    #DB161B 0%,
    rgba(123,92,255,0.6) 50%,
    transparent 100%);
}
.region-accent--algeria {
  background: linear-gradient(90deg,
    #006233 0%,
    rgba(123,92,255,0.6) 50%,
    transparent 100%);
}

/* ── Unifying tagline row ── */
.regions-unity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
}

.regions-unity-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-2), transparent);
}

.regions-unity-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .region-card {
    padding: 28px 24px 26px;
  }
  .regions-unity { margin-top: 32px; }
  .regions-unity-text { letter-spacing: 0.12em; font-size: 0.68rem; }
}

@media (max-width: 480px) {
  .region-ig-link { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════
   CTA BAND
════════════════════════════════════════════ */
.cta-band {
  background: var(--c-bg-2);
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: var(--grad-glow);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--c-light);
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}


/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact-section { background: var(--c-bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
}
.contact-desc {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  margin-top: 8px;
}
.contact-info { display:flex;flex-direction:column;gap:24px; }
.ci-item { display:flex;align-items:flex-start;gap:16px; }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(123,92,255,0.1);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-2);
  flex-shrink: 0;
}
.ci-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.ci-value { font-size: 0.92rem; color: var(--c-light); transition: color 0.25s; }
a.ci-value:hover { color: var(--c-primary-2); }

/* Form */
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.form-row { display:grid;grid-template-columns:1fr 1fr;gap:20px; }
.form-group { display:flex;flex-direction:column;gap:8px;margin-bottom:20px; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--c-light);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}
.form-input::placeholder { color: rgba(230,230,230,0.22); }
.form-input:focus {
  border-color: var(--c-primary);
  background: rgba(123,92,255,0.06);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option { background: var(--c-bg); color: var(--c-light); }
.form-textarea { resize: vertical; min-height: 100px; font-family: var(--font); }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(123,92,255,0.1);
  border: 1px solid rgba(123,92,255,0.3);
  color: var(--c-primary-2);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 92, 108, 0.1);
  border: 1px solid rgba(255, 92, 108, 0.3);
  color: #ff5c6c;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}


/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(123,92,255,0.06) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--c-border);
}
.footer-logo { display:block;margin-bottom:12px; }
.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-social { display:flex;gap:12px; }
.social-link {
  width: 38px; height: 38px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.social-link:hover {
  color: var(--c-primary-2);
  border-color: var(--c-primary);
  background: rgba(123,92,255,0.1);
  transform: translateY(-3px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-light);
  margin-bottom: 20px;
}
.footer-col ul { display:flex;flex-direction:column;gap:10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--c-muted);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--c-primary-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(230,230,230,0.28);
}
.footer-legal { display:flex;gap:24px; }
.footer-legal a { color: rgba(230,230,230,0.28); transition: color 0.25s; }
.footer-legal a:hover { color: var(--c-muted); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,92,255,0.4);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  z-index: 900;
  opacity: 0;
}
.back-to-top:not([hidden]) { opacity: 1; }
.back-to-top:hover { transform: translateY(-4px); }


/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid-new { grid-template-columns: repeat(3, 1fr); }
  /* 5 → 4 columns for portfolio at slightly below full-width */
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  /* Packages: 2 columns, featured card loses its scale-up */
  .packages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pkg-card--featured { transform: none; }
  .pkg-card--featured:hover { transform: translateY(-6px) scale(1.01); }
}

@media (max-width: 1024px) {
  .about-grid   { gap: 48px; }
  .contact-grid { gap: 48px; }
  .footer-top   { gap: 48px; }
  /* 5 → 3 columns on tablet */
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav   { grid-template-columns: repeat(3, 1fr); }
  .services-grid-new { grid-template-columns: repeat(3, 1fr); }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: 1; grid-row: auto; }
  .work-card--wide  { grid-column: 1; grid-row: auto; }
}

@media (max-width: 768px) {
  /* Disable heavy background animations on mobile to improve render/scroll perf */
  .orb-1, .orb-2, .orb-3 {
    animation: none !important;
  }

  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .services-grid-new { grid-template-columns: repeat(2, 1fr); }

  /* Packages: single column */
  .packages-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .pkg-card--featured { transform: none; box-shadow: 0 0 0 1px rgba(123,92,255,0.35), 0 0 40px rgba(123,92,255,0.12); }
  .pkg-card--featured:hover { transform: translateY(-4px); }
  .pkg-spec-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .pkg-spec-action { width: 100%; }
  .pkg-spec-action .btn { width: 100%; justify-content: center; }
  .pkg-final-cta { padding: 56px 24px; margin-top: 40px; }

  .hero-stats { flex-direction: column; }
  .stat-item  { padding: 20px 40px; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }

  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-nav    { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .process-line { left: 27px; }

  /* Scroll-snap row for mobile: show 2 at a time */
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .pv-card { scroll-snap-align: start; }
}

@media (max-width: 540px) {
  .services-grid-new { grid-template-columns: repeat(2, 1fr); }
  .about-visual { grid-template-columns: 1fr; }
  .av-card-3 { grid-column: 1; }
  .hero-actions { flex-direction: column; align-items: center; }
  .clients-logo-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .pkg-inner { padding: 24px 20px; }
  .pkg-title { font-size: 1.5rem; }

  /* On phones show 2 columns still — portrait videos are narrow enough */
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .services-grid-new { grid-template-columns: 1fr; }
  /* Very small phones: single column */
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Modal responsive adjustments ── */
@media (max-width: 540px) {
  .pv-modal { padding: 22px 18px 12px; align-items: center; }
  /* keep the 9:16 player + info + close button inside the visible viewport */
  .pv-modal-panel { max-width: min(100%, calc((100vh - 190px) * 0.5625)); gap: 14px; }
  .pv-modal-close { top: -12px; right: -8px; }
  .pv-modal-frame-wrap { border-radius: var(--radius-lg); }
}

@media (max-height: 700px) and (orientation: landscape) {
  /* Landscape phones: switch modal to 16:9 wide format */
  .pv-modal { align-items: center; }
  .pv-modal-panel { max-width: 70vh; }
  .pv-modal-frame-wrap { padding-top: 56.25%; } /* 16:9 */
  .pv-modal-info { display: none; }
}


/* ═══════════════════════════════════════════════
   LANGUAGE SELECTOR  (EN · AR · FR)
═══════════════════════════════════════════════ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--c-border-2);
  background: rgba(123,92,255,0.08);
  color: var(--c-primary-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s, box-shadow 0.3s;
}
.lang-btn:hover,
.lang-selector.open .lang-btn {
  background: rgba(123,92,255,0.18);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 22px rgba(123,92,255,0.25);
}
.lang-globe-icon, .lang-chevron { display: inline-flex; align-items: center; }
.lang-chevron svg { transition: transform 0.3s var(--ease); }
.lang-selector.open .lang-chevron svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  padding: 6px;
  background: rgba(13,13,26,0.94);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 0 40px rgba(123,92,255,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  z-index: 1100;
}
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--c-muted);
  text-align: start;
  font-size: 0.88rem;
  transition: background 0.25s, color 0.25s;
}
.lang-option:hover { background: rgba(123,92,255,0.1); color: var(--c-light); }
.lang-code {
  min-width: 26px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-primary-2);
}
.lang-name { flex: 1; font-weight: 500; }
.lang-option.is-active { background: rgba(123,92,255,0.14); color: var(--c-light); }
.lang-option.is-active::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-primary-2);
  box-shadow: 0 0 10px rgba(167,139,250,0.9);
}

/* Mobile-menu language bar */
.mobile-menu { flex-direction: column; gap: 28px; }
.mobile-lang-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mobile-lang-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.mobile-lang-options { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mobile-lang-btn {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--c-border-2);
  background: rgba(255,255,255,0.04);
  color: var(--c-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.mobile-lang-btn:hover { color: var(--c-light); border-color: var(--c-primary-2); }
.mobile-lang-btn.is-active {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,92,255,0.4);
}
.mobile-links { gap: 4px; }

/* Nav fit: the extra selector needs a little room before the hamburger takes over */
@media (max-width: 1180px) {
  .nav-link { padding: 8px 10px; font-size: 0.84rem; }
  .nav-links { gap: 2px; }
  .nav-cta { margin-inline-start: 4px; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .mobile-link { font-size: 1.6rem; padding: 6px 24px; }
}
@media (max-width: 400px) {
  .lang-btn .lang-globe-icon { display: none; }
}


/* ═══════════════════════════════════════════════
   RTL / ARABIC  (html[dir="rtl"], html[lang="ar"])
═══════════════════════════════════════════════ */
html[lang="ar"] { --font: 'Cairo', 'Space Grotesk', system-ui, sans-serif; }

/* Arabic is a connected script: no tracking, taller line boxes */
html[dir="rtl"] body *,
html[dir="rtl"] body *::before,
html[dir="rtl"] body *::after { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .hero-title   { line-height: 1.3; }
html[lang="ar"] .section-title,
html[lang="ar"] .cta-title,
html[lang="ar"] .pkg-final-cta-title { line-height: 1.4; }
html[lang="ar"] .pkg-title,
html[lang="ar"] .pkg-spec-title,
html[lang="ar"] .ps-title,
html[lang="ar"] .wc-title { line-height: 1.5; }

/* Navigation / selector */
html[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; transform-origin: top left; }
html[dir="rtl"] .mobile-link:hover { transform: translateX(-8px); }

/* Latin-only items stay left-to-right inside RTL text */
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] .region-ig-handle,
html[dir="rtl"] a.ci-value[href*="instagram"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* The marquee animates in physical X; keep its track LTR */
html[dir="rtl"] .marquee-strip { direction: ltr; }

/* Directional arrows in buttons point the reading direction */
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .region-ig-arrow { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .region-ig-link:hover { transform: translateX(-4px); }
html[dir="rtl"] .region-ig-link:hover .region-ig-arrow { transform: scaleX(-1) translate(3px, -3px); }

/* Process timeline rail */
html[dir="rtl"] .process-line { left: auto; right: 28px; }

/* Testimonial quote rule */
html[dir="rtl"] .testimonial-quote { border-left: 0; border-right: 2px solid var(--c-primary); padding-left: 0; padding-right: 24px; }

/* Select chevron */
html[dir="rtl"] .form-select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }

/* Gradients that fade "to the end" */
html[dir="rtl"] .pkg-divider--featured { background: linear-gradient(270deg, rgba(123,92,255,0.6) 0%, rgba(167,139,250,0.3) 60%, transparent 100%); }
html[dir="rtl"] .region-accent--oman    { background: linear-gradient(270deg, #DB161B 0%, rgba(123,92,255,0.6) 50%, transparent 100%); }
html[dir="rtl"] .region-accent--algeria { background: linear-gradient(270deg, #006233 0%, rgba(123,92,255,0.6) 50%, transparent 100%); }

/* Floating elements */
html[dir="rtl"] .back-to-top { right: auto; left: 32px; }
html[dir="rtl"] .pv-modal-close { right: auto; left: -14px; }
html[dir="rtl"] .svc-badge { right: auto; left: 14px; }

@media (max-width: 768px) {
  html[dir="rtl"] .process-line { left: auto; right: 27px; }
}

/* backdrop-filter on the scrolled navbar would trap the fixed mobile menu inside the 76px bar */
#navbar.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }


/* ─── Navbar brand logo (image) ─── */
#navbar .nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
#navbar .nav-logo img { height: 30px; width: auto; display: block; }
@media (max-width: 768px) { #navbar .nav-logo img { height: 24px; } }

/* ─── Mobile fixes: stop the about-section slide-in start state widening the page; fit longer hero words on 320px ─── */
.about-section { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 380px) {
  .hero-title { font-size: 2.6rem; }
}

@supports (height: 100dvh) {
  @media (max-width: 540px) {
    .pv-modal-panel { max-width: min(100%, calc((100dvh - 190px) * 0.5625)); }
  }
}
@media (max-width: 540px) { html[dir="rtl"] .pv-modal-close { left: -8px; right: auto; } }

/* ─── About: closing statement (replaces the old pillars block) ─── */
.about-closing {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--c-light);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border-2);
}
/* footer logo image replaces the text wordmark */
.footer-logo img { height: 30px; width: auto; display: block; }

/* ─── Portfolio category filters ─── */
.pv-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 1000px;
}
.pv-filter {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  background: rgba(123, 92, 255, 0.05);
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pv-filter:hover { color: var(--c-light); border-color: rgba(123, 92, 255, 0.55); transform: translateY(-1px); }
.pv-filter:focus-visible { outline: 2px solid var(--c-primary-2); outline-offset: 2px; }
.pv-filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.45), rgba(123, 92, 255, 0.22));
  border-color: var(--c-primary-2);
  box-shadow: 0 0 22px rgba(123, 92, 255, 0.3);
}
.pv-card[hidden] { display: none !important; }
.pv-empty {
  text-align: center;
  color: var(--c-muted);
  font-size: 1rem;
  padding: 56px 20px;
  border: 1px dashed var(--c-border-2);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
}
.pv-empty[hidden] { display: none; }
@media (max-width: 768px) {
  /* one swipeable row of tabs on phones/tablets instead of many wrapped rows */
  .pv-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px 2px 10px;
  }
  .pv-filters::-webkit-scrollbar { display: none; }
  .pv-filter { flex: 0 0 auto; padding: 9px 16px; min-height: 40px; }
}

/* ─── Portfolio image-gallery project (card + lightbox) ─── */
.pv-card--gallery .pv-thumbnail { object-fit: contain; background: #0a0a14; }  /* show the whole artwork, never crop */
#pv-lightbox .pv-modal-panel { max-width: min(96vw, 980px); gap: 14px; }
.pv-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
}
.pv-lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border-2);
  box-shadow: 0 0 60px rgba(123, 92, 255, 0.3), 0 32px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
#pv-lightbox .pv-modal-close { top: 10px; right: 10px; }
html[dir="rtl"] #pv-lightbox .pv-modal-close { right: auto; left: 10px; }
.pv-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border-2);
  background: rgba(10, 10, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pv-lb-nav[hidden] { display: none; }
.pv-lb-nav:hover { background: rgba(123, 92, 255, 0.55); border-color: var(--c-primary-2); box-shadow: 0 0 20px rgba(123, 92, 255, 0.4); }
.pv-lb-prev { left: 10px; }
.pv-lb-next { right: 10px; }
html[dir="rtl"] .pv-lb-prev { left: auto; right: 10px; }
html[dir="rtl"] .pv-lb-next { right: auto; left: 10px; }
html[dir="rtl"] .pv-lb-nav svg { transform: scaleX(-1); }
@media (max-width: 540px) {
  .pv-lb-nav { width: 38px; height: 38px; }
  .pv-lb-img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
}
