/* ============================================
   ADAM HE — PORTFOLIO | Light Minimal Theme
   White-dominant, Black accent
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-card: #f7f7f7;
  --bg-card-hover: #f0f0f0;
  --border-color: #e5e5e5;
  --border-accent: #d0d0d0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #000000;
  --accent-dim: rgba(0, 0, 0, 0.04);
  --accent-glow: rgba(0, 0, 0, 0.02);
  --accent-blue: #2563EB;
  --terminal-bg: #1a1a1a;
  --terminal-text: #e0e0e0;
  --terminal-muted: #888888;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Theme (triggered by terminal command "black") --- */
html.dark-theme {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border-color: #2a2a2a;
  --border-accent: #3a3a3a;
  --text-primary: #f0f0f0;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.03);
  --terminal-bg: #111111;
  --terminal-text: #e0e0e0;
  --terminal-muted: #888888;
}

html.dark-theme body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

html.dark-theme .grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}

html.dark-theme .glow-orb {
  opacity: 0;
}

html.dark-theme .nav {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--border-color);
}

html.dark-theme .nav-links a {
  color: var(--text-secondary);
}

html.dark-theme .nav-links a:hover,
html.dark-theme .nav-links a.active {
  color: var(--text-primary);
}

html.dark-theme .nav-logo {
  color: var(--text-secondary);
}

html.dark-theme .card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark-theme .card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

html.dark-theme .card::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), transparent 60%);
}

html.dark-theme .tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

html.dark-theme .tag:hover {
  background: rgba(37, 99, 235, 0.15);
}

html.dark-theme .hero-name,
html.dark-theme .hero-name .outline {
  color: var(--text-primary);
  -webkit-text-stroke-color: var(--text-primary);
}

html.dark-theme .hero-greeting {
  color: var(--accent-blue);
}

html.dark-theme .hero-tagline {
  color: var(--text-secondary);
}

html.dark-theme .btn {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

html.dark-theme .btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-theme .btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}

html.dark-theme .btn-primary:hover {
  background: #e0e0e0;
}

html.dark-theme .footer {
  border-top-color: var(--border-color);
  color: var(--text-muted);
}

html.dark-theme .about-photo {
  border-color: var(--border-color);
}

html.dark-theme .contact-link {
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.dark-theme .contact-link:hover {
  background: var(--bg-card);
  border-color: var(--accent-blue);
}

html.dark-theme .section-label {
  color: var(--text-primary);
}

html.dark-theme .filter-tab-active {
  color: var(--accent-blue);
}

html.dark-theme .proj-compact {
  background: var(--bg-card);
  border-color: var(--border-color);
}

html.dark-theme .proj-compact:hover {
  border-color: var(--border-accent);
}

html.dark-theme .edu-watermark {
  filter: grayscale(1) invert(1) brightness(1.5);
  opacity: 0.12;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

#neural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.5s ease, color 0.5s ease;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-secondary);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

/* nav-logo span removed — no longer used */

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Resume button in nav */
.nav-resume-btn {
  padding: 5px 14px !important;
  border: 1px solid var(--text-primary) !important;
  border-radius: 4px !important;
  color: var(--text-primary) !important;
  font-size: 0.7rem !important;
  transition: all var(--transition-fast) !important;
}

.nav-resume-btn:hover {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
}

.nav-resume-btn::after {
  display: none !important;
}

/* Project detail page styles */
.project-detail-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 48px;
}

.project-detail-hero .project-number {
  margin-bottom: 16px;
}

.project-detail-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-detail-hero .project-org {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.project-detail-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.project-back:hover {
  color: var(--text-primary);
}

/* Image placeholder */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  gap: 8px;
  margin-bottom: 24px;
}

.img-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--border-accent);
}

/* Project section blocks */
.project-section {
  margin-bottom: 48px;
}

.page-container .section img[src*="projects/police"],
.page-container .section img[src*="projects/hubble"],
.page-container .section img[src*="projects/dca"] {
  background: #ffffff;
}

