/* ═══════════════════════════════════════════════════════════════════
   VIBE OS 4.0 — UNIVERSAL NAV + FOOTER SYSTEM
   Awalim Group × Ahmed Ashraf
   Used by: ALL pages (blog, store, services, courses, portfolio, etc.)
   Zero dependencies — self-contained glassmorphism system
═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --vn-primary:      #a3cf2b;
  --vn-teal:         #00897b;
  --vn-bg-dark:      #021a1e;
  --vn-text:         #e8edf2;
  --vn-glass-bg:     rgba(2, 18, 22, 0.92);
  --vn-glass-border: rgba(163, 207, 43, 0.12);
  --vn-link-idle:    rgba(255, 255, 255, 0.68);
  --vn-link-hover:   rgba(255, 255, 255, 1);
  --vn-radius-btn:   10px;
  --vn-radius-pill:  100px;
  --vn-height:       70px;
  --vn-transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --vn-font-ar:      'Cairo', sans-serif;
  --vn-font-en:      'Space Grotesk', 'Outfit', sans-serif;
}

/* ── RESET GUARD ───────────────────────────────────────────────── */
.vibe-nav *,
.vibe-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body offset — floating pill nav: reduced to 90px for breathing room */
.vibe-body-offset {
  padding-top: 90px;
}

/* ════════════════════════════════════════════════════════════════
   1. NAVIGATION — WORLD-CLASS FLOATING PILL
   Inspired by: Apple, Linear, NEXIO, Vercel
   Features: Glider, Shimmer, Entrance, Magnetic, Spring physics
════════════════════════════════════════════════════════════════ */

/* ── Entrance animation ─────────────────────────────────── */
@keyframes nav-enter {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Pill shimmer sweep ──────────────────────────────────── */
@keyframes pill-shimmer {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(320%) skewX(-15deg); }
}

/* ── Glider glow pulse — filter is GPU-composited ──────── */
@keyframes glider-pulse {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0px rgba(163,207,43,0)); }
  50%       { filter: brightness(1.08) drop-shadow(0 0 8px rgba(163,207,43,0.5)); }
}

.vibe-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  direction: ltr; /* Force LTR layout — nav is always LTR regardless of page RTL */
  height: var(--vn-height);
  z-index: 9999;
  background: transparent;
  border-bottom: none;
  animation: nav-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Scrolled — pill gets stronger glass */
.vibe-nav.scrolled .vn-links {
  background: rgba(3, 10, 15, 0.94);
  border-color: rgba(163, 207, 43, 0.22);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(163, 207, 43, 0.07) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Hidden (scroll down) */
.vibe-nav.nav-hidden {
  transform: translateY(-120%);
}

/* Inner wrapper — 3-column grid: logo | pill | actions */
.vibe-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  direction: ltr;
}

/* Logo → left column */
.vibe-nav-inner > .vn-logo {
  justify-self: start;
}

/* Pill → center column */
.vibe-nav-inner > .vn-links {
  justify-self: center;
  position: relative; /* keeps glider positioned correctly */
  transform: none;
  left: auto;
}

/* Actions → right column */
.vibe-nav-inner > .vn-actions {
  justify-self: end;
}

/* ── LOGO ─────────────────────────────────────────────────── */
.vn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0;
  animation: nav-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vn-logo:hover {
  opacity: 0.85;
  transform: scale(0.97);
}

.vn-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(163, 207, 43, 0.3));
}

.vn-logo-text {
  font-family: var(--vn-font-en);
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.vn-logo-text span {
  color: var(--vn-primary);
}

/* ── FLOATING PILL CONTAINER ──────────────────────────────── */
.vn-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1px;
  /* Note: absolute+translateX here is overridden by the CSS Grid parent.
     The grid (.vibe-nav-inner) centers this via justify-self:center.
     Kept for non-grid fallback contexts only. */
  position: relative;
  /* Glass pill */
  background: rgba(6, 14, 20, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  padding: 5px 5px;
  /* Depth shadow */
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  /* Entrance */
  opacity: 0;
  animation: nav-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  /* Shimmer host */
  overflow: hidden;
}

/* Shimmer sweep on the pill */
.vn-links::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  animation: pill-shimmer 5s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
  border-radius: inherit;
}

