/* ─── Spoiler (phone number hide) ───────────────────── */
.spoiler {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
  transition: filter 0.3s ease;
  border-radius: 3px;
  color: var(--text-dim);
}
.spoiler:hover,
.spoiler.revealed {
  filter: blur(0);
  user-select: text;
}
:root {
  --bg:          #0d0f10;
  --bg-raised:   #141618;
  --text:        #c9cdd4;
  --text-dim:    #7a8290;
  --text-light:  #4e5560;
  --accent:      #e8c547;
  --accent-hover:#f5d96a;
  --border:      #1e2126;
  --border-hover:#2e3340;
  --white:       #f0f2f5;
  --project-title:#e8c547;
  --tag-bg:      #1e2126;
  --tag-text:    #5a6272;
}

[data-theme="light"] {
  --bg:           #f9fafb;
  --bg-raised:    #ffffff;
  --text:         #111827;
  --text-dim:     #374151;
  --text-light:   #6b7280;
  --accent:       #16a34a;
  --accent-hover: #15803d;
  --border:       #e5e7eb;
  --border-hover: #16a34a;
  --white:        #111827;
  --project-title:#16a34a;
  --tag-bg:       #f0fdf4;
  --tag-text:     #374151;
}

/* ─── Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.7;
  margin: 0;
  padding: 0 1.5rem;
  transition: background-color 0.35s, color 0.35s;
}

a, button { cursor: pointer; }
code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; opacity: 0.75; }

.max-w-4xl     { max-width: 56rem; }
.mx-auto       { margin-left: auto; margin-right: auto; }
.px-6          { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16         { padding-top: 4rem; padding-bottom: 4rem; }
.min-h-screen  { min-height: 100vh; }
.mt-6          { margin-top: 1.5rem; }
.mt-8          { margin-top: 2rem; }
.mt-2          { margin-top: 0.5rem; }
.text-lg       { font-size: 1.05rem; }
.leading-relaxed { line-height: 1.8; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.text-zinc-400 { color: var(--text-dim); }

@media (min-width: 768px) {
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ─── Theme toggle ───────────────────────────────────── */
.button-30 {
  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow:
    rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
    #D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  font-family: 'JetBrains Mono', monospace;
  height: 32px;
  width: 32px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s, background-color 0.3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: box-shadow, transform;
}

.button-30:focus {
  box-shadow:
    #D6D6E7 0 0 0 1.5px inset,
    rgba(45, 35, 66, 0.4) 0 2px 4px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
    #D6D6E7 0 -3px 0 inset;
  outline: none;
}

.button-30:hover {
  box-shadow:
    rgba(45, 35, 66, 0.4) 0 4px 8px,
    rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
    #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
  background-color: #71717a;
  color: #f0f0f0;
}

.button-30:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

/* Icon spin on click */
.toggle-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle.is-spinning .toggle-icon-wrap {
  transform: rotate(360deg) scale(1.2);
}

/* Ripple burst */
.theme-toggle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.theme-toggle.ripple::after {
  opacity: 0.7;
  transform: scale(1.45);
}

.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1000;
}

/* ─── Divider ────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 3.5rem 0; }

/* ─── Hero ───────────────────────────────────────────── */
.hero-center { text-align: center; padding: 2rem 0 1rem; }

.hero-greeting {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fade-down 0.6s ease 0.1s forwards;
}

h1, .hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  line-height: 1.1;
  opacity: 0;
  animation: fade-up 0.7s ease 0.25s forwards;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.04em;
  min-height: 1.6em;
  opacity: 0;
  animation: fade-up 0.6s ease 0.45s forwards;
}

.typewriter-prefix { opacity: 0.5; }

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-weight: 400;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-tag {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0.35rem 0 0;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 0.6s ease 0.6s forwards;
}

.hero-dot  { color: var(--text-light); }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0;
  animation: fade-up 0.6s ease 0.75s forwards;
}

/* ─── Hero entrance animations ───────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── Section titles ─────────────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.3rem; left: 0;
  width: 110%; height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.35;
}

/* ─── Floating nav pill ──────────────────────────────── */
.float-nav {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%) translateY(80px);
  display: flex;
  align-items: center;
  gap: 0.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  z-index: 999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, border-color 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.float-nav.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .float-nav {
  box-shadow: 0 4px 24px rgba(22,163,74,0.15);
}

