/* ============================================
   DR. PRASENJIT ADAK — Elegant Portfolio
   Aesthetic: Refined Academic / Dark Luxury
   ============================================ */

:root {
  --bg: #0b0c10;
  --bg-card: #111318;
  --bg-card-hover: #161a22;
  --surface: #1a1d26;
  --surface2: #1f2330;
  --border: rgba(180, 160, 110, 0.15);
  --border-hover: rgba(180, 160, 110, 0.35);
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim: rgba(201, 168, 76, 0.3);
  --text: #e8e4d9;
  --text-muted: #8a8577;
  --text-faint: #3f3d38;
  --accent: #7eb8c9;
  --accent2: #a889d4;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-title: 'Cinzel', serif;
  --font-body: 'DM Sans', sans-serif;
  --header-h: 200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── AMBIENT BACKGROUND ─── */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.04;
}
.orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, #c9a84c 0%, transparent 70%);
  animation: drift1 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, #7eb8c9 0%, transparent 70%);
  animation: drift2 25s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, #a889d4 0%, transparent 70%);
  animation: drift3 18s ease-in-out infinite alternate;
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(60px, 40px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-40px, -60px); } }
@keyframes drift3 { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-50%,-50%) scale(1.3); } }

/* ─── HEADER ─── */
.site-header {
  position: relative; z-index: 10;
  padding: 60px 5vw 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  background-color: var(--bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* When a header bg image is set, the canvas draws a darker overlay on top */
.site-header.has-bg-image #header-canvas { opacity: 0.82; }

#header-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.55;
}

.header-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  max-width: 960px; margin: 0 auto 20px;
  animation: fadeUp 0.7s ease both;
}

.avatar-wrap {
  position: relative; flex-shrink: 0;
  width: 130px; height: 130px;
}
.avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 10s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-placeholder {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}
.avatar-placeholder svg { width: 90px; height: 90px; }
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.header-text { position: relative; z-index: 1; }

.profile-name {
  font-family: var(--font-title);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.15;
}
.profile-titles {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin: 6px 0 4px;
}
.profile-titles .sep { margin: 0 10px; opacity: 0.4; }
.profile-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── ABOUT ME ─── */
.about-section {
  position: relative; z-index: 1;
  max-width: 620px; margin: 0 auto 44px;
  animation: fadeUp 0.75s ease 0.05s both;
  padding: 0 12px;
}
.about-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.85;
  letter-spacing: 0.01em;
}
.about-text strong { color: var(--text); font-style: normal; font-weight: 500; }

/* ─── TAB NAV ─── */
.tab-nav {
  position: relative; z-index: 1;
  display: flex; justify-content: center; gap: 0;
  animation: fadeUp 0.8s ease 0.1s both;
}
.tab-btn {
  position: relative;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 14px 44px 12px;
  transition: color var(--transition);
  text-transform: uppercase;
}
.tab-btn.active { color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-underline {
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
  border-radius: 1px;
}
.tab-btn.active .tab-underline { width: 50%; }

/* ─── MAIN ─── */
.site-main {
  position: relative; z-index: 5;
  max-width: 1060px; margin: 0 auto;
  padding: 40px 5vw 80px;
}

/* ─── TAB PANELS ─── */
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ─── TWO-COL LAYOUT ─── */
.two-col-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 680px) {
  .two-col-layout { grid-template-columns: 1fr; }
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky; top: 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.section-nav-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.section-nav-btn:hover { color: var(--text); background: var(--surface); }
.section-nav-btn.active {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border-left-color: var(--gold);
}
.nav-arrow {
  font-size: 9px;
  transition: transform var(--transition);
  opacity: 0.6;
}
.section-nav-btn.active .nav-arrow { transform: rotate(90deg); opacity: 1; }

/* ─── CONTENT AREA ─── */
.content-area { min-width: 0; }
.content-panel { display: none; }
.content-panel.active { display: block; animation: fadeIn 0.35s ease; }

/* ─── PANEL BLOCK ─── */
.panel-block {
  padding: 0 0 32px;
  margin-bottom: 8px;
}

.block-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── ITEM LISTS ─── */
.item-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}
.item-list li a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.item-list li a:hover { color: var(--gold-light); padding-left: 10px; }
.item-list li a::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold); flex-shrink: 0; opacity: 0.5;
}

