/* ============================================================
   nam0ij Portfolio — Main Stylesheet
   Author: nam0ij  |  Version: 1.0.0
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #070709;
  --bg-secondary: #0c0c13;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(255, 255, 255, 0.04);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(124, 58, 237, 0.5);
  --border-bright: rgba(255, 255, 255, 0.15);

  /* Accents */
  --accent-violet: #7c3aed;
  --accent-violet-light: #a855f7;
  --accent-violet-dim: rgba(124, 58, 237, 0.15);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-cyan-dim: rgba(6, 182, 212, 0.12);
  --accent-green: #10b981;

  /* Glows */
  --glow-violet: rgba(124, 58, 237, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.25);
  --glow-white: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f4f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #4a5568;
  --text-code: #a3e635;

  /* Typography */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --container: 1280px;
  --section-pad: 44px;
  --card-radius: 16px;
  --card-radius-lg: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* Z-index layers */
  --z-orbs: 0;
  --z-content: 1;
  --z-nav: 100;
  --z-music: 200;
  --z-cookie: 300;
  --z-lightbox: 400;
  --z-intro: 500;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: auto;
}

body.loading {
  overflow: hidden;
}

/* ── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-violet);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-violet-light);
}

/* ── Custom Cursor — DISABLED ───────────────────────────────── */
#cursor, #cursor-trail {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

a, button, [role="button"], input, select, textarea, .portfolio-card, .card-thumb, .filter-tab, .vibing-label, .music-mute-btn, .page-nav-item {
  cursor: pointer !important;
}

/* ── Background Video ───────────────────────────────────────── */
#bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: blur(8px) saturate(1.6);
  transform: scale(1.05); /* prevent blur edge bleed */
}

#bg-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,7,9,0.93) 0%, rgba(12,12,19,0.90) 100%);
}

/* ── Ambient Orbs ──────────────────────────────────────────── */
.orbs-container {
  position: fixed;
  inset: 0;
  z-index: var(--z-orbs);
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation-delay: -8s;
  animation-duration: 30s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -15s;
  animation-duration: 22s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -60px) scale(1.05); }
  50% { transform: translate(-30px, 40px) scale(0.95); }
  75% { transform: translate(60px, 20px) scale(1.08); }
}

/* ── Noise Texture Overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Intro Splash ──────────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--card-radius-lg);
  padding: 60px 72px;
  text-align: center;
  backdrop-filter: blur(20px);
  max-width: 520px;
  width: 90%;
  animation: intro-card-in 1s var(--ease-bounce) forwards;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes intro-card-in {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 28px;
  letter-spacing: -1px;
  color: white;
  box-shadow: 0 0 30px var(--glow-violet);
  overflow: hidden;
}

.intro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.intro-title {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
  font-weight: 400;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
}

.intro-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.intro-sound-hint {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s;
}

#navbar.scrolled {
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 20px var(--glow-violet);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-violet-light);
  transition: width var(--duration-normal) var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.available-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.3px;
}

.available-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.btn-contact {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  padding: 9px 20px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  text-decoration: none;
}

.btn-contact:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile Nav Overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(7, 7, 9, 0.97);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

#mobile-nav.open {
  display: flex;
  opacity: 1;
}

#mobile-nav a {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
  transition: color 0.2s;
}

#mobile-nav a:hover { color: var(--accent-violet-light); }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: var(--z-content);
}

/* ── Scroll Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Hero Section ────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
  position: relative;
  z-index: var(--z-content);
}

.hero-inner {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--card-radius-lg);
  padding: 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero-name {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 40%, rgba(244, 244, 248, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--accent-violet-light);
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 6px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-tagline {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px var(--glow-violet);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px 28px;
  min-width: 140px;
  backdrop-filter: blur(10px);
  transition: all var(--duration-normal) var(--ease);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow-violet);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── Section Labels ────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-violet-light);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Core Capabilities ─────────────────────────────────────── */
#capabilities {
  position: relative;
  z-index: var(--z-content);
}

.capabilities-header {
  text-align: center;
  margin-bottom: 48px;
}

