/* =========================================================
   WINDOWS XP (LUNA BLUE) RESUME THEME - 2000s / 2010 RETRO UI
   Authentic retro Windows XP UI aesthetic, typography & spacious layout
   ========================================================= */

:root {
  /* Windows XP Luna Palette */
  --xp-blue-dark: #0745b5;
  --xp-blue: #0055ea;
  --xp-blue-light: #2c80f5;
  --xp-blue-soft: #d6dff7;
  --xp-blue-faint: #edf2fc;
  --xp-blue-border: #7ba2e7;
  --xp-blue-header: #215dc6;
  
  --xp-beige: #ece9d8;
  --xp-beige-light: #f7f5ef;
  --xp-beige-dark: #d4d0c8;
  --xp-beige-border: #999488;
  
  --xp-white: #ffffff;
  --xp-text-main: #000000;
  --xp-text-dark: #1e293b;
  --xp-text-muted: #334155;
  --xp-text-faint: #64748b;
  --xp-text-link: #0033cc;

  --xp-green: #15803d;
  --xp-green-bright: #22c55e;
  --xp-orange: #d97706;
  --xp-orange-dark: #b45309;
  --xp-red: #d8523c;
  
  /* Classic XP / 2010 Typography */
  --font-sans: 'Tahoma', 'Segoe UI', Arial, sans-serif;
  --font-header: 'Trebuchet MS', 'Tahoma', Arial, sans-serif;
  --font-mono: 'Lucida Console', 'Consolas', 'Courier New', monospace;

  --sheet-max-width: 900px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #3a6ea5;
  background-image: 
    linear-gradient(135deg, #17488e 0%, #205cbb 40%, #2a75d3 70%, #1e529e 100%);
  color: var(--xp-text-dark);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Outer Desktop Canvas Backdrop */
.canvas-backdrop {
  min-height: 100vh;
  padding: 72px 18px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* =========================================================
   TOP FLOATING DOCK (Windows XP Explorer Command Toolbar)
   ========================================================= */
.editorial-dock {
  position: fixed;
  top: 12px;
  z-index: 100;
  background: linear-gradient(180deg, #fbfbf9 0%, #ede9d8 100%);
  border: 1px solid #7ba2e7;
  border-bottom: 2px solid #0055ea;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 #ffffff;
  max-width: 95vw;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: bold;
  background: linear-gradient(180deg, #0055ea 0%, #0745b5 100%);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid #003399;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px #001f66;
}

.dock-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: bold;
  color: #0b2d6a;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0c327d;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.1s ease;
}

.dock-link:hover {
  background-color: #d6dff7;
  border-color: #7ba2e7;
  color: #002266;
}

.dock-btn-cta {
  background: linear-gradient(180deg, #4ade80 0%, #15803d 100%);
  color: #ffffff;
  border: 1px solid #14532d;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px #064e3b;
  transition: all 0.15s ease;
}

.dock-btn-cta:hover {
  background: linear-gradient(180deg, #86efac 0%, #16a34a 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.35);
}

/* =========================================================
   MAIN WINDOW / DOCUMENT SHEET
   ========================================================= */
.paper-sheet {
  background: #ffffff;
  max-width: var(--sheet-max-width);
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid #0055ea;
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 38px 46px 56px;
  position: relative;
  overflow: visible;
}

/* Top Meta Bar */
.sheet-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: bold;
  color: #0b2d6a;
  background: linear-gradient(180deg, #f0f4fc 0%, #d6dff7 100%);
  border: 1px solid #9bb7dd;
  border-radius: 3px;
  padding: 6px 12px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-dash {
  color: #0055ea;
  font-weight: bold;
}

.meta-right {
  color: #475569;
  font-size: 0.74rem;
}

/* =========================================================
   HERO SECTION (Balanced Two-Column)
   ========================================================= */
.hero-split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 34px;
}

/* Left Column: Sample Frame + Status Box */
.hero-left-art {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-frame-container {
  background: #ede9d8;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: inset 1px 1px 0 #ffffff, 0 3px 10px rgba(0, 0, 0, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.frame-pin {
  display: none;
}

.image-paper {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #7f9db9;
  background: #f1f5f9;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.hero-resume-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.image-frame-container:hover .hero-resume-img {
  transform: scale(1.02);
}

.image-stamp {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 35, 102, 0.88);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid #7ba2e7;
  letter-spacing: 0.04em;
}

/* Candidate Status & Direct Action Box (Clean 2010 XP Style) */
.card-potential-strip {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: bold;
  color: #1a365d;
}

.strip-val {
  color: #15803d;
  font-weight: bold;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.strip-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  overflow: hidden;
}

.strip-fill {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #15803d 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.strip-fill.unlocked {
  width: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
}

.strip-btn {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border: 1px solid #0055ea;
  color: #0b2d6a;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.12s ease;
  text-align: center;
}

.strip-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d8e5f8 100%);
  color: #003399;
}

/* Right Column: About Me Section */
.hero-right-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.about-card-box {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.about-card-header {
  background: linear-gradient(180deg, #ffffff 0%, #c6d3f7 100%);
  border-bottom: 1px solid #7ba2e7;
  padding: 8px 14px;
}

.about-title-group {
  display: flex;
  flex-direction: column;
}

.about-kicker {
  font-size: 0.7rem;
  font-weight: bold;
  color: #0c327d;
  letter-spacing: 0.06em;
}

.about-title-text {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 0;
  text-shadow: 1px 1px 0 #ffffff;
}

.narrative-main {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-para {
  font-size: 0.92rem;
  line-height: 1.62;
  color: #1e293b;
}

/* Tasteful Windows XP Highlighting */
.hl-xp-bold {
  color: #003399;
  font-weight: bold;
}

.hl-xp-highlight {
  background-color: #fef08a;
  color: #000000;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
}

.hl-xp-subtle {
  color: #0c327d;
  font-weight: 600;
  border-bottom: 1px dotted #0055ea;
}

/* Section Navigation Chips */
.section-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-chip {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border: 1px solid #7ba2e7;
  color: #0c327d;
  font-size: 0.74rem;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 3px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.12s ease;
}

.nav-chip:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d6dff7 100%);
  border-color: #0055ea;
  color: #003399;
}

/* Dividers */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #9bb7dd, transparent);
  margin: 30px 0;
}

/* =========================================================
   GENERIC SECTION HEADERS
   ========================================================= */
.editorial-section {
  margin-bottom: 30px;
}

.section-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid #215dc6;
  padding-bottom: 6px;
}

.section-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: bold;
  color: #0b2d6a;
  text-shadow: 1px 1px 0 #ffffff;
  margin: 0;
}

/* =========================================================
   SECTION 01: CORE SKILLS (Vitalik with Dynamic Height Expansion)
   ========================================================= */
.skills-split-layout {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  align-items: start;
  transition: all 0.22s ease;
}

.skills-vitalik-standalone {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: flex-start;
  transition: min-height 0.22s ease;
}

.vitalik-skills-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
}

.skills-right-content {
  display: flex;
  flex-direction: column;
}

.skills-card-box {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skills-card-header {
  background: linear-gradient(180deg, #7ba2e7 0%, #6375d6 100%);
  color: #ffffff;
  padding: 10px 14px;
}

.skills-kicker {
  font-size: 0.68rem;
  font-weight: bold;
  color: #dbeafe;
  letter-spacing: 0.06em;
}

.skills-card-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
  margin: 1px 0;
  text-shadow: 1px 1px 2px #091727;
}

.skills-subtext {
  font-size: 0.78rem;
  color: #eff6ff;
  margin: 0;
}

.skills-points-container {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-point-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.skill-point-item:hover {
  background-color: #e0ecff;
  border-color: #0055ea;
}

.skill-point-item.active {
  background: linear-gradient(180deg, #e0ecff 0%, #cce0ff 100%);
  border-color: #0055ea;
  box-shadow: 0 0 0 1px #0055ea;
}

.point-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.point-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-num {
  font-weight: bold;
  color: #0055ea;
  font-size: 0.88rem;
}

.point-title {
  font-size: 0.92rem;
  font-weight: bold;
  color: #0f172a;
  margin: 0;
}

.point-indicator {
  font-size: 0.82rem;
  color: #0055ea;
  transition: transform 0.2s ease;
}

.skill-point-item.active .point-indicator {
  transform: rotate(180deg);
}

.point-reveal-body {
  display: none;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dotted #94a3b8;
}

.skill-point-item.active .point-reveal-body {
  display: block;
}

.point-desc {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   SECTION 02: WORK EXPERIENCE
   ========================================================= */
.work-exp-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.neet-discord-unified-card {
  background: #ede9d8;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 1px 1px 0 #ffffff;
}

.neet-text {
  font-size: 0.88rem;
  color: #111111;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.5;
}

.neet-logo-inline {
  height: 22px;
  width: auto;
  vertical-align: middle;
  border-radius: 2px;
}

.discord-spotify-wrapper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #7f9db9;
}

.work-roles-card {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.roles-intro-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 0 0 2px 0;
}

.roles-subtitle {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 10px 0;
}

.roles-list-styled {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 7px 12px;
}

.role-index {
  font-weight: bold;
  color: #0055ea;
  font-size: 0.88rem;
}

.role-name {
  font-size: 0.9rem;
  color: #0f172a;
}

.ecosystem-context-box {
  background: #faf8f5;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #0055ea;
  padding: 10px 14px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-para {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.principle-highlight-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 8px 12px;
  border-radius: 3px;
}

.principle-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: bold;
  background: #0055ea;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.principle-text {
  font-size: 0.84rem;
  color: #1e3a8a;
  line-height: 1.48;
  margin: 0;
}

.inline-why-link {
  color: #0055ea;
  font-weight: bold;
  text-decoration: underline;
}

/* =========================================================
   SECTION 03: WHY HIRE ME? (Clean Saylor integration)
   ========================================================= */
.why-hire-master-card {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.why-thesis-banner {
  background: linear-gradient(180deg, #215dc6 0%, #15488e 100%);
  color: #ffffff;
  padding: 10px 16px;
}

.why-thesis-kicker {
  font-size: 0.68rem;
  font-weight: bold;
  color: #dbeafe;
  letter-spacing: 0.06em;
}

.why-thesis-title {
  font-family: var(--font-header);
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
  margin: 2px 0 0 0;
  text-shadow: 1px 1px 2px #091727;
}

/* Saylor Media Container - Clean Light Background */
.saylor-media-container {
  padding: 14px 16px;
  background: #f7f9fd;
  border-bottom: 1px solid #d4d0c8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.saylor-frame {
  max-width: 440px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #7ba2e7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.saylor-gif {
  width: 100%;
  height: auto;
  display: block;
}

.why-values-intro-strip {
  background: #ede9d8;
  border-bottom: 1px solid #d4d0c8;
  padding: 8px 16px;
}

.why-values-intro-text {
  font-size: 0.84rem;
  color: #333333;
  margin: 0;
  font-weight: 500;
}

.why-values-grid {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-value-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 12px 14px;
  transition: all 0.12s ease;
}

.why-value-item:hover {
  border-color: #7ba2e7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.why-value-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.why-val-index {
  color: #0055ea;
  font-weight: bold;
  font-size: 0.88rem;
}

.why-val-title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 0;
}

.why-val-preview {
  font-size: 0.86rem;
  line-height: 1.52;
  color: #334155;
  margin: 0 0 8px 0;
}

.why-val-expanded {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dotted #cbd5e1;
}

.why-val-expanded.open {
  display: flex;
}

.why-val-more-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.wanna-read-more-btn {
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%);
  border: 1px solid #7ba2e7;
  color: #0033cc;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.wanna-read-more-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d8e5f8 100%);
  border-color: #0055ea;
}

/* =========================================================
   SECTION 04: WHAT YOU GET (Theorem / Equation)
   ========================================================= */
.theory-unified-card {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theory-left-poster {
  background: #f7f9fd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #7ba2e7;
  padding: 6px;
}

.theory-poster-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.theory-right-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.theory-header-compact {
  display: flex;
  flex-direction: column;
}

.theory-kicker {
  font-size: 0.68rem;
  font-weight: bold;
  color: #0055ea;
  letter-spacing: 0.06em;
}

.theory-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 0;
}

.math-given-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
}

.math-label {
  font-weight: bold;
  color: #475569;
  margin-right: 8px;
}

.math-var-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-mono);
  color: #0c327d;
  font-size: 0.82rem;
}

.math-steps-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.math-row {
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 8px;
  border-radius: 3px;
}

.math-row-label {
  font-size: 0.7rem;
  color: #64748b;
  font-family: var(--font-sans);
}

.math-highlight {
  color: #0055ea;
  font-weight: bold;
}

.math-subst {
  color: #0f172a;
}

.math-word {
  color: #b45309;
  font-weight: bold;
}

.math-conclusion-compact {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 3px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.math-val-bold {
  color: #15803d;
  font-weight: bold;
}

.math-qed {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: bold;
}

.math-axiom-compact {
  font-size: 0.84rem;
  color: #334155;
  border-top: 1px dotted #cbd5e1;
  padding-top: 8px;
  line-height: 1.5;
}

.axiom-p {
  margin: 0;
}

.hl-job {
  color: #0055ea;
}

.hl-var {
  color: #b45309;
}

.hl-val {
  color: #15803d;
}

/* =========================================================
   SECTION 05: THE ENDING (Hypnotize / Joe Ready)
   ========================================================= */
.hypno-master-card {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hypno-narrative {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hypno-lead {
  font-size: 0.9rem;
  color: #334155;
  margin: 0;
}

.hypno-sublead {
  font-size: 0.86rem;
  color: #64748b;
  font-style: italic;
  margin: 0;
}

.hypno-punchline {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 4px 0 0 0;
}

.hypno-tag-pill {
  font-size: 0.78rem;
  color: #d9532f;
}

.hypno-media-wrapper {
  max-width: 340px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #0055ea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hypno-gif {
  width: 100%;
  height: auto;
  display: block;
}

.hypno-action-box {
  margin-top: 6px;
}

/* Windows XP Luna Blue Glossy Button */
.liquid-glass-hire-btn {
  background: linear-gradient(180deg, #3884f6 0%, #175ec9 50%, #0c4cb4 100%);
  border: 2px solid #003399;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 50, 180, 0.35);
  text-shadow: 0 1px 2px #041f5e;
  transition: all 0.15s ease;
}

.liquid-glass-hire-btn:hover {
  background: linear-gradient(180deg, #5b9af8 0%, #206ee0 50%, #1056c8 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 16px rgba(0, 50, 180, 0.45);
  transform: translateY(-1px);
}

/* =========================================================
   SECTION 06: GET IN TOUCH / SOCIALS
   ========================================================= */
.social-connect-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-icon-chip {
  background: linear-gradient(180deg, #ffffff 0%, #ede9d8 100%);
  border: 1px solid #7ba2e7;
  color: #0c327d;
  font-size: 0.82rem;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.12s ease;
}

.social-icon-chip:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d6dff7 100%);
  border-color: #0055ea;
  color: #002266;
  transform: translateY(-1px);
}

.social-svg {
  flex-shrink: 0;
}

/* =========================================================
   CONTACT MODAL (Windows XP System Dialog Box)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: min(92vw, 440px);
  background-color: #ece9d8;
  border: 2px solid #0055ea;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #d8523c;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 2px;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-badge {
  font-size: 0.74rem;
  font-weight: bold;
  color: #0055ea;
}

.modal-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: bold;
  color: #0b2d6a;
  margin: 0;
}

.modal-desc {
  font-size: 0.84rem;
  color: #475569;
  margin: 0;
}

.contact-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-card-btn {
  background: #ffffff;
  border: 1px solid #7ba2e7;
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #111111;
  transition: all 0.1s ease;
}

.contact-card-btn:hover {
  background-color: #e0ecff;
  border-color: #0055ea;
}

.btn-icon {
  font-size: 1.2rem;
}

.btn-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 10px;
}

.btn-info .label {
  font-weight: bold;
  font-size: 0.84rem;
  color: #0055ea;
}

.btn-info .val {
  font-size: 0.74rem;
  color: #475569;
}

.contact-card-btn .arrow {
  color: #0055ea;
  font-weight: bold;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffca;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #000000;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
}

.toast.show {
  display: block;
  animation: toastFade 0.25s ease;
}

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

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media screen and (max-width: 820px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  
  .theory-unified-card {
    grid-template-columns: 1fr;
  }

  .skills-split-layout {
    grid-template-columns: 1fr;
  }

  .skills-vitalik-standalone {
    display: none;
  }

  .paper-sheet {
    padding: 26px 20px 40px;
  }

  .editorial-dock {
    gap: 8px;
    padding: 5px 10px;
  }

  .dock-link {
    font-size: 0.76rem;
    padding: 3px 6px;
  }
}