.vn-links li {
  list-style: none;
  position: relative;
  z-index: 1;
}

/* ── GLIDER — the sliding indicator (injected by JS) ──────── */
.vn-glider {
  position: absolute;
  top: 5px;
  height: calc(100% - 10px);
  border-radius: 100px;
  pointer-events: none;
  z-index: 0;
  transition:
    left   0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    width  0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s ease,
    opacity 0.18s ease;
  will-change: left, width;
}

/* Active state — lime fill + glow */
.vn-glider.is-active {
  background: var(--vn-primary);
  animation: glider-pulse 3s ease-in-out infinite;
}

/* Hover state — subtle white fill */
.vn-glider.is-hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ── LINKS ─────────────────────────────────────────────────── */
.vn-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  color: rgba(255, 255, 255, 0.72); /* was 0.58 — WCAG AA ~4.8:1 */
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
  -webkit-user-select: none;
          user-select: none;
}

.vn-link:hover,
.vn-link:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  outline: none;
}

.vn-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(163, 207, 43, 0.6);
}

.vn-link.active,
.vn-link[aria-current="page"] {
  color: #021a1e;
  font-weight: 700;
}

/* Store link */
.vn-store-link {
  color: var(--vn-primary) !important;
  font-weight: 700 !important;
}

/* ── ACTIONS ──────────────────────────────────────────────── */
.vn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0;
  animation: nav-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Circle icon btn */
.vn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.vn-btn:focus-visible {
  outline: 2px solid rgba(163, 207, 43, 0.7);
  outline-offset: 2px;
}

.vn-btn:hover {
  background: rgba(163, 207, 43, 0.12);
  border-color: rgba(163, 207, 43, 0.3);
  color: var(--vn-primary);
  box-shadow: 0 0 20px rgba(163, 207, 43, 0.18);
  transform: translateY(-1px);
}

/* ── CTA — NEXIO-style white pill ─────────────────────────── */
.vn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  color: #07111a !important;
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              background 0.2s ease;
  will-change: transform;
}

/* Inner shimmer */
.vn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.vn-cta:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0,0,0,0.35);
}

.vn-cta:hover::before {
  transform: translateX(100%);
}

.vn-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Mobile CTA */
.vn-mob-cta { margin-top: 8px; text-align: center; justify-content: center; }
.vn-mob-store { color: #a3cf2b !important; font-weight: 800 !important; }

/* Lang button label */
.vn-lang-label {
  font-size: 11px;
  font-weight: 800;
  margin-right: 2px;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* Sound btn — icon stacks over waves */
.vn-btn-sound { position: relative; }
.vn-btn-sound .sound-waves { position: absolute; pointer-events: none; }
.vn-sound-icon { position: relative; z-index: 1; }
.vn-theme-icon { font-size: 14px; }

/* ── HAMBURGER ─────────────────────────────────────────────────── */
.vn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--vn-radius-btn);
  padding: 8px;
  transition: background var(--vn-transition), border-color var(--vn-transition);
  flex-shrink: 0;
}

.vn-hamburger:hover {
  background: rgba(163, 207, 43, 0.1);
  border-color: rgba(163, 207, 43, 0.3);
}

.vn-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    background 0.25s ease;
  transform-origin: center;
}

.vn-hamburger.active span:first-child {
  transform: translateY(7px) rotate(45deg);
  background: var(--vn-primary);
}

.vn-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.vn-hamburger.active span:last-child {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--vn-primary);
}

