/* ==========================================================================
   KINETIC DESIGN SYSTEM — TOFIG VALIZADA (tofiq.site)
   Architecture: Once UI + ObsidianUI + Aceternity 3D + Emil Kowalski Motion
   ========================================================================== */

:root {
  /* Layer 1: Deep Cyber-Luxe Dark Mode Surface Tokens */
  --surface-page: #080808;
  --surface-subtle: #0f0f10;
  --surface-card: #141517;
  --surface-card-glass: rgba(20, 21, 23, 0.75);
  --surface-elevated: rgba(28, 30, 34, 0.85);
  --surface-pill: rgba(255, 255, 255, 0.06);

  /* Hair-Thin Luminous Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Chromatic Accents & OKLCH-Tuned Glows */
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: oklch(0.72 0.15 210 / 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: oklch(0.70 0.16 162 / 0.35);

  /* Typography Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Font Stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Emil Kowalski Inspired Spring & Out-Expo Curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout Metrics */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

html {
  background-color: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  background-color: var(--surface-page);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  selection-background-color: var(--accent-cyan);
}

::selection {
  background: rgba(6, 182, 212, 0.28);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* Accessibility Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1.5rem;
  z-index: 9999;
  background: var(--accent-cyan);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 0.25s var(--ease-out-expo);
}

.skip-link:focus {
  top: 1.25rem;
}

/* Top Scroll Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  box-shadow: 0 0 14px var(--accent-cyan), 0 0 28px var(--accent-emerald);
  will-change: transform;
}

/* Ambient Atmospheric Layers */
.ambient-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 0);
  background-size: 24px 24px;
}

.ambient-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(135px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.ambient-glow--cyan {
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.ambient-glow--emerald {
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, var(--accent-emerald), transparent 70%);
}

/* Layout Container & Section Scaffolding */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.section-block {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.section-anchor {
  scroll-margin-top: 6rem;
}

/* Typography Tokens */
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-subtitle {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #67e8f9 55%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #a7f3d0 0%, var(--accent-emerald) 60%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   FLOATING DYNAMIC SLIDING PILL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 1060px;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  background: rgba(15, 15, 16, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.3s var(--ease-out-expo), background-color 0.3s var(--ease-out-expo);
}

.glass-nav:hover {
  border-color: var(--border-mid);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  flex-shrink: 0;
}

.nav-brand:hover .nav-avatar {
  transform: scale(1.08);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

.brand-domain {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-brand:hover .brand-domain {
  color: var(--accent-cyan);
}

.nav-pill-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(8, 8, 8, 0.55);
  padding: 0.22rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-sliding-pill {
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: 0;
  width: 84px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.16);
  transition: transform 0.42s var(--ease-out-expo), width 0.42s var(--ease-out-expo), opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.nav-link {
  position: relative;
  z-index: 1;
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out-expo);
  white-space: nowrap;
}

.nav-action-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION & THREE.JS SPATIAL CANVAS
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-canvas-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#kineticHeroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 25%, rgba(8, 8, 8, 0.86) 92%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* Live Status Beacon */
.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.95rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius-pill);
  margin-bottom: 1.35rem;
  backdrop-filter: blur(8px);
}

.beacon-dot-wrapper {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
}

.beacon-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.beacon-ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.65;
  animation: beaconPulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

.beacon-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: #d1fae5;
}

/* Display Hero Headline */
.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
  color: var(--text-primary);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: var(--text-secondary);
  max-width: 630px;
  margin-bottom: 2.1rem;
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Primary & Secondary Action Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.82rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s var(--ease-out-expo), border-color 0.28s ease, background-color 0.28s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #041014;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 28px -8px rgba(6, 182, 212, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px -6px rgba(6, 182, 212, 0.75);
}

.btn-secondary {
  background: var(--surface-card-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-mid);
  background: rgba(255, 255, 255, 0.03);
}

/* Hero Telemetry Bar */
.hero-telemetry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.telemetry-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.telemetry-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* ==========================================================================
   INTERACTIVE AVATAR ART-STYLE SWITCHER CARD
   ========================================================================== */
.avatar-showcase-card {
  position: relative;
  background: var(--surface-card-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
}

.avatar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

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

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-dots span:nth-child(1) { background: rgba(239, 68, 68, 0.65); }
.terminal-dots span:nth-child(2) { background: rgba(245, 158, 11, 0.65); }
.terminal-dots span:nth-child(3) { background: rgba(16, 185, 129, 0.65); }

.avatar-mode-indicator {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.avatar-cycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #67e8f9;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.avatar-cycle-badge:hover {
  background: rgba(6, 182, 212, 0.22);
  transform: translateY(-1px);
}

.avatar-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #050506;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: contrast(1.04);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.avatar-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.avatar-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.22) 51%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.45;
}

.avatar-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.style-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all 0.22s var(--ease-out-expo);
}

.style-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-mid);
  background: rgba(255, 255, 255, 0.06);
}

.style-pill.is-active {
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.pill-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-original { background: #f8fafc; }
.swatch-cyber { background: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }
.swatch-emerald { background: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.swatch-mono { background: #71717a; }

/* ==========================================================================
   LAYER 4: 3D MULTI-LAYER PERSPECTIVE TILT, SPOTLIGHT & BORDER BEAM
   ========================================================================== */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.45s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card.is-tilting {
  transition: transform 0.08s linear, border-color 0.2s ease;
}

.tilt-layer-mid {
  transform: translateZ(18px);
  transform-style: preserve-3d;
}

.tilt-layer-high {
  transform: translateZ(32px);
  transform-style: preserve-3d;
}

.tilt-layer-top {
  transform: translateZ(44px);
  transform-style: preserve-3d;
}

/* Spotlight Radial Cursor Glow */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--spotlight-opacity, 0);
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.13),
    transparent 70%
  );
  transition: opacity 0.35s ease;
}

