/* =========================================================
   MOSTAFA SAAD — DATA, ML & FOOTBALL ANALYTICS DESIGN SYSTEM
   Dark Obsidian + Signal Cyan + Neural Violet + Pitch Emerald
   ========================================================= */

:root {
  /* True AMOLED Pure Black Palette */
  --bg: #000000;
  --bg-elev: #07070b;
  --surface: rgba(10, 11, 16, 0.84);
  --surface-strong: rgba(5, 6, 10, 0.96);
  --surface-inset: rgba(0, 0, 0, 0.82);
  --border: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(0, 229, 255, 0.5);

  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --grad-main: linear-gradient(135deg, #00e5ff 0%, #8b5cf6 52%, #10b981 100%);
  --grad-btn: linear-gradient(135deg, #00c8ff 0%, #7c3aed 100%);
  --shadow-glow: 0 0 0 1px rgba(0, 229, 255, 0.18), 0 24px 64px -16px rgba(0, 229, 255, 0.22);

  --font-display: 'Space Grotesk', 'Cairo', system-ui, sans-serif;
  --font-body: 'Inter', 'Cairo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

/* Light Theme Override */
html[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.97);
  --surface-inset: rgba(241, 245, 249, 0.92);
  --border: rgba(15, 23, 42, 0.11);
  --border-hover: rgba(14, 116, 144, 0.42);

  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --cyan: #0284c7;
  --violet: #6d28d9;
  --violet-soft: #7c3aed;
  --emerald: #059669;
  --amber: #d97706;
  --shadow-glow: 0 18px 48px -16px rgba(15, 23, 42, 0.14);
}

html[dir="rtl"] {
  --font-display: 'Cairo', 'Space Grotesk', sans-serif;
  --font-body: 'Cairo', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-main);
  z-index: 250;
  transition: width 0.08s linear;
}

/* Subtle Coordinate Grid + Ambient Orbs (AMOLED tuned) */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.13;
  z-index: -2;
  pointer-events: none;
}
html[data-theme="light"] .ambient-orb { opacity: 0.11; }
.orb-cyan { width: 520px; height: 520px; background: #00e5ff; top: -160px; left: -120px; }
.orb-violet { width: 540px; height: 540px; background: #8b5cf6; top: 140px; right: -180px; }
.orb-emerald { width: 420px; height: 420px; background: #10b981; bottom: -160px; left: 32%; }

/* Utility */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.cyan { color: var(--cyan); }
.violet { color: var(--violet-soft); }
.emerald { color: var(--emerald); }
.full-w { width: 100%; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
}
html[data-theme="light"] .glass {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .navbar {
  background: rgba(244, 247, 251, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.navbar.scrolled {
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-name .accent-dot { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 1.35rem; white-space: nowrap; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cyan); }
.nav-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; white-space: nowrap; }

.icon-btn,
.lang-toggle {
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.lang-toggle {
  padding: 0.42rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}
.icon-btn:hover,
.lang-toggle:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-sm { padding: 0.48rem 1rem; font-size: 0.84rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.96rem; }
.btn-primary {
  background: var(--grad-btn);
  color: #ffffff;
  box-shadow: 0 10px 28px -6px rgba(124, 58, 237, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(0, 229, 255, 0.42);
}
.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.09);
  transform: translateY(-2px);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  padding: 7.4rem 0 4.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.52;
  pointer-events: none;
}
html[data-theme="light"] #neuralCanvas { opacity: 0.28; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.8rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: var(--emerald);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.35rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.1vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
html[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.28; }

.gradient-text {
  display: block;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 550px;
  margin-bottom: 1.9rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.1rem; }
.hero-stack-strip { display: flex; flex-direction: column; gap: 0.6rem; }
.strip-label { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-dim); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.34rem 0.72rem;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
}
.chip-row.small .tech-chip { font-size: 0.72rem; padding: 0.25rem 0.58rem; }

/* Telemetry Hero Card */
.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.telemetry-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: var(--shadow-glow);
}
.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 7px; }
.window-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #10b981; }

.telemetry-tabs {
  display: flex;
  gap: 0.3rem;
  background: rgba(148, 163, 184, 0.1);
  padding: 3px;
  border-radius: 10px;
}
.t-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.32rem 0.68rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.t-tab.active {
  background: rgba(0, 229, 255, 0.18);
  color: var(--cyan);
}

.telemetry-body { padding: 1.2rem; }
.telemetry-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.meta-tag { font-size: 0.71rem; color: var(--cyan); letter-spacing: 0.06em; }
.viz-title { font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; margin-top: 0.15rem; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s infinite; }

.chart-stage {
  position: relative;
  height: 215px;
  border-radius: 12px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
#heroChart { width: 100%; height: 100%; display: block; }
.chart-tooltip {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.71rem;
  background: var(--surface-strong);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.chart-tooltip.show { opacity: 1; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin-bottom: 0.9rem; }
.kpi-box {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}
.kpi-label { font-size: 0.66rem; color: var(--text-dim); letter-spacing: 0.06em; }
.kpi-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.kpi-delta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--emerald); }

.terminal-bar {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
}
.terminal-bar .prompt { color: var(--cyan); margin-right: 0.5rem; font-weight: 600; }

.floating-badge {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 1.15rem;
  border-radius: 14px;
  border-color: rgba(16, 185, 129, 0.34);
  width: 100%;
  margin-top: 0.15rem;
  transform: none !important;
  animation: none !important;
}
html[dir="rtl"] .floating-badge { left: auto; right: auto; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.fb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  display: grid;
  place-items: center;
}
.fb-num { font-weight: 700; color: var(--emerald); font-size: 0.98rem; }
.fb-sub { font-size: 0.75rem; color: var(--text-muted); }

/* =========================================================
   METRICS STRIP
   ========================================================= */
.metrics-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2.1rem 0;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.metric-value {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* =========================================================
   SECTIONS SHARED
   ========================================================= */
.section { padding: 5.2rem 0; }
.section-head { max-width: 700px; margin-bottom: 2.8rem; }
.section-head.row-head {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.section-eyebrow { display: inline-block; font-size: 0.77rem; color: var(--cyan); letter-spacing: 0.08em; margin-bottom: 0.55rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.1vw, 2.55rem); line-height: 1.18; font-weight: 700; margin-bottom: 0.7rem; }
.section-desc { color: var(--text-muted); font-size: 1rem; }

/* =========================================================
   EXPERTISE CARDS
   ========================================================= */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.exp-card {
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.exp-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.exp-card[data-accent="violet"]:hover { border-color: rgba(167, 139, 250, 0.55); }
.exp-card[data-accent="emerald"]:hover { border-color: rgba(16, 185, 129, 0.55); }
.exp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.cyan-bg { background: rgba(0, 229, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.28); }
.violet-bg { background: rgba(139, 92, 246, 0.14); color: var(--violet-soft); border: 1px solid rgba(139, 92, 246, 0.3); }
.emerald-bg { background: rgba(16, 185, 129, 0.12); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.28); }
.exp-card h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 0.6rem; }
.exp-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.35rem; }
.exp-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.exp-skills li {
  font-size: 0.73rem;
  padding: 0.28rem 0.62rem;
  border-radius: 7px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =========================================================
   LIVE INTERACTIVE xG ML SIMULATOR
   ========================================================= */
.sim-wrapper {
  border-radius: 22px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  border-color: rgba(16, 185, 129, 0.28);
}
.sim-pitch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.coord-pill {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.pitch-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  cursor: crosshair;
}
#simPitch { width: 100%; height: auto; display: block; user-select: none; }

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.preset-lbl { font-size: 0.7rem; color: var(--text-dim); margin-inline-end: 0.2rem; }
.preset-btn {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.71rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.preset-btn:hover { border-color: var(--emerald); color: var(--emerald); }

.xg-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.readout-label { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.06em; }
.xg-big {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.15;
  margin-top: 0.15rem;
}
.xg-pct { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.quality-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  white-space: nowrap;
}

.sim-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.sim-field { display: flex; flex-direction: column; gap: 0.35rem; }
.sim-field.full-span { grid-column: 1 / -1; }
.sim-field label { font-size: 0.72rem; color: var(--text-muted); }
.sim-field select {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.58rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}
.sim-field select:focus { border-color: var(--cyan); }
.slider-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; }
.sim-field input[type="range"] { accent-color: var(--cyan); cursor: pointer; }

.shap-box {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.shap-title { font-size: 0.69rem; color: var(--text-dim); letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.shap-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.shap-row {
  display: grid;
  grid-template-columns: 112px 1fr 52px;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
}
.shap-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  position: relative;
}
.shap-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}
.shap-fill.pos { background: linear-gradient(90deg, #00e5ff, #10b981); }
.shap-fill.neg { background: linear-gradient(90deg, #f59e0b, #f43f5e); }

/* =========================================================
   PROJECTS SECTION
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(148, 163, 184, 0.38); }
.filter-btn.active { background: rgba(0, 229, 255, 0.15); border-color: var(--cyan); color: var(--cyan); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--border-hover); }
.project-card.hidden { display: none; }

.project-viz { padding: 1.15rem 1.35rem 1rem; border-bottom: 1px solid var(--border); }
.viz-cyan { background: radial-gradient(circle at 80% 10%, rgba(0, 229, 255, 0.16), var(--surface-inset)); }
.viz-emerald { background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.18), var(--surface-inset)); }
.viz-violet { background: radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.2), var(--surface-inset)); }
.viz-amber { background: radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.17), var(--surface-inset)); }

.proj-cat { font-size: 0.7rem; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.45rem; }
.mini-graph { width: 100%; height: 86px; display: block; }
.proj-chart-preview {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0.45rem 0 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  cursor: zoom-in;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.proj-chart-preview:hover { transform: scale(1.015); border-color: var(--cyan); }
.viz-emerald .proj-chart-preview:hover { border-color: var(--emerald); }
.proj-chart-preview img { width: 100%; height: 126px; object-fit: cover; object-position: center; display: block; }
.proj-chart-preview .zoom-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.64rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.proj-metric { margin-top: 0.45rem; font-size: 0.75rem; font-weight: 600; color: var(--cyan); }
.viz-emerald .proj-metric { color: var(--emerald); }
.viz-violet .proj-metric { color: var(--violet-soft); }
.viz-amber .proj-metric { color: var(--amber); }

.project-body { padding: 1.45rem; display: flex; flex-direction: column; flex: 1; gap: 0.8rem; }
.project-body h3 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }
.project-body p { color: var(--text-muted); font-size: 0.92rem; }
.project-links { margin-top: auto; padding-top: 0.45rem; }
.text-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

/* =========================================================
   EXPERIENCE, EDUCATION & CERTIFICATIONS
   ========================================================= */
.career-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.8rem;
  align-items: start;
}
.timeline { display: flex; flex-direction: column; gap: 1.1rem; }
.tl-item {
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  border-inline-start: 3px solid var(--cyan);
  transition: transform 0.2s ease;
}
.tl-item:hover { transform: translateY(-3px); }
.tl-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.74rem;
  margin-bottom: 0.45rem;
}
.tl-date { color: var(--cyan); font-weight: 600; }
.tl-loc { color: var(--text-dim); }
.tl-item h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 0.15rem; }
.tl-org { font-size: 0.88rem; color: var(--emerald); font-weight: 600; margin-bottom: 0.55rem; }
.tl-item p { font-size: 0.9rem; color: var(--text-muted); }

.creds-col { display: flex; flex-direction: column; gap: 1.15rem; }
.cred-card { border-radius: var(--radius-md); padding: 1.45rem; }
.cred-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--violet-soft);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}
.cert-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.cert-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.cert-list strong { display: block; font-size: 0.93rem; }
.cert-list span.muted { font-size: 0.82rem; }
.cert-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.cert-dot.emerald { background: var(--emerald); }
.cert-dot.cyan { background: var(--cyan); }
.cert-dot.violet { background: var(--violet-soft); }
.cert-dot.amber { background: var(--amber); }

.edu-title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.25rem; }
.edu-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.35rem; }
.edu-years { font-size: 0.78rem; }

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-card {
  border-radius: 24px;
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  align-items: start;
  border-color: rgba(0, 229, 255, 0.22);
}
.contact-direct { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 1.1rem;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  max-width: 360px;
  font-size: 0.88rem;
}
.copy-email:hover { border-color: var(--cyan); }
.copy-tag {
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.social-links { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.social-pill {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  transition: color 0.2s, border-color 0.2s;
}
.social-pill:hover { color: var(--cyan); border-color: var(--cyan); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.38rem; }
.form-group label { font-size: 0.86rem; color: var(--text-muted); font-weight: 500; }
.form-group input,
.form-group textarea {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.76rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-feedback { font-size: 0.82rem; color: var(--emerald); min-height: 1.2rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 1.9rem 0; font-size: 0.83rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: min(100%, 620px);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(14px);
  transition: transform 0.22s ease;
}
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1.15rem;
  inset-inline-end: 1.15rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.modal-cat { font-size: 0.74rem; color: var(--cyan); letter-spacing: 0.08em; }
.modal-title { font-family: var(--font-display); font-size: 1.45rem; margin: 0.35rem 0 0.7rem; }
.modal-summary { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.modal-metrics { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1.25rem; }
.modal-metrics span {
  font-family: var(--font-mono);
  font-size: 0.77rem;
  padding: 0.35rem 0.72rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--emerald);
}
.modal-block h4 { font-size: 0.94rem; margin-bottom: 0.5rem; }
.modal-block ul {
  padding-inline-start: 1.2rem;
  color: var(--text-muted);
  font-size: 0.91rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .sim-wrapper,
  .career-grid,
  .contact-card,
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .floating-badge { position: static; margin-top: 1rem; width: fit-content; }
}
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 64px;
    inset-inline: 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    flex-direction: column;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 720px) {
  .projects-grid,
  .metrics-grid,
  .sim-inputs {
    grid-template-columns: 1fr;
  }
  .contact-card,
  .sim-wrapper { padding: 1.5rem; }
}


/* =========================================================
   KINETIC MOTION & DYNAMIC ANIMATIONS
   ========================================================= */

/* 1. Drifting Ambient Orbs */
.orb-cyan { animation: orbFloat1 16s ease-in-out infinite alternate; }
.orb-violet { animation: orbFloat2 20s ease-in-out infinite alternate; }
.orb-emerald { animation: orbFloat3 18s ease-in-out infinite alternate; }

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(75px, 55px) scale(1.12); }
  100% { transform: translate(25px, 110px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-85px, 60px) scale(1.15); }
  100% { transform: translate(-40px, -50px) scale(0.92); }
}
@keyframes orbFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(65px, -65px) scale(1.1); }
  100% { transform: translate(-50px, -25px) scale(1.04); }
}