.project-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.project-section p,
.project-section li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.project-section ul {
  list-style: none;
  padding: 0;
}

.project-section ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.project-section ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Certifications section */
.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.cert-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.cert-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cert-info p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --- Page Container --- */
.page-container {
  min-height: 100vh;
  padding-top: 64px;
}

/* --- Scroll-Snap Page (About) --- */
.snap-page {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding-top: 0;
}

.snap-page .section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* --- Snap Scroll Arrow --- */
.snap-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  color: var(--text-secondary);
  animation: arrowBounce 1.5s ease-in-out infinite;
  pointer-events: none;
}

.snap-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.snap-arrow-up {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  color: var(--text-secondary);
  animation: arrowBounceUp 1.5s ease-in-out infinite;
  pointer-events: none;
}

.snap-arrow-up svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

@keyframes arrowBounceUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* --- Section Base --- */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '//';
  color: var(--accent-blue);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
}

/* --- Grid Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Card Component --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  background: var(--accent-dim);
  transition: all var(--transition-fast);
}

.tag:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Terminal Style Block (stays dark for contrast) --- */
.terminal-block {
  background: var(--terminal-bg);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.terminal-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.03);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #777;
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: #aaa;
}

.terminal-body .prompt {
  color: #2563EB;
}

.terminal-body .command {
  color: var(--terminal-text);
}

.terminal-body .output {
  color: var(--terminal-muted);
}

.terminal-body .highlight {
  color: #f0f0f0;
}

/* --- Terminal Input --- */
.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-input {
  background: none;
  background-color: transparent;
  border: none;
  outline: none;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  width: 100%;
  padding: 0;
  margin: 0;
  caret-color: #2563EB;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  border-radius: 0;
}

.terminal-input::placeholder {
  color: #52525b;
  font-style: italic;
}

.terminal-hint {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #71717a;
  margin-top: 10px;
  font-style: italic;
}

.terminal-hint span {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-style: normal;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--text-secondary);
  color: #000;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn-primary:hover {
  background: #333333;
  color: #ffffff;
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* --- Hero Section (index.html) --- */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  position: relative;
}

.hero-content {
  max-width: 1100px;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.hero-name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  min-height: 1.1em;
}

/* Typewriter cursor */
.hero-name-typing::after {
  content: '|';
  color: var(--accent-blue);
  font-weight: 400;
  animation: heroCursorBlink 0.6s step-end infinite;
  margin-left: 2px;
}
@keyframes heroCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-name .outline {
  color: var(--text-primary);
}

.hero-tagline {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 860px;
  line-height: 1.7;
  padding-left: 10px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-left: 10px;
}

.hero-meta-vertical {
  flex-direction: column;
  gap: 12px;
}

.hero-meta-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta-item .label {
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-left: 10px;
}

/* Subtle grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Soft gradient glow effect */
.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

.glow-orb-1 {
  top: -200px;
  right: -200px;
  background: #d0d0d0;
}

.glow-orb-2 {
  bottom: -200px;
  left: -200px;
  background: #e0e0e0;
}

/* Side nav dots */
.side-nav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 100;
}

.side-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.side-dot.active {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  transform: scale(1.25);
}

.side-dot:hover {
  border-color: var(--accent-blue);
}

.side-tooltip {
  display: none;
}

/* --- About Page --- */
.about-section {
  justify-content: center !important;
  gap: 0 !important;
}

/* Slide-up entrance animation system */
.anim-slide-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-slide-up.anim-visible { opacity: 1; transform: none; }
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }
.anim-d5 { transition-delay: 0.5s; }
.anim-d6 { transition-delay: 0.65s; }

/* Photo + bio hero */
.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.about-photo-col {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, var(--accent-blue), transparent 70%);
  opacity: 0.06;
  border-radius: 20px;
  z-index: -1;
  pointer-events: none;
}

.about-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.about-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  top: 2px;
}