/* Border Beam Animated Conic Gradient */
@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.border-beam-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle, 0deg) at 50% 50%,
    transparent 0deg,
    var(--accent-cyan) 70deg,
    var(--accent-emerald) 140deg,
    transparent 210deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  animation: borderBeamSpin 8s linear infinite;
}

@keyframes borderBeamSpin {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

/* ==========================================================================
   SECTION 2: PROJECTS BENTO GRID
   ========================================================================== */
.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.project-card {
  grid-column: span 4;
  background: var(--surface-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.15rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card--featured {
  grid-column: span 6;
  background: linear-gradient(160deg, rgba(20, 21, 23, 0.88), rgba(15, 15, 16, 0.94));
}

.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.85);
}

.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
}

.project-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.project-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.status-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.project-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.project-title a {
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: var(--accent-cyan);
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

/* Architectural Protocol Mini-Diagram */
.protocol-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 8, 0.68);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.35rem;
}

.protocol-node {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.node-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.node-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.protocol-arrow {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 1.4rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #d4d4d8;
}

.project-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-footer--dual {
  flex-wrap: wrap;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.project-cta:hover {
  color: var(--accent-cyan);
}

.project-cta-subtle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.project-cta-subtle:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 3: TECHNICAL STACK & CAPABILITY MATRIX
   ========================================================================== */
.stack-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: var(--surface-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stack-filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out-expo);
}

.stack-filter-btn:hover {
  color: var(--text-primary);
}

.stack-filter-btn.is-active {
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.stack-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.stack-card {
  grid-column: span 6;
  background: var(--surface-card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), border-color 0.25s ease;
}

.stack-card--wide {
  grid-column: span 12;
}

.stack-card.is-filtered-out {
  display: none;
}

.stack-card:hover {
  border-color: var(--border-strong);
}

.stack-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.stack-domain-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stack-domain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-emerald { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }
.dot-cyan { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }

.stack-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stack-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.stack-skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stack-skill-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bis-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bis-pillar {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bis-pillar-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.bis-pillar-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 4: EXPERIENCE & EDUCATION TIMELINE LEDGER
   ========================================================================== */
.timeline-ledger {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 1.85rem;
  background: var(--surface-card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease;
}

.timeline-item:hover {
  border-color: var(--border-strong);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 5: DIRECT NETWORKING DECK & FOOTER
   ========================================================================== */
.connect-shell {
  background: linear-gradient(165deg, rgba(20, 21, 23, 0.92), rgba(10, 10, 12, 0.96));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
}

.connect-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.connect-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.network-deck-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.network-card {
  background: rgba(15, 15, 16, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.network-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(20, 22, 26, 0.95);
}

.network-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.network-arrow {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.network-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.network-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.network-handle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-emerald);
  word-break: break-all;
}

.network-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  background: #050506;
  position: relative;
  z-index: 2;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

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

.footer-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.status-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ==========================================================================
   VIEWPORT REVEAL ANIMATION STATES
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 480px;
  }

  .project-card,
  .project-card--featured {
    grid-column: span 6;
  }

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

@media (max-width: 820px) {
  .glass-nav {
    padding: 0.4rem 0.6rem;
  }

  .brand-domain,
  .brand-divider,
  .nav-action-label {
    display: none;
  }

  .nav-pill-container {
    overflow-x: auto;
    max-width: 74vw;
    scrollbar-width: none;
  }

  .nav-pill-container::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    padding: 0.38rem 0.68rem;
    font-size: 0.76rem;
  }

  .project-card,
  .project-card--featured,
  .stack-card,
  .stack-card--wide {
    grid-column: span 12;
  }

  .bis-pillars {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .protocol-diagram {
    flex-direction: column;
    align-items: flex-start;
  }

  .protocol-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .network-deck-grid {
    grid-template-columns: 1fr;
  }

  .avatar-controls {
    grid-template-columns: 1fr;
  }
}

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

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   PRINT / CV EXPORT STYLESHEET (window.print())
   ========================================================================== */
@media print {
  :root {
    --surface-page: #ffffff;
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #52525b;
  }

  body {
    background: #ffffff !important;
    color: #09090b !important;
    font-size: 11pt;
  }

  .site-header,
  .scroll-progress-track,
  .ambient-noise,
  .ambient-glow,
  .hero-canvas-wrapper,
  .avatar-controls,
  .avatar-cycle-badge,
  .stack-filter-bar,
  .hero-cta-group,
  .connect-quick-actions {
    display: none !important;
  }

  .hero-section,
  .section-block {
    min-height: auto !important;
    padding: 1.25rem 0 !important;
    border-top: 1px solid #e4e4e7 !important;
  }

  .project-card,
  .stack-card,
  .timeline-item,
  .network-card,
  .connect-shell {
    background: #ffffff !important;
    border: 1px solid #d4d4d8 !important;
    box-shadow: none !important;
    transform: none !important;
    break-inside: avoid;
    color: #09090b !important;
  }

  .text-gradient-cyan,
  .text-gradient-emerald {
    background: none !important;
    color: #09090b !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}