.float-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.float-nav-item:hover {
  color: var(--accent);
  background: var(--tag-bg);
}

.float-nav-item.active {
  color: var(--bg);
  background: var(--accent);
}

/* ─── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Links ──────────────────────────────────────────── */
.link { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.link:hover { color: var(--accent-hover); }

.placeholder-link { color: var(--text-dim); text-decoration: none; font-weight: 500; position: relative; transition: color 0.2s; }
.placeholder-link:hover { color: var(--accent); }
.placeholder-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s ease; }
.placeholder-link:hover::after { width: 100%; }

.easter-egg { color: inherit; text-decoration: none; cursor: default; }
.easter-egg:hover { color: inherit; text-decoration: none; cursor: default; }

/* ─── Skills ─────────────────────────────────────────── */
.skill-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-category { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.1rem 1.1rem; transition: border-color 0.2s; }
.skill-category:hover { border-color: var(--border-hover); }
.skill-cat-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.65rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag { display: inline-block; padding: 0.2rem 0.55rem; background: var(--tag-bg); color: var(--text-dim); font-size: 0.72rem; border-radius: 3px; border: 1px solid var(--border); transition: border-color 0.2s, color 0.2s; }
.skill-category:hover .skill-tag { border-color: var(--border-hover); color: var(--text); }

.certs-block { margin-top: 1.5rem; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.1rem 1.1rem; }
.certs-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.cert-badge { display: inline-block; padding: 0.25rem 0.75rem; background: var(--tag-bg); color: var(--text-dim); font-size: 0.75rem; border-radius: 3px; border: 1px solid var(--border); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.cert-badge:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Project cards ──────────────────────────────────── */
.kanban-board { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .kanban-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .kanban-board { grid-template-columns: repeat(3, 1fr); } }

.kanban-card { display: block; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 0.5rem; text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; }
.kanban-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent) 0%, transparent 55%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.kanban-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
[data-theme="light"] .kanban-card:hover { box-shadow: 0 8px 24px rgba(22,163,74,0.15); }
.kanban-card:hover::before { opacity: 0.04; }

.card-inner { padding: 1.1rem 1.15rem 1rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.project-title { font-size: 1rem; font-weight: 600; color: var(--project-title); transition: color 0.2s; }
.kanban-card:hover .project-title { color: var(--accent-hover); }
.pin-badge { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); border: 1px solid var(--border); border-radius: 3px; padding: 0.1rem 0.4rem; flex-shrink: 0; }
.card-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; margin: 0 0 0.65rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.tag { display: inline-block; padding: 0.15rem 0.45rem; background: var(--tag-bg); color: var(--tag-text); font-size: 0.68rem; border-radius: 3px; border: 1px solid var(--border); }
.hidden-card { display: none; }
.projects-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.25rem; }
.toggle-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; padding: 0.3rem 0.75rem; border-radius: 4px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   06 / WHAT MY LIFE LOOKS LIKE RIGHT NOW
   Inspired by avinier — a collage of life artifacts
═══════════════════════════════════════════════════════ */

.stats-intro {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: -0.75rem 0 1.75rem;
  letter-spacing: 0.06em;
}

/* ─── Grid layout ────────────────────────────────────── */
/*
  Desktop 4-col grid:
  [spotify tall] [book ]  [github  ][github  ]
  [spotify tall] [watch]  [x-card  ][resume  ]
  [loc          ][chess]  [waka    ][leetcode ]
*/
.life-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "sp   xc    gh   gh  "
    "sp   watch book res "
    "loc  chess waka leet";
}

@media (max-width: 820px) {
  .life-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "sp   sp  "
      "xc   watch"
      "gh   gh  "
      "book res "
      "loc  chess"
      "waka leet";
  }
}

@media (max-width: 500px) {
  .life-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sp" "gh" "book" "watch" "xc" "res" "loc" "chess" "waka" "leet";
  }
}

/* ─── Base card ──────────────────────────────────────── */
.lc {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem 0.9rem;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.lc:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.32);
}
[data-theme="light"] a.lc:hover { box-shadow: 0 10px 32px rgba(22,163,74,0.12); }
a.lc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  background: radial-gradient(ellipse at 15% 15%, var(--accent), transparent 65%);
}
a.lc:hover::after { opacity: 0.035; }