.about-socials a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.about-socials a:hover {
  color: var(--accent-blue);
}

.about-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.about-nick {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.4rem;
}

.about-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.about-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}


/* Domain skill tags — 4x2 grid inside bio */
.about-domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.domain-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
}

.domain-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 8px;
}

.domain-particle {
  position: absolute;
  font-size: 10px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  animation: domainFloat 1.4s ease-out forwards;
}

@keyframes domainFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  15% { opacity: 0.7; transform: translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.6); }
}

.domain-tag.domain-visible {
  opacity: 1;
  transform: none;
}

.domain-tag svg {
  color: var(--accent-blue);
  flex-shrink: 0;
}

.domain-tag:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-blue) 6%, var(--bg-card));
}

/* Explore skills link */
.about-skills-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.about-skills-link:hover {
  gap: 10px;
}

.about-skills-link svg {
  transition: transform 0.2s ease;
}

.about-skills-link:hover svg {
  transform: translateX(3px);
}

/* Skill detail cards entrance */
#skills-detail .skill-category {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#skills-detail .skill-category.card-visible {
  opacity: 1;
  transform: none;
}

/* Education cards */
.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.edu-watermark {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.edu-glow:hover .edu-watermark {
  opacity: 1;
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 100px;
  padding-top: 3px;
}

.edu-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-content .school {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.edu-content .degree {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Education glow aura */
.edu-glow {
  --uni-primary: var(--accent-blue);
  --uni-secondary: var(--accent-blue);
  transition: border-color 0.4s ease,
              box-shadow 0.4s ease,
              background 0.3s ease;
}

.edu-glow:hover {
  border-color: var(--uni-primary);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--uni-primary) 25%, transparent),
    0 0 22px color-mix(in srgb, var(--uni-primary) 15%, transparent),
    0 0 40px color-mix(in srgb, var(--uni-secondary) 8%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--uni-primary) 4%, transparent);
}


/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-category {
  position: relative;
  overflow: hidden;
}

.skill-category:hover {
  transform: none;
}

/* Watermark icon */
.skill-watermark {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 80px;
  height: 80px;
  color: var(--accent-blue);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.skill-watermark svg {
  width: 100%;
  height: 100%;
}

.skill-category:hover .skill-watermark {
  opacity: 0.12;
  transform: scale(1.1) rotate(-4deg);
}

/* Top accent bar */
.skill-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.skill-category h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.skill-category .tag {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.skill-category:hover .tag {
  border-color: color-mix(in srgb, var(--accent-blue) 30%, var(--border-color));
}

.skill-category .tag:hover {
  background: color-mix(in srgb, var(--accent-blue) 8%, var(--bg-card));
  border-color: var(--accent-blue);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* More section */
.more-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.more-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.more-left-col .more-block:last-child {
  flex: 1;
}

.more-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

/* Language styles */
.language-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.language-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.language-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
}

.language-level {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.more-block-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-block-title svg {
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* Soft Skills */
.soft-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-skill-item {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.soft-skill-item:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-blue) 5%, var(--bg-card));
}

.soft-skill-highlight {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
  background: transparent;
  position: relative;
  animation: gentle-shake 3s ease-in-out infinite;
}

.soft-skill-highlight::before {
  content: none;
}

.spark-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 4px var(--accent-blue), 0 0 8px var(--accent-blue);
  pointer-events: none;
  animation: spark-fly 0.8s ease-out forwards;
  opacity: 1;
}

@keyframes spark-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

@keyframes gentle-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-1.5px) rotate(-0.5deg); }
  30% { transform: translateX(1.5px) rotate(0.5deg); }
  45% { transform: translateX(-1px) rotate(-0.3deg); }
  60% { transform: translateX(1px) rotate(0.3deg); }
  75% { transform: translateX(0); }
}

/* CliftonStrengths 34 Grid */
.gallup-grid-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  flex: 2;
}

