:root {
  --bg: #0b0615;
  --surface: #140b24;
  --surface2: #1c0e35;
  --border: #2d1656;
  --text: #e2e8f0;
  --muted: #a0aabf;
  --accent: #c084fc;
  --accent2: #e879f9;
  --accent3: #2dd4bf;
  --accent4: #fbbf24;
  --accent5: #f87171;
  --accent6: #f472b6;
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px 50px;
}

/* Particle Canvas */
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Aurora background mesh */
.hero-aurora {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(192, 132, 252, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(232, 121, 249, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.7; transform: scale(1.02) rotate(-1deg); }
}

/* Floating glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: glowFloat 8s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 500px; height: 500px;
  background: rgba(192, 132, 252, 0.15);
  top: -150px; left: -100px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.hero-glow-2 {
  width: 400px; height: 400px;
  background: rgba(232, 121, 249, 0.1);
  top: 20%; right: -80px;
  animation-delay: -3s;
  animation-duration: 12s;
}

.hero-glow-3 {
  width: 350px; height: 350px;
  background: rgba(45, 212, 191, 0.08);
  bottom: -100px; left: 30%;
  animation-delay: -5s;
  animation-duration: 9s;
}

@keyframes glowFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.1); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.05); }
}

/* Hero content wrapper */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  width: 100%;
  margin-bottom: 8px;
}

/* ── Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #e879f9;
  background: rgba(232, 121, 249, 0.06);
  border: 1px solid rgba(232, 121, 249, 0.2);
  padding: 10px 24px;
  border-radius: 100px;
  margin-bottom: 36px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(232, 121, 249, 0.1), inset 0 0 20px rgba(232, 121, 249, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.2s;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: #e879f9;
  border-radius: 50%;
  box-shadow: 0 0 12px #e879f9, 0 0 4px #e879f9;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* ── Title ── */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-title-line-1 {
  color: var(--text);
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.hero-title-line-2 {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #e879f9 30%, #f0abfc 50%, #c084fc 70%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(192, 132, 252, 0.3));
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Subtitle ── */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.8s;
}

.hero-subtitle strong {
  color: var(--accent3);
  font-weight: 600;
}

/* ── CTA Buttons ── */
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 1s;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #9333ea 100%);
  color: #fff;
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.3), 0 0 0 1px rgba(192, 132, 252, 0.1);
}

.hero-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.5), 0 0 60px rgba(192, 132, 252, 0.2);
}

.hero-btn-glow {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

.hero-btn-secondary {
  background: rgba(192, 132, 252, 0.08);
  color: var(--accent);
  border: 1px solid rgba(192, 132, 252, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-btn-secondary:hover {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(192, 132, 252, 0.15);
}

.hero-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(160, 170, 191, 0.15);
}

.hero-btn-ghost:hover {
  color: var(--text);
  border-color: rgba(160, 170, 191, 0.35);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.03);
}

.hero-btn svg {
  flex-shrink: 0;
}

/* ── Search Bar ── */
.search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 1.15s;
  z-index: 30; /* Ensure it stays above everything */
}

.search-icon-wrap {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 31;
}

.search-wrap input {
  width: 100%;
  padding: 16px 100px 16px 50px;
  background: rgba(14, 8, 24, 0.95); /* More opaque to block background noise */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(192, 132, 252, 0.05);
}

.search-wrap input::placeholder {
  color: rgba(160, 170, 191, 0.6);
}

.search-wrap input:focus {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.08), 0 8px 32px rgba(0,0,0,0.3), 0 0 60px rgba(192, 132, 252, 0.06);
  background: rgba(20, 11, 36, 0.8);
}

.search-shortcut {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.search-shortcut kbd {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.15);
  color: var(--muted);
}

.search-count {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 16px; /* Increased margin */
  letter-spacing: 0.5px;
  display: none;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(11, 6, 21, 0.4); /* Subtle background for contrast */
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(192, 132, 252, 0.1);
}

.search-count.visible { display: block; }

/* ── Master fade-up animation ── */
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════ */
/*  LEVEL 0 REDESIGNED COMPONENTS                     */
/* ═══════════════════════════════════════════════════ */

/* Level Overview Banner */
.level-overview {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.06) 0%, rgba(45, 212, 191, 0.04) 100%);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.level-overview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  background-size: 200% 100%;
  animation: gradientFlow 4s ease-in-out infinite;
}

.level-overview-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.level-overview-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.level-overview-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.level-overview-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Milestone Timeline */
.level-overview-milestones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.milestone {
  text-align: center;
  background: rgba(20, 11, 36, 0.5);
  border: 1px solid rgba(192, 132, 252, 0.12);
  border-radius: 14px;
  padding: 16px 20px 14px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.milestone:hover {
  border-color: rgba(192, 132, 252, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.1);
}

.milestone-final {
  border-color: rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.04);
}