/* grid areas */
.lc-spotify { grid-area: sp; }
.lc-book    { grid-area: book; }
.lc-github  { grid-area: gh; }
.lc-watch   { grid-area: watch; }
.lc-x       { grid-area: xc; }
.lc-resume  { grid-area: res; }
.lc-loc     { grid-area: loc; }
.lc-chess   { grid-area: chess; }
.lc-waka    { grid-area: waka; padding-bottom: 0.5rem; }
.lc-leet    { grid-area: leet; }

/* ─── Tag chip ───────────────────────────────────────── */
.lc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem 0.15rem 0.42rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.lc-tag svg { opacity: 0.6; flex-shrink: 0; }
.lc-tag-green {
  color: var(--c, #1DB954);
  border-color: color-mix(in srgb, var(--c, #1DB954) 28%, var(--border));
}
.lc-tag-x {
  color: var(--text-dim);
}

/* live pip */
.lc-pip {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px #4ade80;
  animation: pip 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pip {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.25; transform:scale(0.5); }
}

/* skeleton + error */
.lc-skeleton {
  height: 0.5rem;
  border-radius: 4px;
  width: 65%;
  background: linear-gradient(90deg, var(--border) 25%,
    color-mix(in srgb,var(--border) 50%,var(--bg-raised)) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skel 1.8s ease-in-out infinite;
  margin: 0.5rem 0;
}
@keyframes skel {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.lc-err {
  font-size: 0.65rem;
  color: var(--text-light);
  font-style: italic;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lc-err img { display: block; }
#waka-error .waka-light { display: none; }
[data-theme="light"] #waka-error .waka-dark  { display: none; }
[data-theme="light"] #waka-error .waka-light { display: block; }

/* ═══════════════════════════════════════════════════════
   SPOTIFY — tall image-forward card
═══════════════════════════════════════════════════════ */
.lc-spotify {
  background: #080808;
  border-color: #1a1a1a;
  justify-content: flex-start;
}
[data-theme="light"] .lc-spotify { background: #f0fdf4; border-color: #bbf7d0; }

.sp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1DB954;
  box-shadow: 0 0 7px #1DB954;
  position: absolute;
  top: 0.9rem; right: 1rem;
}
.sp-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1DB954;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}
.sp-art {
  width: 100%;
  flex: 1;
  object-fit: cover;
  border-radius: 0.55rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.65);
  display: block;
  min-height: 0;
  margin-bottom: 0.6rem;
}
.sp-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.sp-eq i {
  flex: 1;
  background: #1DB954;
  border-radius: 2px 2px 0 0;
  opacity: 0.65;
  animation: eq 1.1s ease-in-out infinite;
}
.sp-eq i:nth-child(1){animation-delay:.00s;--h:35%}
.sp-eq i:nth-child(2){animation-delay:.11s;--h:72%}
.sp-eq i:nth-child(3){animation-delay:.22s;--h:50%}
.sp-eq i:nth-child(4){animation-delay:.33s;--h:85%}
.sp-eq i:nth-child(5){animation-delay:.44s;--h:42%}
@keyframes eq {
  0%,100%{height:12%}
  50%{height:var(--h,55%)}
}

/* ═══════════════════════════════════════════════════════
   BOOK — currently reading
═══════════════════════════════════════════════════════ */
.lc-book {
  background: linear-gradient(135deg, #0f0e0d 0%, #1a1510 100%);
  border-color: #2a2218;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
[data-theme="light"] .lc-book {
  background: linear-gradient(135deg, #f7f3ee 0%, #ede8e0 100%);
  border-color: #d4ccc0;
}
.book-cover {
  display: flex;
  height: 110px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.55), -2px 0 8px rgba(0,0,0,0.3);
}
.book-spine {
  width: 14px;
  background: linear-gradient(to right, #b8860b, #daa520, #b8860b);
  flex-shrink: 0;
}
.book-face {
  flex: 1;
  background: linear-gradient(160deg, #1a1200 0%, #2d1f00 50%, #1a1200 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.5rem;
  gap: 0.2rem;
  text-align: center;
  border-left: 1px solid rgba(218,165,32,0.25);
}
[data-theme="light"] .book-face {
  background: linear-gradient(160deg, #fdf6e3 0%, #f5e6c8 100%);
  border-left-color: rgba(139,90,0,0.2);
}
.book-title-text {
  font-size: 0.58rem;
  font-weight: 700;
  color: #daa520;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.book-author-text {
  font-size: 0.48rem;
  color: rgba(218,165,32,0.55);
  letter-spacing: 0.05em;
}
.book-deco {
  font-size: 0.7rem;
  color: rgba(218,165,32,0.35);
  margin-top: 0.15rem;
}
.book-caption {
  font-size: 0.6rem;
  color: var(--text-light);
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   GITHUB
═══════════════════════════════════════════════════════ */
.gh-stats-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.gh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.gh-stat-mid { position: relative; }
.gh-stat-mid::before, .gh-stat-mid::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.gh-stat-mid::before { left: 0; }
.gh-stat-mid::after  { right: 0; }
.gh-stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.gh-streak-num {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(232,197,71,.4));
}
.gh-stat-lbl {
  font-size: 0.52rem;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.04em;
}
.gh-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  image-rendering: pixelated;
}
.gh-canvas-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gh-handle {
  font-size: 0.55rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.gh-canvas-legend {
  display: flex;
  gap: 3px;
  align-items: center;
}
.gh-leg-box {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════
   WATCHING — Breaking Bad
═══════════════════════════════════════════════════════ */
.lc-watch {
  background: linear-gradient(145deg, #0a0a0a 0%, #111 100%);
  border-color: #1e1e1e;
  justify-content: space-between;
}
[data-theme="light"] .lc-watch {
  background: linear-gradient(145deg, #f9fafb, #f3f4f6);
  border-color: #e5e7eb;
}
.watch-layout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1;
  margin-bottom: 0.4rem;
}
.watch-cover {
  width: 52px;
  height: 75px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
}
.watch-inner { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.watch-show {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.watch-meta {
  font-size: 0.6rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.watch-bar {
  height: 3px;
  background: var(--tag-bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.watch-progress {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #e8c547, #f0a500);
  border-radius: 2px;
  animation: progress-glow 3s ease-in-out infinite;
}
@keyframes progress-glow {
  0%,100% { box-shadow: none; }
  50%      { box-shadow: 0 0 6px rgba(232,197,71,0.6); }
}
.watch-ep {
  font-size: 0.57rem;
  color: var(--text-light);
  font-style: italic;
}
.watch-badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   X / TWITTER
═══════════════════════════════════════════════════════ */
.lc-x {
  justify-content: space-between;
}
.x-handle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.x-bio {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.x-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.62rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}
.x-stats b { color: var(--white); font-size: 0.85rem; }
.x-cta {
  font-size: 0.6rem;
  color: var(--accent);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   RESUME
═══════════════════════════════════════════════════════ */
.lc-resume { justify-content: space-between; }
.resume-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.resume-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.resume-role {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}
.resume-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}
.resume-line-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  color: var(--text-dim);
}
.resume-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}
.resume-cta {
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 0.45rem;
  margin-top: 0.35rem;
}

/* ═══════════════════════════════════════════════════════
   LOCATION + CLOCK
═══════════════════════════════════════════════════════ */
.lc-loc { justify-content: space-between; }
.loc-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(232,197,71,0.35));
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.1rem;
}
.loc-tz {
  font-size: 0.57rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.loc-flag { font-size: 1.4rem; line-height: 1; margin: 0.35rem 0; }
.loc-open {
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 0.13rem 0.5rem;
  width: fit-content;
}

/* ═══════════════════════════════════════════════════════
   CHESS
═══════════════════════════════════════════════════════ */
.ch-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.38rem;
  margin-bottom: 0.5rem;
}
.ch-mode {
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
a.lc-chess:hover .ch-mode {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.ch-label { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 0.15rem; }
.ch-rating {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(232,197,71,0.3));
}
.ch-best { font-size: 0.46rem; color: var(--text-light); margin-top: 0.1rem; }
.ch-rec {
  display: flex;
  gap: 0.5rem;
  font-size: 0.6rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 0.42rem;
  flex-wrap: wrap;
  align-items: center;
}
.ch-w { color: #4ade80; font-weight: 600; }
.ch-l { color: #f87171; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   WAKATIME — arc donut chart + legend
═══════════════════════════════════════════════════════ */
.wk-arc-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0.3rem auto 0.75rem;
  flex-shrink: 0;
}
.wk-arc-svg {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
  overflow: visible;
}
.wk-arc-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
}
.wk-arc-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.wk-arc-sub {
  font-size: 0.5rem;
  color: var(--text-light);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}
.wk-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.wk-leg-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wk-leg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wk-leg-name {
  font-size: 0.6rem;
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wk-leg-time {
  font-size: 0.58rem;
  color: var(--text-light);
  white-space: nowrap;
}
.wk-leg-pct {
  font-size: 0.55rem;
  color: var(--accent);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
/* fallback images in error state */


/* ═══════════════════════════════════════════════════════
   LEETCODE
═══════════════════════════════════════════════════════ */
.lc-ring-wrap {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 0.6rem;
}
.lc-svg {
  width: 80px; height: 80px;
  transform: rotate(-90deg);
  overflow: visible;
}
.lc-bg  { fill: none; stroke: var(--tag-bg); stroke-width: 8; }
.lc-seg {
  fill: none; stroke-width: 8; stroke-linecap: butt;
  transition: stroke-dasharray 1.1s cubic-bezier(0.4,0,0.2,1),
              stroke-dashoffset 1.1s cubic-bezier(0.4,0,0.2,1);
}
.lc-seg-e { stroke: #00b8a3; filter: drop-shadow(0 0 3px rgba(0,184,163,.7)); }
.lc-seg-m { stroke: #ffc01e; filter: drop-shadow(0 0 3px rgba(255,192,30,.7)); }
.lc-seg-h { stroke: #ef4743; filter: drop-shadow(0 0 3px rgba(239,71,67,.7)); }
.lc-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.lc-num { font-size: 1.35rem; font-weight: 700; color: var(--white); line-height: 1; }
.lc-lbl { font-size: 0.5rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }
.lc-rows { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.45rem; }
.lc-row  { display: flex; align-items: center; gap: 0.38rem; }
.lc-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.lc-dname { font-size: 0.58rem; color: var(--text-dim); flex: 1; }
.lc-cnt  { font-size: 0.6rem; color: var(--text-light); }
.lc-foot {
  font-size: 0.57rem; color: var(--text-light);
  border-top: 1px solid var(--border); padding-top: 0.38rem;
}
.lc-foot strong { color: var(--accent); }

/* ─── Light mode overrides ───────────────────────────── */

/* Base card — subtle green tint on bg-raised */
[data-theme="light"] .lc {
  background: #ffffff;
  border-color: #e5e7eb;
}
[data-theme="light"] a.lc:hover {
  border-color: #16a34a;
  box-shadow: 0 10px 32px rgba(22,163,74,0.12);
}

/* Tag chips — green tint background */
[data-theme="light"] .lc-tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #374151;
}
[data-theme="light"] .lc-tag-green {
  color: #16a34a;
  border-color: #86efac;
}

/* Location card */
[data-theme="light"] .loc-time {
  filter: drop-shadow(0 0 6px rgba(22,163,74,0.25));
}
[data-theme="light"] .loc-open {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.3);
}

/* WakaTime number */


/* Chess modes */
[data-theme="light"] .ch-mode {
  background: #f0fdf4;
  border-color: #dcfce7;
}

/* X card */
[data-theme="light"] .x-bio { color: #374151; }

/* Resume */
[data-theme="light"] .resume-name { color: #111827; }
[data-theme="light"] .resume-cta  { color: #16a34a; }

/* Skill tags */
[data-theme="light"] .skill-tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #374151;
}
[data-theme="light"] .skill-category:hover .skill-tag {
  border-color: #86efac;
  color: #111827;
}

/* Project cards */
[data-theme="light"] .kanban-card {
  background: #ffffff;
  border-color: #e5e7eb;
}
[data-theme="light"] .tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #374151;
}

/* Section title underline */
[data-theme="light"] .section-title::after {
  background: linear-gradient(to right, #16a34a, transparent);
  opacity: 0.5;
}

/* Dividers */
[data-theme="light"] .divider {
  background: #e5e7eb;
}

/* Blog cards */
[data-theme="light"] .blog-card { border-bottom-color: #e5e7eb; }
[data-theme="light"] .blog-card:first-child { border-top-color: #e5e7eb; }
[data-theme="light"] .blog-card::before { background: #16a34a; }
[data-theme="light"] .blog-tag {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

/* Book cards in reading section */
[data-theme="light"] .book-card { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .book-card.book-reading {
  border-color: #86efac;
}
[data-theme="light"] .reading-status {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

/* Cert badges */
[data-theme="light"] .cert-badge {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
[data-theme="light"] .cert-badge:hover {
  border-color: #16a34a;
  color: #16a34a;
}

/* Float nav active item */
[data-theme="light"] .float-nav-item.active {
  background: #16a34a;
  color: #ffffff;
}
[data-theme="light"] .float-nav-item:hover {
  color: #16a34a;
  background: #f0fdf4;
}

/* Toggle button */
[data-theme="light"] .button-30 {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}
[data-theme="light"] .theme-toggle::after {
  border-color: #16a34a;
}

/* Quote block lines */
[data-theme="light"] .quote-block::before,
[data-theme="light"] .quote-block::after {
  background: #e5e7eb;
}

/* Footer */
[data-theme="light"] .site-footer { border-color: #e5e7eb; }
[data-theme="light"] .back-to-top { border-color: #e5e7eb; color: #6b7280; }
[data-theme="light"] .back-to-top:hover { border-color: #16a34a; color: #16a34a; }

/* Scroll reveal — no change needed, opacity-based */

/* Toggle btn in projects */
[data-theme="light"] .toggle-btn { border-color: #e5e7eb; color: #6b7280; }
[data-theme="light"] .toggle-btn:hover { border-color: #16a34a; color: #16a34a; }

/* Placeholder links */
[data-theme="light"] .placeholder-link { color: #374151; }
[data-theme="light"] .placeholder-link:hover { color: #16a34a; }
[data-theme="light"] .placeholder-link::after { background: #16a34a; }

/* ─── Naval quote ────────────────────────────────────── */
.quote-block {
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
}
.quote-block::before,
.quote-block::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--border);
}
.quote-block::before { top: 0; }
.quote-block::after  { bottom: 0; }

.quote-link  { display: inline-block; text-decoration: none; transition: opacity 0.2s; max-width: 42rem; }
.quote-link:hover { opacity: 0.75; }
.quote-mark  { display: block; font-size: 3rem; line-height: 1; color: var(--accent); opacity: 0.4; margin-bottom: -0.5rem; }
.quote-text  { display: block; font-size: clamp(1rem, 2.5vw, 1.3rem); font-style: italic; color: var(--white); line-height: 1.5; letter-spacing: 0.01em; }
.quote-attr  { display: block; margin-top: 0.85rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

/* ─── Blog cards ─────────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 0; }

.blog-card {
  display: block;
  padding: 1.1rem 0 1.1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease;
  position: relative;
}
.blog-card:first-child { border-top: 1px solid var(--border); }
.blog-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.blog-card:hover {
  padding-left: 0.85rem;
}
.blog-card:hover::before { opacity: 1; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.blog-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}
.blog-date-label {
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.blog-card-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.3rem;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-teaser {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

/* ─── Book cards ─────────────────────────────────────── */
.books-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.book-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}
.book-card:hover { border-color: var(--border-hover); }
.book-reading { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.book-reading:hover { border-color: var(--accent); }

.book-status {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.reading-status {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--tag-bg));
}
.book-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.book-title  { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.book-author { font-size: 0.72rem; color: var(--text-light); }
.book-take {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  font-style: italic;
  text-align: right;
  max-width: 22ch;
  margin: 0;
  padding-top: 0.1rem;
}

@media (max-width: 600px) {
  .book-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .book-take {
    grid-column: 1 / -1;
    text-align: left;
    max-width: none;
    padding-top: 0;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.5rem;
  }
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-email {
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-light);
  padding-bottom: 0.75rem;
}
.back-to-top {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-light);
  margin: 0;
  opacity: 0.6;
}

/* ─── Spoiler ────────────────────────────────────────── */
.spoiler { background: var(--text-light); color: var(--text-light); border-radius: 2px; transition: color 0.2s; cursor: default; }
.spoiler:hover { color: var(--text); }
