/* ========================================
   Design Tokens
   ======================================== */
:root {
  /* Core palette */
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1d;
  --bg-card: rgba(14, 14, 35, 0.65);
  --bg-card-hover: rgba(20, 20, 50, 0.8);

  /* Neural colors */
  --neural-cyan: #00d4ff;
  --neural-purple: #8b5cf6;
  --neural-pink: #ec4899;
  --neural-blue: #3b82f6;
  --neural-green: #10b981;
  --neural-orange: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neural-purple), var(--neural-cyan));
  --gradient-accent: linear-gradient(135deg, var(--neural-pink), var(--neural-purple));
  --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--neural-cyan);

  /* Glass */
  --glass-bg: rgba(15, 15, 35, 0.6);
  --glass-border: rgba(139, 92, 246, 0.15);
  --glass-border-hover: rgba(0, 212, 255, 0.3);

  /* Spacing */
  --section-padding: clamp(4rem, 10vh, 8rem);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: white;
}

/* ========================================
   Loader
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brain {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-neuron {
  position: absolute;
  border-radius: 50%;
  background: var(--neural-cyan);
  box-shadow: 0 0 20px var(--neural-cyan),
              0 0 40px rgba(0, 212, 255, 0.3);
}

.loader-neuron.n1 { width: 14px; height: 14px; top: 10px; left: 50%; transform: translateX(-50%); }
.loader-neuron.n2 { width: 10px; height: 10px; top: 40px; left: 15px; background: var(--neural-purple); box-shadow: 0 0 20px var(--neural-purple); }
.loader-neuron.n3 { width: 12px; height: 12px; top: 45px; right: 15px; background: var(--neural-pink); box-shadow: 0 0 20px var(--neural-pink); }
.loader-neuron.n4 { width: 10px; height: 10px; bottom: 25px; left: 30px; }
.loader-neuron.n5 { width: 11px; height: 11px; bottom: 20px; right: 25px; background: var(--neural-purple); box-shadow: 0 0 20px var(--neural-purple); }

.loader-synapse {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neural-cyan), transparent);
  animation: synapse-fire 1.5s ease-in-out infinite;
}

.loader-synapse.s1 { width: 50px; top: 30px; left: 30px; transform: rotate(30deg); animation-delay: 0s; }
.loader-synapse.s2 { width: 45px; top: 35px; right: 20px; transform: rotate(-25deg); animation-delay: 0.3s; }
.loader-synapse.s3 { width: 40px; bottom: 40px; left: 25px; transform: rotate(-15deg); animation-delay: 0.6s; }
.loader-synapse.s4 { width: 55px; bottom: 35px; right: 15px; transform: rotate(20deg); animation-delay: 0.9s; }

@keyframes synapse-fire {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.loader-neuron { animation: neuron-pulse 2s ease-in-out infinite; }
.loader-neuron.n1 { animation-delay: 0s; }
.loader-neuron.n2 { animation-delay: 0.3s; }
.loader-neuron.n3 { animation-delay: 0.6s; }
.loader-neuron.n4 { animation-delay: 0.9s; }
.loader-neuron.n5 { animation-delay: 1.2s; }

@keyframes neuron-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.5); opacity: 1; }
}

.loader-neuron.n2, .loader-neuron.n3, .loader-neuron.n4, .loader-neuron.n5 {
  animation-name: neuron-pulse-no-translate;
}

@keyframes neuron-pulse-no-translate {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.loader-dots::after {
  content: '';
  animation: loader-dots 1.5s steps(4, end) infinite;
}

@keyframes loader-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  color: var(--neural-cyan);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

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

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--neural-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out 1.8s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--neural-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neural-green);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-title-line {
  display: block;
  animation: fadeInUp 0.8s ease-out 2s both;
}

.hero-title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 2.2s both;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.6s ease-out 2.5s both;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 2.7s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 2.9s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeInUp 0.6s ease-out 3.2s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neural-purple), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  background: rgba(139, 92, 246, 0.05);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-icon {
  font-size: 1.1em;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--neural-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  padding: 0 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(0, 212, 255, 0.3);
}

.section-label::before { right: 100%; }
.section-label::after { left: 100%; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Glass Card
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.1);
}

/* ========================================
   Neural Network Section
   ======================================== */
.network-section {
  position: relative;
  padding: var(--section-padding) 2rem;
  min-height: 100vh;
  background: var(--bg-secondary);
}

.network-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(6, 6, 15, 0.8);
}