.capabilities-header .section-desc {
  margin: 0 auto;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 44px 36px;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(124, 58, 237, 0.04));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease);
  pointer-events: none;
}

.capability-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.capability-card:hover::before { opacity: 1; }

.capability-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  transition: all var(--duration-normal) var(--ease);
}

.capability-card:hover .capability-icon {
  background: var(--accent-violet);
  box-shadow: 0 0 20px var(--glow-violet);
}

.capability-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.capability-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.capability-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-violet-light);
  text-decoration: none;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 8px 18px;
  transition: all 0.25s var(--ease);
  margin-top: 4px;
  position: relative;
  z-index: 2;
}

.capability-explore:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--accent-violet-light);
  box-shadow: 0 0 18px var(--glow-violet);
  transform: translateX(4px);
  color: #fff;
}

.capability-explore::after {
  content: '→';
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.capability-explore:hover::after {
  transform: translateX(3px);
}

/* ── Portfolio Section ─────────────────────────────────────── */
#portfolio {
  position: relative;
  z-index: var(--z-content);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: none;
  transition: all var(--duration-fast) var(--ease);
}

.filter-tab:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
  cursor: none;
  position: relative;
}

.portfolio-card:nth-child(1) { grid-column: span 7; }
.portfolio-card:nth-child(2) { grid-column: span 5; }
.portfolio-card:nth-child(3) { grid-column: span 5; }
.portfolio-card:nth-child(4) { grid-column: span 7; }
.portfolio-card:nth-child(5) { grid-column: span 6; }
.portfolio-card:nth-child(6) { grid-column: span 6; }
.portfolio-card:nth-child(n+7) { grid-column: span 4; }

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-card.hidden {
  display: none;
}

.portfolio-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.portfolio-card.fade-in {
  animation: card-in 0.4s var(--ease) forwards;
}

@keyframes card-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Card Thumbnail */
.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050508;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.9) 0%, transparent 60%);
}

.card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease);
  font-size: 20px;
}

.portfolio-card:hover .card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Card type badge */
.card-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.type-code { background: rgba(124, 58, 237, 0.3); color: var(--accent-violet-light); border: 1px solid rgba(124, 58, 237, 0.3); }
.type-image { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan-light); border: 1px solid rgba(6, 182, 212, 0.3); }
.type-video { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.type-update { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Video hover card */
.card-video-thumb {
  position: relative;
  height: auto;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  background: #0a0a0f;
}

.card-video-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.card-video-thumb:hover .card-video-hover {
  transform: scale(1.04);
}

.card-video-thumb:hover .card-thumb-overlay {
  opacity: 0.5;
}


/* Featured badge */
.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

/* Card Body */
.card-body {
  padding: 24px;
}

/* For code type cards (no image) */
.card-code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* Code Snippet Display */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 220px;
  overflow-y: auto;
  color: #e2e8f0;
}

.code-block::-webkit-scrollbar { width: 4px; height: 4px; }
.code-block::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 4px; }

/* Lua syntax highlighting */
.lua-keyword { color: #c084fc; }
.lua-string { color: #86efac; }
.lua-comment { color: #64748b; font-style: italic; }
.lua-number { color: #fb923c; }
.lua-function { color: #60a5fa; }
.lua-operator { color: #f472b6; }

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.card-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-violet-light);
  text-decoration: none;
  transition: gap 0.2s;
}

.card-link:hover { gap: 10px; }

.portfolio-load-more {
  text-align: center;
  margin-top: 56px;
}

/* ── Updates Feed ──────────────────────────────────────────── */
#updates {
  position: relative;
  z-index: var(--z-content);
}

.updates-header {
  margin-bottom: 64px;
}

.updates-timeline {
  position: relative;
  padding-left: 40px;
}

.updates-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-violet) 20%, var(--accent-cyan) 80%, transparent);
}

.update-item {
  position: relative;
  margin-bottom: 48px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: all var(--duration-normal) var(--ease);
}

.update-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
  transform: translateX(4px);
}

.update-dot {
  position: absolute;
  left: -47px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-violet);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px var(--glow-violet);
}

.update-date {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-violet-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.update-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.update-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.update-tag {
  background: var(--accent-violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-violet-light);
}

.update-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap 0.2s;
}

