:root {
  --bg: #08080a;
  --bg2: #0d0d10;
  --surface: #111115;
  --surface2: #18181d;
  --surface3: #1f1f26;
  --border: #252530;
  --border2: #2e2e3a;
  --accent: #c9a84c;
  --accent-glow: rgba(201,168,76,0.18);
  --accent-dim: rgba(201,168,76,0.55);
  --blue: #5b9fd4;
  --blue-glow: rgba(91,159,212,0.15);
  --purple: #9b7fd4;
  --purple-glow: rgba(155,127,212,0.15);
  --green: #5dba8a;
  --green-glow: rgba(93,186,138,0.15);
  --text: #e8e6e0;
  --text2: #a8a49e;
  --text3: #5a5860;
  --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Manrope', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ══════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════ */
* { cursor: none !important; }
@media (hover: none), (pointer: coarse) {
  * { cursor: auto !important; }
}
#cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.2s ease, transform 0.12s cubic-bezier(0.23, 1, 0.32, 1);
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.04);
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.3s ease,
    width 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}
body.cur-hover #cursor-dot {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 0.7;
}
body.cur-hover #cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(201,168,76,0.7);
  background: rgba(201,168,76,0.06);
}
body.cur-click #cursor-dot {
  transform: translate(-50%, -50%) scale(0.4);
  transition: transform 0.08s cubic-bezier(0.23, 1, 0.32, 1);
}
body.cur-click #cursor-ring {
  width: 24px;
  height: 24px;
  border-color: rgba(201,168,76,0.9);
  background: rgba(201,168,76,0.12);
}

/* ══════════════════════════════════════
   PAGE LOAD ANIMATION
══════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  transition: opacity 0.5s ease, visibility 0.5s;
  opacity: 1; visibility: visible; pointer-events: auto;
}
#loader.active  { opacity: 1; visibility: visible; pointer-events: auto; }
#loader.hidden  { opacity: 0; visibility: hidden;  pointer-events: none; }

/* Canvas loader icon */
.loader-icon {
  width: 160px; height: 160px;
  margin-bottom: 0;
  position: relative;
}
#loader-canvas {
  display: block;
}

/* Name */
.loader-name {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; font-weight: 300; letter-spacing: 0.18em;
  color: var(--text2);
  margin-bottom: 20px;
}
.loader-name span { color: var(--text); font-weight: 400; }

/* Bar */
.loader-bar-wrap {
  width: 160px; height: 1px;
  background: var(--border);
  position: relative; overflow: hidden;
  margin-bottom: 14px;
}
.loader-bar-fill {
  height: 100%; background: var(--accent);
  width: 0%; transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}

/* Status text */
.loader-text {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text3); letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
#app { display: flex; min-height: 100vh; }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 220px;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.07) 0%, rgba(155,127,212,0.025) 50%, transparent 75%);
  pointer-events: none;
}

.sidebar-scroll {
  flex: 1; overflow-y: auto; padding: 28px 0 16px;
}

.sidebar-profile {
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  position: relative;
}

.sidebar-profile::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(201,168,76,0.3));
  border-radius: 2px;
  margin-bottom: 14px;
}

.sidebar-name {
  font-family: 'Source Serif 4', serif;
  font-size: 17px; font-weight: 600;
  color: var(--text); letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.sidebar-role {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 4px 10px;
  background: rgba(93,186,138,0.06);
  border: 1px solid rgba(93,186,138,0.2);
  border-radius: 20px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--green);
  letter-spacing: 0.04em;
}
.avail-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.nav-group { padding: 0 10px; margin-bottom: 2px; }
.nav-label {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 8.5px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 8px 12px 3px;
  display: block;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 400;
  color: var(--text2); text-decoration: none;
  transition: all 0.18s; position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: '';
  position: absolute; inset: 0; border-radius: 7px;
  background: var(--accent-glow); opacity: 0;
  transition: opacity 0.2s;
}
.nav-item:hover { color: var(--text); }
.nav-item:hover::before { opacity: 1; }
.nav-item.active { color: var(--accent); font-weight: 500; }
.nav-item.active::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(201,168,76,0.16) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid rgba(201,168,76,0.12);
}
.nav-item.active::after {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 2px; background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(201,168,76,0.6), 0 0 16px rgba(201,168,76,0.25);
}
.nav-icon { font-size: 12px; width: 16px; text-align: center; flex-shrink: 0; opacity: 0.7; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.contact-links {
  display: flex; gap: 8px; justify-content: center;
}
.contact-link {
  flex: 1; min-width: 0;
  padding: 7px 4px;
  border-radius: 7px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  text-decoration: none;
  font-size: 13px; color: var(--text2);
  transition: all 0.18s;
}
.contact-link-icon { font-size: 13px; line-height: 1; }
.contact-link-label {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 500; color: var(--text2);
  letter-spacing: 0.01em; line-height: 1.2;
  text-align: center;
}
.contact-link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 12px rgba(201,168,76,0.15);
}
.contact-link:hover .contact-link-label { color: var(--accent-dim); }

.site-built-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text2);
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: all 0.18s;
}
.site-built-link .contact-link-icon { font-size: 12px; line-height: 1; display:flex; }
.site-built-link:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 12px rgba(201,168,76,0.15);
}

/* ══════════════════════════════════════
   MAIN
══════════════════════════════════════ */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  box-sizing: border-box;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 60px;
  background: radial-gradient(ellipse 80% 60% at 15% 110%, rgba(201,168,76,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 85% -10%, rgba(155,127,212,0.04) 0%, transparent 55%),
              var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

/* Ambient light blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(60px);
  will-change: transform;
  contain: layout style paint;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
}
.hero-blob-2 {
  width: 400px; height: 400px;
  bottom: -200px; left: -50px;
  background: radial-gradient(circle, rgba(91,159,212,0.05) 0%, transparent 65%);
}
.hero-blob-3 {
  width: 300px; height: 300px;
  top: 50px; left: 30%;
  background: radial-gradient(circle, rgba(155,127,212,0.04) 0%, transparent 65%);
  animation: float-blob 8s ease-in-out infinite;
}
@keyframes float-blob {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Grain texture overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* Decorative line */
.hero-line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, rgba(201,168,76,0.3) 70%, transparent 100%);
}

/* hero-content consolidated above */

.hero-eyebrow {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block; width: 30px; height: 1px;
  background: var(--text3);
  box-shadow: none;
}

.hero-title {
  font-family: 'Source Serif 4', serif;
  font-size: 62px; font-weight: 400;
  line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text3);
  margin-bottom: 16px; letter-spacing: 0.04em;
}
#typewriter-text { color: var(--text2); }
#typewriter-cursor {
  color: var(--text3);
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

.hero-value-prop {
  font-family: 'Source Serif 4', serif;
  font-size: 18px; font-weight: 400; font-style: italic;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--border2);
  max-width: 560px;
}