/* 2. Animated Flowing Gradient Text */
.animated-gradient {
  background-size: 220% 220%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Live Typing Role Line */
.typing-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.24);
  padding: 0.36rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  max-width: 100%;
}
.typing-prefix { color: var(--emerald); font-weight: 700; }
.typing-cursor {
  color: var(--cyan);
  font-weight: 700;
  animation: blink 0.9s steps(2, start) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* 4. Infinite Telemetry Ticker Marquee */
.ticker-bar {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-inset);
  padding: 0.72rem 0;
  position: relative;
  direction: ltr;
}
.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.t-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.cyan-d { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.emerald-d { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.violet-d { background: var(--violet-soft); box-shadow: 0 0 8px var(--violet-soft); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 5. Interactive 3D Tilt & Cursor Spotlight on Cards */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 229, 255, 0.14),
    rgba(139, 92, 246, 0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}
.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { position: relative; z-index: 2; }

/* 6. Animated Hero Telemetry Card & Charts */
.telemetry-card {
  position: relative;
  animation: cardLevitate 7s ease-in-out infinite;
}
@keyframes cardLevitate {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}
.shot-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: shotPopIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes shotPopIn {
  0%   { opacity: 0; transform: scale(0.15); }
  75%  { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}
.goal-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: goalRipple 2.4s ease-out infinite;
}
@keyframes goalRipple {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
.bar-grow {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: barGrowY 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes barGrowY {
  from { transform: scaleY(0); opacity: 0.3; }
  to   { transform: scaleY(1); opacity: 1; }
}
.bar-grow-x {
  transform-box: fill-box;
  transform-origin: left;
  animation: barGrowX 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes barGrowX {
  from { transform: scaleX(0); opacity: 0.3; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* 7. Live xG Simulator Sonar Ring, Shot Ray & Auto-Play Button */
.shot-sonar {
  transform-box: fill-box;
  transform-origin: center;
  animation: sonarRing 1.9s ease-out infinite;
}
@keyframes sonarRing {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
.shot-ray {
  animation: rayFlow 1.1s linear infinite;
}
@keyframes rayFlow {
  from { stroke-dashoffset: 22; }
  to   { stroke-dashoffset: 0; }
}
.auto-play-btn {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}
.auto-play-btn.running {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* 8. Animated Case Study Mini-Graphs */
.svg-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotBreathe 2.6s ease-in-out infinite;
}
@keyframes dotBreathe {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.42); opacity: 0.6; }
}
.radar-outer {
  transform-box: fill-box;
  transform-origin: center;
  animation: radarMorph 4.5s ease-in-out infinite;
}
@keyframes radarMorph {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.07, 0.94) rotate(2deg); }
}
.radar-sweep {
  transform-origin: 140px 45px;
  animation: sweepSpin 4.2s linear infinite;
}
@keyframes sweepSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.wave-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: barWave 2.8s ease-in-out infinite;
}
.wave-bar.b1 { animation-delay: 0s; }
.wave-bar.b2 { animation-delay: 0.22s; }
.wave-bar.b3 { animation-delay: 0.44s; }
.wave-bar.b4 { animation-delay: 0.66s; }
.wave-bar.b5 { animation-delay: 0.88s; }
.wave-bar.b6 { animation-delay: 1.1s; }
@keyframes barWave {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.76); }
}
.dash-flow {
  animation: dashMove 1.6s linear infinite;
}
@keyframes dashMove {
  from { stroke-dashoffset: 28; }
  to   { stroke-dashoffset: 0; }
}

/* 9. Subtle Chip & Icon Motion */
.tech-chip {
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tech-chip:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}
.exp-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-card:hover .exp-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   DUAL-TRACK ARCHITECTURE (DATA & BI vs FOOTBALL LAB)
   ========================================================= */

/* Navbar Accent Links */
.nav-data-link:hover { color: var(--cyan) !important; }
.nav-foot-link:hover { color: var(--emerald) !important; }

/* Emerald CTA Button */
.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px -6px rgba(16, 185, 129, 0.48);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(16, 185, 129, 0.55);
}

