/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

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

/* ===== DARK THEME (default) ===== */
:root,
[data-theme="dark"] {
  --bg: #0b0b12;
  --bg-card: #11111c;
  --bg-card-hover: #161626;
  --border: #1e1e32;
  --border-bright: #2a2a48;
  --primary: #7c6ff7;
  --primary-glow: rgba(124, 111, 247, 0.15);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.12);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --text: #e4e4f0;
  --text-muted: #7a7a9a;
  --text-faint: #3d3d5c;
  --nav-bg: rgba(11, 11, 18, 0.85);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --hero-grid: rgba(255,255,255,0.04);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f6f6fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0fa;
  --border: #e2e2ee;
  --border-bright: #c8c8e0;
  --primary: #6355e8;
  --primary-glow: rgba(99, 85, 232, 0.10);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.10);
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --text: #0f0f1a;
  --text-muted: #5a5a7a;
  --text-faint: #b0b0cc;
  --nav-bg: rgba(246, 246, 252, 0.90);
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.15);
  --hero-grid: rgba(0,0,0,0.04);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 300ms ease, color 300ms ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #6355e8, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
}

code, kbd {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--cyan);
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
section { padding: 112px 0; }

/* ===== THEME TRANSITION ===== */
body, .nav, .card, .topic-card, .newsletter, .footer,
.nav__mobile, .featured-card, .social-link, .tag, .skill-item {
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #fff;
}

.nav__links { display: flex; align-items: center; gap: 28px; }

.nav__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 200ms ease;
  position: relative;
}

.nav__link:hover, .nav__link.active { color: var(--text); }

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav__right { display: flex; align-items: center; gap: 12px; }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  transition: all 200ms ease;
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-icon { font-size: 0.9rem; line-height: 1; }
.theme-label { font-size: 0.78rem; }

.nav__cta {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 200ms, transform 200ms;
}