/* ── HERO SEEKING ── */
.hero-seeking {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text3);
  margin: -10px 0 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-seeking strong {
  color: var(--text2);
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-bottom: 14px;
}
.tag {
  padding: 3px 9px; border-radius: 3px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; border: 1px solid;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.tag:hover { transform: translateY(-1px); }
.tag-gold   { border-color: rgba(201,168,76,0.28);  color: var(--accent);  background: rgba(201,168,76,0.07); }
.tag-gold:hover   { border-color: rgba(201,168,76,0.5);   background: rgba(201,168,76,0.12); }
.tag-blue   { border-color: rgba(91,159,212,0.28);  color: var(--blue);   background: rgba(91,159,212,0.07); }
.tag-blue:hover   { border-color: rgba(91,159,212,0.5);   background: rgba(91,159,212,0.12); }
.tag-purple { border-color: rgba(155,127,212,0.28); color: var(--purple); background: rgba(155,127,212,0.08); }
.tag-purple:hover { border-color: rgba(155,127,212,0.5);  background: rgba(155,127,212,0.13); }
.tag-green  { border-color: rgba(93,186,138,0.28);  color: var(--green);  background: rgba(93,186,138,0.07); }
.tag-green:hover  { border-color: rgba(93,186,138,0.5);   background: rgba(93,186,138,0.12); }

/* Trophy achievement row */
.hero-achievement {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px 8px 12px;
  border-radius: 6px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  box-shadow: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero-achievement:hover {
  background: rgba(201,168,76,0.11);
  border-color: rgba(201,168,76,0.35);
}
.hero-achievement-icon { font-size: 15px; flex-shrink: 0; }
.hero-achievement-text {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.04em;
}
.hero-achievement-sub {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text3);
  letter-spacing: 0.02em;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  background: var(--accent); color: #0a0800;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-primary:hover {
  background: #dbb855;
  box-shadow: 0 6px 30px rgba(201,168,76,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 48px 0;
  padding: 24px 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
}
.stats-bar::before { display: none; }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 0 28px 0 0;
  position: relative;
  overflow: visible;
  transition: none;
  cursor: default;
  flex: 1;
}
.stat:last-child { padding-right: 0; }
.stat:hover { background: none; transform: none; }
.stat::before, .stat::after { display: none; }

.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border2);
  margin: 0 28px 0 0;
  flex-shrink: 0;
  opacity: 0.5;
}

.stat-eyebrow {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.75;
}

.stat-number {
  font-family: 'Outfit', 'Manrope', sans-serif;
  font-size: 40px; font-weight: 300; line-height: 1;
  letter-spacing: -0.03em; color: var(--text);
}
.stat:nth-child(1) .stat-number { color: var(--accent); }
.stat:nth-child(3) .stat-number { color: var(--blue); }
.stat:nth-child(5) .stat-number { color: var(--green); }

.stat-label {
  font-family: 'Source Serif 4', serif;
  font-size: 13px; font-weight: 500; color: var(--text2);
  letter-spacing: 0.03em;
  line-height: 1.4; margin-top: 4px;
}

/* ══════════════════════════════════════
   CONTENT
══════════════════════════════════════ */
.content {
  padding: 44px 48px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.section {
  margin-bottom: 32px;
}
.section.visible { opacity: 1; transform: none; }

.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-icon-wrap {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.section-title {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; font-weight: 400;
  color: var(--text); flex: 1; letter-spacing: 0.01em;
}
.section-count {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text3);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px 11px; border-radius: 20px;
}
.section-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--border2) 0%, transparent 60%);
  margin-bottom: 22px;
}
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  margin: 24px 0;
  opacity: 0.5;
}

/* ══════════════════════════════════════
   CALLOUT / ABOUT
══════════════════════════════════════ */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(201,168,76,0.2) 100%);
}
.callout-row {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.7;
}
.callout-icon-box {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 1px;
}
.callout-row strong { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════
   EXPERIENCE CARDS
══════════════════════════════════════ */
.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 10px;
  transition: all 0.22s;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.exp-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(201,168,76,0.04) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.exp-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,168,76,0.07); }
.exp-card:hover::before { opacity: 1; }
.exp-card-accent {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.22s;
}
.exp-card:hover .exp-card-accent { opacity: 1; }

.exp-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 5px;
}
.exp-company {
  font-size: 14.5px; font-weight: 500; color: var(--text);
  letter-spacing: 0.01em;
}
.exp-role {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--accent); margin-top: 3px;
  letter-spacing: 0.04em;
}
.exp-date {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text3);
  white-space: nowrap; margin-top: 2px;
}
.exp-desc {
  font-size: 13px; color: var(--text2);
  line-height: 1.7; margin-top: 11px;
}
.exp-badges {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.badge {
  padding: 4px 10px; border-radius: 3px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; border: 1px solid;
  letter-spacing: 0.03em;
}
.badge-gold { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.25); color: var(--accent); }
.badge-blue { background: rgba(91,159,212,0.07); border-color: rgba(91,159,212,0.25); color: var(--blue); }
.badge-purple { background: rgba(155,127,212,0.07); border-color: rgba(155,127,212,0.25); color: var(--purple); }
.badge-green { background: rgba(93,186,138,0.07); border-color: rgba(93,186,138,0.25); color: var(--green); }
.click-hint {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text3);
  margin-top: 12px; opacity: 0;
  transition: opacity 0.2s;
  display: flex; align-items: center; gap: 5px;
}
.click-hint::before { content: '↗'; font-size: 10px; color: var(--accent); }
.exp-card:hover .click-hint { opacity: 1; }

/* ══════════════════════════════════════
   EDUCATION
══════════════════════════════════════ */
.edu-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column;
  cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.edu-block:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(91,159,212,0.1);
}
.edu-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.edu-block:hover::before { opacity: 1; }

/* ══════════════════════════════════════
   PROJECT CARDS
══════════════════════════════════════ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
/* Lone last card (odd count, 2-col grid): widened + centered, handled by JS (centerLoneCards) */
.project-grid .project-card.lone-card {
  grid-column: 1 / -1;
  width: 80%;
  margin: 0 auto;
}
.project-grid .project-card.lone-card::before {
  opacity: 1;
  height: 2px;
}
@media (max-width: 900px) {
  .project-grid .project-card.lone-card { width: 100%; margin: 0; }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  gap: 0;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  opacity: 0; transition: opacity 0.25s;
}
.project-card.c-gold::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.project-card.c-blue::before { background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.project-card.c-purple::before { background: linear-gradient(90deg, transparent, var(--purple), transparent); }
.project-card.c-green::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }

.project-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.project-card:hover::before { opacity: 1; }
.project-card.c-gold:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,168,76,0.1), 0 0 20px rgba(201,168,76,0.08); }
.project-card.c-blue:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(91,159,212,0.1), 0 0 20px rgba(91,159,212,0.08); }
.project-card.c-purple:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(155,127,212,0.1), 0 0 20px rgba(155,127,212,0.08); }
.project-card.c-green:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(93,186,138,0.1), 0 0 20px rgba(93,186,138,0.08); }

