/* ============================================
   BASE & RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2a2a3e;
  background: #f5f5fa;
  line-height: 1.6;
}

body.showroom {
  overflow: hidden;
}

a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #6d28d9;
}

/* ============================================
   CANVAS
   ============================================ */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5f5fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.85rem;
  color: #8a8a9a;
  margin-bottom: 2rem;
}

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.loader-percent {
  font-size: 0.75rem;
  color: #9a9aaa;
  margin-top: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* ============================================
   HERO OVERLAY (exterior state)
   ============================================ */
#hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 3rem 2rem;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#hero-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   FLOATING CAR LABELS
   ============================================ */
#car-labels {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
  transition: opacity 0.3s ease;
}

#car-labels.hidden {
  opacity: 0;
  pointer-events: none;
}

.car-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  background: rgba(10, 10, 30, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.car-label:hover {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.cl-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.cl-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
}

.cl-divider {
  margin: 0 0.35rem;
  color: rgba(124, 58, 237, 0.5);
  font-size: 0.8rem;
}

.section-header {
  position: fixed;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a78bfa;
  padding: 0.5rem 1.2rem;
  background: rgba(10, 10, 30, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 12;
}

.section-header--projects {
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
}

.section-header--work {
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
}

#hero-overlay > * {
  pointer-events: auto;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #7c3aed;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.6);
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #7c3aed, #6d28d9, #5b21b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #5a5a6e;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.5);
}

.hero-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: #7c3aed;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.hero-enter-btn:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.4);
}

.hero-enter-btn .arrow {
  transition: transform 0.2s;
}

.hero-enter-btn:hover .arrow {
  transform: translateX(4px);
}

.hero-hint {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: #9a9aaa;
  font-style: italic;
}

/* ============================================
   COCKPIT HUD (cockpit state)
   ============================================ */
#cockpit-hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#cockpit-hud.visible {
  opacity: 1;
}

.hud-exit-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5a5a6e;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hud-exit-btn:hover {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* ============================================
   WINDSCREEN INFO OVERLAY
   ============================================ */
#windscreen-info {
  position: fixed;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: min(900px, 90vw);
  max-height: 70vh;
  overflow-y: auto;
  text-align: center;
  padding: 2rem 2.5rem;
  background: rgba(10, 10, 30, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ws-projects-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.ws-project-card {
  flex: 1;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.ws-project-card .ws-title {
  font-size: 1.4rem;
}

.ws-project-card .ws-desc {
  font-size: 0.75rem;
}

#windscreen-info.visible {
  opacity: 1;
  pointer-events: auto;
}

.ws-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.15rem;
}

.ws-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.4rem;
}

.ws-award {
  font-size: 0.7rem;
  font-weight: 600;
  color: #facc15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
  margin-bottom: 0.75rem;
}

.ws-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.ws-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ws-tag {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.35);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.ws-github {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ws-github:hover {
  color: #c4b5fd;
  text-decoration: underline;
}

/* ============================================
   SPEECH BUBBLE (Lego Man)
   ============================================ */
#speech-bubble {
  position: fixed;
  left: 13%;
  top: 30%;
  transform: translateY(-50%);
  z-index: 12;
  width: min(500px, 40vw);
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255,255,255,0.8) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#speech-bubble.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Triangle pointer on right side */
#speech-bubble::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.05));
}

.sb-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.sb-desc {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sb-tags .ws-tag {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ============================================
   DASHBOARD VIDEO OVERLAY
   ============================================ */
#dash-video {
  position: fixed;
  left: 52%;
  top: 90%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: 240px;
  height: 155px;
  background: rgba(10, 10, 20, 0.9);
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#dash-video.visible {
  opacity: 1;
  pointer-events: auto;
}

#dash-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.dash-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(167, 139, 250, 0.8);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================
   CONTENT PANELS
   ============================================ */
#panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#panel-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.content-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(620px, 92vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border-left: 1px solid rgba(124, 58, 237, 0.1);
  z-index: 200;
  overflow-y: auto;
  padding: 2.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}