.update-link:hover { gap: 10px; }

.update-media {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.update-media img,
.update-media video {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

/* ── Contact Section ───────────────────────────────────────── */
#contact {
  position: relative;
  z-index: var(--z-content);
}

.contact-inner {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--card-radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.contact-gradient {
  background: linear-gradient(135deg, var(--accent-violet-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease);
  cursor: none;
}

.contact-btn-primary {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: white;
  border: none;
}

.contact-btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.4);
}

.contact-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

.contact-btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: var(--z-content);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Music Player ──────────────────────────────────────────── */
#music-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-music);
  display: flex;
  align-items: center;
  gap: 14px;
}

.vibing-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 7, 9, 0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  backdrop-filter: blur(20px);
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
}

.vibing-label:hover {
  border-color: var(--border-hover);
}

.vibing-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.vibing-bar {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent-violet), var(--accent-cyan));
  transform-origin: bottom;
  animation: vibing-wave 0.9s ease-in-out infinite;
}

.vibing-bar:nth-child(1) { height: 6px;  animation-delay: 0s;    animation-duration: 0.8s; }
.vibing-bar:nth-child(2) { height: 14px; animation-delay: 0.12s; animation-duration: 1.0s; }
.vibing-bar:nth-child(3) { height: 18px; animation-delay: 0.22s; animation-duration: 0.7s; }
.vibing-bar:nth-child(4) { height: 10px; animation-delay: 0.36s; animation-duration: 0.9s; }
.vibing-bar:nth-child(5) { height: 15px; animation-delay: 0.5s;  animation-duration: 1.1s; }

@keyframes vibing-wave {
  0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.vibing-bars.paused .vibing-bar {
  animation-duration: 0.95s;
  opacity: 0.75;
  filter: brightness(0.85);
}

.vibing-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 7, 9, 0.85);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  backdrop-filter: blur(20px);
  font-size: 16px;
  color: var(--text-primary);
}

.music-btn:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow-violet);
  transform: scale(1.08);
}

/* Expanded music panel */
.music-panel {
  position: fixed;
  bottom: 85px;
  right: 28px;
  z-index: var(--z-music);
  width: 320px;
  background: rgba(12, 12, 19, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(30px);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease);
}

.music-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.music-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.music-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.music-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: none;
  transition: color 0.2s;
}

.music-panel-close:hover { color: var(--text-primary); }

/* Controls row below Spotify embed */
.music-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.music-bottom-row .music-mute-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  cursor: pointer !important;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.music-bottom-row .music-mute-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.music-bottom-row .music-mute-btn.muted {
  color: #ef4444;
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.08);
}

.mute-label {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.music-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.music-track-art {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  animation: rotate-art 8s linear infinite;
  animation-play-state: paused;
}

.music-track-art.playing {
  animation-play-state: running;
}

@keyframes rotate-art {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-track-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.music-track-artist {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Progress bar + scrubbing */
.music-progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 4px;
  position: relative;
  cursor: pointer;
}

.music-progress:hover { height: 8px; }

.music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.music-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.music-progress:hover .music-progress-thumb { opacity: 1; }

.music-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}

.music-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: none;
  transition: color 0.2s, transform 0.2s;
}

.music-ctrl-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.music-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  font-size: 18px;
  color: white;
}

.music-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--glow-violet);
}

/* Mute button with red line indicator */
.music-mute-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.music-mute-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.music-mute-btn.muted::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background: #ef4444;
  transform: translateY(-50%) rotate(-40deg);
  border-radius: 2px;
  pointer-events: none;
}

.spotify-link-btn {
  font-size: 13px;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.3);
  color: #1ed760;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.spotify-link-btn:hover {
  background: rgba(30, 215, 96, 0.22);
  border-color: #1ed760;
  box-shadow: 0 0 15px rgba(30, 215, 96, 0.3);
  transform: translateY(-1px);
}

/* Repeat button active */
.music-ctrl-btn.active {
  color: var(--accent-violet-light);
}