/* Hover shine */
.project-card .card-shine {
  position: absolute; inset: 0; border-radius: 10px;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .card-shine { opacity: 1; }

.project-emoji {
  font-size: 2rem; line-height: 1; display: block;
}
.project-name {
  font-size: 15px; font-weight: 500; color: var(--text);
  margin-bottom: 4px; line-height: 1.3;
}
.project-stack {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.03em;
  margin-bottom: 0;
}
.project-stack.c-gold { color: var(--accent-dim); }
.project-stack.c-blue { color: rgba(91,159,212,0.7); }
.project-stack.c-purple { color: rgba(155,127,212,0.7); }
.project-stack.c-green { color: rgba(93,186,138,0.7); }

.project-desc {
  font-size: 13.5px; color: var(--text2);
  line-height: 1.75; margin-bottom: 0; flex: 1;
  margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.project-tags {
  display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px;
}
.project-tag {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px; padding: 5px 11px;
  border-radius: 4px; border: 1px solid;
}
.project-tag.c-gold { background: rgba(201,168,76,0.07); border-color: rgba(201,168,76,0.2); color: var(--accent); }
.project-tag.c-blue { background: rgba(91,159,212,0.07); border-color: rgba(91,159,212,0.2); color: var(--blue); }
.project-tag.c-purple { background: rgba(155,127,212,0.07); border-color: rgba(155,127,212,0.2); color: var(--purple); }
.project-tag.c-green { background: rgba(93,186,138,0.07); border-color: rgba(93,186,138,0.2); color: var(--green); }

/* ══════════════════════════════
   PROJECT CARD — LIVE DEMO BADGE
   Reusable on any .project-card that has a live deployment.
   Colour is always green (site-wide convention: green = "it's running").
   Pinned to the card's bottom-right corner (.project-card needs position:relative,
   which it already has). Markup — add anywhere inside the card, e.g. right
   after .card-shine:
   <a href="LIVE_URL" target="_blank" rel="noopener" class="project-live-badge"
      onclick="event.stopPropagation()" aria-label="Live demo" title="Live demo">
     <span class="project-live-dot"></span>Live
   </a>
══════════════════════════════ */
.project-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  position: absolute; bottom: 38px; right: 20px; z-index: 5;
  padding: 5px 11px 5px 9px;
  background: rgba(93,186,138,0.1);
  border: 1px solid rgba(93,186,138,0.35);
  border-radius: 20px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--green);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.project-live-badge:hover {
  background: var(--green); border-color: var(--green); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(93,186,138,0.35);
}
.project-live-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 2s ease-in-out infinite;
}
.project-live-badge:hover .project-live-dot { background: #fff; box-shadow: 0 0 6px #fff; }
[data-theme="ink"] .project-live-badge { background: rgba(36,102,64,0.08); border-color: rgba(36,102,64,0.3); color: #246640; }
[data-theme="ink"] .project-live-badge:hover { background: #246640; border-color: #246640; color: #fff; }
[data-theme="ink"] .project-live-dot { background: #246640; box-shadow: 0 0 6px #246640; }
[data-theme="ink"] .project-live-badge:hover .project-live-dot { background: #fff; box-shadow: 0 0 6px #fff; }

/* ══════════════════════════════
   PROJECT CARD — PDF DOCUMENTATION BADGE
   Same pattern as .project-live-badge, sibling reusable badge.
   Colour is blue (site-wide convention: blue = "reference / read"),
   with a small document icon instead of a pulsing dot — this is
   static content, not a running deployment. Pinned to the card's
   bottom-right corner. Markup — add anywhere inside the card, e.g.
   right after .card-shine (or after .project-live-badge if the card
   also has one, though the two are not meant to share a card):
   <a href="PDF_URL" target="_blank" rel="noopener" class="project-pdf-badge"
      onclick="event.stopPropagation()" aria-label="PDF documentation" title="PDF documentation">
     <svg class="project-pdf-icon" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.5 1.5h5l3 3v9a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1z" stroke="currentColor" stroke-width="1.2"/><path d="M9.5 1.5v3h3" stroke="currentColor" stroke-width="1.2"/></svg>PDF
   </a>
══════════════════════════════ */
.project-pdf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  position: absolute; bottom: 38px; right: 20px; z-index: 5;
  padding: 5px 11px 5px 9px;
  background: rgba(91,159,212,0.1);
  border: 1px solid rgba(91,159,212,0.35);
  border-radius: 20px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}
.project-pdf-badge:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91,159,212,0.35);
}
.project-pdf-icon {
  width: 10px; height: 10px; flex-shrink: 0;
  opacity: 0.85;
}
.project-pdf-badge:hover .project-pdf-icon { opacity: 1; }
[data-theme="ink"] .project-pdf-badge { background: rgba(39,82,160,0.08); border-color: rgba(39,82,160,0.3); color: #2752A0; }
[data-theme="ink"] .project-pdf-badge:hover { background: #2752A0; border-color: #2752A0; color: #fff; }

/* ══════════════════════════════
   COMPACT PDF BADGE — for smaller cards (uni-proj-card, exp-card)
   Same colour convention as .project-pdf-badge (blue = reference/read)
   but sits in-flow inside the card footer instead of being absolutely
   positioned, so it never collides with existing footer content on
   cards with less vertical room. Markup:
   <a href="PDF_URL" target="_blank" rel="noopener" class="pdf-badge-sm"
      onclick="event.stopPropagation()" aria-label="PDF documentation" title="PDF documentation">
     <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M4.5 1.5h5l3 3v9a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1z" stroke="currentColor" stroke-width="1.2"/><path d="M9.5 1.5v3h3" stroke="currentColor" stroke-width="1.2"/></svg>PDF
   </a>
══════════════════════════════ */
.pdf-badge-sm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 7px;
  background: rgba(91,159,212,0.08);
  border: 1px solid rgba(91,159,212,0.28);
  border-radius: 20px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.pdf-badge-sm:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateY(-1px);
}
.pdf-badge-sm svg { width: 9px; height: 9px; flex-shrink: 0; opacity: 0.85; }
.pdf-badge-sm:hover svg { opacity: 1; }
[data-theme="ink"] .pdf-badge-sm { background: rgba(39,82,160,0.07); border-color: rgba(39,82,160,0.28); color: #2752A0; }
[data-theme="ink"] .pdf-badge-sm:hover { background: #2752A0; border-color: #2752A0; color: #fff; }

/* ══════════════════════════════════════
   MINI CARDS (3-col)
══════════════════════════════════════ */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.mini-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative; overflow: hidden;
}
.mini-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
}
.mini-emoji { font-size: 20px; margin-bottom: 9px; display: block; }
.mini-name {
  font-size: 12.5px; font-weight: 500; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}
.mini-desc {
  font-size: 11px; color: var(--text2); line-height: 1.6;
}
.mini-card .click-hint { margin-top: 8px; font-size: 9px; }
.mini-card:hover .click-hint { opacity: 1; }

/* ══════════════════════════════════════
   RESEARCH CARDS
══════════════════════════════════════ */
.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 10px;
  cursor: pointer; transition: all 0.22s;
  position: relative;
}
.research-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 2px 0 0 2px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.research-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.research-card:hover::before { opacity: 1; transform: scaleY(1); }
.research-card:hover .click-hint { opacity: 1; }
.research-title {
  font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px;
}
.research-sub {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--purple); letter-spacing: 0.04em;
}
.research-desc {
  font-size: 12px; color: var(--text2);
  line-height: 1.65; margin-top: 9px;
}

/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
.skills-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex;
}
.skills-tabs {
  width: 175px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface2);
  display: flex; flex-direction: column;
  align-self: stretch;
  min-height: 100%;
}
.skills-tab {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 16px;
  min-height: 52px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
  position: relative;
}
.skills-tab:last-child { border-bottom: none; }
.skills-tab:hover { background: var(--surface); }
.skills-tab.active {
  background: var(--surface);
  border-left: 2px solid var(--tab-color, var(--accent));
  padding-left: 14px;
}
.skills-tab.active::after {
  content: '';
  position: absolute; right: -1px; top: 0; bottom: 0;
  width: 2px; background: var(--tab-color, var(--accent));
  box-shadow: 0 0 6px var(--tab-color, var(--accent));
}
.skills-tab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tab-color, var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--tab-color, var(--accent));
  transition: box-shadow 0.2s;
}
.skills-tab.active .skills-tab-dot {
  box-shadow: 0 0 10px var(--tab-color, var(--accent)), 0 0 20px var(--tab-color, var(--accent));
}
.skills-tab-name {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--text3);
  line-height: 1.3;
  transition: color 0.15s;
}
.skills-tab.active .skills-tab-name { color: var(--text); }