/* ─── BOOKS LIST ─── */
.books-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.books-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 6px 0;
  transition: all var(--transition);
}
.book-cover-placeholder {
  width: 44px; height: 58px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--surface2), var(--bg));
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold-dim);
}
.book-title-text { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.book-publisher { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }

/* ─── YOUTUBE CHANNEL CARD ─── */
.yt-channel-card {
  display: flex; align-items: flex-start; gap: 16px;
}
.yt-logo {
  width: 48px; height: 48px; border-radius: 50%;
  background: #ff0000;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.yt-info { flex: 1; }
.yt-name {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.yt-handle { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.yt-featured-label {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.featured-video-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03); border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.featured-video-card:hover { background: rgba(255,255,255,0.06); color: var(--gold-light); }
.play-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  font-size: 12px; color: #000;
}
.video-title { font-size: 13px; }
.yt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 7px 16px;
  background: #ff0000; border-radius: 20px;
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 500;
  transition: opacity var(--transition);
}
.yt-btn:hover { opacity: 0.85; }

/* ─── RESEARCH AREAS ─── */
.research-areas-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.research-areas-list li {
  padding: 6px 16px;
  background: rgba(126,184,201,0.06);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
}

/* ─── PUBLICATIONS ─── */
.publications-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}
.publications-list li {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  transition: all var(--transition);
}
.publications-list li:last-child { border-bottom: none; }
.publications-list a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  display: block;
}
.publications-list a:hover { color: var(--accent); }
.pub-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.pub-journal { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-style: italic; margin-bottom: 6px; }

/* ─── DOWNLOADS ─── */
.downloads-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.downloads-list li a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  padding: 8px 4px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.downloads-list li a:hover { color: var(--gold-light); padding-left: 10px; }
.dl-icon {
  width: 28px; height: 28px;
  background: rgba(201,168,76,0.08);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; flex-shrink: 0;
}
.dl-type {
  margin-left: auto; font-size: 10px; letter-spacing: 0.08em;
  padding: 2px 8px; background: rgba(255,255,255,0.04);
  border-radius: 4px; color: var(--text-muted);
}

/* ─── MUSIC CHANNELS ─── */
.music-channel {
  margin-bottom: 20px;
}
.music-channel-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.channel-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.channel-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.channel-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.video-thumb {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
  display: block;
}
.video-thumb:hover { transform: translateY(-3px); background: var(--surface2); }
.video-thumb-img {
  height: 90px;
  background: linear-gradient(135deg, var(--surface2), var(--bg));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--text-faint);
}
.video-thumb-title {
  padding: 8px 10px;
  font-size: 12px; line-height: 1.4;
}
.channel-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: #ff6b6b;
  text-decoration: none; font-size: 13px;
  transition: all var(--transition);
  opacity: 0.8;
}
.channel-link:hover { opacity: 1; }

/* ─── BLOG CARD ─── */
.blog-card {
  display: flex; align-items: flex-start; gap: 16px;
  text-decoration: none;
}
.blog-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), #6a4fb0);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(168,137,212,0.2);
}
.blog-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.blog-desc { font-size: 13px; color: var(--text-muted); }
.blog-visit {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 18px;
  background: rgba(168,137,212,0.1); border: 1px solid rgba(168,137,212,0.3);
  border-radius: 20px; color: var(--accent2);
  text-decoration: none; font-size: 12px;
  transition: all var(--transition);
}
.blog-visit:hover { background: rgba(168,137,212,0.2); }

/* ─── LIT BOOKS ─── */
.lit-books-grid {
  display: flex; flex-direction: column; gap: 16px;
}
.lit-books-grid { display: flex; flex-direction: column; gap: 0; }
.lit-book-card {
  display: flex; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
  align-items: flex-start;
}
.lit-book-card:last-child { border-bottom: none; }
.lit-book-cover-link { flex-shrink: 0; display: block; }
.lit-book-cover {
  width: 88px; height: 126px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--surface2), var(--bg));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform var(--transition);
}
.lit-book-cover-link:hover .lit-book-cover { transform: scale(1.04); }
.lit-book-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.lit-book-info { flex: 1; min-width: 0; }
.lit-book-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.lit-book-genre {
  display: inline-block; padding: 2px 10px;
  background: rgba(201,168,76,0.1); border: 1px solid var(--gold-dim);
  border-radius: 20px; font-size: 11px; color: var(--gold); margin-bottom: 6px;
}
.lit-book-desc { font-size: 13px; color: var(--text-muted); }