.milestone-final:hover {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.1);
}

.milestone-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.milestone-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.milestone-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
}

.milestone-connector {
  color: rgba(192, 132, 252, 0.4);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
}

/* Subsection Headers */
.subsection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(192, 132, 252, 0.08);
}

.subsection-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.subsection-badge-beginner {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent3);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.subsection-badge-intermediate {
  background: rgba(192, 132, 252, 0.12);
  color: var(--accent);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.subsection-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.subsection-time {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Topic Header Row */
.topic-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

/* Difficulty Badges */
.difficulty-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.6;
}

.diff-easy {
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent3);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.diff-medium {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent4);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.diff-hard {
  background: rgba(232, 121, 249, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(232, 121, 249, 0.2);
}

/* Featured Topic Cards (Math) */
.topic-item-featured {
  border-color: rgba(192, 132, 252, 0.2);
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(192, 132, 252, 0.03) 100%);
}

.topic-item-featured:hover {
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.08);
}

.topic-why {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--accent3);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(45, 212, 191, 0.15);
  line-height: 1.5;
}

.topic-why strong {
  color: var(--accent3);
}

/* Checkpoint Boxes */
.checkpoint-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 24px;
  background: rgba(192, 132, 252, 0.04);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.checkpoint-box-final {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(192, 132, 252, 0.04) 100%);
  border-color: rgba(45, 212, 191, 0.2);
  border-left-color: var(--accent3);
  margin-top: 32px;
}

.checkpoint-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.checkpoint-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.checkpoint-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Resource Boxes */
.resource-box {
  margin-top: 18px;
  padding: 20px 24px;
  background: rgba(20, 11, 36, 0.4);
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 12px;
}

.resource-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(192, 132, 252, 0.04);
  border: 1px solid rgba(192, 132, 252, 0.08);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.resource-item:hover {
  border-color: rgba(192, 132, 252, 0.25);
  background: rgba(192, 132, 252, 0.08);
  transform: translateX(4px);
}

.resource-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.resource-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════ */
/*  REMAINING STYLES (unchanged sections below)       */
/* ═══════════════════════════════════════════════════ */

/* CONTAINER */
.container { max-width: 1500px; width: 96%; margin: 0 auto; padding: 0 20px; }

/* LEVEL CARD */
.level-card {
  margin-bottom: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  background: var(--surface);
}

.level-card:hover { 
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 15px rgba(192, 132, 252, 0.05);
}

.level-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.level-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  min-width: 60px;
  text-transform: uppercase;
}

.level-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.level-title-wrap { flex: 1; }

.level-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.level-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

.level-duration {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  background: rgba(28, 14, 53, 0.3);
}

.toggle-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toggle-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(192, 132, 252, 0.1); }

.level-body {
  display: none;
  padding: 0 32px 32px;
  border-top: 1px solid var(--border);
}

.level-body.open { display: block; }

/* SECTIONS */
.section { margin-top: 28px; }

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* TOPIC GRID */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.topic-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.topic-item:hover {
  border-color: rgba(192, 132, 252, 0.2);
  transform: translateY(-2px);
}

.topic-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}

.topic-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* PILL TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

.tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid;
  letter-spacing: 0.5px;
}