.network-canvas {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.network-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 6, 15, 0.8);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 5;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-project { background: var(--neural-cyan); box-shadow: 0 0 8px var(--neural-cyan); }
.legend-skill { background: var(--neural-purple); box-shadow: 0 0 8px var(--neural-purple); }
.legend-category { background: var(--neural-orange); box-shadow: 0 0 8px var(--neural-orange); }

.network-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(6, 6, 15, 0.8);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  z-index: 5;
  transition: opacity 0.4s;
}

.network-hint.hidden {
  opacity: 0;
}

.hint-icon { margin-right: 0.25rem; }

/* ========================================
   Case Study Panel
   ======================================== */
.case-study {
  position: fixed;
  top: 0;
  right: -500px;
  width: min(460px, 90vw);
  height: 100vh;
  z-index: 2000;
  background: rgba(10, 10, 25, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--glass-border);
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study.open {
  right: 0;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.case-study-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.case-study-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.case-study-content {
  margin-top: 2rem;
}

.cs-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  display: inline-block;
}

.cs-type-project { color: var(--neural-cyan); background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); }
.cs-type-skill { color: var(--neural-purple); background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2); }
.cs-type-category { color: var(--neural-orange); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

.cs-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.cs-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cs-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cs-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cs-meta-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 80px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.cs-tag {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--neural-purple);
}

.cs-connections {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.cs-connections-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.cs-connection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cs-connection-item {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--neural-cyan);
  cursor: pointer;
  transition: var(--transition);
}

.cs-connection-item:hover {
  background: rgba(0, 212, 255, 0.15);
}

/* ========================================
   Experience Timeline
   ======================================== */
.experience-section {
  padding: var(--section-padding) 2rem;
  position: relative;
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neural-purple), var(--neural-cyan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
}

.timeline-item[data-side="right"] {
  justify-content: flex-end;
  padding-left: calc(50% + 2rem);
}

.timeline-item[data-side="left"] {
  justify-content: flex-start;
  padding-right: calc(50% + 2rem);
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  position: relative;
}

.timeline-node-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: node-ring 2s ease-in-out infinite;
}

@keyframes node-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}

.timeline-card {
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neural-cyan);
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-company a {
  color: var(--neural-purple);
  font-weight: 600;
  transition: var(--transition);
}

.timeline-company a:hover { color: var(--neural-cyan); }

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neural-purple);
  opacity: 0.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 5px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--neural-purple);
}

/* ========================================
   Publication
   ======================================== */
.publication-section {
  padding: var(--section-padding) 2rem;
  background: var(--bg-secondary);
}

.publication-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.publication-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neural-cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.pub-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.pub-abstract {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pub-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pub-highlight {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  background: rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.pub-highlight-icon {
  font-size: 1rem;
}

/* ========================================
   Skills
   ======================================== */
.skills-section {
  padding: var(--section-padding) 2rem;
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.skills-category {
  padding: 1.75rem;
}

.skills-category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.skills-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-badge {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-badge:hover {
  border-color: var(--neural-cyan);
  color: var(--neural-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.skill-badge-accent {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--neural-purple);
}

.skill-badge-accent:hover {
  border-color: var(--neural-purple);
  background: rgba(139, 92, 246, 0.15);
  color: var(--neural-purple);
}

/* ========================================
   Beyond Code
   ======================================== */
.beyond-section {
  padding: var(--section-padding) 2rem;
  background: var(--bg-secondary);
}

.hobbies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: default;
}

.hobby-item:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.hobby-icon { font-size: 1.4rem; }

.hobby-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ========================================
   Contact
   ======================================== */
.contact-section {
  padding: var(--section-padding) 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  margin-top: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link svg { width: 20px; height: 20px; }

.social-link:hover {
  color: var(--neural-cyan);
  border-color: var(--neural-cyan);
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  background: var(--bg-primary);
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    flex-direction: column;
    background: rgba(6, 6, 15, 0.97);
    backdrop-filter: blur(24px);
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.open { right: 0; }

  .nav-burger { display: flex; }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  /* Timeline mobile */
  .timeline-line { left: 1rem; }
  .timeline-item[data-side="right"],
  .timeline-item[data-side="left"] {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-node {
    left: 1rem;
  }
  .timeline-card {
    max-width: 100%;
  }

  .network-container {
    height: 450px;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
  }
  .btn { width: 100%; justify-content: center; }
  .network-container {
    height: 380px;
  }
  .publication-card {
    padding: 1.5rem;
  }
  .pub-highlights {
    flex-direction: column;
  }
}