/* Hero Track Switcher */
.track-switcher {
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  max-width: 100%;
}
.switcher-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
}
.switcher-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.track-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.46rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.track-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.track-btn.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
}
.track-btn.data-btn.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
}
.track-btn.foot-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Track Filtering Mode Visibility */
html[data-track="data"] .track-football-zone,
html[data-track="data"] .track-divider {
  display: none;
}
html[data-track="football"] .track-data-zone,
html[data-track="football"] .track-divider {
  display: none;
}

/* Track Banner Header */
.track-banner {
  border-radius: 22px;
  padding: 2rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.data-banner {
  border-color: rgba(0, 229, 255, 0.3);
  background: radial-gradient(circle at 95% 15%, rgba(0, 229, 255, 0.12), var(--surface) 60%);
}
.foot-banner {
  border-color: rgba(16, 185, 129, 0.35);
  background: radial-gradient(circle at 95% 15%, rgba(16, 185, 129, 0.14), var(--surface) 60%);
}
.tb-left { max-width: 740px; }
.tb-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.cyan-pill {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.emerald-pill {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

/* Track 1 Mini Pillars */
.mini-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-bottom: 2rem;
}
.pillar-pill {
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
}
.pillar-pill span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.pillar-pill p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* GitHub Repo Cards Enhancements */
.repo-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.repo-top-row .proj-cat { margin-bottom: 0; }
.star-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.32);
  color: var(--cyan);
  white-space: nowrap;
}
.emerald-star {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald);
}
.featured-repo { border-color: rgba(0, 229, 255, 0.28); }
.foot-featured { border-color: rgba(16, 185, 129, 0.35); }
.viz-emerald-soft {
  background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.15), var(--surface-inset));
}