/* Certifications sidebar has fewer tabs than Skills — fill the leftover
   space below the last tab with a faint decorative mark instead of a
   blank gap, so the two panels feel equally "full". */
#certifications { margin-bottom: 0; }
#certifications .skills-tabs { position: relative; }
#certifications .skills-tabs::after {
  content: '✦';
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  font-size: 11px;
  color: var(--text3);
  opacity: 0.18;
}
@media (max-width: 900px) {
  #certifications .skills-tabs::after { display: none; }
}

.skills-content { flex: 1; padding: 22px 26px; }
.skills-pane { display: none; animation: pane-in 0.22s ease; }
.skills-pane.active { display: block; }
@keyframes pane-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.skills-pane-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}
.skills-pane-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid var(--sk-border, rgba(201,168,76,0.25));
  background: var(--sk-bg, rgba(201,168,76,0.07));
  box-shadow: 0 0 10px var(--sk-bg, rgba(201,168,76,0.06));
  flex-shrink: 0;
}
.skills-pane-title {
  font-family: 'Source Serif 4', serif;
  font-size: 16px; font-style: italic; color: var(--text);
}
.skills-pane-desc {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--sk-color, var(--text3));
  margin-left: auto; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--sk-border, var(--border));
  background: var(--sk-bg, transparent);
}
.skill-level {
  margin-bottom: 14px;
}
.skill-level-label {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 7px;
}
.skill-level-label[data-level="expert"]    { color: var(--sk-color, var(--text2)); opacity: 1; }
.skill-level-label[data-level="proficient"]{ color: var(--sk-color, var(--text3)); opacity: 0.75; }
.skill-level-label[data-level="familiar"]  { color: var(--sk-color, var(--text3)); opacity: 0.55; }

/* Chip opacity per tier */
.expert-level    .sk { opacity: 1; }
.proficient-level .sk { opacity: 0.68; }
.familiar-level   .sk { opacity: 0.58; }
.sk-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sk {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 4px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10.5px; border: 1px solid;
  transition: all 0.15s; cursor: default;
  background: var(--sk-bg, rgba(201,168,76,0.05));
  border-color: var(--sk-border, rgba(201,168,76,0.18));
  color: var(--sk-color, var(--accent));
}
.sk:hover {
  background: var(--sk-hover, rgba(201,168,76,0.12));
  border-color: var(--sk-color, var(--accent));
  transform: translateY(-1px);
}
.cat-eng  { --sk-bg: rgba(201,168,76,0.05); --sk-border: rgba(201,168,76,0.18); --sk-color: var(--accent); --sk-hover: rgba(201,168,76,0.12); }
.cat-prod { --sk-bg: rgba(91,159,212,0.05); --sk-border: rgba(91,159,212,0.18); --sk-color: var(--blue); --sk-hover: rgba(91,159,212,0.12); }
.cat-biz  { --sk-bg: rgba(155,127,212,0.05); --sk-border: rgba(155,127,212,0.18); --sk-color: var(--purple); --sk-hover: rgba(155,127,212,0.12); }
.cat-des  { --sk-bg: rgba(93,186,138,0.05); --sk-border: rgba(93,186,138,0.18); --sk-color: var(--green); --sk-hover: rgba(93,186,138,0.12); }
.cat-math { --sk-bg: rgba(220,100,100,0.05); --sk-border: rgba(220,100,100,0.18); --sk-color: #dc6464; --sk-hover: rgba(220,100,100,0.12); }

/* ══════════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════════ */
.cert-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 10px;
}
.cert-group-header {
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px;
}
.cert-group-icon { font-size: 14px; }
.cert-group-title {
  font-size: 12px; font-weight: 500; color: var(--text);
  letter-spacing: 0.01em;
}
.cert-count {
  margin-left: auto;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 10px;
}
.cert-list { padding: 0; }
.cert-item {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(37,37,48,0.5);
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--text2);
  transition: background 0.15s;
}
.cert-item:last-child { border-bottom: none; }
.cert-item:hover { background: var(--surface2); }
.cert-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 5px var(--accent);
}