/* Gallup domain distribution bar */
.gallup-bar-wrap {
  margin-bottom: 14px;
}

.gallup-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.gallup-bar-seg {
  transition: opacity 0.3s ease;
}

.gallup-bar-seg[data-domain="strategic-thinking"] { background: #3A874F; }
.gallup-bar-seg[data-domain="executing"]          { background: #7B4FA0; }
.gallup-bar-seg[data-domain="influencing"]        { background: #D47B2A; }
.gallup-bar-seg[data-domain="relationship"]       { background: #2A7AB5; }

.gallup-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Domain colors */
.gallup-domain-col[data-domain="executing"]          { --gallup-color: #7B4FA0; }
.gallup-domain-col[data-domain="influencing"]        { --gallup-color: #D47B2A; }
.gallup-domain-col[data-domain="relationship"]       { --gallup-color: #2A7AB5; }
.gallup-domain-col[data-domain="strategic-thinking"] { --gallup-color: #3A874F; }

.gallup-domain-header {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gallup-color);
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--gallup-color);
}

.gallup-cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 6px;
  margin-bottom: 3px;
  border-radius: 4px;
  font-size: 0.74rem;
  color: var(--text-muted);
  transition: background 0.2s ease;
  line-height: 1.2;
}

.gallup-cell::before {
  content: attr(data-rank);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  min-width: 18px;
  text-align: right;
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.gallup-cell:hover {
  background: color-mix(in srgb, var(--gallup-color) 8%, var(--bg-card));
}

/* Top 10 strengths — highlighted */
.gallup-cell.gallup-top {
  color: var(--text-primary);
  font-weight: 500;
  background: color-mix(in srgb, var(--gallup-color) 8%, var(--bg-card));
  border-left: 2px solid var(--gallup-color);
}

.gallup-cell.gallup-top::before {
  color: var(--gallup-color);
  font-weight: 600;
  opacity: 1;
}

.gallup-cell.gallup-top:hover {
  background: color-mix(in srgb, var(--gallup-color) 14%, var(--bg-card));
}

/* --- Filter Tabs (Underline Style, Scrollable) --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
  padding-bottom: 2px;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--accent-blue);
  border-bottom-color: color-mix(in srgb, var(--accent-blue) 40%, transparent);
}

.filter-tab-active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
  font-weight: 500;
}

.filter-tab-active:hover {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.filter-tab:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Card hidden state for filtering */
/* Card hidden state for filtering */
.proj-card.hidden,
.proj-compact.hidden {
  opacity: 0 !important;
  pointer-events: none;
  position: absolute !important;
  visibility: hidden;
}

/* --- Projects Page: Featured Label (badge on thumbnail) --- */
.proj-featured-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
  z-index: 2;
}

.proj-metrics-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.proj-metrics-list li strong {
  color: var(--accent-blue);
  font-weight: 600;
  margin-right: 4px;
}

/* --- Projects Page: Grid --- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Featured card spans 2 of 3 columns */
.proj-card--featured {
  grid-column: span 2;
  border-top: 2px solid var(--accent-blue);
}

/* --- Project Card Thumbnail Banner --- */
.proj-thumb {
  margin: -36px -36px 20px -36px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  position: relative;
}
.proj-card--featured .proj-thumb {
  aspect-ratio: 4 / 1;
  margin-top: calc(-36px - 2px); /* account for border-top */
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.proj-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25, 55, 109, 0.25);
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.proj-compact:hover .proj-thumb::after {
  opacity: 0;
}

/* Hover info overlay — covers entire card */
.proj-hover-info {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.proj-compact:hover .proj-hover-info {
  opacity: 1;
  pointer-events: auto;
}
.proj-hover-info p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.proj-hover-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.proj-hover-info li {
  position: relative;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  line-height: 1.55;
  margin-bottom: 6px;
}
.proj-hover-info li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.proj-hover-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 40%, transparent);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 500;
}
.proj-hover-org {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.proj-hover-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.proj-hover-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}
.proj-compact:hover .proj-hover-cta {
  transform: translateX(4px);
}

/* Layered thumbnail: bg image + overlay screenshot */
.proj-thumb--layered {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
}
.proj-thumb--layered .proj-thumb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.proj-thumb--layered .proj-thumb-overlay {
  position: relative;
  z-index: 1;
  width: 60%;
  max-height: 85%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease;
  transform-origin: left center;
}
.proj-compact:hover .proj-thumb-overlay {
  transform: scale(1.12);
}

.proj-compact:hover .proj-thumb img:not(.proj-thumb-overlay) {
  transform: scale(1.03);
}

.proj-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.proj-compact.visible {
  opacity: 1;
  transform: translateY(0);
}

.proj-compact h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

/* Short description below title */
.proj-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-desc--full {
  -webkit-line-clamp: unset;
  overflow: visible;
  display: block;
  font-size: 0.85rem;
  line-height: 1.65;
}

.proj-compact .highlight-list {
  list-style: none;
  margin-bottom: 20px;
}

.proj-compact .highlight-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 7px;
  line-height: 1.6;
}

.proj-compact .highlight-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.proj-compact .project-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.proj-compact:hover .project-arrow {
  color: var(--accent-blue);
  transform: translateX(4px);
}

.proj-compact .tags {
  margin-top: auto;
  padding-bottom: 8px;
}

.proj-compact .tag {
  font-size: 0.65rem;
  padding: 4px 10px;
}

/* Shimmer on compact cards */
.proj-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.03), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.proj-compact:hover::before {
  left: 100%;
}

/* Placeholder card */
.proj-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-style: dashed;
  background: transparent;
  opacity: 0.5 !important;
  min-height: 200px;
}
.proj-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  display: block;
  -webkit-line-clamp: unset;
}