.multi-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.repo-link {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.82rem;
  border-radius: 9px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  transition: transform 0.2s, background 0.2s;
}
.repo-link:hover {
  transform: translateY(-2px);
  background: rgba(0, 229, 255, 0.2);
}
.repo-link.live-bi {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}
.repo-link.emerald-link {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
}

/* Live Embedded Power BI Card */
.pbi-embed-card {
  margin-top: 2rem;
  border-radius: 20px;
  padding: 1.5rem;
  border-color: rgba(0, 229, 255, 0.26);
}
.pbi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.pbi-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pbi-stage {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
  min-height: 440px;
}
.pbi-preview {
  position: relative;
  width: 100%;
  height: 460px;
}
.pbi-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(1px);
  transition: opacity 0.3s, transform 0.4s;
}
.pbi-preview:hover img { opacity: 0.56; transform: scale(1.015); }
.pbi-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8));
}
.pbi-sub { font-size: 0.76rem; color: var(--text-muted); }
.pbi-iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

/* Track Divider */
.track-divider { padding: 0.5rem 0; }
.divider-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.div-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.div-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

/* Inline Simulator Header inside Football Track */
.sim-header-inline { margin: 3rem 0 1.4rem; max-width: 700px; }
.sub-section-title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.5vw, 1.95rem); margin-bottom: 0.45rem; }