/* ─── 3D PLATFORMS ─── */
.platform-card {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.platform-card:last-child { border-bottom: none; }
.platform-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.platform-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.platform-link {
  padding: 5px 14px;
  background: rgba(201,168,76,0.08); border: 1px solid var(--gold-dim);
  border-radius: 20px; color: var(--gold); text-decoration: none;
  font-size: 12px; transition: all var(--transition);
}
.platform-link:hover { background: rgba(201,168,76,0.15); }
.platform-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.platform-works { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-works li {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-muted);
}

/* ─── FREELANCER PROFILE ─── */
.freelancer-card {
  display: flex; align-items: center; gap: 16px;
}
.fl-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, #1dbf73, #19a463);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(29,191,115,0.2);
}
.fl-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.fl-rating { color: var(--gold); font-size: 13px; margin: 4px 0; }


/* ─── FEATURED WORKS GALLERY ─── */
.featured-grid {
  columns: 3 130px;
  column-gap: 10px;
}
.fw-gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.fw-gallery-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.35s ease;
}
.fw-gallery-item:hover .fw-gallery-img { transform: scale(1.04); }
.fw-gallery-placeholder {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--surface2); color: var(--text-faint);
}
.fw-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; gap: 6px;
  border-radius: var(--radius-sm);
}
.fw-gallery-item:hover .fw-gallery-overlay { opacity: 1; }
.fw-gallery-title { font-size: 12px; color: #fff; line-height: 1.4; font-weight: 500; }

/* ─── CLIENTS ─── */
.clients-list {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.client-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px; font-size: 13px; color: var(--text-muted);
  transition: all var(--transition);
}
.client-chip:hover { background: rgba(255,255,255,0.07); color: var(--text); }

/* ─── TESTIMONIALS ─── */
.testimonial-card {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.testimonial-card:last-child { border-bottom: none; margin-bottom: 0; }
.testimonial-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--text); margin-bottom: 10px; line-height: 1.6;
}
.testimonial-text::before { content: '"'; color: var(--gold); font-size: 24px; line-height: 0; vertical-align: -6px; margin-right: 4px; }
.testimonial-author { font-size: 13px; font-weight: 500; }
.testimonial-org { font-size: 12px; color: var(--text-muted); }
.star-row { color: var(--gold); font-size: 12px; margin-bottom: 4px; }

/* ─── APP CARD ─── */
.app-card {
  display: flex; gap: 18px;
  padding: 0;
  transition: all var(--transition);
}
.app-icon {
  width: 68px; height: 68px; border-radius: 16px;
  background: linear-gradient(135deg, #a889d4, #5c3d9e);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.app-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.app-tagline { font-style: italic; font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.app-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.app-tag {
  padding: 3px 10px;
  background: rgba(168,137,212,0.1); border: 1px solid rgba(168,137,212,0.2);
  border-radius: 20px; font-size: 11px; color: var(--accent2);
}
.app-links { display: flex; gap: 8px; flex-wrap: wrap; }
.app-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: 20px; font-size: 12px; text-decoration: none;
  transition: all var(--transition);
}
.app-link.playstore { background: rgba(52,168,83,0.1); color: #34a853; }
.app-link.github { background: rgba(200,200,200,0.04); color: var(--text-muted); }
.app-link:hover { filter: brightness(1.25); }

/* ─── WEBSITE / ECOMMERCE CARDS ─── */
.site-card, .store-card {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px;
  transition: all var(--transition);
}
.site-card:last-child, .store-card:last-child { border-bottom: none; }
.site-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #3a7a8c);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.store-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), #8c6a1e);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.site-name, .store-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.site-desc, .store-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tech-tag {
  padding: 2px 9px;
  background: rgba(126,184,201,0.07);
  border-radius: 20px; font-size: 11px; color: var(--accent);
}
.store-platform {
  display: inline-block; padding: 2px 9px;
  background: rgba(201,168,76,0.06);
  border-radius: 20px; font-size: 11px; color: var(--gold); margin-bottom: 8px;
}
.visit-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 0; font-size: 13px;
  text-decoration: none; transition: all var(--transition);
  color: var(--text-muted);
}
.visit-link:hover { color: var(--gold); }