/* ══════════════════════════════════════
   SIMULATIONS
══════════════════════════════════════ */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px 18px;
  transition: all 0.2s;
}
.sim-card:hover {
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-2px);
}
.sim-company {
  font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px;
}
.sim-role {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--accent);
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.sim-badges { display: flex; gap: 5px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-grid {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.contact-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 12px 28px; border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}
.contact-cta-btn:hover {
  background: var(--accent-dim, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.contact-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text2);
  text-decoration: none; transition: all 0.2s;
}
.contact-pill:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.1);
}
.contact-pill-icon { font-size: 15px; }

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,8,10,0.75);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  width: 100%; max-width: 640px;
  max-height: 85vh;
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.05);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 20px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
  flex-shrink: 0;
  position: relative;
}
.modal-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 50%);
  opacity: 0.4;
}
.modal-emoji { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.modal-title-area { flex: 1; }
.modal-title {
  font-family: 'Source Serif 4', serif;
  font-size: 19px; font-weight: 400;
  color: var(--text); line-height: 1.2; margin-bottom: 3px;
}
.modal-sub {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text3); letter-spacing: 0.04em;
}
.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); font-size: 13px;
  transition: all 0.15s; flex-shrink: 0;
}
.modal-close:hover { border-color: rgba(201,168,76,0.4); color: var(--accent); }
.modal-body {
  padding: 22px 24px; overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.modal-kv {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 18px;
}
.modal-kv-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 13px;
}
.modal-kv-key {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 8.5px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px;
}
.modal-kv-val {
  font-size: 12.5px; color: var(--text); font-weight: 400;
}
.modal-section-label {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin: 16px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.modal-section-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border); display: block;
}
.modal-text {
  font-size: 12.5px; color: var(--text2); line-height: 1.7;
  margin-bottom: 8px;
}
.modal-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.modal-list li {
  font-size: 12px; color: var(--text2); line-height: 1.6;
  padding-left: 16px; position: relative;
}
.modal-list li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--accent); font-size: 10px;
}
.modal-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.modal-chip {
  padding: 3px 9px; border-radius: 3px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--accent);
}
.modal-link-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.18s; margin-bottom: 7px;
}
.modal-link-card:hover {
  border-color: rgba(201,168,76,0.35);
  background: var(--accent-glow);
}
.modal-link-icon { font-size: 18px; }
.modal-link-title { font-size: 12.5px; font-weight: 500; color: var(--text); }
.modal-link-sub {
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text3);
}
.modal-link-arrow {
  margin-left: auto; color: var(--text3); font-size: 14px;
  transition: color 0.18s;
}
.modal-link-card:hover .modal-link-arrow { color: var(--accent); }

/* ══════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

.sidebar-scroll::-webkit-scrollbar { display: block; width: 4px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-scroll { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }


/* ── SUB-NAV (project sub-pages) ── */
.nav-sub {
  padding-left: 32px !important;
  font-size: 11.5px !important;
  color: var(--text3) !important;
}
.nav-sub:hover { color: var(--text2) !important; }
.nav-sub::before { display: none !important; }
.nav-sub::after  { display: none !important; }
.nav-sub-active  { color: var(--accent) !important; }
.nav-sub-active .nav-icon { opacity: 1 !important; }

/* ══════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  height: 2px;
  background: transparent;
  z-index: 9000;
  transform-origin: left;
  transform: scaleX(0);
}
#scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--purple));
  box-shadow: 0 0 8px var(--accent-glow);
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.05s linear;
}

/* ══════════════════════════════════════
   HERO PARTICLE CANVAS
══════════════════════════════════════ */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
/* hero-content consolidated above */

/* ══════════════════════════════════════
   IMPROVED STATS BAR
══════════════════════════════════════ */
/* stats-bar enhancements consolidated above */

/* ══════════════════════════════════════
   HERO TITLE GRADIENT
══════════════════════════════════════ */
.hero-title em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, #e8c86a 40%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: hero-em-glow 4s ease-in-out infinite;
}
@keyframes hero-em-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(201,168,76,0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(201,168,76,0.5)); }
}

/* ══════════════════════════════════════
   IMPROVED PROJECT CARDS — 3D TILT
══════════════════════════════════════ */
.project-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.project-card:hover {
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6), 0 0 30px -5px var(--accent-glow) !important;
}

/* ══════════════════════════════════════
   IMPROVED EXP CARDS ENTRANCE
══════════════════════════════════════ */
.exp-card {
  position: relative;
  overflow: hidden;
}
.exp-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.exp-card:hover::after {
  left: 150%;
}

/* ══════════════════════════════════════
   SECTION ENTRANCE — STAGGERED
══════════════════════════════════════ */
.section-header {
  position: relative;
  overflow: hidden;
}
.section-title {
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.6s ease;
}
.section:hover .section-title::after {
  width: 100%;
}

/* ══════════════════════════════════════
   INTEREST PILLS — ENHANCED
══════════════════════════════════════ */
.interest-pill {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.25s ease,
              box-shadow 0.25s ease !important;
}
.interest-pill:hover {
  transform: translateY(-5px) scale(1.04) !important;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.4), 0 0 15px -5px var(--accent-glow) !important;
}

/* ══════════════════════════════════════
   CONTACT PILLS — ENHANCED
══════════════════════════════════════ */
.contact-pill {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.contact-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.contact-pill:hover::before { opacity: 1; }
.contact-pill:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px -5px rgba(0,0,0,0.4) !important;
}

/* ══════════════════════════════════════
   SIDEBAR NAV ACTIVE INDICATOR
══════════════════════════════════════ */
.nav-item {
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.25s ease;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--accent);
  animation: nav-pulse 2s ease-in-out infinite;
}
@keyframes nav-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.7; box-shadow: 0 0 16px var(--accent); }
}

/* ══════════════════════════════════════
   AVAILABILITY BADGE — PULSE (fixed)
══════════════════════════════════════ */
.avail-dot {
  position: relative;
  flex-shrink: 0;
}
.avail-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  animation: avail-ripple 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes avail-ripple {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(3);   opacity: 0; }
}

/* ══════════════════════════════════════
   SKILL CHIPS — HOVER GLOW
══════════════════════════════════════ */
.sk {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}
.sk:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* ══════════════════════════════════════
   MINI CARDS — IMPROVED HOVER
══════════════════════════════════════ */
.mini-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}
.mini-card:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5) !important;
}

/* stagger handled by JS intersection observer */

/* ══════════════════════════════════════
   MOBILE RESPONSIVE IMPROVEMENTS
══════════════════════════════════════ */
@media (max-width: 768px) {
  #scroll-progress {
    left: 0;
    width: 100%;
  }
  .stat-number { font-size: 28px !important; }
}

@media (max-width: 900px) {
  .stat-number { font-size: 28px; }
}

/* ══════════════════════════════════════
   RESEARCH CARDS — HOVER (consolidated)
══════════════════════════════════════ */
/* The original ::before is a static 2px line that fades in;
   we upgrade it to an animated height fill */

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  cursor: none;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--surface3);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-3px) scale(1.1) !important;
}