/* Volume */
.music-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.volume-icon { font-size: 14px; color: var(--text-muted); cursor: pointer; }

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--accent-violet) var(--vol-pct, 70%), var(--border) var(--vol-pct, 70%));
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-violet-light);
  cursor: pointer;
  box-shadow: 0 0 8px var(--glow-violet);
}

/* Spotify connect */
.spotify-connect {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.25);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #1ed760;
  cursor: none;
  transition: all var(--duration-normal) var(--ease);
  width: 100%;
  justify-content: center;
}

.spotify-btn:hover {
  background: rgba(30, 215, 96, 0.2);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.2);
}

/* YouTube hidden player */
#yt-player { display: none; }

/* ── Spotify Modal ─────────────────────────────────────────── */
#spotify-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lightbox) + 10);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

#spotify-modal.open {
  opacity: 1;
  pointer-events: all;
}

.spotify-modal-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--card-radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: modal-in 0.4s var(--ease-bounce) forwards;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotify-modal-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.spotify-modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.spotify-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.spotify-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.spotify-input:focus { border-color: #1ed760; }
.spotify-input::placeholder { color: var(--text-muted); }

.spotify-modal-btns {
  display: flex;
  gap: 12px;
}

.spotify-modal-cancel {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: none;
  transition: all 0.2s;
}

.spotify-modal-cancel:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.spotify-modal-play {
  flex: 1;
  padding: 12px;
  background: #1ed760;
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: none;
  transition: all 0.2s;
}

.spotify-modal-play:hover {
  background: #17c154;
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.3);
}

/* ── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--card-radius);
  overflow: hidden;
  animation: lightbox-in 0.4s var(--ease) forwards;
}

@keyframes lightbox-in {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  cursor: none;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ── Cookie Banner ─────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: var(--z-cookie);
  max-width: 420px;
  background: rgba(12, 12, 19, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 24px;
  backdrop-filter: blur(30px);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.5s var(--ease);
}

#cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#cookie-banner.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-accept {
  flex: 1;
  padding: 10px;
  background: var(--accent-violet);
  border: none;
  border-radius: 10px;
  color: white;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: none;
  transition: all 0.2s;
}

.cookie-accept:hover {
  background: var(--accent-violet-light);
  box-shadow: 0 0 16px var(--glow-violet);
}

.cookie-decline {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: none;
  transition: all 0.2s;
}

.cookie-decline:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.cookie-policy-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-policy-link:hover { color: var(--accent-violet-light); }

/* ── Terms / Privacy Pages ─────────────────────────────────── */
.legal-page {
  padding-top: 140px;
  padding-bottom: 100px;
}

.legal-header {
  margin-bottom: 64px;
}

.legal-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-violet-light);
}