.tag-blue { color: var(--accent); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); }
.tag-purple { color: #a78bfa; border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.05); }
.tag-green { color: var(--accent3); border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.tag-yellow { color: var(--accent4); border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }
.tag-red { color: var(--accent5); border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.tag-pink { color: var(--accent6); border-color: rgba(236,72,153,0.3); background: rgba(236,72,153,0.05); }

/* INFO BOX */
.info-box {
  border-left: 3px solid;
  padding: 14px 16px;
  border-radius: 0 3px 3px 0;
  margin-top: 16px;
  font-size: 0.85rem;
}

.info-box.tip { border-color: var(--accent3); background: rgba(16,185,129,0.06); }
.info-box.warn { border-color: var(--accent4); background: rgba(245,158,11,0.06); }
.info-box.note { border-color: var(--accent); background: rgba(0,212,255,0.06); }

.info-box strong { 
  display: block; 
  margin-bottom: 6px; 
  font-family: 'Outfit', sans-serif; 
  font-size: 0.75rem; 
  letter-spacing: 1.2px; 
  text-transform: uppercase; 
  color: var(--text);
  opacity: 0.9;
}

/* Specific styling for project names within info boxes */
.info-box .project-name {
  display: inline;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* TABLE */
.ds-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin-top: 12px; }
.ds-table th {
  text-align: left; padding: 10px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.ds-table td { padding: 10px 14px; border-bottom: 1px solid rgba(30,45,69,0.5); color: var(--text); vertical-align: top; }
.ds-table tr:last-child td { border-bottom: none; }
.ds-table tr:hover td { background: rgba(255,255,255,0.02); }

/* LEVEL COLOR THEMES */
.l0 .level-header { background: linear-gradient(90deg, rgba(0,212,255,0.06) 0%, transparent 100%); }
.l0 .level-icon { background: rgba(0,212,255,0.1); }
.l0 .level-title { color: var(--accent); }

.l1 .level-header { background: linear-gradient(90deg, rgba(124,58,237,0.06) 0%, transparent 100%); }
.l1 .level-icon { background: rgba(124,58,237,0.1); }
.l1 .level-title { color: #a78bfa; }

.l2 .level-header { background: linear-gradient(90deg, rgba(16,185,129,0.06) 0%, transparent 100%); }
.l2 .level-icon { background: rgba(16,185,129,0.1); }
.l2 .level-title { color: var(--accent3); }

.l3 .level-header { background: linear-gradient(90deg, rgba(245,158,11,0.06) 0%, transparent 100%); }
.l3 .level-icon { background: rgba(245,158,11,0.1); }
.l3 .level-title { color: var(--accent4); }

.l4 .level-header { background: linear-gradient(90deg, rgba(239,68,68,0.06) 0%, transparent 100%); }
.l4 .level-icon { background: rgba(239,68,68,0.1); }
.l4 .level-title { color: var(--accent5); }

.l5 .level-header { background: linear-gradient(90deg, rgba(236,72,153,0.06) 0%, transparent 100%); }
.l5 .level-icon { background: rgba(236,72,153,0.1); }
.l5 .level-title { color: var(--accent6); }

.l6 .level-header { background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, transparent 100%); }
.l6 .level-icon { background: rgba(99,102,241,0.1); }
.l6 .level-title { color: #818cf8; }

.l7 .level-header { background: linear-gradient(90deg, rgba(34,197,94,0.06) 0%, transparent 100%); }
.l7 .level-icon { background: rgba(34,197,94,0.1); }
.l7 .level-title { color: #4ade80; }

.l8 .level-header { background: linear-gradient(90deg, rgba(251,146,60,0.06) 0%, transparent 100%); }
.l8 .level-icon { background: rgba(251,146,60,0.1); }
.l8 .level-title { color: #fb923c; }

/* SKILL METER */
.skill-meter { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.82rem; }
.meter-label { min-width: 140px; color: var(--text); }
.meter-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 2px; }
.meter-pct { min-width: 36px; text-align: right; color: var(--muted); font-family: 'Space Mono', monospace; font-size: 0.68rem; }

/* TIMELINE LINE */
.roadmap-line {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

footer p { color: var(--muted); font-size: 0.82rem; }
footer strong { color: var(--accent); }

/* EXPAND ALL */
.expand-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

.ctrl-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
}

.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }

/* SCROLL LINE */
.progress-line {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 999;
  transition: width 0.1s;
}

/* GITHUB LINK INSIDE LEVEL HEADER */
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 3px;
  transition: all 0.25s;
  white-space: nowrap;
}
.gh-link:hover {
  color: var(--accent);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.05);
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* QUICK NAV */
.quick-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-nav a {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}
.quick-nav a:hover,
.quick-nav a.active {
  background: var(--accent);
  transform: scale(1.4);
}
.quick-nav a .nav-tooltip {
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  background: var(--surface2);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.quick-nav a:hover .nav-tooltip { opacity: 1; }

/* BACK TO TOP */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.3);
}
.back-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(192, 132, 252, 0.5);
}

/* CTA SECTION */
.cta-section {
  margin-top: 48px;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 6px;
  text-align: center;
}
.cta-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.cta-section h2 span { color: var(--accent); }
.cta-section p {
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 24px;
  font-size: 0.92rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.cta-btn.primary:hover {
  background: transparent;
  color: var(--accent);
}
.cta-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* LEVEL HIDDEN BY SEARCH */
.level-card.hidden-search { display: none; }

/* ═══════════════════════════════════════════════════ */
/*  RESPONSIVE                                        */
/* ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 16px 60px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    letter-spacing: -1.5px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .search-shortcut {
    display: none;
  }
  .search-wrap input {
    padding-right: 18px;
  }
}

@media (max-width: 600px) {
  .level-header { padding: 20px 16px; gap: 12px; }
  .level-body { padding: 0 16px 24px; }
  .level-duration { display: none; }
  .gh-link { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .quick-nav { display: none; }
  .back-top { bottom: 16px; right: 16px; width: 36px; height: 36px; font-size: 1rem; }
  .hero-glow { display: none; }
}