/* ══════════════════════════════════════
   MOBILE — COMPREHENSIVE FIX
══════════════════════════════════════ */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr !important; }
  .mini-grid    { grid-template-columns: 1fr 1fr !important; }
  .ac-grid      { grid-template-columns: 1fr !important; }
  .content      { padding: 28px 24px !important; }
  .hero         { padding: 44px 0 34px !important; }
  .hero-content { padding: 0 24px !important; }
  .hero-title   { font-size: 44px !important; }
  .stats-bar    { flex-wrap: wrap; margin: 20px 20px 0 !important; padding: 16px 20px !important; gap: 12px 0; }
  .stat         { padding-right: 20px !important; }
  .stat-sep     { display: none !important; }
  .stat         { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none !important; }
  .skills-panel { flex-direction: column !important; }
  .skills-tabs  { width: 100% !important; flex-direction: row !important; flex-wrap: wrap; border-right: none !important; border-bottom: 1px solid var(--border); }
  .skills-tab   { flex: 1; min-width: 80px; min-height: auto !important; border-bottom: none !important; border-right: 1px solid var(--border); justify-content: center; }
  .skills-tab:last-child { border-right: none !important; }
  .skills-tab.active::after { right: 0; top: auto; bottom: -1px; left: 0; width: 100% !important; height: 2px !important; }
  .skills-tab-name { display: none; }
  .skills-tab-dot { width: 10px !important; height: 10px !important; }
  .interests-grid { grid-template-columns: 1fr 1fr !important; }
  #scroll-progress { left: 0 !important; width: 100% !important; }
  .sim-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .hero-content { padding: 0 20px !important; }
  .content      { padding: 24px 20px !important; }
}

@media (max-width: 540px) {
  .mini-grid    { grid-template-columns: 1fr !important; }
  .interests-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-title   { font-size: 36px !important; }
  .contact-grid { flex-direction: column !important; }
  .contact-pill { justify-content: center; }
  .hero-tags    { gap: 5px !important; }
  .hero-value-prop { white-space: normal !important; font-size: 15px !important; }
}

/* ══════════════════════════════════════
   CERT CHIPS — TOOLTIP ON HOVER
══════════════════════════════════════ */
.cert-chip {
  position: relative;
  text-decoration: none !important;
}
/* Make the ↗ in the chip text stand out */
.cert-chip.secondary {
  --sk-bg: rgba(91,159,212,0.04);
  --sk-border: rgba(91,159,212,0.22);
  --sk-color: rgba(91,159,212,0.75);
  --sk-hover: rgba(91,159,212,0.1);
}
.cert-chip::after {
  content: 'Άνοιγμα ↗';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 9px;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.cert-chip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Always-visible external link indicator on the chip itself */
.cert-chip:hover {
  border-color: var(--accent) !important;
  background: var(--accent-glow) !important;
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.15);
}

/* ══════════════════════════════════════
   CERT VIEW-ALL LINK
══════════════════════════════════════ */
.cert-viewall-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.03em;
  color: var(--text2);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--surface2);
  transition: all 0.18s ease;
}
.cert-viewall-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim, rgba(201,168,76,.45));
  background: var(--accent-glow, rgba(201,168,76,0.07));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,168,76,0.12);
}

/* ══════════════════════════════════════
   SECTION ICONS — BOUNCE ON HOVER
══════════════════════════════════════ */
.section-icon-wrap {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.2s ease, border-color 0.2s ease;
}
.section-header:hover .section-icon-wrap {
  transform: scale(1.15) rotate(-5deg);
  background: var(--surface3);
  border-color: var(--accent);
}

/* stat hover consolidated above */

/* ══════════════════════════════════════
   LINK UNDERLINE — SUBTLE ANIMATED
══════════════════════════════════════ */
.sidebar-footer .contact-link {
  position: relative;
  overflow: hidden;
}

/* ══════════════════════════════════════
   BADGE HOVER — SUBTLE POP
══════════════════════════════════════ */
.badge {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.2s ease;
  cursor: default;
}
.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ══════════════════════════════════════
   PROJECT CARD — EMOJI ZOOM ON HOVER
══════════════════════════════════════ */
.project-emoji {
  display: inline-block;
}

/* ══════════════════════════════════════
   MINI CARD — EMOJI ZOOM
══════════════════════════════════════ */
.mini-emoji {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mini-card:hover .mini-emoji {
  transform: scale(1.25) rotate(5deg);
}

/* ══════════════════════════════════════
   CALLOUT ROW — ICON HOVER
══════════════════════════════════════ */
.callout-icon-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s, border-color 0.2s;
}
.callout-row:hover .callout-icon-box {
  transform: scale(1.1) rotate(-3deg);
  background: var(--surface3);
  border-color: var(--accent);
}

/* ══════════════════════════════════════
   FOOTER CONTACT LINKS IN SIDEBAR
══════════════════════════════════════ */
.contact-link {
  transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.contact-link:hover {
  transform: translateY(-3px) !important;
}

/* ══════════════════════════════════════
   SMOOTH PAGE LOAD — CONTENT FADE
══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* hero-content animation consolidated above */
.stats-bar {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

/* ══════════════════════════════════════
   TAG HOVER — SUBTLE LIFT
══════════════════════════════════════ */
.tag {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.tag:hover {
  transform: translateY(-2px) scale(1.03) !important;
}

/* ══════════════════════════════════════
   COPIED EMAIL TOAST
══════════════════════════════════════ */
#copy-toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  background: var(--surface3);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 8500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}
#copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   SKILLS TAB — INDICATOR ANIMATION
══════════════════════════════════════ */
.skills-tab {
  transition: background 0.2s ease, color 0.2s ease !important;
}
.skills-tab:not(.active):hover .skills-tab-dot {
  box-shadow: 0 0 8px var(--tab-color, var(--accent));
}

/* ══════════════════════════════════════
   EDU BLOCK — LEFT ACCENT
══════════════════════════════════════ */
.edu-block {
  border-left: 2px solid transparent;
  transition: border-left-color 0.3s ease, transform 0.2s ease,
              background 0.2s ease, border-color 0.2s ease !important;
}
.edu-block:hover {
  border-left-color: var(--blue) !important;
  transform: translateX(6px) !important;
}

/* ══════════════════════════════════════
   AC CARD — TOP BAR ANIMATION
══════════════════════════════════════ */
.ac-card-top-bar {
  transition: opacity 0.3s ease;
  opacity: 0.6;
}
.ac-card:hover .ac-card-top-bar {
  opacity: 1;
}

/* ══════════════════════════════════════
   SIDEBAR PROFILE — HOVER SUBTLE GLOW
══════════════════════════════════════ */
.sidebar-profile {
  transition: background 0.3s ease;
}
.sidebar-profile:hover {
  background: rgba(201,168,76,0.02);
}

/* ══════════════════════════════════════
   MODAL — SMOOTHER OPEN
══════════════════════════════════════ */
.modal-overlay {
  transition: opacity 0.25s ease !important;
}
.modal {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s ease !important;
}
.modal-overlay.open .modal {
  animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── BACK TO PORTFOLIO — see subpage-hero.css ── */

/* ══════════════════════════════════════
   SUBPAGE LAYOUT — dp-main / dp-content
   Fixes: right-side whitespace + full-width
══════════════════════════════════════ */
.dp-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg);
  width: calc(100% - var(--sidebar-w));
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.dp-content {
  width: 100%;
  max-width: 960px;
  padding: 40px 48px 100px;
  box-sizing: border-box;
}
@media (max-width: 1300px) {
  .dp-content { max-width: 100%; padding: 40px 40px 100px; }
}
@media (max-width: 900px) {
  .dp-main  { margin-left: 0; width: 100%; }
  .dp-content { padding: 24px 20px 80px; max-width: 100%; }
}
@media (max-width: 768px) {
  .dp-main  { margin-left: 0 !important; width: 100% !important; }
  .dp-content { padding: 64px 20px 80px; }
}

/* ══════════════════════════════════════
   CURSOR — global fix for all subpages
   Prevents system cursor showing through
══════════════════════════════════════ */
html, body, #app, .dp-main, .sidebar, .dp-content,
a, button, input, select, textarea, label,
[role="button"], [tabindex] {
  cursor: none !important;
}
@media (hover: none), (pointer: coarse) {
  html, body, #app, .dp-main, .sidebar, .dp-content,
  a, button, input, select, textarea, label,
  [role="button"], [tabindex] {
    cursor: auto !important;
  }
}

/* ══════════════════════════════════════
   CURSOR — unified hover states
   Both index (.cur-hover) and subpages (.hovering) use same translate(-50%,-50%) system
══════════════════════════════════════ */
body.hovering #cursor-dot,
body.cur-hover #cursor-dot  { width: 12px !important; height: 12px !important; }
body.hovering #cursor-ring,
body.cur-hover #cursor-ring { width: 46px !important; height: 46px !important; border-color: var(--accent) !important; }


/* ══════════════════════════════════════════════════════
   SUBPAGE SHARED CSS
   ────────────────────────────────────────────────────
   ALL rules below are shared across every subpage.
   DO NOT copy them into individual HTML files.
   Add new subpage-wide styles here, not in <style> tags.
══════════════════════════════════════════════════════ */

/* ── CURSOR (subpage variant: uses left/top + translate(-50%,-50%)) ── */
#cursor-dot {
  position: fixed; pointer-events: none; z-index: 99999;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.3s;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(201,168,76,0.4);
  opacity: 0;
}
#cursor-ring {
  position: fixed; pointer-events: none; z-index: 99998;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.5);
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.23,1,0.32,1), width 0.25s, height 0.25s, border-color 0.25s, opacity 0.3s;
  opacity: 0;
}
body.cursor-active #cursor-dot  { opacity: 1; }
body.cursor-active #cursor-ring { opacity: 1; }