.legal-content a {
  color: var(--accent-violet-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  transition: border-color 0.2s;
}

.legal-content a:hover { border-color: var(--accent-violet-light); }

.legal-highlight {
  background: var(--accent-violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 14px;
  color: var(--accent-violet-light);
  line-height: 1.7;
}

/* ── Page Navigation Indicator ─────────────────────────────── */
.page-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(7, 7, 9, 0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 24px;
  backdrop-filter: blur(20px);
}

.page-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-nav-item.active { color: var(--text-primary); }

.page-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.page-nav-item.active .page-nav-dot {
  background: var(--accent-violet-light);
  box-shadow: 0 0 8px var(--glow-violet);
  transform: scale(1.3);
}

.page-nav-item:hover {
  color: var(--text-primary);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio-card:nth-child(n) { grid-column: span 6; }
  .container { padding: 0 32px; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container { padding: 0 20px; }

  #navbar { padding: 16px 20px; }
  #navbar.scrolled { padding: 12px 20px; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { padding: 40px 28px; }
  .hero-name { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 12px; }
  .stat-card { min-width: 120px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card:nth-child(n) { grid-column: span 1; }
  .card-video-thumb { min-height: 210px; }

  .contact-inner { padding: 40px 24px; }

  .updates-timeline { padding-left: 24px; }
  .update-dot { left: -31px; }

  #music-player { bottom: 80px; right: 16px; }
  .music-panel { right: 16px; width: 290px; }

  #cookie-banner { left: 16px; right: 16px; max-width: none; bottom: 16px; }

  .page-nav { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 32px 20px; }
  .hero-stats { flex-direction: column; }
  .stat-card { width: 100%; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .contact-links { flex-direction: column; width: 100%; }
  .contact-btn { justify-content: center; }
}

/* ── Utility ───────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-violet-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: var(--section-pad) 0;
}

/* ═══════════════════════════════════════════════════════════
   MUTE BUTTON — minimal red indicator
   ═══════════════════════════════════════════════════════════ */
.music-mute-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.music-mute-btn:hover { color: var(--text-primary); transform: scale(1.1); }

/* Minimal red slash — just a 1.5px line, short */
.music-mute-btn.muted::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: #ff4b4b;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (terms / privacy) — revamped nav bar
   ═══════════════════════════════════════════════════════════ */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.legal-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
}

.legal-nav-brand .nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 0 14px var(--glow-violet);
  flex-shrink: 0;
}

.legal-nav-brand .nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 8px 20px;
  color: var(--accent-violet-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all 0.25s var(--ease);
}

.legal-back-btn:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--accent-violet-light);
  box-shadow: 0 0 18px var(--glow-violet);
  transform: translateX(-3px);
}

.legal-back-btn svg {
  transition: transform 0.25s var(--ease);
}
.legal-back-btn:hover svg {
  transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════════════════
   LOGO EXPAND MODAL
   ═══════════════════════════════════════════════════════════ */
#logo-expand-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lightbox) + 20);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
#logo-expand-modal.open {
  opacity: 1;
  pointer-events: all;
}
#logo-expand-modal img {
  max-width: min(480px, 90vw);
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 80px var(--glow-violet);
  animation: modal-scale-in 0.35s var(--ease-bounce) forwards;
  object-fit: cover;
}
@keyframes modal-scale-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.logo-expand-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.logo-expand-close:hover {
  background: rgba(255,255,255,0.14);
  transform: rotate(90deg);
}

/* Nav logo — clickable hint */
.nav-logo-icon {
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-logo-icon:hover {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 0 28px var(--glow-violet);
}

/* ═══════════════════════════════════════════════════════════
   EXTRA DYNAMISM — floating particles, shimmer lines,
   enhanced card & section animations
   ═══════════════════════════════════════════════════════════ */

/* Floating sparkle particles (generated via JS) */
.sparkle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(168,85,247,0.8), rgba(6,182,212,0.4));
  animation: sparkle-float 3s ease-out forwards;
  z-index: 0;
}
@keyframes sparkle-float {
  0%   { opacity: 0.7; transform: translateY(0) scale(1); }
  100% { opacity: 0;   transform: translateY(-80px) scale(0); }
}

/* Shimmer scan line across cards on hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}
.portfolio-card:hover::after { left: 150%; }

/* Capability card glow pulse on hover */
.capability-card:hover {
  box-shadow: 0 0 0 1px rgba(124,58,237,0.4),
              0 16px 50px rgba(124,58,237,0.18),
              0 0 60px rgba(6,182,212,0.06);
}

/* Section reveal — scale-up variant */
.section-label {
  animation: none;
}
.section-label.visible {
  animation: label-glow 2s ease-out 0.5s both;
}
@keyframes label-glow {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 12px rgba(168,85,247,0.6); }
  100% { text-shadow: none; }
}

