/* =========================================================
   Edwin Santos · Portfolio
   Modern dark · 2026
   ========================================================= */

:root {
  /* Palette */
  --bg-0: #0a0a0f;
  --bg-1: #0f0f17;
  --bg-2: #14141d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e9e9f0;
  --text-muted: #9499a8;
  --text-dim: #6a6f7e;

  --accent: #6366f1;          /* indigo */
  --accent-2: #0ea5e9;         /* sky */
  --accent-3: #a855f7;         /* purple */
  --accent-glow: rgba(99, 102, 241, 0.35);

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.15) 0%, rgba(168,85,247,.10) 100%);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container: 1180px;

  --shadow-1: 0 4px 24px rgba(0,0,0,.25);
  --shadow-2: 0 16px 60px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(99,102,241,.25), 0 12px 40px rgba(99,102,241,.15);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--accent); color: white; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

/* =========================================================
   Background mesh
   ========================================================= */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.mesh-1 { width: 520px; height: 520px; background: #6366f1; top: -180px; left: -120px; }
.mesh-2 { width: 480px; height: 480px; background: #a855f7; top: 30%; right: -160px; opacity: .25; }
.mesh-3 { width: 580px; height: 580px; background: #0ea5e9; bottom: -200px; left: 30%; opacity: .18; }

/* =========================================================
   Navigation
   ========================================================= */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(10, 10, 15, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-wrapper.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.85);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}
.logo-mark {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  letter-spacing: .5px;
  transition: all .25s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}
.lang-toggle .lang-current { color: var(--text); }
.lang-toggle .lang-divider { color: var(--text-dim); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 0 0;
    flex-direction: column;
    background: rgba(10,10,15,.95);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .menu-toggle { display: flex; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.4), 0 18px 50px rgba(99,102,241,.3);
}
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 80px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-greet {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.hero-name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.hero-role .amp {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  max-width: 540px;
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:last-child { grid-column: 1 / -1; }
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
}
.stat-value::after {
  content: '+';
  color: var(--accent);
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Hero visual: terminal */
.hero-visual {
  position: relative;
  perspective: 1000px;
}
.terminal {
  background: linear-gradient(180deg, #14141d 0%, #0e0e16 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transform: rotate(-1.5deg);
  transition: transform .6s var(--ease);
}
.terminal:hover { transform: rotate(0deg) translateY(-4px); }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 22px 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #cfd2dc;
  white-space: pre;
  overflow-x: auto;
}
.c-keyword { color: #c084fc; font-weight: 600; }
.c-fn      { color: #60a5fa; }
.c-num     { color: #fbbf24; }
.c-comment { color: #6b7280; font-style: italic; }

.floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(20, 20, 29, .9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.floating-card svg { color: var(--accent); }
.card-1 {
  top: -22px;
  left: -32px;
  animation: float 5s var(--ease) infinite;
}
.card-2 {
  bottom: -22px;
  right: -16px;
  animation: float 6s var(--ease) infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  opacity: .5;
}
.scroll-hint span {
  width: 3px; height: 7px;
  background: var(--text);
  border-radius: 2px;
  animation: scroll-anim 1.6s var(--ease) infinite;
}
@keyframes scroll-anim {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@media (max-width: 980px) {
  .scroll-hint { display: none; }
}

/* =========================================================
   Section heading
   ========================================================= */
.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 60px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-text .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
}
.about-text p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.about-highlights {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.highlight:hover { border-color: var(--border-strong); transform: translateX(4px); }
.highlight-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.highlight-icon svg { width: 20px; height: 20px; }
.highlight h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.highlight p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.profile-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--grad-soft);
}
.profile-avatar {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profile-glow {
  position: absolute; inset: -50%;
  background: radial-gradient(circle, rgba(99,102,241,.3) 0%, transparent 60%);
  pointer-events: none;
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.profile-meta {
  display: grid;
  gap: 14px;
  font-size: 14px;
}
.profile-meta li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-key {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 1px;
}
.meta-val { font-weight: 500; }
.meta-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

/* =========================================================
   Skills
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.skill-card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}
.skill-card:hover::before { opacity: 1; }

.skill-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.skill-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--accent);
}
.skill-icon svg { width: 22px; height: 22px; }
.skill-card h3 { margin: 0; font-size: 17px; font-weight: 600; }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

/* =========================================================
   Projects
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.project-card.project-feature { grid-column: 1 / -1; }
@media (min-width: 881px) {
  .project-card.project-feature {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  .project-feature .project-img { height: 100%; }
}

.project-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.project-img svg { width: 100%; height: 100%; }
.project-img-1 { background: linear-gradient(135deg, rgba(99,102,241,.1) 0%, rgba(14,165,233,.05) 100%); }
.project-img-2 { background: linear-gradient(135deg, rgba(168,85,247,.1) 0%, rgba(236,72,153,.05) 100%); }
.project-img-3 { background: linear-gradient(135deg, rgba(16,185,129,.1) 0%, rgba(6,182,212,.05) 100%); }
.project-img-4 { background: linear-gradient(135deg, rgba(245,158,11,.1) 0%, rgba(239,68,68,.05) 100%); }
.project-img-5 { background: linear-gradient(135deg, rgba(59,130,246,.1) 0%, rgba(99,102,241,.05) 100%); }
.project-img-6 { background: linear-gradient(135deg, rgba(234,179,8,.1) 0%, rgba(245,158,11,.05) 100%); }

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(99,102,241,.12);
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag-purple { background: rgba(168,85,247,.12); color: var(--accent-3); }
.tag-green  { background: rgba(16,185,129,.12); color: var(--success); }
.tag-orange { background: rgba(245,158,11,.12); color: var(--warning); }

.project-body h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.5px;
}
.project-body p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.project-stack li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .25s var(--ease), color .2s;
}
.project-link:hover { gap: 10px; color: var(--text); }

/* More projects (mini grid) */
.more-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--text);
  margin: 64px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.more-title::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.mini-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mini-icon svg { width: 20px; height: 20px; }
.mini-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.2px;
}
.mini-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.mini-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-stack li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
}

/* =========================================================
   Experience timeline
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 40px;
  border-left: 1px solid var(--border);
  display: grid;
  gap: 32px;
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -47px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 26px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.timeline-content:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.timeline-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.timeline-date {
  background: rgba(99,102,241,.1);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}
.timeline-type {
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}
.timeline-content h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}
.timeline-content h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
}
.timeline-content p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14.5px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.cv-cta {
  margin-top: 50px;
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}
.cv-cta p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

/* =========================================================
   Contact
   ========================================================= */
.section-contact { padding-bottom: 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info h3 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.5px;
}
.contact-info p {
  margin: 0 0 32px;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-links {
  display: grid;
  gap: 12px;
}
.contact-links a {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .25s var(--ease);
}
.contact-links a:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,.06);
  transform: translateX(4px);
}
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-key {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.contact-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}
@media (max-width: 520px) {
  .contact-links a { grid-template-columns: auto 1fr; }
  .contact-key { display: none; }
}

/* form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.form-note {
  margin: 6px 0 0;
  font-size: 13px;
  text-align: center;
  min-height: 1em;
}
.form-note.success { color: var(--success); }
.form-note.error   { color: var(--danger); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: rgba(10,10,15,.5);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tag {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mesh, .pulse-dot, .floating-card, .profile-glow, .scroll-hint span, .logo-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Scrollbar
   ========================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* =========================================================
   Awards section
   ========================================================= */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}
.award-card {
  position: relative;
  background: linear-gradient(160deg, rgba(251,191,36,.06) 0%, var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.award-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
  opacity: .8;
}
.award-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,191,36,.3);
}
.award-medal {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251,191,36,.15) 0%, rgba(245,158,11,.05) 100%);
  border: 1px solid rgba(251,191,36,.25);
  display: grid;
  place-items: center;
  color: #fbbf24;
  margin-bottom: 20px;
}
.award-medal svg { width: 26px; height: 26px; }
.award-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-bottom: 14px;
}
.award-year {
  background: rgba(251,191,36,.12);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .5px;
}
.award-place {
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}
.award-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.3;
}
.award-card h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
}
.award-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
