/* ============================================
   AI Solution Architect — Personal Homepage
   Notion-inspired Zen Style
   ============================================ */

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

:root {
  --bg: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-callout: #f8f6f2;
  --text: #37352f;
  --text-secondary: #787774;
  --text-light: #b4b4b0;
  --accent: #6366f1;
  --accent-soft: #eef2ff;
  --green: #4dab9a;
  --green-soft: #e6f5f0;
  --brown: #9b8e7e;
  --brown-soft: #f5f0ea;
  --orange: #e8a66a;
  --orange-soft: #fef5ec;
  --blue: #529cca;
  --blue-soft: #e9f2f8;
  --red: #d44c47;
  --red-soft: #fce8e7;
  --border: #e9e9e7;
  --border-light: #f0f0ee;
  --shadow: 0 1px 4px rgba(0,0,0,0.04);
  --radius: 8px;
  --max-width: 820px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-left: 180px;
}

/* ===== NAV (Left Sidebar) ===== */
nav#sidebar {
  position: fixed; left: 0; top: 0; height: 100vh; width: 180px; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-light);
  display: flex;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-inner {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  padding: 24px 0;
}
.sidebar-logo {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px 20px; gap: 8px;
}
.sidebar-logo img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-logo img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent);
}
.sidebar-name {
  font-weight: 700; font-size: 0.85rem; color: var(--text);
  letter-spacing: 0.02em;
}

/* Sidebar links */
.sidebar-links {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 0 12px; overflow-y: auto;
}
.sidebar-links a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  padding: 8px 10px; border-radius: 6px;
  transition: all 0.15s; position: relative;
  white-space: nowrap; overflow: hidden;
}
.sidebar-links a:hover {
  color: var(--text); background: var(--bg-secondary);
}
.sidebar-links a.active {
  color: var(--accent); background: var(--accent-soft);
  font-weight: 600;
}
.nav-text { transition: opacity 0.2s; }

/* Nav group with sub-menu */
.nav-group { display: flex; flex-direction: column; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-arrow {
  font-size: 0.6rem; transition: transform 0.2s; opacity: 0.4; margin-left: auto;
}
.nav-group.open .nav-arrow { transform: rotate(180deg); }
.nav-sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.nav-group.open .nav-sub { grid-template-rows: 1fr; }
.nav-sub-inner { overflow: hidden; }
.nav-sub-inner a {
  padding-left: 22px !important;
  font-size: 0.78rem !important;
  opacity: 0.7;
}
.nav-sub-inner a:hover { opacity: 1; }
.nav-sub-inner a.active {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
  opacity: 1;
}

/* Sidebar bottom */
.sidebar-bottom {
  padding: 16px 12px 0;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; align-items: center;
}

/* Settings button & panel */
.settings-wrap { position: relative; width: 100%; }
.settings-btn {
  width: 100%; padding: 8px; border-radius: 6px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; font-family: var(--font);
}
.settings-btn:hover { background: var(--bg-secondary); color: var(--text); }
.settings-panel {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 12px; display: none; z-index: 200;
}
.settings-panel.open { display: block; }
.settings-section { margin-bottom: 10px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-label {
  font-size: 0.7rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.settings-row { display: flex; gap: 2px; }
.settings-row .lang-btn {
  flex: 1; padding: 5px 0; font-size: 0.75rem; font-weight: 600;
  border: none; background: transparent; color: var(--text-light);
  cursor: pointer; transition: all 0.15s; border-radius: 4px;
}
.settings-row .lang-btn.active { background: var(--text); color: var(--bg); }
.settings-row .lang-btn:hover:not(.active) { color: var(--text-secondary); background: var(--bg-secondary); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.settings-option {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px; border: none;
  background: transparent; cursor: pointer; font-size: 0.75rem;
  color: var(--text-secondary); transition: all 0.12s;
  font-family: var(--font); white-space: nowrap;
}
.settings-option:hover { background: var(--bg-secondary); color: var(--text); }
.settings-option.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.settings-option .mood-icon { font-size: 0.8rem; width: 14px; text-align: center; }

/* ===== MAIN CONTAINER ===== */
.main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.cover-photo {
  position: relative; width: 100%; height: 280px; overflow: hidden;
}
.cover-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(40%) brightness(0.85);
  transition: filter 0.6s;
}
.cover-photo:hover img { filter: grayscale(0%) brightness(1); }
.cover-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero {
  padding: 0 0 48px; display: flex; flex-direction: column;
  align-items: center; text-align: center; position: relative;
  margin-top: -48px;
}
.avatar-wrap {
  position: relative; margin-bottom: 20px;
  transition: opacity 0.3s, transform 0.3s;
  will-change: opacity, transform;
}
/* breathing glow */
.avatar-wrap::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(99,102,241,0.12),
    rgba(77,171,154,0.10),
    rgba(232,166,106,0.10),
    rgba(99,102,241,0.12)
  );
  animation: avatar-glow 4s ease-in-out infinite;
  opacity: 0.7;
}
.avatar-wrap:hover::before {
  animation-duration: 1.5s;
  opacity: 1;
}
@keyframes avatar-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}
.avatar-wrap img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  display: block; border: 3px solid var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; margin-bottom: 10px; color: var(--text);
}
.hero .tagline {
  font-size: 1rem; color: var(--text-secondary); margin-bottom: 24px;
  max-width: 460px; line-height: 1.8;
}
.badge-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.badge {
  padding: 4px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.15s;
}
.badge:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ===== PHOTO BREAK (Notion-style full-width landscape) ===== */
.photo-break {
  width: 100vw; margin-left: calc(-50vw + 50% - 90px);
  height: 320px; overflow: hidden; position: relative;
}
.photo-break::before,
.photo-break::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 80px; z-index: 1; pointer-events: none;
}
.photo-break::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.photo-break::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}
.photo-break img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(60%) brightness(0.9);
  transition: filter 0.8s;
}
.photo-break:hover img { filter: grayscale(0%) brightness(1); }
.photo-break .caption {
  position: absolute; bottom: 16px; right: 20px;
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px; background: var(--border); margin: 48px 0;
  position: relative;
}
.divider::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--border);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.5'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}