/* Hero inner — entrance animation */
.hero-inner {
  animation: hero-rise 1s var(--ease-bounce) 0.2s both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stat cards — count-up glow */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.stat-card:hover::before { opacity: 1; }

/* Updates timeline item hover lift */
.update-item {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.update-item:hover {
  transform: translateX(6px);
  box-shadow: -3px 0 0 var(--accent-violet-light);
}

/* Divider animated gradient */
.divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-violet-dim) 30%,
    var(--border) 50%,
    var(--accent-cyan-dim) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: divider-scan 4s linear infinite;
}
@keyframes divider-scan {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Btn primary — pulse ring on hover */
.btn-primary {
  position: relative;
  overflow: visible;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.btn-primary:hover::before { opacity: 1; }

/* Portfolio filter tab — active underline slide */
.filter-tab {
  position: relative;
}
.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  border-radius: 2px;
  animation: tab-slide-in 0.25s var(--ease-bounce) both;
}
@keyframes tab-slide-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Music panel — glassmorphism glow border on open */
.music-panel.open {
  box-shadow: 0 0 40px rgba(124,58,237,0.2), 0 20px 60px rgba(0,0,0,0.5);
}

/* Available dot — pulsing green ring */
.available-dot {
  position: relative;
}
.available-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16,185,129,0.3);
  animation: dot-ring 1.8s ease-out infinite;
}
@keyframes dot-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   CURSOR PARTICLE TRAIL
   ═══════════════════════════════════════════════════════════ */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: cursor-particle-fade 0.6s ease-out forwards;
}
@keyframes cursor-particle-fade {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.1) translateY(-20px); }
}

/* ═══════════════════════════════════════════════════════════
   PHYSICS HERO MODULE CARD (in hero inner)
   ═══════════════════════════════════════════════════════════ */
.physics-module-card {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(255,255,255,0.025) 48%, rgba(124, 58, 237, 0.08));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  margin-top: 24px;
  max-width: 560px;
  min-height: 220px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 80px rgba(6,182,212,0.08);
}
.physics-module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), transparent 60%);
  pointer-events: none;
}
.physics-module-media {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(34,211,238,0.28);
  box-shadow: 0 0 0 12px rgba(6,182,212,0.035), 0 0 55px rgba(6,182,212,0.14);
}
.physics-module-media::before {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px dashed rgba(34,211,238,0.28);
  border-radius: inherit;
  animation: module-orbit 16s linear infinite;
  z-index: 1;
}
.physics-module-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05);
}
.physics-module-status {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(34,211,238,0.28);
  border-radius: 999px;
  background: rgba(7,7,9,0.78);
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1.8px;
}
@keyframes module-orbit {
  to { transform: rotate(360deg); }
}
.physics-module-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}
.physics-module-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  line-height: 1.05;
  max-width: 310px;
}
.physics-module-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
  max-width: 300px;
}
.physics-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  max-width: 360px;
}
.physics-stat-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  min-width: 28px;
}
.physics-stat-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.physics-stat-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet-light));
  animation: bar-fill 1.5s var(--ease-bounce) 0.5s both, ability-bar-pulse 2.2s ease-in-out infinite;
}
@keyframes bar-fill {
  from { width: 0 !important; }
}
@keyframes ability-bar-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
.physics-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  min-width: 110px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.physics-stat-icon {
  font-size: 12px;
}
.physics-module-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0 0;
  text-decoration: none;
  transition: color 0.2s var(--ease);
  font-family: var(--font-mono);
}
.physics-module-btn:hover { color: #fff; }
.physics-module-btn::after {
  content: '→';
  font-size: 12px;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.physics-module-btn:hover::after {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   MUSIC — vibing bars always-on tweak
   ═══════════════════════════════════════════════════════════ */
/* Keep bars running always, open-panel state just brightens them */
#music-player .vibing-bars { cursor: pointer; }

/* Contact button always pointer */
.btn-contact { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   SECTION GAPS — tighten hero → capabilities → portfolio
   ═══════════════════════════════════════════════════════════ */
#hero {
  min-height: auto;
  padding-top: 92px;
  padding-bottom: 18px;
}
#capabilities {
  padding-top: 12px;
  padding-bottom: 24px;
}
#portfolio {
  padding-top: 18px;
}
#updates {
  padding-top: 18px;
}

/* Dividers thinner between sections */
.divider {
  margin: 14px 0;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND VIDEO in hero (optional extra layer)
   ═══════════════════════════════════════════════════════════ */
.hero-bg-video-extra {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.hero-bg-video-extra video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: blur(4px) saturate(1.2);
}

/* Final overrides: physics module without preview video */
.physics-module-media,
.physics-module-media video,
.physics-module-status {
  display: none !important;
}

.physics-module-title,
.physics-module-desc {
  max-width: 100%;
}

.physics-stat-row {
  max-width: 420px;
}