/* Shared project-org style */
.project-org {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

/* --- Experience Page: Vertical Sections (snap sub-pages) --- */
.snap-page .exp-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 80px 0 calc(20% + 60px);
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* --- Fixed Experience Timeline — Minimal Breath --- */
#exp-tl-fixed {
  position: fixed;
  left: calc(20% - 180px);
  top: 50%;
  transform: translateY(-50%);
  height: 50vh;
  width: 80px;
  z-index: 150;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

#exp-tl-fixed.hidden {
  opacity: 0;
}

/* Inner wrapper — holds spine + breath segments, slides to center active */
.tl-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Year labels along the spine */
.tl-year {
  position: absolute;
  right: calc(10px + 10px);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  opacity: 0.35;
  white-space: nowrap;
  user-select: none;
}

html.dark-theme .tl-year { opacity: 0.25; }

/* Spine — constant thin line, fades at both ends */
.tl-spine {
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(50%);
  background: color-mix(in srgb, var(--accent-blue) 18%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 88%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 88%, transparent 95%);
}

html.dark-theme .tl-spine {
  background: color-mix(in srgb, var(--accent-blue) 12%, transparent);
}

/* Intensity segment — brighter line at job periods, tapers to a point at edges */
.tl-intensity {
  position: absolute;
  right: 10px;
  transform: translateX(50%);
  width: 2.5px;
  background: var(--accent-blue);
  opacity: 0.22;
  transition: opacity 0.6s ease, box-shadow 0.6s ease;
  clip-path: polygon(50% -2%, 100% 12%, 100% 88%, 50% 102%, 0% 88%, 0% 12%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 2%, black 16%, black 84%, transparent 98%);
  mask-image: linear-gradient(to bottom, transparent 2%, black 16%, black 84%, transparent 98%);
  box-shadow: none;
}

/* Active — brighter with soft glow */
.tl-intensity.active {
  opacity: 0.5;
  box-shadow:
    0 0 6px color-mix(in srgb, var(--accent-blue) 20%, transparent),
    0 0 18px color-mix(in srgb, var(--accent-blue) 8%, transparent);
}