/* Football Certifications Strip */
.foot-certs-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cert-pill {
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.cert-pill strong { display: block; font-size: 0.88rem; }
.cert-pill span.muted { font-size: 0.78rem; }

/* Experience Badges & Smart Share Links */
.tl-badge {
  font-size: 0.67rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.data-tag { color: var(--cyan); background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.25); }
.foot-tag { color: var(--emerald); background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.foot-tl { border-inline-start-color: var(--emerald); }

.smart-links { display: flex; flex-direction: column; gap: 0.55rem; }
.smart-links .copy-track-link {
  text-align: start;
  padding: 0.62rem 0.9rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}
.smart-links .copy-track-link:hover { border-color: var(--cyan); color: var(--cyan); }

.modal-footer-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 980px) {
  .mini-pillars,
  .foot-certs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .mini-pillars,
  .foot-certs-strip {
    grid-template-columns: 1fr;
  }
  .pbi-preview { height: 320px; }
  .pbi-iframe { height: 420px; }
  .div-badge { font-size: 0.64rem; }
}


/* =========================================================
   PROFILE AVATAR, TACTICAL EMBLEM, GALLERIES & INSIGHTS
   ========================================================= */

/* Hero Identity & Animated Conic Avatar Ring */
.hero-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.avatar-ring {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 0deg, #00e5ff, #8b5cf6, #10b981, #00e5ff);
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28);
}
.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid #000000;
}
.avatar-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #000000;
  animation: pulse 2s infinite;
}
.identity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.identity-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.status-badge.compact {
  margin-bottom: 0;
  padding: 0.28rem 0.72rem;
  font-size: 0.67rem;
}