/* ── MOBILE MENU ───────────────────────────────────────────────── */
.vn-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  position: absolute;
  top: var(--vn-height);
  left: 0;
  right: 0;
  background: rgba(2, 14, 18, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--vn-glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.vn-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vn-mobile .vn-link {
  padding: 12px 16px;
  font-size: var(--text-sm);
  border-radius: var(--vn-radius-btn);
  width: 100%;
}

.vn-mobile .vn-cta {
  margin-top: 8px;
  justify-content: center;
  padding: 13px 22px;
}

/* ════════════════════════════════════════════════════════════════
   2. PAGE TRANSITIONS
════════════════════════════════════════════════════════════════ */

.page-transition {
  position: fixed;
  inset: 0;
  background: var(--vn-bg-dark);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.exiting {
  opacity: 1;
  pointer-events: auto;
}

body.entering .page-transition {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   3. SCROLL REVEAL
════════════════════════════════════════════════════════════════ */

.reveal-up,
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-up.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.reveal-fade.visible {
  opacity: 1;
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1)  { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: 0.19s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: 0.26s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: 0.33s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════
   4. UNIVERSAL PAGE HERO
════════════════════════════════════════════════════════════════ */

.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Animated gradient orb */
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(163, 207, 43, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 60%, rgba(0, 137, 123, 0.09) 0%, transparent 65%);
  pointer-events: none;
  animation: heroOrbShift 8s ease-in-out infinite alternate;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--vn-bg-dark, #021a1e));
  pointer-events: none;
}

/* Chip / badge */
.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--vn-radius-pill);
  background: rgba(163, 207, 43, 0.08);
  border: 1px solid rgba(163, 207, 43, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.78); /* was 0.65 — better contrast */
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.6s ease both;
}

.ph-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vn-primary);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Title */
.ph-title {
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.65s 0.1s ease both;
}

.ph-title span {
  background: linear-gradient(135deg, var(--vn-primary) 0%, var(--vn-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.ph-desc {
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.70); /* was 0.52 — too low contrast */
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: var(--text-base);
  line-height: 1.85;
  animation: fadeInUp 0.7s 0.2s ease both;
}

/* ════════════════════════════════════════════════════════════════
   5. FOOTER
════════════════════════════════════════════════════════════════ */

.vibe-footer {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(2, 10, 14, 0.8) 30%,
    #020c10 100%
  );
  border-top: 1px solid rgba(163, 207, 43, 0.1);
  padding: 60px 24px 32px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.vibe-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163, 207, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 207, 43, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

.vf-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 4-column grid */
.vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 32px;
  align-items: start;
}

/* ── Brand column ───────────────────────────────────────────────── */
.vf-brand {
  display: flex;
  flex-direction: column;
}

.vf-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.vf-logo-text {
  font-family: var(--vn-font-en);
  font-weight: 900;
  font-size: var(--text-md);
  color: #ffffff;
  letter-spacing: var(--ls-snug);
}

.vf-logo-text span {
  color: var(--vn-primary);
}

.vf-tagline {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: var(--text-xs);
  line-height: 1.7;
  margin-top: 12px;
}

/* Dubai clock */
.vf-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-xs);
  margin-top: 14px;
  font-family: var(--vn-font-en);
}

.vf-clock i {
  color: var(--vn-primary);
  font-size: var(--text-xs);
}

.vf-clock-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* Social icons */
.vf-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.vf-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  text-decoration: none;
  transition:
    background var(--vn-transition),
    border-color var(--vn-transition),
    color var(--vn-transition),
    box-shadow var(--vn-transition),
    transform 0.22s ease;
}

.vf-social-btn:hover {
  background: rgba(163, 207, 43, 0.12);
  border-color: rgba(163, 207, 43, 0.35);
  color: var(--vn-primary);
  box-shadow: 0 0 16px rgba(163, 207, 43, 0.25);
  transform: scale(1.12);
}

/* ── Footer columns ─────────────────────────────────────────────── */
.vf-col h4 {
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--vn-font-en);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.vf-col a {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--vn-font-ar), var(--vn-font-en);
  font-size: var(--text-xs);
  padding: 5px 0;
  text-decoration: none;
  transition:
    color var(--vn-transition),
    padding-right var(--vn-transition),
    padding-left var(--vn-transition);
}