/* ===== SECTIONS ===== */
section { margin-bottom: 0; }
.section-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}

/* ===== CALLOUT (Notion-style) ===== */
.callout {
  display: flex; gap: 12px; padding: 16px 16px 16px 14px;
  border-radius: var(--radius); margin-bottom: 36px;
  font-size: 0.9rem; line-height: 1.85;
  border: 1px solid var(--border);
}
.callout-icon { font-size: 1.1rem; line-height: 1.6; flex-shrink: 0; color: var(--text-light); }
.callout-text { color: var(--text-secondary); flex: 1; }

.callout--green { background: var(--green-soft); border-color: #d4ebe4; }
.callout--blue { background: var(--blue-soft); border-color: #d6e6f0; }
.callout--brown { background: var(--brown-soft); border-color: #e6ddd0; }
.callout--orange { background: var(--orange-soft); border-color: #f5e0c8; }

/* ===== TIMELINE (Notion toggle) ===== */
.timeline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 36px; }
.timeline-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.2s;
}
.timeline-item:hover { border-color: #d0d0ce; }
.tl-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
}
.tl-header:hover { background: var(--bg-secondary); }
.tl-left { display: flex; flex-direction: column; gap: 2px; }
.tl-title { font-size: 0.9rem; font-weight: 600; }
.tl-sub { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.tl-date {
  font-size: 0.75rem; color: var(--text-light); background: var(--bg-secondary);
  padding: 2px 10px; border-radius: 4px; white-space: nowrap;
}
.tl-body {
  padding: 0 16px 16px; display: none;
}
.tl-body.open { display: block; }
.tl-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 10px; }
.tl-body p:last-child { margin-bottom: 0; }

/* Result highlight */
.result {
  margin-top: 10px; padding: 12px 14px; border-radius: 6px;
  background: var(--accent-soft); font-size: 0.82rem;
  color: var(--text-secondary); line-height: 1.9;
  border-left: 3px solid var(--accent);
}
.result-label {
  font-weight: 700; color: var(--accent); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
  display: block;
}

/* ===== SKILL GRID ===== */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 36px; }
.skill-card {
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.15s;
}
.skill-card:hover { border-color: #d0d0ce; background: var(--bg-secondary); }
.skill-card h3 { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.skill-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; }

/* ===== BOOKS ===== */
.book-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.book-card {
  display: flex; gap: 16px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.2s; text-decoration: none; color: inherit;
}
.book-card:hover { border-color: #d0d0ce; background: var(--bg-secondary); }
.book-cover {
  flex-shrink: 0; width: 80px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.book-cover img { width: 100%; display: block; }
.book-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.book-meta h3 { font-size: 0.9rem; font-weight: 600; }
.book-subtitle { font-size: 0.78rem; color: var(--accent); font-weight: 500; }
.book-meta > p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; }
.book-actions { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.book-link {
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  text-decoration: none; transition: color 0.15s;
}
.book-link:hover { color: var(--accent); text-decoration: underline; }
.book-link--sub { color: var(--text-light); }
.book-link--sub:hover { color: var(--accent); }

/* ===== CERT GALLERY ===== */
.cert-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 36px;
}
.cert-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all 0.2s;
}
.cert-card:hover { border-color: #d0d0ce; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.cert-card .img-wrap { overflow: hidden; }
.cert-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform 0.3s;
}
.cert-card:hover img { transform: scale(1.03); }
.cert-card .cert-info {
  padding: 10px 12px; display: flex; align-items: center; gap: 8px;
}
.cert-emoji {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--text-secondary);
}
.cert-card:nth-child(1) .cert-emoji { background: #fef3c7; color: #92400e; }
.cert-card:nth-child(2) .cert-emoji { background: #dbeafe; color: #1e40af; }
.cert-card:nth-child(3) .cert-emoji { background: #ede9fe; color: #5b21b6; }
.cert-card:nth-child(4) .cert-emoji { background: #d1fae5; color: #065f46; }
.cert-card:nth-child(5) .cert-emoji { background: #fce7f3; color: #9d174d; }
.cert-label { font-size: 0.78rem; font-weight: 600; line-height: 1.35; }
.cert-label small { color: var(--text-light); font-weight: 400; font-size: 0.7rem; }

/* ===== SHOWCASE ===== */
.showcase-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.2s; text-decoration: none; color: inherit;
  margin-bottom: 36px;
}
.showcase-card:hover { border-color: #d0d0ce; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.showcase-banner { position: relative; aspect-ratio: 16/5; overflow: hidden; background: #f0f0ee; }
.showcase-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.showcase-card:hover .showcase-banner img { transform: scale(1.02); }
.showcase-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: opacity 0.25s;
}
.showcase-card:hover .showcase-overlay { opacity: 1; }
.play-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 12px rgba(99,102,241,0.4);
}
.showcase-info { padding: 16px 18px; }
.showcase-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.showcase-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 10px; }
.showcase-tags { display: flex; gap: 6px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%; max-height: 86vh; border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 1.6rem; color: #fff; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border: none; transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== QUOTE (Zen) ===== */
/* ===== FOOTER COVER (mirrors hero cover-photo) ===== */
.cover-photo--footer {
  height: auto; min-height: 120px;
  display: flex; align-items: flex-end; justify-content: center;
  margin-top: 24px;
}
.cover-photo--footer img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(40%) brightness(0.75);
}
.cover-photo--footer:hover img {
  filter: grayscale(0%) brightness(0.9);
}
.cover-fade--top {
  top: 0; bottom: auto; height: 120px;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.cover-photo--footer footer {
  position: relative; z-index: 1;
  text-align: center; padding: 36px 24px;
  width: 100%;
}
.cover-photo--footer footer p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.cover-photo--footer footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500; }
.cover-photo--footer footer a:hover { color: var(--accent); text-decoration: underline; }

.zen-quote {
  text-align: center;
  padding: 100px 24px 80px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.zen-quote::before {
  content: """;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.12;
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
}
.zen-quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.25;
  margin: 32px auto 0;
  border-radius: 1px;
}
.zen-quote p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 2.2;
  font-style: italic;
  letter-spacing: 0.03em;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== MOOD SWITCHER (settings panel) ===== */

/* ===== MOOD DARK MODE (starry / firefly) ===== */
body.mood-dark { --bg: #13131a; --bg-secondary: #1c1c26; --text: #d4d4dc; --text-secondary: #8888a0; --text-light: #55556a; --border: #2a2a38; --border-light: #222230; --accent-soft: rgba(99,102,241,0.12); }
body.mood-dark nav#sidebar { background: rgba(19,19,26,0.92); }
body.mood-rain nav#sidebar { background: rgba(255,255,255,0.88); }
body.mood-dark.mood-rain nav#sidebar { background: rgba(19,19,26,0.88); }
body.mood-dark .cover-fade { background: linear-gradient(to top, var(--bg), transparent); }
body.mood-dark .photo-break img { filter: grayscale(40%) brightness(0.4); }
body.mood-dark .photo-break:hover img { filter: grayscale(0%) brightness(0.7); }
body.mood-dark .cover-photo:hover img { filter: grayscale(0%) brightness(0.6); }
body.mood-dark .avatar-wrap::before {
  background: conic-gradient(
    rgba(99,102,241,0.15),
    rgba(168,85,247,0.12),
    rgba(99,102,241,0.15)
  );
}
body.mood-dark .sidebar-logo img:hover {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.5);
}
body.mood-dark #menu-toggle {
  background: rgba(19,19,26,0.92);
  border-color: var(--border);
}

/* ===== VINYL PLAYER ===== */
.vinyl-wrap {
  position: fixed; bottom: 28px; right: 28px; z-index: 89;
  cursor: pointer; user-select: none;
}
.vinyl-disc {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #1a1a1a 0%, #1a1a1a 14%,
    #222 14.5%, #1a1a1a 15.5%,
    #222 20%, #1a1a1a 21%,
    #222 26%, #1a1a1a 27%,
    #222 32%, #1a1a1a 33%,
    #222 38%, #1a1a1a 39%,
    #222 44%, #1a1a1a 45%,
    #2a2a2a 48%, #1a1a1a 50%
  );
  box-shadow: 0 2px 16px rgba(0,0,0,0.25), inset 0 0 8px rgba(0,0,0,0.3);
  position: relative; transition: box-shadow 0.3s;
}
.vinyl-wrap:hover .vinyl-disc {
  box-shadow: 0 4px 24px rgba(0,0,0,0.35), inset 0 0 8px rgba(0,0,0,0.3);
}

/* center label */
.vinyl-label {
  position: absolute; top: 50%; left: 50%;
  width: 28px; height: 28px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #c4956a 30%, #a67b5b 70%, #8b6544 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.vinyl-label::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px; color: rgba(255,255,255,0.5);
}

/* center hole */
.vinyl-hole {
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #333; border: 1px solid #555; z-index: 2;
}

/* groove rings (decorative, rotate with disc) */
.vinyl-groove {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%; border: 0.5px solid rgba(60,60,60,0.5);
  pointer-events: none;
}
.vinyl-groove-1 { width: 52px; height: 52px; transform: translate(-50%, -50%); }
.vinyl-groove-2 { width: 42px; height: 42px; transform: translate(-50%, -50%); }
.vinyl-groove-3 { width: 34px; height: 34px; transform: translate(-50%, -50%); }
.vinyl-groove-4 { width: 60px; height: 60px; transform: translate(-50%, -50%); }

/* spinning animation */
.vinyl-disc.spinning {
  animation: vinyl-spin 2.5s linear infinite;
}
@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* tonearm */
.vinyl-arm {
  position: absolute; top: -6px; right: -4px;
  width: 32px; height: 2px;
  background: linear-gradient(to right, #888, #aaa);
  border-radius: 1px;
  transform-origin: right center;
  transform: rotate(-30deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.vinyl-arm::before {
  content: ''; position: absolute; right: -3px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #999; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.vinyl-arm::after {
  content: ''; position: absolute; left: -4px; top: -2px;
  width: 6px; height: 6px;
  background: #777; border-radius: 0 2px 2px 0;
}
.vinyl-wrap.playing .vinyl-arm {
  transform: rotate(-10deg);
}

/* dark mode */
body.mood-dark .vinyl-disc {
  box-shadow: 0 2px 20px rgba(99,102,241,0.15), inset 0 0 8px rgba(0,0,0,0.3);
}

@media (max-width: 640px) {
  .vinyl-wrap { bottom: 18px; right: 16px; }
  .vinyl-disc { width: 56px; height: 56px; }
  .vinyl-label { width: 22px; height: 22px; }
  .vinyl-groove-1 { width: 40px; height: 40px; }
  .vinyl-groove-2 { width: 32px; height: 32px; }
  .vinyl-groove-3 { width: 26px; height: 26px; }
  .vinyl-groove-4 { width: 48px; height: 48px; }
  .vinyl-arm { width: 24px; }
}
/* ===== VIBE ===== */
.vibe-block { margin-bottom: 32px; }
.vibe-heading { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.vibe-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.75; }
/* ===== DESIGN GRID (Vibe Design) ===== */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.design-card {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.2s; text-decoration: none; color: inherit;
}
.design-card:hover { border-color: #d0d0ce; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.design-card-featured { grid-column: 1 / -1; }
.design-card-featured .design-banner { aspect-ratio: 16/7; }
.design-card-featured .design-banner-wide { aspect-ratio: 3.6/1; }
.design-banner { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-secondary); }
.design-banner img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.design-card:hover .design-banner img { transform: scale(1.03); }
.design-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; font-weight: 600;
  opacity: 0; transition: opacity 0.25s;
}
.design-card:hover .design-overlay { opacity: 1; }
.design-info { padding: 14px 16px; }
.design-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.design-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 10px; }
.design-tags { display: flex; gap: 6px; }

/* ===== IMAGE MAGNIFIER ===== */
.mag-lens {
  display: none; position: fixed; z-index: 95;
  width: 140px; height: 140px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
  pointer-events: none;
  background-repeat: no-repeat;
  transition: opacity 0.15s;
}
.mag-lens::before {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
.mag-crosshair {
  position: absolute; inset: 0; pointer-events: none;
}
.mag-crosshair::before {
  content: ''; position: absolute;
  top: 50%; left: 12%; right: 12%; height: 1px;
  background: rgba(255,255,255,0.12);
}
.mag-crosshair::after {
  content: ''; position: absolute;
  left: 50%; top: 12%; bottom: 12%; width: 1px;
  background: rgba(255,255,255,0.12);
}
body.mood-dark .mag-lens {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.15);
}

.visitor-counter {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
#visitor-count {
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-variant-numeric: tabular-nums;
}

/* ===== Mobile hamburger & overlay ===== */
#menu-toggle {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 200;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-light); border-radius: 10px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
#menu-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.active span:nth-child(2) { opacity: 0; }
#menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#sidebar-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
#sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  #menu-toggle { display: flex; }

  body { padding-left: 0; }
  nav#sidebar {
    width: 220px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  nav#sidebar.open { transform: translateX(0); }

  .sidebar-inner { padding: 20px 0; }
  .sidebar-logo { padding: 0 16px 20px; }
  .sidebar-logo img { width: 48px; height: 48px; }
  .sidebar-name { display: block; }
  .sidebar-links { padding: 0 12px; }
  .sidebar-links a { justify-content: flex-start; padding: 8px 10px; }
  .nav-text { display: inline; }
  .sidebar-bottom { padding: 16px 12px 0; }
  .settings-panel {
    position: fixed; bottom: 0; left: 0;
    width: 220px; border-radius: 10px 10px 0 0;
    max-height: 70vh; overflow-y: auto;
  }

  .photo-break { margin-left: calc(-50vw + 50%); }
  .cover-photo { height: 180px; }
  .hero { margin-top: -36px; padding-bottom: 36px; }
  .hero h1 { font-size: 1.5rem; }
  .hero .tagline { font-size: 0.9rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; gap: 12px; }
  .book-cover { width: 100%; height: 140px; }
  .book-cover img { height: 100%; object-fit: cover; }
  .cert-gallery { grid-template-columns: 1fr 1fr; }
  .photo-break { height: 160px; }
}

/* Tech Stack */
.techstack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.techstack-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.2s;
}
.techstack-card:hover {
  border-color: #d0d0ce;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.techstack-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft, rgba(99,102,241,0.08));
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.techstack-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.techstack-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.techstack-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.techstack-soon {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  display: inline-block;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .techstack-grid { grid-template-columns: 1fr; gap: 12px; }
}