/* Track Banner Actions Stack */
.tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

/* Tactical Logo Emblem in Track 2 Banner */
.foot-tb-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.tactical-emblem {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.22);
  flex-shrink: 0;
}

/* Power BI 6-Page Thumbnail Gallery */
.pbi-thumbs-head {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 1.25rem 0 0.7rem;
}
.pbi-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}
.thumb-card {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: start;
  color: var(--text-muted);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.thumb-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan);
}
.thumb-card img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}
.thumb-card span {
  display: block;
  font-size: 0.66rem;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4:5 AMOLED Tactical Match Posters Grid */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}
.poster-card {
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  text-align: start;
  cursor: pointer;
  color: var(--text);
  border: 1px solid rgba(16, 185, 129, 0.22);
  display: flex;
  flex-direction: column;
}
.poster-card:hover { border-color: var(--emerald); }
.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #000000;
}
.poster-meta {
  padding: 0.78rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--surface);
}
.poster-meta span { font-size: 0.67rem; letter-spacing: 0.08em; font-weight: 700; }
.poster-meta strong { font-size: 0.88rem; font-family: var(--font-display); }

/* Insights & Tactical Breakdowns Section */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.insight-card {
  border-radius: 18px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.ins-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}
.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.32;
}
.insight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* Filter Insights cards automatically with Dual-Track mode */
html[data-track="data"] .insight-card[data-insight-track="football"] { display: none; }
html[data-track="football"] .insight-card[data-insight-track="data"] { display: none; }

/* Lightbox Modal */
.lightbox-box {
  width: min(94vw, 960px);
  max-height: 92vh;
  border-radius: 18px;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-color: rgba(0, 229, 255, 0.35);
}
.lightbox-box img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000000;
}
.lightbox-cap {
  font-size: 0.78rem;
  color: var(--cyan);
  text-align: center;
}

/* Article Reader Modal */
.article-modal-box {
  width: min(94vw, 720px);
  max-height: 86vh;
  overflow-y: auto;
}
.article-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.72;
}
.article-body h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-top: 0.4rem;
}
.article-callout {
  background: var(--surface-inset);
  border-inline-start: 3px solid var(--cyan);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .pbi-thumbs-grid { grid-template-columns: repeat(3, 1fr); }
  .posters-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pbi-thumbs-grid { grid-template-columns: repeat(2, 1fr); }
  .posters-grid { grid-template-columns: 1fr; }
  .foot-tb-brand { flex-direction: column; }
}


/* =========================================================
   OUT-OF-THE-BOX UPGRADES: GRAIN, BENTO, RFM, SPLIT, ⌘K, INTENT
   ========================================================= */

/* 1. Subtle 2% Cinematic Film Noise Grain on AMOLED */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .noise-overlay { opacity: 0.015; }

/* 2. Command Palette Trigger Button */
.cmd-trigger {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--cyan);
  border-radius: 10px;
  padding: 0.4rem 0.68rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cmd-trigger:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: var(--cyan);
}

/* 3. Asymmetric Bento Impact Grid */
.bento-strip {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.bento-card {
  border-radius: 18px;
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
}
.bento-wide { grid-column: span 2; }
.bento-wide-2 { grid-column: span 3; }
.bento-tag {
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  font-weight: 700;
}
.bento-big {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.bento-unit { font-size: 1.1rem; }
.bento-sub { font-size: 0.85rem; color: var(--text-muted); }
.bento-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 0.2rem;
}
.bento-duo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

/* 4. Live K-Means RFM Simulator */
.rfm-wrapper {
  border-color: rgba(0, 229, 255, 0.28);
}
.rfm-plot-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  padding: 0.4rem;
}
#rfmChart { width: 100%; height: auto; display: block; }
.rfm-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