/* ── PAGE TITLE BLOCK ── */
.dp-page-emoji    { font-size: 44px; margin-bottom: 14px; display: block; }
.dp-page-title    { font-family: 'Source Serif 4', serif; font-size: 42px; font-weight: 600; color: var(--text); line-height: 1.1; margin-bottom: 10px; }
.dp-page-subtitle { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 17px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; }
.dp-meta          { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }

/* ── CHIPS ── */
.dp-chip        { font-family: 'DM Mono', 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 9px; border-radius: 4px; letter-spacing: 0.04em; }
.dp-chip.purple { background: rgba(155,127,212,0.08); border: 1px solid rgba(155,127,212,0.22); color: var(--purple); }
.dp-chip.gold   { background: rgba(201,168,76,0.07);  border: 1px solid rgba(201,168,76,0.22);  color: var(--accent); }
.dp-chip.blue   { background: rgba(91,159,212,0.07);  border: 1px solid rgba(91,159,212,0.22);  color: var(--blue); }
.dp-chip.green  { background: rgba(93,186,138,0.07);  border: 1px solid rgba(93,186,138,0.22);  color: var(--green); }
.dp-chip.red    { background: rgba(220,100,100,0.07); border: 1px solid rgba(220,100,100,0.22); color: #dc6464; }
.dp-chip.orange { background: rgba(220,140,60,0.07);  border: 1px solid rgba(220,140,60,0.22);  color: #e08040; }


/* ── DIVIDER ── */
.dp-hr { height: 1px; background: linear-gradient(90deg, var(--border2) 0%, transparent 80%); margin: 32px 0; }

/* ── HEADINGS ── */
.dp-h2 {
  font-family: 'Source Serif 4', serif; font-size: 24px; font-weight: 600;
  color: var(--text); margin-bottom: 5px; margin-top: 44px;
  display: flex; align-items: center; gap: 10px;
}
.dp-h3 {
  font-family: 'DM Mono', 'JetBrains Mono', monospace; font-size: 10px; color: var(--text3);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

/* ── CALLOUT ── */
.dp-callout {
  background: var(--surface); border: 1px solid var(--border2);
  border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 14px 18px; font-size: 13.5px; font-style: italic;
  color: var(--text2); line-height: 1.75; margin: 18px 0;
}
.dp-callout.critical { border-left-color: #dc6464; }

/* ── BODY TEXT ── */
.dp-body          { font-size: 13.5px; line-height: 1.85; color: var(--text2); margin-bottom: 14px; }
.dp-body strong   { color: var(--text); font-weight: 500; }
.dp-body em       { color: var(--accent); font-style: normal; }

/* ── QUOTE ── */
.dp-quote {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--purple); border-radius: 8px;
  padding: 14px 18px; font-size: 13px; font-style: italic;
  color: var(--text2); line-height: 1.7; margin: 16px 0;
}

/* ── STAT GRID ── */
.dp-stat-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.dp-stat-grid.five { grid-template-columns: repeat(5, 1fr); }
.dp-stat-cell   { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 12px; text-align: center; }
.dp-stat-cell.gold   { border-color: rgba(201,168,76,0.3);   background: rgba(201,168,76,0.04); }
.dp-stat-cell.green  { border-color: rgba(93,186,138,0.3);   background: rgba(93,186,138,0.04); }
.dp-stat-cell.blue   { border-color: rgba(91,159,212,0.3);   background: rgba(91,159,212,0.04); }
.dp-stat-cell.purple { border-color: rgba(155,127,212,0.3);  background: rgba(155,127,212,0.04); }
.dp-stat-cell.red    { border-color: rgba(220,100,100,0.3);  background: rgba(220,100,100,0.04); }
.dp-stat-num    { font-family: 'Source Serif 4', serif; font-size: 22px; font-weight: 600; color: var(--accent); line-height: 1; }
.dp-stat-num.gold   { color: var(--accent); }
.dp-stat-num.green  { color: var(--green); }
.dp-stat-num.blue   { color: var(--blue); }
.dp-stat-num.purple { color: var(--purple); }
.dp-stat-num.red    { color: #dc6464; }
.dp-stat-label  { font-family: 'Source Serif 4', serif; font-size: 11px; font-weight: 500; color: var(--text3); margin-top: 4px; line-height: 1.3; }

/* ── CLOSING BLOCK ── */
.dp-closing { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 28px 30px; margin-top: 44px; position: relative; overflow: hidden; }
.dp-closing::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--purple), var(--accent), transparent); }
.dp-closing-text  { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 16.5px; line-height: 1.8; color: var(--text2); }
.dp-closing-text strong { color: var(--text); font-style: normal; }
.dp-closing-sig   { font-family: 'DM Mono', 'JetBrains Mono', monospace; font-size: 10px; color: var(--text3); margin-top: 18px; letter-spacing: 0.06em; }
.dp-closing-links { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.dp-closing-link  { font-family: 'DM Mono', 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); text-decoration: none; opacity: 0.7; transition: opacity 0.15s; }
.dp-closing-link:hover { opacity: 1; }

/* ── PROFILE SUMMARY BOX ── */
.profile-summary-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
}
.profile-summary-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple), transparent);
}