html.dark-theme .tl-intensity { opacity: 0.15; }
html.dark-theme .tl-intensity.active {
  opacity: 0.4;
  box-shadow:
    0 0 8px color-mix(in srgb, var(--accent-blue) 25%, transparent),
    0 0 22px color-mix(in srgb, var(--accent-blue) 10%, transparent);
}

/* Dotted connector between Mercedes sections — inside each section */
.mb-dotted-connector {
  position: absolute;
  width: 0;
  border-left: 2.5px dashed rgba(160, 160, 160, 0.3);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 2s ease;
}

.mb-dotted-connector.visible {
  opacity: 1;
  transition: opacity 0.3s ease;
}

html.dark-theme .mb-dotted-connector {
  border-left-color: rgba(180, 180, 180, 0.2);
}

/* Year watermark — left of the timeline, bolder presence */
#exp-tl-fixed .exp-tl-year-wm {
  position: absolute;
  right: calc(50% + 14px);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  transition: top 0.5s ease, opacity 0.3s ease;
}

#exp-tl-fixed .exp-tl-year-wm.visible { opacity: 0.2; }
#exp-tl-fixed .exp-tl-year-wm.fading { opacity: 0; }
html.dark-theme #exp-tl-fixed .exp-tl-year-wm.visible { opacity: 0.14; }


/* --- Background Logo --- */
.htl-slide-bg {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%) scale(0.88);
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.03;
  pointer-events: none;
  filter: grayscale(1);
  z-index: 0;
  will-change: opacity, transform, filter;
}
.htl-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Dark theme base tint — JS handles opacity/transform */
html.dark-theme .htl-slide-bg {
  filter: grayscale(1) invert(1) brightness(1.5);
}

/* Shared Mercedes logo — fixed position, persists across both MB sections */
.mb-shared-bg {
  position: fixed;
  right: 8%;
  top: 50%;
  transform: translateY(-50%) scale(0.88);
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  filter: grayscale(1);
  z-index: 0;
  will-change: opacity, transform, filter;
}

.mb-shared-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.dark-theme .mb-shared-bg {
  filter: grayscale(1) invert(1) brightness(1.5);
}

/* Per-company bg sizing */
[data-company="forbes"] .htl-slide-bg { width: 550px; height: 550px; }
[data-company="hb"] .htl-slide-bg { width: 520px; height: 520px; }
[data-company="farfetch"] .htl-slide-bg { width: 480px; height: 480px; }