.vf-col a:hover {
  color: var(--vn-primary);
}

/* RTL shift on hover */
[dir="rtl"] .vf-col a:hover,
:root:not([dir="ltr"]) .vf-col a:hover {
  padding-right: 6px;
}

[dir="ltr"] .vf-col a:hover {
  padding-left: 6px;
}

/* ── Footer bottom bar ──────────────────────────────────────────── */
.vf-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.vf-rights {
  color: rgba(255, 255, 255, 0.18);
  font-size: var(--text-xs);
  font-family: var(--vn-font-ar), var(--vn-font-en);
}

.vf-palestine {
  color: rgba(255, 255, 255, 0.28);
  font-size: var(--text-xs);
  font-family: var(--vn-font-ar), var(--vn-font-en);
  display: flex;
  align-items: center;
  gap: 5px;
}

.vf-palestine .heart {
  color: #ef4444;
  display: inline-block;
  animation: heartBeat 1.6s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════════
   6. KEYFRAMES
════════════════════════════════════════════════════════════════ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(163, 207, 43, 0.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.88);
    box-shadow: 0 0 0 5px rgba(163, 207, 43, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroOrbShift {
  from {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translateX(-50%) scale(1.08) translateY(-12px);
    opacity: 1;
  }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.25); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.18); }
  56%       { transform: scale(1); }
}

/* ════════════════════════════════════════════════════════════════
   7. RESPONSIVE — Tablet + Mobile
════════════════════════════════════════════════════════════════ */

/* ── TABLET 769-1100px: reduce actions to prevent pill overlap ── */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Hide voice + sound on medium screens to free space for pill */
  #voiceToggle,
  #soundToggle {
    display: none;
  }

  /* Tighten pill links */
  .vn-link {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  /* Reduce inner padding */
  .vibe-nav-inner {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  /* Hide desktop links, show hamburger */
  .vn-links {
    display: none;
  }

  .vn-hamburger {
    display: flex;
  }

  /* Tighten up desktop-only elements */
  .vn-cta {
    display: none;
  }

  .vn-cta-mobile {
    display: inline-flex;
  }

  /* Footer grid → single column */
  .vf-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer bottom → stacked */
  .vf-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .vf-rights,
  .vf-palestine {
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 20px 60px;
  }

  .ph-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .ph-desc {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .vibe-nav-inner {
    padding: 0 16px;
  }

  .vn-logo-text {
    font-size: var(--text-sm);
  }

  .vf-social {
    gap: 6px;
  }
}

/* ════════════════════════════════════════════════════════════════
   8. ACCESSIBILITY + REDUCED MOTION
════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .vibe-nav,
  .vn-link,
  .vn-btn,
  .vn-cta,
  .vf-social-btn,
  .vf-col a,
  .reveal-up,
  .reveal,
  .reveal-fade,
  .reveal-stagger > * {
    transition: none !important;
    animation: none !important;
  }

  .ph-dot,
  .page-hero::before,
  .vf-palestine .heart,
  .ph-chip,
  .ph-title,
  .ph-desc {
    animation: none !important;
  }

  .reveal-up,
  .reveal,
  .reveal-fade,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-transition {
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   9. RTL OVERRIDES
════════════════════════════════════════════════════════════════ */

[dir="rtl"] .vibe-nav-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .vn-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .vn-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .vf-bottom {
  flex-direction: row-reverse;
}

[dir="rtl"] .vf-social {
  flex-direction: row-reverse;
}

/* ════════════════════════════════════════════════════════════════
   10. FOCUS STATES (keyboard nav)
════════════════════════════════════════════════════════════════ */

.vn-link:focus-visible,
.vn-btn:focus-visible,
.vn-cta:focus-visible,
.vf-social-btn:focus-visible,
.vf-col a:focus-visible {
  outline: 2px solid var(--vn-primary);
  outline-offset: 3px;
  border-radius: var(--vn-radius-btn);
}