/* ─── FOOTER ─── */
.site-footer {
  position: relative; z-index: 5;
  text-align: center;
  padding: 28px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── DIVIDER ─── */
.channel-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ─── CLASS NOTES WITH DOWNLOAD ─── */
.item-list.class-notes-list { gap: 0; }
.class-note-item {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.class-note-item:last-child { border-bottom: none; }
.class-note-body { flex: 1; min-width: 0; }
.class-note-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 3px;
}
.class-note-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}
.download-btn {
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border-radius: 20px;
  color: var(--gold); text-decoration: none;
  font-size: 12px; font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.download-btn:hover { background: rgba(201,168,76,0.16); }
.dl-btn-icon { font-size: 13px; }

/* ─── YOUTUBE EMBEDS ─── */
.yt-channel-header-row {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 18px;
}
.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.embed-item { display: flex; flex-direction: column; gap: 8px; }
.embed-wrap {
  position: relative; width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0; overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-sm);
}
.embed-title {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.4; padding: 0 2px;
}

/* ─── ARTS / PAINTING ─── */
.diploma-card {
  display: flex; align-items: center; gap: 16px;
}
.diploma-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #a07030);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.diploma-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.diploma-inst {
  font-size: 13px; color: var(--gold); margin-bottom: 2px;
}
.diploma-year { font-size: 12px; color: var(--text-muted); }

.painting-gallery {
  columns: 3 160px;
  column-gap: 12px;
}
@media (max-width: 540px) { .painting-gallery { columns: 2 120px; } }
.painting-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.painting-img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.4s ease;
}
.painting-item:hover .painting-img { transform: scale(1.03); }
.painting-placeholder {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; opacity: 0.25; background: var(--surface2);
}
.painting-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px;
  border-radius: var(--radius-sm);
}
.painting-item:hover .painting-overlay { opacity: 1; }
.painting-title {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 500; color: #fff; margin-bottom: 2px;
}
.painting-meta { font-size: 11px; color: rgba(255,255,255,0.7); }


/* ─── SIDEBAR CV BUTTON ─── */
.sidebar-spacer { flex: 1; min-height: 24px; }
.sidebar-cv-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(201,168,76,0.10);
  border-radius: var(--radius-sm);
  color: var(--gold); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  transition: all var(--transition);
  margin-top: auto;
  border: 1px solid rgba(201,168,76,0.2);
}
.sidebar-cv-btn:hover { background: rgba(201,168,76,0.18); border-color: rgba(201,168,76,0.4); }

/* make work tab sidebar flex so spacer works */
#tab-work .sidebar { min-height: 200px; }

/* ─── TEACHING PHILOSOPHY ─── */
.teaching-philosophy {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  letter-spacing: 0.01em;
  border-left: 2px solid var(--gold-dim);
  padding-left: 16px;
}

/* ─── SUBJECTS TAUGHT ─── */
.subjects-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.subject-group { }
.subject-group-label {
  font-family: var(--font-title);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.subject-group-list {
  list-style: none; display: flex; flex-direction: column; gap: 0;
}
.subject-row {
  font-size: 14px; color: var(--text);
  padding: 8px 0 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.subject-row:last-child { border-bottom: none; }
.subject-row::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); opacity: 0.5;
}

/* ─── ACTION BUTTONS (unified) ─── */
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap; border: 1px solid transparent;
}
.action-btn--gold {
  background: rgba(201,168,76,0.10);
  color: var(--gold-light);
  border-color: rgba(201,168,76,0.22);
}
.action-btn--gold:hover { background: rgba(201,168,76,0.20); border-color: rgba(201,168,76,0.4); }
.action-btn--subtle {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.08);
}
.action-btn--subtle:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.15); }
.action-btn--purple {
  background: rgba(168,137,212,0.10);
  color: var(--accent2);
  border-color: rgba(168,137,212,0.22);
}
.action-btn--purple:hover { background: rgba(168,137,212,0.18); border-color: rgba(168,137,212,0.4); }

/* ─── STUDENT PROJECTS ─── */
.student-projects-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sp-title {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 4px;
}
.sp-desc { font-size: 13px; color: var(--text-muted); }

