/* ============================================
   Martin Alt — Personal Site
   Design inspired by vite.dev
   ============================================ */

:root {
  --bg:           #070b12;
  --bg-soft:      #0b111c;
  --surface:      #0f1622;
  --surface-2:    #141d2b;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(58, 155, 232, 0.5);

  --text:         #e8edf3;
  --text-soft:    #aeb9c8;
  --text-muted:   #74808f;

  /* Vietnam Airlines blue + lotus gold accents */
  --vite-purple:  #3a9be8;   /* primary blue accent */
  --vite-cyan:    #6cc0f5;   /* light sky blue */
  --vite-yellow:  #d4af5a;   /* lotus gold */
  --grad-brand:   linear-gradient(120deg, #6cc0f5 0%, #0d5cb6 100%);
  --grad-warm:    linear-gradient(120deg, #2b8fe0 25%, #d4af5a 100%);

  --radius:       16px;
  --radius-sm:    10px;
  --maxw:         1320px;
  --nav-h:        73px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Frame rails ---------- */
/* Vertical framing lines aligned to the content column */
.rails {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--maxw), 100%);
  z-index: -1;
  pointer-events: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ---------- Background orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.orb-1 {
  width: 540px; height: 540px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--vite-purple), transparent 70%);
  animation: float1 22s ease-in-out infinite;
}
.orb-2 {
  width: 480px; height: 480px;
  top: 30%; right: -160px;
  background: radial-gradient(circle, var(--vite-cyan), transparent 70%);
  opacity: 0.30;
  animation: float2 26s ease-in-out infinite;
}
.orb-3 {
  width: 420px; height: 420px;
  bottom: -140px; left: 40%;
  background: radial-gradient(circle, var(--vite-yellow), transparent 70%);
  opacity: 0.16;
  animation: float1 30s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 60px) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 40px) scale(1.1); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* persistent divider under the nav, aligned to the frame rails */
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-mark { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(58,155,232,0.6)); }
.brand-name { letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta {
  background: var(--grad-brand);
  color: #0a0a14 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.1); background: var(--grad-brand) !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }
.lang-btn .chev { transition: transform 0.25s; opacity: 0.7; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: rgba(15, 22, 34, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 120;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-menu li { width: 100%; }
.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.active {
  color: var(--text);
  background: rgba(45, 143, 224, 0.14);
  box-shadow: inset 0 0 0 1px rgba(108, 192, 245, 0.3);
}
.lang-menu .flag { font-size: 1.05rem; line-height: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--grad-brand);
  color: #0a0a14;
  box-shadow: 0 8px 30px -8px rgba(58, 155, 232, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 40px -8px rgba(58, 155, 232, 0.7); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-hover); background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.hero-left {
  padding: 96px 56px 64px 40px;
}
.hero-right {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* vite-style center divider — starts BELOW the nav line, never crosses it */
.hero-right::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--nav-h);
  bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text.alt { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  justify-content: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Hero isometric animation ---------- */
.iso-stage {
  position: relative;
  width: 560px;
  height: 600px;
  max-width: 100%;
  transform-style: preserve-3d;
  perspective: 1400px;
  animation: stageIn 1.1s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(-70px) scale(0.82); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* soft glow behind the core */
.iso-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 64%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(45, 143, 224, 0.28), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}

.iso-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.iso-line {
  stroke: url(#lineGrad);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: flow 1.1s linear infinite, lineIn 0.9s ease both 0.4s;
}
.iso-line.dim { opacity: 0.4; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes lineIn { from { opacity: 0; } }

/* generic tile */
.tile {
  position: absolute;
  width: calc(var(--w) * 2);
  height: calc(var(--w) * 2);
  left: calc(var(--x) - var(--w));
  top: calc(var(--y) - var(--w));
  transform-style: preserve-3d;
  animation: floatY 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.tile-face {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  transform: rotateX(55deg) rotateZ(45deg);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.85s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: var(--d, 0s);
}

/* core tile — solid, glowing blue with a lit bottom edge */
.tile.core .tile-face {
  background: linear-gradient(150deg, #18263b, #0d1726);
  border: 1px solid rgba(108, 192, 245, 0.55);
  box-shadow:
    0 0 0 1px rgba(108, 192, 245, 0.1),
    0 26px 0 -2px #0d5cb6,
    0 30px 40px -10px rgba(13, 92, 182, 0.7),
    inset 0 0 30px rgba(45, 143, 224, 0.25);
}
.tile-logo {
  font-size: 2.4rem;
  transform: rotateZ(-45deg) rotateX(-55deg); /* billboard upright */
  filter: drop-shadow(0 4px 10px rgba(108, 192, 245, 0.8));
}

/* small chips — labeled stack tiles */
.tile.chip .tile-face {
  background: linear-gradient(150deg, #15212f, #0c1521);
  border: 1px solid rgba(108, 192, 245, 0.35);
  box-shadow:
    0 14px 0 -2px #0a4a96,
    0 16px 26px -8px rgba(13, 92, 182, 0.6);
}
.tile-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(180, 215, 245, 0.85);
  letter-spacing: 0.04em;
}

/* wireframe outline tiles floating above */
.tile.wire .tile-face {
  background: linear-gradient(150deg, rgba(108, 192, 245, 0.04), transparent);
  border: 1px solid rgba(140, 190, 235, 0.22);
  box-shadow: inset 0 0 30px rgba(108, 192, 245, 0.06);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes popIn {
  from { opacity: 0; transform: rotateX(55deg) rotateZ(45deg) translateZ(-40px) scale(0.6); }
  to   { opacity: 1; }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 40px;
  border-top: 1px solid var(--border);
}
.section-head { margin-bottom: 52px; }
.section-tag {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--vite-purple);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 10px;
  line-height: 1.15;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 620px;
  margin-top: 14px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { color: var(--text-soft); margin-bottom: 18px; font-size: 1.05rem; }
.about-list { margin-top: 26px; display: grid; gap: 12px; }
.about-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 500;
}
.about-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--vite-purple);
  font-weight: 700;
}

/* Code window */
.code-window {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-file {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.code-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.85;
  overflow-x: auto;
}
.code-body code { color: var(--text-soft); }
.c-key  { color: #ff7b72; }
.c-var  { color: #79c0ff; }
.c-prop { color: #d2a8ff; }
.c-str  { color: #a5d6ff; }
.c-bool { color: #ffa657; }

/* ---------- Capabilities — Bento grid ---------- */
/* connected, Vercel/Vite-style grid: shared lines, equal-height cells */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);          /* subtle inner lines */
  border: 1px solid rgba(255, 255, 255, 0.1);     /* stronger outer frame */
  border-radius: 16px;
  overflow: hidden;
}
.cap-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 28px 30px;
  transition: background 0.25s;
}
.cap-card:hover { background: var(--surface-2); }
.cap-card.wide { grid-column: 1 / -1; }

/* wide leadership cell: content left, claim right */
.cap-card.wide {
  flex-direction: row;
  align-items: stretch;
  gap: 36px;
}
.cap-card.wide .cap-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cap-claim {
  flex: 0 0 33%;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  padding-left: 36px;
}
.cap-claim p {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* highlighted hero capability (AI) */
.cap-card.highlight {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(108, 192, 245, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(45, 143, 224, 0.1), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px rgba(108, 192, 245, 0.32);
}
.cap-card.highlight:hover {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(108, 192, 245, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(45, 143, 224, 0.14), var(--surface-2) 60%);
}
.cap-card.highlight::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(108, 192, 245, 0.16), transparent 70%);
  pointer-events: none;
}

.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cap-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--vite-cyan);
  background: rgba(45, 143, 224, 0.1);
  border: 1px solid rgba(108, 192, 245, 0.22);
}
.cap-icon svg { width: 24px; height: 24px; }
.cap-card.highlight .cap-icon {
  color: var(--vite-yellow);
  background: rgba(212, 175, 90, 0.12);
  border-color: rgba(212, 175, 90, 0.3);
  box-shadow: 0 0 18px rgba(212, 175, 90, 0.18);
}

.cap-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}
.cap-desc {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 52ch;
}
.cap-card.wide .cap-desc { max-width: 78ch; }

/* subtle "focus area" badge */
.card-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 100px;
  color: var(--vite-yellow);
  background: rgba(212, 175, 90, 0.1);
  border: 1px solid rgba(212, 175, 90, 0.28);
}

/* fine, secondary chips — keep card text dominant */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.chips span {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.cap-card:hover .chips span { color: var(--text-soft); border-color: rgba(255, 255, 255, 0.12); }

@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .cap-card.wide { flex-direction: column; gap: 0; }
  .cap-claim {
    flex: none;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 0;
    padding-top: 22px;
    margin-top: 22px;
  }
  .cap-claim p { font-size: 1.2rem; }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--vite-purple), var(--vite-cyan), transparent);
  opacity: 0.4;
}
.tl-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 26px;
}
.tl-marker {
  position: absolute;
  left: 0;
  top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--vite-purple);
  box-shadow: 0 0 0 4px rgba(58, 155, 232, 0.12);
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.tl-card:hover { transform: translateX(4px); border-color: var(--border-hover); background: var(--surface-2); }
.tl-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tl-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--vite-cyan);
  font-weight: 500;
}
.tl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tl-badge.current {
  background: rgba(61, 220, 132, 0.14);
  color: #3ddc84;
  border: 1px solid rgba(61, 220, 132, 0.3);
}
.tl-card h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.tl-org {
  color: var(--vite-purple);
  font-weight: 600;
  font-size: 0.96rem;
  margin: 2px 0 14px;
}
.tl-card ul { display: grid; gap: 7px; margin-bottom: 16px; }
.tl-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.tl-card li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--vite-cyan);
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tl-tags span {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.collapsed-item { display: none; }
.timeline.show-all .collapsed-item { display: block; }
.timeline-more { text-align: center; margin-top: 8px; }

/* ---------- Certifications (gold seal style) ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cert-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(160deg, rgba(212, 175, 90, 0.05), var(--surface) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 90, 0.5);
  box-shadow: 0 16px 40px -16px rgba(212, 175, 90, 0.35);
}
/* shine sweep on hover */
.cert-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(212, 175, 90, 0.14), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.cert-card:hover::after { left: 150%; transition: left 0.85s ease; }
/* circular gold medallion */
.cert-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 50%;
  color: var(--vite-yellow);
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 90, 0.22), rgba(212, 175, 90, 0.05));
  border: 1px solid rgba(212, 175, 90, 0.45);
  box-shadow: inset 0 0 12px rgba(212, 175, 90, 0.15), 0 0 14px rgba(212, 175, 90, 0.12);
}
.cert-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.cert-card p { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 40px;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  width: 400px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(58, 155, 232, 0.18), transparent 70%);
  pointer-events: none;
}
.contact-inner h2 { margin: 12px 0 16px; }
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 22px;
}
.contact-loc { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  .tile, .iso-line, .iso-stage { animation: none !important; }
  .tile-face { animation: none !important; opacity: 1; }
  .iso-stage { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 24px 80px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(7, 11, 18, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 480px) {
  .section { padding: 64px 20px; }
  .hero { padding: 110px 20px 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .stat-num { font-size: 1.8rem; }
  .contact-inner { padding: 48px 24px; }
}
