/* ==========================================================================
   KREZNA LAB // MODERN AUDIO & AI UI/UX STYLESHEET
   Aesthetic: Studio Hardware + Cyber Deck + Clean Minimalist Tech
   ========================================================================== */

:root {
  --bg-deep: #06070a;
  --bg-surface: #0c0e14;
  --bg-panel: #12151f;
  --bg-panel-hover: #171b28;
  --bg-glass: rgba(18, 21, 31, 0.72);
  --bg-card: rgba(23, 27, 40, 0.55);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(34, 211, 238, 0.45);
  --border-accent: rgba(139, 92, 246, 0.4);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-main: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-sunset: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Cabinet Grotesk', var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.22);
  --shadow-glow-purple: 0 0 35px rgba(139, 92, 246, 0.28);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1f2434;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

::selection {
  background: var(--accent-purple);
  color: #fff;
}

/* Canvas & Ambient Background Overlays */
#bgVisualizer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.radial-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.top-glow {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.bottom-glow {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 10%;
  left: -120px;
}

/* Container Wrapper */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono-number {
  font-family: var(--font-mono);
}

/* Main Navigation (Fixed at Top-Left) */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Brand Badge & Top-Left Logo */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: #0d101b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}
.brand-badge:hover .logo-box {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}
.nav-logo-img,
.logo-box img,
.brand-badge img {
  height: 32px;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.brand-badge:hover .nav-logo-img,
.brand-badge:hover .logo-box img {
  transform: scale(1.06);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.15;
}
.brand-tag {
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

/* Navigation Controls (Right Cluster) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--accent-emerald);
}
.status-indicator .status-text {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.pulsing-led {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: ledPulse 1.8s infinite;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.78rem;
}
.pill-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  background: rgba(6, 182, 212, 0.08);
}
.sound-toggle.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.2s, transform 0.2s;
  padding: 6px 8px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent-cyan);
}
.nav-link.highlight {
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.08);
}
.nav-link.highlight:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  padding: 104px 0 60px;
  position: relative;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-glow {
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.typed-wrapper {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88em;
  font-weight: 800;
  color: var(--accent-cyan);
  vertical-align: baseline;
}
.typed-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 2px;
}
.cursor {
  color: var(--accent-cyan);
  font-weight: 700;
  animation: blink 0.9s infinite;
  display: inline-block;
  margin-left: 2px;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 30px;
  line-height: 1.7;
}
.hero-lead strong {
  color: var(--text-main);
}
.hero-lead em {
  color: var(--accent-cyan);
  font-style: normal;
}

/* Audio Synth Ribbon / Rack in Hero */
.synth-ribbon {
  background: #0d0f16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 32px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.rack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.screws {
  display: flex;
  gap: 4px;
}
.screws span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 1px 2px #000;
}
.rack-title {
  color: var(--text-dim);
  font-size: 0.65rem;
}
.rack-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  flex: 1;
}
.eq-bar {
  width: 4px;
  background: var(--accent-cyan);
  border-radius: 2px 2px 0 0;
  transition: height 0.1s ease;
  min-height: 4px;
}
.eq-bar:nth-child(even) {
  background: var(--accent-purple);
}
.rack-stats {
  display: flex;
  gap: 16px;
}
.stat-mini {
  display: flex;
  flex-direction: column;
}
.stat-lbl {
  font-size: 0.6rem;
  color: var(--text-dim);
}
.stat-val {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}
.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}
.btn-arrow {
  transition: transform 0.2s;
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Audio Hardware Widget (Hero Visual) */
.hero-visual {
  position: relative;
}
.audio-hardware-card {
  background: linear-gradient(145deg, #131722, #0a0c12);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.audio-hardware-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
}
.deck-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dot-lights {
  display: flex;
  gap: 6px;
}
.dot-lights .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.card-tag {
  color: var(--text-dim);
  font-size: 0.7rem;
}
.rec-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-rose);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  animation: blink 1s infinite;
}