/* --- Content --- */
.htl-slide-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.exp-section.visible .htl-slide-content {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
.htl-slide-header {
  margin-bottom: 28px;
}
.htl-slide-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.htl-slide-company {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.htl-slide-location {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* --- Role --- */
.htl-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.htl-role-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* --- Details --- */
.htl-details {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.htl-details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.exp-section.visible .htl-details li {
  opacity: 1;
  transform: translateX(0);
}
.exp-section.visible .htl-details li:nth-child(1) { transition-delay: 0.3s; }
.exp-section.visible .htl-details li:nth-child(2) { transition-delay: 0.4s; }
.exp-section.visible .htl-details li:nth-child(3) { transition-delay: 0.5s; }
.exp-section.visible .htl-details li:nth-child(4) { transition-delay: 0.6s; }

.htl-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- Tags in experience sections --- */
.exp-section .tags {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}
.exp-section.visible .tags {
  opacity: 1;
  transform: translateY(0);
}


/* --- Experience Responsive --- */
@media (max-width: 1024px) {
  .exp-section { padding: 0 50px 0 calc(20% + 40px); }
  .htl-slide-company { font-size: 2.2rem; }
  .htl-slide-bg { width: 380px; height: 380px; right: 2%; }
  .mb-shared-bg { width: 380px; height: 380px; right: 2%; }
  [data-company="forbes"] .htl-slide-bg { width: 420px; height: 420px; }
  [data-company="hb"] .htl-slide-bg { width: 400px; height: 400px; }
  [data-company="farfetch"] .htl-slide-bg { width: 360px; height: 360px; }
}

@media (max-width: 768px) {
  .exp-section {
    padding: 80px 28px 60px 28px;
    align-items: flex-start;
  }
  .htl-slide-company { font-size: 1.8rem; }
  .htl-role { font-size: 1rem; }
  .htl-details li { font-size: 0.82rem; }
  .htl-slide-bg { width: 250px; height: 250px; right: -40px; top: 60%; opacity: 0.03; }
  .htl-slide-content { max-width: 100%; }
}

@media (max-width: 480px) {
  .exp-section { padding: 90px 20px 50px 20px; }
  .htl-slide-company { font-size: 1.5rem; }
  .htl-slide-bg { width: 180px; height: 180px; }
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  color: var(--text-primary);
}

.contact-link-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-link-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Make footer reachable inside snap-scroll pages */
.snap-page .footer {
  scroll-snap-align: end;
  min-height: auto;
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-blue);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Typing cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #2563EB;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Rotating Role Text --- */
.role-rotate-wrapper {
  display: flex;
  align-items: baseline;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: -8px;
}

.role-rotate-text {
  display: inline-block;
  min-width: 1ch;
}

.role-cursor {
  display: inline-block;
  color: var(--accent-blue);
  font-weight: 400;
  animation: roleCursorBlink 0.7s step-end infinite;
  margin-left: 1px;
  opacity: 0;
}

@keyframes roleCursorBlink {
  50% { opacity: 0; }
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 700px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .stats-bar {
    padding: 24px 16px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.6rem;
  }
}

/* ============================================
   ADVANCED ANIMATION STYLES
   ============================================ */

/* --- Page Load Transition --- */
body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

/* --- Cursor Glow Follower --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: opacity 0.3s ease;
}

/* --- Text Scramble Characters --- */
.scramble-char {
  color: var(--accent-blue);
  font-weight: 700;
  opacity: 0.7;
}

/* --- Tech Mosaic Name Effect --- */

/* Char spans are inline so they don't shift layout at all */
/* (Mosaic styles removed — using typewriter animation now) */

/* --- Tag Ripple Effect --- */
.tag {
  position: relative;
  overflow: hidden;
}

.tag-ripple {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  transform: translate(-50%, -50%) scale(0);
  animation: tagRipple 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes tagRipple {
  to {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* --- Card 3D Tilt Transition --- */
.card,
.cert-card {
  will-change: transform;
  transition: all var(--transition-smooth), transform 0.15s ease-out, background 0.15s ease-out;
}

/* --- Smooth Scroll Reveal Defaults --- */
.fade-in {
  will-change: opacity, transform;
}

/* --- Nav Shrink Transition --- */
.nav {
  will-change: height, box-shadow;
  transition: all var(--transition-smooth), height 0.3s ease, box-shadow 0.3s ease;
}

/* --- Magnetic Button Smoothing --- */
.btn {
  will-change: transform;
}

/* --- Counter Numbers Glow on Animate --- */
.card [style*="font-size: 2rem"] {
  transition: color 0.3s ease;
}

/* --- Timeline Progressive Reveal Defaults --- */
.timeline-item {
  will-change: opacity, transform;
}

/* --- Parallax Grid Background --- */
.grid-bg {
  will-change: transform;
  transition: none;
}

/* --- Hero Name Scramble Phase --- */
.hero-name {
  will-change: opacity, transform;
  position: relative;
}

/* --- Floating Accent Pulse --- */
.glow-orb {
  animation: floatOrb 8s ease-in-out infinite;
}

.glow-orb-2 {
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* --- Terminal Cursor Blink Enhancement --- */
.cursor {
  animation: blink 1s step-end infinite, cursorGlow 2s ease-in-out infinite;
}

@keyframes cursorGlow {
  0%, 100% { box-shadow: 0 0 2px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 0 8px rgba(37, 99, 235, 0.6); }
}

/* --- Nav Toggle Hamburger Animation --- */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Staggered Card Entrance Animation --- */

/* --- Hover Shimmer for Project Cards --- */
/* (moved to .proj-featured::after and .proj-compact::before above) */

/* --- Section Label Slide-in --- */
.section-label {
  position: relative;
  overflow: hidden;
}

.section-label::after {
  display: none;
}

/* --- Button Hover Glow --- */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: transparent;
  transition: box-shadow var(--transition-fast);
  pointer-events: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- Contact Link Slide Arrow --- */
.contact-link::after {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: auto;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-fast);
}

.contact-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* --- Timeline Dot Pulse on Scroll --- */
.timeline-item:hover .timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.3);
  animation: dotPulse 1.5s ease-out infinite;
}

@keyframes dotPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* --- Smooth Focus for Accessibility --- */
*:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* --- Hide Cursor Glow on Mobile --- */
@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section { padding: 80px 32px; }
  .about-hero { grid-template-columns: 250px 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card--featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .side-nav { display: none; }
  #exp-tl-fixed { display: none; }
  #neural-bg { display: none; }
  .edu-sep { display: none; }
  .edu-name { display: block; }
  .nav { padding: 0 30px; }
  .page-container { padding-left: 0; padding-right: 0; }

  .nav .nav-links {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 36px !important;
    z-index: 9998 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav .nav-links.open { display: flex !important; }

  .nav .nav-links a {
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
  }

  .nav-toggle { display: flex; z-index: 9999; }

  .section { padding: 60px 30px; }

  .snap-page {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .snap-page .section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    display: block;
    padding: 60px 30px;
  }

  .hero { padding: 60px 30px; }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about-photo-col {
    max-width: 200px;
    margin: 0 auto;
  }

  .about-photo-glow { display: none; }

  .about-highlights {
    padding: 16px 20px;
    gap: 0;
  }

  .about-domains { grid-template-columns: repeat(2, 1fr); }
  .domain-tag { font-size: 0.65rem; padding: 5px 0; }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }
  .proj-card--featured {
    grid-column: span 1;
  }
  .proj-compact {
    padding: 28px;
  }
  .proj-thumb {
    margin: -28px -28px 16px -28px;
    aspect-ratio: 2 / 1;
  }
  .proj-card--featured .proj-thumb {
    aspect-ratio: 16 / 9;
    margin-top: calc(-28px - 2px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-meta { gap: 16px; }

  /* Remove desktop hero padding */
  .hero-tagline, .hero-meta, .hero-actions {
    padding-left: 0;
  }

  /* Dark theme mobile nav */
  html.dark-theme .nav .nav-links {
    background: #111111 !important;
  }

  /* Hide snap arrows on mobile */
  .snap-arrow { display: none; }
  .snap-arrow-up { display: none; }

  /* Filter tabs mobile */
  .filter-tabs {
    gap: 4px;
    margin-bottom: 36px;
  }
  .filter-tab {
    font-size: 0.65rem;
    padding: 6px 10px 8px;
  }

  /* Skills grid to 1 column */
  .skills-grid { grid-template-columns: 1fr; }

  /* More section responsive */
  .more-row { flex-direction: column; }
  .gallup-domain-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reduce edu watermark on mobile */
  .edu-watermark {
    width: 80px;
    height: 80px;
    opacity: 0.1;
    right: 12px;
  }

  /* Old timeline spacing removed — now using horizontal timeline */
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }

  /* Terminal block overflow */
  .terminal-block { font-size: 0.7rem; }
  .terminal-body { padding: 12px 16px; }
  .terminal-input { font-size: 0.75rem; }

  /* Hide edu watermark on very small screens */
  .edu-watermark { display: none; }

  .about-name { font-size: 1.4rem; }
  .about-domains { grid-template-columns: repeat(2, 1fr); }
  .domain-tag { font-size: 0.6rem; }
  .domain-tag svg { width: 11px; height: 11px; }
}