/* ── FADE-UP ANIMATION ── */
.fade-up         { transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE MENU BUTTON (subpages) ── */
@media (max-width: 768px) {
  #mobile-menu-btn { display: flex !important; }
  .sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: 1060; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.23,1,0.32,1); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.5); }
  .dp-main    { margin-left: 0 !important; }
  .dp-content { padding: 64px 20px 80px; }
  .dp-stat-grid { grid-template-columns: 1fr 1fr; }
  .dp-stat-grid.five { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dp-stat-grid, .dp-stat-grid.five { grid-template-columns: 1fr 1fr; }
}

/* ── SCROLL PROGRESS · BACK TO TOP · COPY TOAST · BACK BUTTON ── */

#scroll-progress{position:fixed;top:0;left:var(--sidebar-w,260px);width:calc(100% - var(--sidebar-w,260px));height:2px;background:transparent;z-index:9000}
#scroll-progress::after{content:'';display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--blue),var(--purple));box-shadow:0 0 8px var(--accent-glow);width:100%;transform-origin:left;transform:scaleX(var(--p,0));transition:transform .05s linear}
#back-to-top{position:fixed;bottom:28px;right:28px;width:42px;height:42px;border-radius:50%;background:var(--surface2);border:1px solid var(--border2);color:var(--accent);font-size:16px;font-weight:600;cursor:none;z-index:8000;display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(10px) scale(.9);transition:opacity .3s,transform .3s,background .2s,box-shadow .2s;pointer-events:none}
#back-to-top.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:all}
#back-to-top:hover{background:var(--surface3);box-shadow:0 0 20px var(--accent-glow);transform:translateY(-3px) scale(1.1)!important}
#copy-toast{position:fixed;bottom:80px;right:28px;background:var(--surface3);border:1px solid var(--accent);color:var(--accent);font-family:'DM Mono','JetBrains Mono',monospace;font-size:10px;letter-spacing:.1em;padding:8px 16px;border-radius:6px;z-index:8500;opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s;pointer-events:none}
#copy-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:768px){#scroll-progress{left:0;width:100%}}

/* ── COLLAPSIBLE TAGS ── */
.tags-extra { display: contents; }
.tags-extra[hidden] { display: none !important; }
.tag-more {
  border-color: rgba(255,255,255,0.16) !important;
  color: var(--text2) !important;
  background: rgba(255,255,255,0.03) !important;
  font-size: 9px !important;
  padding: 3px 8px !important;
}
.tag-more:hover { color: var(--text) !important; border-color: rgba(255,255,255,0.32) !important; background: rgba(255,255,255,0.06) !important; }

/* ── COLLAPSIBLE NAV (index + subpages) ── */
.nav-collapsible { display: flex !important; align-items: center !important; padding-top: 5px !important; padding-bottom: 5px !important; }
.nav-chevron { font-size: 11px; color: var(--text3); transition: transform 0.22s ease, color 0.18s ease, background 0.18s ease; flex-shrink: 0; margin-left: auto; margin-right: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; cursor: pointer; line-height: 1; }
.nav-collapsible:hover .nav-chevron { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-collapsible.sc-collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-collapsible.collapsed .nav-chevron { transform: rotate(-90deg); }
/* font-size:0 on the group kills whitespace text nodes between inline elements */
.nav-sub-group { overflow: hidden !important; max-height: 600px; transition: max-height 0.28s ease, opacity 0.22s ease; opacity: 1; font-size: 0; margin: 0 !important; padding: 0 !important; }
.nav-sub-group > .nav-item { font-size: 12.5px; padding-top: 3px !important; padding-bottom: 3px !important; }
.nav-sub-group.collapsed { max-height: 0 !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; }
.nav-sub-group.sc-collapsed { max-height: 0 !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; }


/* ══════════════════════════════════════
   ICON SYSTEM (replaces emoji)
   icons.js provides inline SVG; these
   classes control size, color, layout.
══════════════════════════════════════ */

/* Base SVG icon — inherits color from parent */
.icon-svg {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: middle;
  flex-shrink: 0;
  /* stroke is set via SVG attrs; currentColor flows from parent */
}

/* Sidebar nav-icon: was 12px emoji */
.nav-icon .icon-svg {
  width: 13px; height: 13px;
  opacity: 0.75;
  transition: opacity 0.18s;
}
.nav-item:hover .nav-icon .icon-svg,
.nav-item.active .nav-icon .icon-svg,
.nav-sub-active .nav-icon .icon-svg { opacity: 1; }

/* Contact footer icons */
.icon-contact {
  width: 14px; height: 14px;
}

/* Project card icon box — replaces raw emoji */
.icon-box {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}
.icon-box-lg {
  width: 44px; height: 44px;
  border-radius: 10px;
}
.project-card:hover .icon-box {
  transform: scale(1.08) rotate(-3deg);
}

.icon-box .icon-project { width: 17px; height: 17px; }
.icon-box-lg .icon-project { width: 21px; height: 21px; }

/* Color variants — match the --text/border/bg token pattern */
.icon-box-gold {
  color: var(--accent);
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 10px rgba(201,168,76,0.06);
}
.icon-box-blue {
  color: var(--blue);
  border-color: rgba(91,159,212,0.3);
  background: rgba(91,159,212,0.08);
  box-shadow: 0 0 10px rgba(91,159,212,0.06);
}
.icon-box-purple {
  color: var(--purple);
  border-color: rgba(155,127,212,0.3);
  background: rgba(155,127,212,0.08);
  box-shadow: 0 0 10px rgba(155,127,212,0.06);
}
.icon-box-green {
  color: var(--green);
  border-color: rgba(93,186,138,0.3);
  background: rgba(93,186,138,0.08);
  box-shadow: 0 0 10px rgba(93,186,138,0.06);
}

/* Tag chips: strip the emoji, keep text — no extra rule needed,
   just remove the emoji characters from the HTML */

/* dp-page-emoji replacement on subpages */
.dp-page-icon-box {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.07);
  color: var(--accent);
  margin-bottom: 14px;
}
.dp-page-icon-box .icon-svg { width: 26px; height: 26px; }

/* icon sizes for main.js hydration */
.icon-project     { width: 17px; height: 17px; }
.icon-project-lg  { width: 21px; height: 21px; }
.contact-pill-icon .icon-svg { width: 13px; height: 13px; vertical-align: -1px; }
.contact-pill-icon { display: inline-flex; align-items: center; margin-right: 5px; }