.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 200ms ease;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV ===== */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 200ms;
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 111, 247, 0.30);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn--outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost { background: transparent; color: var(--primary); padding: 8px 0; }
.btn--ghost:hover { opacity: 0.75; }
.btn--sm { padding: 8px 16px; font-size: 0.825rem; }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--purple { background: rgba(124, 111, 247, 0.15); color: var(--primary); }
.badge--cyan   { background: var(--cyan-glow); color: var(--cyan); }
.badge--green  { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.badge--amber  { background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.badge--red    { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.badge--gray   { background: rgba(122, 122, 154, 0.12); color: var(--text-muted); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.775rem;
  color: var(--text-muted);
  transition: all 200ms;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 200ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .card__thumb {
  background: linear-gradient(135deg, #dde8ff, #e8deff, #d0eeff);
}

.card__thumb-icon { font-size: 2.5rem; opacity: 0.25; }

.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 200ms;
}

.card:hover .card__title { color: var(--primary); }

.card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
  flex: 1;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

.card__footer-left, .card__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== LIGHT SECTIONS (dark/white alternation) ===== */
.section-light {
  background: #ffffff;
  padding-top: 112px;
  padding-bottom: 112px;
}
[data-theme="dark"] .section-light {
  background: #ffffff;
}
.section-light .section-label { color: #6355e8; }
.section-light .section-label::before { background: #6355e8; }
.section-light h2 { color: #0f0f1a; }
.section-light .section-header { color: #0f0f1a; }
.section-light .btn--ghost { color: #5a5a7a; border-color: #c8c8e0; }
.section-light .btn--ghost:hover { background: #f0f0fa; color: #0f0f1a; }
.section-light .card {
  background: #f6f6fc;
  border-color: #e2e2ee;
}
.section-light .card:hover {
  background: #eeeefa;
  border-color: #c8c8e0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.section-light .card__title { color: #0f0f1a; }
.section-light .card:hover .card__title { color: #6355e8; }
.section-light .card__desc { color: #5a5a7a; }
.section-light .card__footer { border-color: #e2e2ee; color: #5a5a7a; }
.section-light .card__footer-left,
.section-light .card__footer-right { color: #5a5a7a; }
.section-light .card__thumb {
  background: linear-gradient(135deg, #dde8ff, #e8deff, #d0eeff);
}
.section-light .card__thumb-icon { opacity: 0.3; }
.section-light .play-btn {
  background: rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.15);
  color: #0f0f1a;
}
.section-light .card:hover .play-btn { background: #6355e8; border-color: #6355e8; color: #fff; }
.section-light .duration-badge { background: rgba(0,0,0,0.55); }
.section-light .text-muted { color: #8888a8; }
.section-light .badge--outline { border-color: #c8c8e0; color: #5a5a7a; }
.section-light hr.divider { border-color: #e2e2ee; }
.section-light .featured-card {
  background: #fafafa;
  border-color: #2a2a3e;
  border-width: 1.5px;
}
.section-light .featured-card:hover {
  border-color: #6355e8;
  box-shadow: 0 4px 24px rgba(99,85,232,0.10);
}
.section-light .featured-card__visual {
  background: linear-gradient(135deg, #eeeef8 0%, #e8e8f4 100%);
}
.section-light .featured-card__label { color: #6355e8; }
.section-light .featured-card__title { color: #0f0f1a; }
.section-light .featured-card__desc { color: #5a5a7a; }
.section-light .series-card-parts { font-size: .85rem; color: #6355e8; font-weight: 600; }
.section-light .section-header h2 { color: #0f0f1a; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }

.filter-pill {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms;
  font-family: 'Inter', sans-serif;
}

.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124, 111, 247, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(99, 85, 232, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black, transparent);
}

.hero__content { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(124, 111, 247, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title { margin-bottom: 20px; }

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }

.hero__stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}

.hero__stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== TOPICS ===== */
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 200ms;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.topic-card:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-card__icon { font-size: 1.8rem; line-height: 1; }
.topic-card__name { font-weight: 700; font-size: 1rem; }
.topic-card__count { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FEATURED CARD ===== */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  transition: all 200ms;
}

.featured-card:hover { border-color: var(--border-bright); box-shadow: var(--shadow-lg); }

.featured-card__visual {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .featured-card__visual {
  background: linear-gradient(135deg, #dde8ff 0%, #e8deff 100%);
}

.featured-card__visual-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

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

.featured-card__visual-icon { font-size: 4rem; position: relative; z-index: 1; }

.featured-card__content {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.featured-card__title { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.3; }
.featured-card__desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.7; }

/* ===== VIDEO CARD ===== */
.play-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  transition: all 200ms;
}

.card:hover .play-btn { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }

.duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

/* ===== DIFFICULTY ===== */
.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.difficulty__dots { display: flex; gap: 3px; }
.difficulty__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-bright); }
.difficulty--beginner .difficulty__dot:nth-child(1) { background: var(--green); }
.difficulty--intermediate .difficulty__dot:nth-child(-n+2) { background: var(--amber); }
.difficulty--advanced .difficulty__dot { background: var(--red); }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

.newsletter__form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 200ms;
}

.newsletter__input:focus { border-color: var(--primary); }
.newsletter__input::placeholder { color: var(--text-faint); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
  padding: 80px 0 60px;
}

.about-hero__name { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; }
.about-hero__title { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; }
.about-hero__bio { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.about-hero__links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 200ms;
}

.social-link:hover { border-color: var(--primary); color: var(--primary); }

.about-hero__avatar {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .about-hero__avatar {
  background: linear-gradient(135deg, #dde8ff, #e8deff);
}

.about-hero__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, var(--primary-glow), transparent 60%);
}

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.skill-item__name { font-weight: 600; margin-bottom: 8px; font-size: 0.875rem; }
.skill-item__bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.skill-item__fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: 4px; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: var(--border);
}

.timeline__item { position: relative; margin-bottom: 36px; }
.timeline__item::before {
  content: ''; position: absolute; left: -32px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  border: 2px solid var(--bg); box-shadow: 0 0 0 3px var(--primary-glow);
}

.timeline__year { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.timeline__role { font-weight: 700; margin-bottom: 4px; }
.timeline__company { color: var(--text-muted); font-size: 0.875rem; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-weight: 700; font-size: 1rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}

.footer__logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #fff; flex-shrink: 0;
}

.footer__desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.75; max-width: 260px; }

.footer__heading {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.875rem; color: var(--text-muted); transition: color 200ms; }
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.825rem; color: var(--text-faint);
}

/* ===== READING PROGRESS ===== */
.reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  z-index: 200; transition: width 100ms linear;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__avatar { max-width: 240px; margin: 0 auto; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__visual { min-height: 200px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .theme-toggle .theme-label { display: none; }
  .nav__hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .newsletter { padding: 36px 24px; }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: 24px; }
  .skill-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .skill-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .theme-toggle { padding: 7px 10px; }
}

/* ===== UTILITIES ===== */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