/* 5. AMOLED vs Print Light Split-Screen Drag Slider */
.split-showcase {
  border-radius: 22px;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  border-color: rgba(16, 185, 129, 0.3);
  margin-bottom: 1.5rem;
}
.split-stage {
  position: relative;
  width: 100%;
  max-width: 410px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.split-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.split-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.5px;
  background: linear-gradient(180deg, #00e5ff, #10b981);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.75);
  z-index: 4;
}
.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid #00e5ff;
  color: #00e5ff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
}
.split-tag {
  position: absolute;
  bottom: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
}
.left-tag { left: 10px; background: rgba(0, 0, 0, 0.85); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.4); }
.right-tag { right: 10px; background: rgba(245, 245, 245, 0.92); color: #0f4c5c; border: 1px solid rgba(15, 76, 92, 0.35); }

.split-info { display: flex; flex-direction: column; gap: 0.85rem; }
.split-info h4 { font-family: var(--font-display); font-size: 1.4rem; }
.split-quick-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }

/* 6. Smart Intent Selector in Contact */
.contact-form-wrap { display: flex; flex-direction: column; gap: 1.15rem; }
.intent-selector { display: flex; flex-direction: column; gap: 0.6rem; }
.intent-lbl { font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; }
.intent-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.intent-pill {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.78rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.intent-pill:hover { border-color: var(--cyan); color: var(--text); }
.intent-pill.active {
  background: rgba(0, 229, 255, 0.14);
  border-color: var(--cyan);
  color: var(--cyan);
}
.intent-banner {
  border-radius: 12px;
  padding: 0.78rem 0.95rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-color: rgba(0, 229, 255, 0.24);
}
.intent-banner a {
  color: var(--emerald);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}
.intent-banner a:hover { text-decoration: underline; }

/* 7. Command Palette (⌘K) Modal */
.cmd-backdrop { align-items: start; padding-top: min(14vh, 110px); }
.cmd-box {
  width: min(94vw, 560px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 229, 255, 0.18);
}
.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-inset);
}
.cmd-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.cmd-input-row kbd {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.cmd-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.45rem;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.14s;
}
.cmd-item:hover,
.cmd-item.selected {
  background: rgba(0, 229, 255, 0.14);
  color: var(--cyan);
}
.cmd-item span.cmd-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.cmd-foot {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--surface-inset);
  font-size: 0.69rem;
  color: var(--text-dim);
}

/* Magnetic Buttons */
.magnetic { will-change: transform; }

@media (max-width: 980px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide, .bento-wide-2 { grid-column: span 2; }
  .split-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento-grid, .bento-duo { grid-template-columns: 1fr; }
  .bento-wide, .bento-wide-2 { grid-column: span 1; }
}


/* =========================================================
   APP BRAND ICONS & PHONE / WHATSAPP CONTACT PILLS
   ========================================================= */
.direct-copy-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.direct-left {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.app-ico {
  flex-shrink: 0;
  display: inline-block;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.92rem;
}
.wa-pill {
  border-color: rgba(37, 211, 102, 0.42);
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}
.wa-pill:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}
.phone-pill:hover { border-color: var(--emerald); color: var(--emerald); }
.li-pill:hover { border-color: #0a66c2; color: #38bdf8; }
.gh-pill:hover { border-color: #ffffff; color: #ffffff; }
.sub-pill:hover { border-color: #ff6719; color: #fb923c; }
.x-pill:hover { border-color: #e2e8f0; color: #ffffff; }
.mail-pill:hover { border-color: var(--cyan); color: var(--cyan); }


/* =========================================================
   TECH STACK PROOF MATRIX, SERVICES & FLOATING QUICK DOCK
   ========================================================= */

/* 1. Interactive Tech Stack Proof Matrix */
.matrix-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.matrix-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.m-group {
  border-radius: 16px;
  padding: 1.25rem;
}
.m-group-lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}
.m-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-pill {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.44rem 0.78rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.skill-pill:hover {
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-2px);
}
.skill-pill.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
}

.proof-card {
  border-radius: 20px;
  padding: 1.8rem;
  border-color: rgba(0, 229, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 86px;
}
.proof-cat {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: var(--cyan);
  font-weight: 700;
}
.proof-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.proof-card p { font-size: 0.93rem; line-height: 1.65; }
.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.proof-metrics span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.32rem 0.68rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}
.proof-where {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}
.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* 2. Services & Workshops Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.srv-badge {
  width: fit-content;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.violet-pill {
  color: var(--violet-soft);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.36);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.2rem 0 0.6rem;
  flex: 1;
}
.srv-list li {
  font-size: 0.86rem;
  color: var(--text);
  padding-inline-start: 1.1rem;
  position: relative;
}
.srv-list li::before {
  content: "›";
  position: absolute;
  inset-inline-start: 0;
  color: var(--cyan);
  font-weight: 700;
}
.service-card[data-srv-track="football"] .srv-list li::before { color: var(--emerald); }

/* Sync Services with Dual-Track Mode */
html[data-track="data"] .service-card[data-srv-track="football"] { display: none; }
html[data-track="football"] .service-card[data-srv-track="data"] { display: none; }

/* 3. Floating Quick-Action Dock */
.quick-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.quick-dock.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dock-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--cyan); }
.dock-wa {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}
.dock-wa:hover {
  background: rgba(37, 211, 102, 0.24);
  color: #4ade80;
}
.dock-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}