.content-panel.open {
  transform: translateX(0);
}

.content-panel::-webkit-scrollbar {
  width: 4px;
}

.content-panel::-webkit-scrollbar-track {
  background: transparent;
}

.content-panel::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 2px;
}

.panel-close-btn {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: #7c3aed;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.panel-close-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

/* ============================================
   PANEL CONTENT COMPONENTS
   ============================================ */

/* Section header inside panels */
.panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  margin-top: -2rem;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: #6a6a7e;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.panel-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7c3aed;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* Timeline (Experience) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 3px solid #7c3aed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.timeline-header .date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7c3aed;
  white-space: nowrap;
}

.timeline-item li {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
}

.timeline-item li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: #7c3aed;
}

/* Cards (Projects, Blog) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.card-header .date {
  font-size: 0.75rem;
  font-weight: 500;
  color: #7c3aed;
}

.card p {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.card .tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.card .award {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #b8860b;
  background: rgba(184, 134, 11, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7c3aed;
}

/* Service cards (Skills/What I Do) */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.6;
}

/* Videos */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.video-card .video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-card .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card .video-info {
  padding: 1rem;
}

.video-card .video-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
}

/* Education */
.education-item {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.education-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.education-item .school {
  font-size: 0.85rem;
  color: #7c3aed;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.education-item p {
  font-size: 0.85rem;
  color: #5a5a6e;
}

/* About content */
.about-content p {
  font-size: 0.95rem;
  color: #5a5a6e;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-cta {
  font-size: 1.1rem;
  font-weight: 600;
  color: #7c3aed;
  margin-top: 0.5rem;
}

/* Think section */
.think-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Trust items */
.trust-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.trust-item p {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.5;
}

.trust-item strong {
  display: block;
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

/* Featured project cards (in Projects panel) */
.featured-project {
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.featured-project h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

.featured-project > p {
  font-size: 0.85rem;
  color: #5a5a6e;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.featured-project ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.featured-project li {
  font-size: 0.8rem;
  color: #6a6a7e;
  padding: 0.25rem 0 0.25rem 1.25rem;
  position: relative;
}

.featured-project li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7c3aed;
}

.featured-project .project-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #7c3aed;
}

/* ============================================
   MOBILE FALLBACK
   ============================================ */
#mobile-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #f5f5fa;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

#mobile-fallback.visible {
  display: block;
}

.mobile-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.mobile-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.mobile-hero p {
  font-size: 0.9rem;
  color: #6a6a7e;
  margin-bottom: 2rem;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mobile-nav-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.mobile-nav-btn .mobile-icon {
  font-size: 1.75rem;
}

.mobile-nav-btn .mobile-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a2e;
}

.mobile-nav-btn .mobile-sublabel {
  font-size: 0.65rem;
  color: #8a8a9a;
}

/* ============================================
   MODE SWITCH (3D / Reader toggle)
   ============================================ */
.mode-switch {
  position: fixed;
  top: 4.5rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(124, 58, 237, 0.25);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mode-switch a,
.mode-switch span {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  line-height: 1;
}

.mode-switch .mode-active {
  background: #7c3aed;
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.mode-switch a {
  color: #5a5a6e;
}

.mode-switch a:hover {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(245, 245, 250, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a5a6e;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #7c3aed;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 1px;
  transition: transform 0.2s;
}

/* ============================================
   CONTENT WRAPPER (subpages)
   ============================================ */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ============================================
   PAGE HEADER (subpages)
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7c3aed;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 0.95rem;
  color: #6a6a7e;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(124, 58, 237, 0.08);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6a6a7e;
}

.footer-copy {
  font-size: 0.75rem;
  color: #9a9aaa;
}

/* ============================================
   EDUCATION LIST
   ============================================ */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(245, 245, 250, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .content-panel {
    width: 100vw;
    padding: 2rem 1.25rem;
  }

  .panel-title {
    font-size: 1.4rem;
  }
}
