/* ============================================
   TechTalkByte Portfolio — style.css
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #16161f;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8f0;
  --text-muted: #888899;
  --text-dim: #555566;
  --accent: #7c6ff7;
  --accent-2: #a78bfa;
  --accent-glow: rgba(124, 111, 247, 0.3);
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

/* ---- CATEGORY COLOUR TOKENS ---- */
:root {
  --cat-system:    #7c6ff7;
  --cat-resilience:#f87171;
  --cat-ai:        #34d399;
}

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

/* ---- CONTAINER ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAV
   ============================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links .nav-exclusive {
  color: var(--accent-2);
  border: 1px solid rgba(124,111,247,0.3);
}
.nav-links .nav-exclusive:hover { background: rgba(124,111,247,0.1); }
.nav-links .nav-cta {
  background: var(--accent); color: #fff;
  border-radius: 6px;
}
.nav-links .nav-cta:hover { background: var(--accent-2); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 20px var(--accent-glow); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn-text { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.btn-text:hover { color: var(--text); }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh; padding-top: 64px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(124,111,247,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(167,139,250,0.06) 0%, transparent 60%);
}

.hero-content {
  flex: 1; padding: 80px 24px 80px;
  max-width: 580px; margin-left: calc((100vw - 1140px) / 2);
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(167,139,250,0.3);
  background: rgba(124,111,247,0.08);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; gap: 20px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual {
  position: absolute; right: calc((100vw - 1140px) / 2);
  top: 50%; transform: translateY(-50%);
  z-index: 1;
}

.code-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 320px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-10px); }
}

.code-card-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.code-filename { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); margin-left: 6px; }

.code-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.9;
  white-space: pre;
}
.code-body .kw { color: var(--accent-2); font-weight: 600; }

/* ============================================
   SECTIONS — common
   ============================================ */
section { padding: 100px 0; }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); max-width: 540px; font-size: 1rem; }

/* ============================================
   ABOUT
   ============================================ */
#about { background: var(--bg-2); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 48px; align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.skill-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500;
  padding: 7px 14px; border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.skill-chip:hover { border-color: var(--accent); color: var(--accent-2); }

/* ============================================
   VIDEOS
   ============================================ */
.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin-top: 40px;
}

.video-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.video-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.video-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(124,111,247,0.1) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.play-icon {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover .play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 24px var(--accent-glow);
}
.play-icon svg { width: 22px; height: 22px; margin-left: 3px; }

.video-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent-2); font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 4px; letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Card with deep-dive detail page */
.video-card--live {
  border-color: rgba(124,111,247,0.3);
  position: relative;
}
.video-card--live:hover { border-color: var(--accent); }

.video-thumb-link { display: block; text-decoration: none; }
.video-thumb-link .video-thumb { transition: opacity 0.2s; }
.video-thumb-link:hover .video-thumb { opacity: 0.85; }

.video-tag-new {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent);
  color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-card-links {
  display: flex; align-items: center; gap: 16px;
}
.video-link--primary {
  color: var(--accent-2); font-weight: 700;
}

.video-info { padding: 20px; }
.video-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.video-info p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.video-link { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.video-link:hover { color: var(--accent-2); text-decoration: underline; }

.videos-cta { text-align: center; margin-top: 40px; }

/* ============================================
   BLOG
   ============================================ */
#blog { background: var(--bg-2); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.blog-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.blog-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); background: rgba(124,111,247,0.1);
  padding: 3px 10px; border-radius: 4px;
}
.blog-date { font-size: 0.78rem; color: var(--text-dim); }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; line-height: 1.4; }
.blog-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.blog-read { font-size: 0.78rem; color: var(--text-dim); }

/* ============================================
   EXCLUSIVE
   ============================================ */
#exclusive {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#exclusive::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(124,111,247,0.06) 0%, transparent 70%);
}

.exclusive-wrapper {
  margin-top: 48px;
  max-width: 560px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1;
}

.exclusive-lock {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.lock-icon {
  width: 64px; height: 64px;
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-2);
}
.lock-icon svg { width: 30px; height: 30px; }
.exclusive-lock h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.exclusive-lock > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.code-input-wrapper {
  display: flex; gap: 10px; max-width: 380px; margin: 0 auto 12px;
}
#codeInput {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.95rem; font-family: var(--mono);
  color: var(--text);
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}
#codeInput::placeholder { color: var(--text-dim); letter-spacing: 0; font-family: var(--font); }
#codeInput:focus { border-color: var(--accent); }
#codeInput.shake { animation: shake 0.4s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.code-error {
  font-size: 0.83rem; color: var(--red); min-height: 20px; margin-bottom: 16px;
}
.lock-hint {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 0.78rem; color: var(--text-dim);
}

/* Unlocked */
.exclusive-content {
  background: var(--bg-2);
  border: 1px solid rgba(124,111,247,0.3);
  border-radius: 16px;
  padding: 32px;
}
.unlock-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.unlock-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
  font-size: 0.83rem; font-weight: 600;
  padding: 5px 14px; border-radius: 20px;
}

.exclusive-resources { display: flex; flex-direction: column; gap: 14px; }