@media (max-width: 980px) {
  .matrix-layout,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .proof-card { position: static; }
}
@media (max-width: 640px) {
  .matrix-groups { grid-template-columns: 1fr; }
}

/* =========================================================
   LIVE STATSBOMB PLAYER TWIN FINDER WIDGET (361 PLAYERS)
   ========================================================= */
.scout-widget {
  border-radius: 22px;
  padding: 1.55rem;
  border-color: rgba(16, 185, 129, 0.28);
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.scout-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.scout-search-wrap {
  position: relative;
  flex: 1 1 320px;
}
.scout-search-ico {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--emerald);
  font-size: 1.05rem;
  pointer-events: none;
}
#scoutSearch {
  width: 100%;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.72rem 1rem 0.72rem 2.4rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[dir="rtl"] #scoutSearch {
  padding: 0.72rem 2.4rem 0.72rem 1rem;
}
#scoutSearch:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}
.scout-suggest {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 40;
  border-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  background: var(--surface-strong);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.scout-suggest.open { display: block; }
.scout-sug-item {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 0.62rem 0.9rem;
  text-align: start;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
}
.scout-sug-item:last-child { border-bottom: none; }
.scout-sug-item:hover { background: rgba(16, 185, 129, 0.14); }
.scout-sug-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.scout-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.scout-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.56rem 0.8rem;
  cursor: pointer;
  user-select: none;
}
.scout-toggle input { accent-color: var(--emerald); width: 15px; height: 15px; cursor: pointer; }
#scoutMinMins {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.56rem 0.75rem;
  font-size: 0.76rem;
  cursor: pointer;
}
.scout-presets { margin-top: -0.2rem; }
.scout-preset.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald);
}

.scout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 1.35rem;
  align-items: start;
}
.scout-left, .scout-right {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}
.scout-target-card {
  background: var(--surface-inset);
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.scout-target-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.scout-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.25rem;
}
.scout-target-card h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}
.scout-target-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.scout-arch-pill {
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.36);
  color: var(--violet-soft);
  white-space: nowrap;
}
.scout-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}
.scout-mkpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.48rem 0.55rem;
  text-align: center;
}
.scout-mkpi span {
  display: block;
  font-size: 0.63rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scout-mkpi strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.1rem;
}

.scout-twins-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.scout-twins-list {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}
.twin-card {
  width: 100%;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.78rem 0.95rem;
  color: var(--text);
  cursor: pointer;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  transition: border-color 0.2s, transform 0.18s, background 0.2s;
}
.twin-card:hover {
  border-color: rgba(0, 229, 255, 0.48);
  transform: translateY(-1px);
}
.twin-card.active {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.09);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2);
}
.twin-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
.twin-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}
.twin-rank {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  font-weight: 700;
}
.twin-name {
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.twin-score {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.twin-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.twin-bar-bg {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.twin-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.scout-panel {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.scout-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.71rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.scout-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.71rem;
}
.scout-legend em { font-style: normal; color: var(--text); }
.lg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 0.35rem;
}
.lg-dot.em { background: var(--emerald); }
.lg-dot.cy { background: var(--cyan); }

.scout-compare-bars {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}
.cmp-row {
  display: grid;
  grid-template-columns: 98px 1fr 66px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.73rem;
}
.cmp-lbl {
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}
.cmp-tracks {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cmp-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.cmp-fill-a { height: 100%; background: var(--emerald); border-radius: 999px; transition: width 0.35s ease; }
.cmp-fill-b { height: 100%; background: var(--cyan); border-radius: 999px; transition: width 0.35s ease; }
.cmp-vals {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  text-align: end;
  white-space: nowrap;
}
.cmp-vals .va { color: var(--emerald); }
.cmp-vals .vb { color: var(--cyan); }

.scout-pca-box {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
html[data-theme="light"] .scout-pca-box {
  background: rgba(15, 23, 42, 0.04);
}
#scoutPcaSvg { width: 100%; height: auto; display: block; }

.scout-foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.scout-repo-btn {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.scout-repo-btn:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .scout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scout-mini-kpis { grid-template-columns: repeat(2, 1fr); }
  .cmp-row { grid-template-columns: 82px 1fr 56px; }
}