.card-screen {
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}
.waveform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.time-code {
  color: var(--accent-emerald);
}
.canvas-box {
  width: 100%;
  height: 110px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#heroWaveCanvas {
  width: 100%;
  height: 100%;
}
.track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.track-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}
.track-artist {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.play-preview-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-main);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
  transition: transform 0.2s;
}
.play-preview-btn:hover {
  transform: scale(1.1);
}

/* MPC Pads Grid */
.hardware-pads {
  margin-top: 16px;
}
.pad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mpc-pad {
  aspect-ratio: 1;
  background: #1b202e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #0f121b, 0 6px 10px rgba(0,0,0,0.4);
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mpc-pad:hover {
  background: #242b3d;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.mpc-pad:active, .mpc-pad.pad-pressed {
  transform: translateY(4px);
  box-shadow: 0 0 0 #0f121b, 0 0 16px var(--accent-cyan);
  background: var(--accent-cyan);
  color: #000;
}
.pad-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.68rem;
  margin-top: 10px;
}

/* Metrics Strip */
.metrics-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 17, 26, 0.4);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.metric-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.25s, border-color 0.25s;
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
}
.metric-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
}
.metric-num .accent {
  color: var(--accent-cyan);
  font-size: 1.8rem;
}
.metric-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.metric-sub {
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* Common Section Layout */
.section-container {
  padding: 96px 0;
  position: relative;
}
.alternate-bg {
  background: rgba(14, 17, 26, 0.35);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-header {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-tag {
  color: var(--accent-pink);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* About Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.about-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-text-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.bio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bio-pill {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

/* Terminal Card */
.terminal-card {
  background: #090b10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.term-bar {
  background: #11141d;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}
.term-dots {
  display: flex;
  gap: 6px;
}
.term-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dots .r { background: #ff5f56; }
.term-dots .y { background: #ffbd2e; }
.term-dots .g { background: #27c93f; }
.term-title {
  color: var(--text-dim);
  font-size: 0.75rem;
}
.term-content {
  padding: 24px;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.6;
}
.term-content .prompt {
  color: var(--accent-cyan);
  margin-right: 6px;
}
.term-code {
  background: transparent;
  color: inherit;
  font-family: inherit;
  margin: 12px 0 16px;
}
.term-code .key { color: var(--accent-purple); }
.term-code .str { color: var(--accent-emerald); }
.term-success {
  color: var(--accent-emerald);
  margin-left: 14px;
}

/* Projects Showcase Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  background: rgba(23, 27, 40, 0.75);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5), 0 0 24px rgba(6, 182, 212, 0.15);
}
.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.tgx-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.deck-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
}
.miru-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.soon-badge {
  background: rgba(236, 72, 153, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.project-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}
.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.project-ext-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.project-card:hover .project-ext-link {
  color: var(--accent-cyan);
}
.project-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.tech-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.chip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
}

.project-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s;
}
.link-btn:hover {
  gap: 10px;
}

/* Virtual Stream Deck Simulator */
.deck-simulator-frame {
  background: linear-gradient(180deg, #10131d 0%, #080a0f 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.simulator-intro {
  margin-bottom: 36px;
}
.virtual-device {
  max-width: 820px;
  margin: 0 auto;
}
.device-casing {
  background: #141824;
  border: 2px solid #232838;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.device-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.conn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-emerald);
}
.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.device-brand {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.device-screen {
  background: #000;
  border: 1px solid #2d3348;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.screen-watermark {
  color: var(--accent-cyan);
  font-size: 0.75rem;
}
.screen-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}
.speaker-emoji {
  font-size: 3rem;
  transition: transform 0.2s;
}
.speech-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
}
.stream-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}
.live-pill, .rec-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: #1e2230;
  color: var(--text-dim);
}
.live-pill.active {
  background: var(--accent-rose);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-rose);
}
.rec-pill.active {
  background: var(--accent-amber);
  color: #000;
}
.fps-pill {
  color: var(--text-dim);
  font-size: 0.7rem;
}

/* Device Push Buttons */
.device-grid-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.deck-btn {
  background: #1d2232;
  border: 1px solid #2d344d;
  border-radius: var(--radius-md);
  padding: 16px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-main);
  box-shadow: 0 6px 0 #11141e, 0 8px 12px rgba(0,0,0,0.4);
  transition: all 0.12s ease;
  position: relative;
}
.deck-btn:hover {
  background: #252b40;
  border-color: var(--accent-cyan);
}
.deck-btn:active, .deck-btn.active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #11141e, 0 0 16px rgba(6, 182, 212, 0.4);
  background: #22293c;
  border-color: var(--accent-cyan);
}
.deck-btn.active .deck-status-led {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.deck-btn-icon {
  font-size: 1.4rem;
}
.deck-btn-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}
.deck-status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #374151;
}

.device-footnote {
  text-align: center;
  color: var(--text-dim);
  margin-top: 24px;
  font-size: 0.75rem;
}
.device-footnote a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Claude AI Co-builder Pillars */
.claude-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
}
.pillar-num {
  color: var(--accent-purple);
  font-size: 0.75rem;
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Arsenal & Filters */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
}
.tab-btn.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.arsenal-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}
.arsenal-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  background: rgba(23, 27, 40, 0.8);
}
.arsenal-chip.hide {
  display: none;
}
.tool-icon {
  font-size: 1.6rem;
}
.tool-info {
  display: flex;
  flex-direction: column;
}
.tool-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}
.tool-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Interactive Contact Section */
.contact-terminal-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.contact-header {
  max-width: 620px;
  margin: 0 auto 36px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  margin: 12px 0;
  color: #fff;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.email-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #090b10;
  border: 1px solid var(--border-subtle);
  padding: 10px 14px 10px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.email-display {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 600;
}
.copy-email-btn {
  background: var(--grad-main);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.copy-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}

.social-links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.social-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  background: #050608;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.82rem;
}
.glow-text {
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .device-grid-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    height: 60px;
    gap: 8px;
  }
  .brand-tag {
    display: none;
  }
  .brand-badge {
    gap: 8px;
  }
  .logo-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .nav-logo-img,
  .logo-box img {
    height: 28px;
  }
  .status-indicator .status-text {
    display: none;
  }
  .status-indicator {
    padding: 6px;
  }
  .pill-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #0a0c12;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .email-copy-badge {
    flex-direction: column;
    width: 100%;
    padding: 16px;
  }
  .copy-email-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Profile / About Page Hardware Rack Styles
   ========================================================================== */