.resource-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.resource-item:hover { border-color: var(--accent); transform: translateX(4px); }
.resource-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(124,111,247,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.resource-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.resource-text p { font-size: 0.82rem; color: var(--text-muted); }
.resource-arrow { margin-left: auto; color: var(--text-dim); font-size: 1.2rem; align-self: center; }

/* ============================================
   CONTACT
   ============================================ */
#contact { background: var(--bg-2); }

.contact-card {
  background: linear-gradient(135deg, rgba(124,111,247,0.08) 0%, rgba(167,139,250,0.04) 100%);
  border: 1px solid rgba(124,111,247,0.2);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
}
.contact-card .section-label { display: block; margin-bottom: 12px; }
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.contact-card p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.83rem; color: var(--text-dim); }
.footer-ig { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.footer-ig:hover { color: var(--accent-2); }

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 200;
}
.nav-has-dropdown:hover .nav-dropdown { display: flex; flex-direction: column; }
.nav-dd-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 5px;
  color: var(--text-muted); font-size: 0.87rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dd-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.dd-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dd-dot--system    { background: var(--cat-system); }
.dd-dot--resilience{ background: var(--cat-resilience); }
.dd-dot--ai        { background: var(--cat-ai); }
.dd-dot--career    { background: #fbbf24; }

/* ============================================
   CATEGORY FILTER TABS
   ============================================ */
.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0 28px;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer; transition: all 0.18s;
}
.cat-tab:hover { border-color: var(--border-hover); color: var(--text); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; }
.cat-dot--system    { background: var(--cat-system); }
.cat-dot--resilience{ background: var(--cat-resilience); }
.cat-dot--ai        { background: var(--cat-ai); }

/* Category-coloured thumb backgrounds */
.vt--system    { background: linear-gradient(135deg, #0d0d18 0%, rgba(124,111,247,0.18) 100%); }
.vt--resilience{ background: linear-gradient(135deg, #180d0d 0%, rgba(248,113,113,0.15) 100%); }
.vt--ai        { background: linear-gradient(135deg, #0d180f 0%, rgba(52,211,153,0.15) 100%); }

/* AI tag colour */
.article-tag--ai { color: var(--cat-ai); background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }

.videos-empty {
  text-align: center; padding: 48px;
  color: var(--text-dim); font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ---- TABLET ---- */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero-content { margin-left: 0; padding: 60px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-has-dropdown .nav-dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; display: flex; }
}

/* ---- MOBILE ---- */
@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px 16px;
    z-index: 99;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 11px 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    border-radius: 7px;
    border-bottom: none;
  }
  .nav-links .nav-exclusive { border-radius: 6px; }

  /* Mobile dropdown — toggle with .is-open on the parent li */
  .nav-has-dropdown .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    background: transparent;
    min-width: unset;
  }
  .nav-has-dropdown.is-open .nav-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown-toggle::after { content: ' \25be'; }
  .nav-has-dropdown.is-open .nav-dropdown-toggle::after { content: ' \25b4'; }
  .nav-dd-item { padding: 9px 12px; font-size: 0.9rem; }
  section { padding: 56px 0; }
  #hero { padding-top: 64px; min-height: auto; padding-bottom: 48px; }
  .hero-content { padding: 40px 20px; }
  #hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }

  /* Videos grid — single column */
  .videos-grid { grid-template-columns: 1fr; }

  /* Category tabs — scrollable row */
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { white-space: nowrap; flex-shrink: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 36px 20px; }
  .exclusive-lock { padding: 28px 18px; }
  .code-input-wrapper { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }

  /* Section titles */
  .section-title { font-size: 1.6rem; }
}

/* ============================================
   LANGUAGE FINDER QUIZ
   ============================================ */
#lang-finder { background: var(--bg-2); }

:root { --cat-career: #fbbf24; }
.cat-dot--career { background: #fbbf24; }
.vt--career { background: linear-gradient(135deg, #18140d 0%, rgba(251,191,36,0.15) 100%); }

:root { --cat-data-science: #3b82f6; }
.cat-dot--data-science { background: #3b82f6; }
.vt--data-science { background: linear-gradient(135deg, #0d1018 0%, rgba(59,130,246,0.15) 100%); }
.dd-dot--data-science { background: var(--cat-data-science); }
.article-tag--data-science { color: #3b82f6; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); }

.quiz-wrapper {
  max-width: 680px;
  margin: 48px auto 0;
}

/* Progress bar */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--mono);
}

/* Question container */
.quiz-step {
  display: none;
  animation: fadeSlideIn 0.35s ease forwards;
}
.quiz-step.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-q-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.quiz-question {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 28px;
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-family: var(--font);
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(124,111,247,0.06);
  color: var(--text);
  transform: translateX(4px);
}
.quiz-option.selected {
  border-color: var(--accent-2);
  background: rgba(124,111,247,0.1);
  color: var(--text);
}
.opt-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.opt-text { line-height: 1.5; }

/* Result */
.quiz-result { animation: fadeSlideIn 0.4s ease forwards; }
.result-inner {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-header {
  padding: 32px 32px 0;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  background: rgba(124,111,247,0.1);
  border: 1px solid rgba(124,111,247,0.2);
  color: var(--accent-2);
}
.result-lang-name {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.result-tagline {
  font-size: 0.92rem;
  color: var(--accent-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.result-why {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 0 32px;
  margin-bottom: 24px;
}
.result-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 32px;
  margin-bottom: 28px;
}
.result-hl {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.result-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.result-accent-bar {
  height: 4px;
  width: 100%;
}

/* Runner-up scores */
.result-scores {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}
.result-scores-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.score-row:last-child { margin-bottom: 0; }
.score-lang-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}
.score-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  width: 28px;
  text-align: right;
  font-family: var(--mono);
}

@media (max-width: 640px) {
  .quiz-option { padding: 14px 16px; }
  .result-header { padding: 24px 20px 0; }
  .result-why { padding: 0 20px; }
  .result-highlights { padding: 0 20px; }
  .result-cta { padding: 20px; }
  .result-scores { padding: 16px 20px; }
}