/* ─── PHD SCHOLARS ─── */
.phd-scholars-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.phd-scholar-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.phd-scholar-row:last-child { border-bottom: none; }
.phd-scholar-info { flex: 1; min-width: 0; }
.phd-scholar-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.phd-scholar-thesis { font-size: 12px; color: var(--text-muted); font-style: italic; line-height: 1.5; }
.phd-status {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 20px; flex-shrink: 0; margin-top: 2px;
}
.status-ongoing { background: rgba(126,184,201,0.12); color: var(--accent); }
.status-done { background: rgba(201,168,76,0.08); color: var(--gold); }

/* ─── YT CHANNEL — clickable logo + subscribe ─── */
.yt-logo-link { text-decoration: none; display: block; flex-shrink: 0; }
.yt-logo-link .yt-logo,
.yt-logo-link .channel-icon {
  transition: transform var(--transition), opacity var(--transition);
}
.yt-logo-link:hover .yt-logo,
.yt-logo-link:hover .channel-icon { transform: scale(1.07); opacity: 0.85; }

.yt-name-link { text-decoration: none; }
.yt-name-link .yt-name:hover { color: var(--gold-light); }
.yt-name-link .channel-name { transition: color var(--transition); }
.yt-name-link:hover .channel-name { color: var(--gold-light); }

.yt-name-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 3px;
}
.yt-subscribe-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  background: #ff0000; border-radius: 4px;
  color: #fff; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.yt-subscribe-btn:hover { opacity: 0.85; }

.all-videos-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.all-videos-link:hover { color: var(--gold); }

/* ─── BLOG — clickable logo ─── */
.blog-logo-link { text-decoration: none; display: block; flex-shrink: 0; }
.blog-logo-link .blog-icon { transition: transform var(--transition), opacity var(--transition); }
.blog-logo-link:hover .blog-icon { transform: scale(1.07); opacity: 0.85; }
.blog-name-link { text-decoration: none; }
.blog-name-link .blog-name { transition: color var(--transition); }
.blog-name-link:hover .blog-name { color: var(--gold-light); }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,8,0.93);
  backdrop-filter: blur(6px);
}
.lightbox-content {
  position: relative; z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fadeIn 0.2s ease;
}
.lightbox-content img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius-sm);
  display: block;
}
.lightbox-caption { text-align: center; }
.lightbox-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: var(--text);
}
.lightbox-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.lightbox-close {
  position: fixed; top: 20px; right: 24px; z-index: 2;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  color: var(--text); font-size: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.16); }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,0.06); border: none; cursor: pointer;
  color: var(--text); font-size: 36px;
  width: 48px; height: 64px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.12); }

/* ─── POETRY ─── */
.poetry-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.poetry-item:last-child { border-bottom: none; }
.poetry-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.poetry-title {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 500; font-style: italic; color: var(--text);
}
.poetry-year { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.poetry-lines {
  font-family: var(--font-display); font-style: italic;
  font-size: 14px; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 10px;
}

/* ─── OWN THESES ─── */
.own-thesis-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.own-thesis-item:last-child { border-bottom: none; }
.own-thesis-degree {
  font-family: var(--font-title);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 5px;
}
.own-thesis-title {
  font-size: 14px; font-weight: 500; color: var(--text);
  line-height: 1.5; margin-bottom: 4px;
}
.own-thesis-meta { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* ─── RESEARCH PHILOSOPHY ─── */
.research-philosophy {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  letter-spacing: 0.01em;
  border-left: 2px solid rgba(126,184,201,0.4);
  padding-left: 16px;
}

/* ─── 3D MODEL GALLERY ─── */
.model-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.model-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition);
}
.model-card:hover { transform: translateY(-3px); }
.model-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--surface2), #0d0f14);
  overflow: hidden; position: relative;
}
.model-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.model-card:hover .model-thumb img { transform: scale(1.05); }
.model-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-faint); opacity: 0.3;
}
.model-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.model-title {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 600; color: var(--text);
}
.model-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.model-btns {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.model-btn {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 4px;
  font-size: 11px; font-weight: 500; text-decoration: none;
  transition: opacity var(--transition);
}
.model-btn:hover { opacity: 0.8; }
.btn-cgtrader   { background: rgba(0,168,107,0.15); color: #00a86b; }
.btn-turbosquid { background: rgba(255,100,40,0.15); color: #ff6428; }
.btn-sketchfab  { background: rgba(30,170,210,0.15); color: #1eaad2; }
.btn-renderhub  { background: rgba(201,168,76,0.15); color: var(--gold); }