.about-hero-section {
  padding: 120px 0 60px;
  position: relative;
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  margin-bottom: 40px;
}

.profile-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-main);
}

.profile-intro-layout {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.profile-avatar-box {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  background: #000;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-meta-info {
  flex: 1;
  min-width: 280px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.profile-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 12px;
}

.profile-headline .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-subline {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 650px;
}

/* Story Rack Cards */
.story-rack-section {
  margin-bottom: 48px;
}

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

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.story-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-violet);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.story-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.story-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.story-card p b {
  color: var(--text-main);
}

/* Quick Facts Module */
.facts-rack {
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}

.facts-rack-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.fact-unit {
  background: #0d111c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.fact-unit:hover {
  border-color: var(--accent-cyan);
  background: #111624;
}

.fact-unit-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fact-unit-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Journey Timeline Rack */
.timeline-section {
  margin-bottom: 48px;
}

.timeline-rack {
  display: grid;
  gap: 18px;
}

.tl-rack-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tl-rack-item:nth-child(2) {
  border-left-color: var(--accent-violet);
}
.tl-rack-item:nth-child(3) {
  border-left-color: var(--accent-pink);
}
.tl-rack-item:nth-child(4) {
  border-left-color: var(--accent-emerald);
}

.tl-rack-item:hover {
  transform: translateX(6px);
  background: #101522;
}

.tl-rack-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tl-rack-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.tl-rack-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tl-rack-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tl-rack-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Call to Action Rack Card */
.about-cta-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.about-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.about-cta-card p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 28px;
}

.about-actions-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .profile-header-card {
    padding: 28px 20px;
  }
  .profile-intro-layout {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .profile-avatar-box {
    margin: 0 auto;
  }
  .facts-rack {
    padding: 24px 18px;
  }
  .about-cta-card {
    padding: 36px 20px;
  }
}
