/* ==========================================================================
   NEO-BRUTALIST SCRAPBOOK DESIGN SYSTEM
   Custom tailored for Sudhanshu Tamhankar
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

:root {
  /* Core Colors */
  --bg: #ffffff;
  --text: #000000;
  --border: #000000;
  --white: #ffffff;
  --dark: #121212;

  /* Accent Palette */
  --yellow: #ffd93d;
  --cyan: #66d9ef;
  --pink: #ff6b9d;
  --accent: #a8e6cf;
  --orange: #ff9f43;
  --purple: #a55eea;
  --cricket-green: #2ecc71;
  --cricket-red: #e74c3c;

  /* Brutalist Metrics */
  --shadow-offset: 4px;
  --border-width: 3px;
  --card-radius: 0px;
}

body[data-theme="dark"] {
  --bg: #121212;
  --text: #ffffff;
  --border: #a8e6cf;
  --white: #1e1e1e;
  --dark: #0a0a0a;
  background: #0a0a0a;
}

/* Custom Cricket Ball Cursors (3-Seam Authentic Leather Ball) */
html, body, .hero-photo-frame, .hero-photo-img, .hero-image-wrapper {
  cursor: url('assets/icons/cricket-ball-cursor.svg?v=3') 12 12, auto !important;
}

a, button, [role="button"], input[type="submit"], input[type="button"], 
.checkpoint, .tag, .cricket-shot-badge, .timeline-item-flat, .social-btn, 
.theme-toggle-nav, .project-btn, .music-btn, .modal-close-btn, .form-submit-btn,
.nav-link, .nav-brand, .nav-cta, .nav-terminal-btn, .btn-cta, .btn-cta-secondary {
  cursor: url('assets/icons/cricket-ball-pointer.svg?v=3') 12 12, pointer !important;
}

/* ==========================================================================
   Typography & Global Base
   ========================================================================== */
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #d4d4d8;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrapbook Main Canvas */
.page-wrapper {
  padding-top: 16px;
  background:
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.95) 0%, transparent 40%),
    repeating-linear-gradient(
      90deg,
      #ececec 0px,
      #ececec 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      0deg,
      #ececec 0px,
      #ececec 1px,
      transparent 1px,
      transparent 20px
    ),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 20px 20px, 20px 20px, 100%;
  border: 6px solid var(--border);
  box-shadow: 12px 12px 0 var(--border);
  max-width: 1400px;
  margin: 0 auto 20px;
  min-height: calc(100vh - 40px);
  position: relative;
  overflow: visible;
}

body[data-theme="dark"] .page-wrapper {
  background:
    radial-gradient(ellipse at top left, rgba(30, 30, 30, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at top right, rgba(30, 30, 30, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at bottom left, rgba(30, 30, 30, 0.95) 0%, transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(30, 30, 30, 0.95) 0%, transparent 40%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 20px
    ),
    var(--bg);
  box-shadow: 12px 12px 0 var(--border);
}

/* Brutalist Custom Scrollbar */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--white);
  border-left: 3px solid var(--border);
}

::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 3px solid var(--border);
  border-radius: 0;
  box-shadow: 3px 0 0 var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::-webkit-scrollbar-thumb:active {
  background: var(--pink);
  box-shadow: none;
}

* {
  scrollbar-width: auto;
  scrollbar-color: var(--yellow) var(--white);
}

body[data-theme="dark"] * {
  scrollbar-color: var(--border) var(--dark);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.loader-shape-svg {
  position: absolute;
  animation: float-deco 3s ease-in-out infinite;
}

.loader-shape-1 { top: 15%; left: 12%; animation-delay: 0s; }
.loader-shape-2 { top: 18%; right: 14%; animation-delay: 0.6s; }
.loader-shape-3 { bottom: 18%; left: 16%; animation-delay: 1.2s; }
.loader-shape-4 { bottom: 20%; right: 16%; animation-delay: 0.9s; }

.loader-wrapper {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.loader-letter {
  font-size: 5rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  border: 6px solid var(--border);
  box-shadow: 10px 10px 0 var(--border);
  width: 115px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: letter-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

.loader-hindi-letter {
  font-family: 'Yantramanav', 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  padding-bottom: 6px;
}

.loader-progress-bar {
  width: 320px;
  height: 22px;
  background: var(--white);
  border: 4px solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.loader-progress-fill {
  height: 100%;
  background: var(--pink);
  width: 0%;
  animation: progress-fill 0.9s ease-out forwards;
  animation-delay: 0.3s;
  position: relative;
}

.loader-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--border);
}

.loader-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--border);
  letter-spacing: 1px;
}

@keyframes letter-pop {
  0% { opacity: 0; transform: scale(0) rotate(-180deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes progress-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes float-deco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

/* ==========================================================================
   Top Reading Progress Bar & Checkpoints
   ========================================================================== */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--white);
  border-bottom: 4px solid var(--border);
  z-index: 10000;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width 0.1s ease;
  border-right: 4px solid var(--border);
}

.progress-checkpoints {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 4%;
}

.checkpoint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
}

.checkpoint-dot {
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: 50%;
  transition: all 0.25s ease;
  z-index: 2;
}

.checkpoint.active .checkpoint-dot {
  background: var(--yellow);
  transform: scale(1.35);
  box-shadow: 0 0 0 3px var(--white);
}

body[data-theme="dark"] .progress-bar-container {
  background: var(--dark);
}

/* ==========================================================================
   Sticky Navbar
   ========================================================================== */
.navbar {
  background: var(--yellow);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  z-index: 1000;
  position: sticky;
  top: 16px;
  margin: 16px 16px 0;
  transition: transform 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-125%);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1.2rem;
}

.nav-doodle-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  border: var(--border-width) solid var(--border);
  border-radius: 8px;
  padding: 2px;
  box-shadow: 3px 3px 0 var(--border);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-doodle-brand:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
}

.nav-doodle-img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  border: 2px solid var(--border);
  object-fit: cover;
  display: block;
}

.nav-photo-brand:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
}

.nav-avatar-img-frame {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-avatar-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

.nav-right {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--border);
  transform: translateY(-2px) rotate(-2deg) scale(1.08);
}

.nav-link.active {
  border-bottom: 3px solid var(--border);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--cyan);
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
  background: var(--pink);
}

.nav-terminal-btn {
  padding: 0.45rem 0.85rem;
  background: var(--dark);
  color: #00ff66;
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--border);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-terminal-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
  background: var(--white);
  color: var(--text);
}

.theme-toggle-nav {
  padding: 0.45rem 0.85rem;
  background: var(--cyan);
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 3px 3px 0 var(--border);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-nav:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 3.5rem 3rem 2.5rem;
  max-width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-greeting {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: 'Space Mono', monospace;
  background: var(--dark);
  color: var(--yellow);
  padding: 0.3rem 0.8rem;
  width: fit-content;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
}

.hero-name {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-role-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: var(--pink);
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  border: 3px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  width: fit-content;
}

.status-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #a8e6cf;
  color: #000;
  padding: 0.18rem 0.6rem;
  border: 2px solid #000;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00c853;
  border: 1.5px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 200, 83, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
  }
}

.role-pill-divider {
  font-size: 0.85rem;
  color: #000;
  opacity: 0.7;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 620px;
}

.hero-social {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.3rem;
  position: relative;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--border);
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

.hero-cta-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.8rem;
  position: relative;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--cyan);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--border);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-cta-secondary:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--border);
  background: var(--accent);
}

/* Handwritten Doodle Arrow */
.coffee-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.coffee-arrow-text {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transform: rotate(-4deg);
}

.coffee-arrow-img {
  width: 90px;
  height: auto;
  transform: rotate(-30deg);
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
}

.hero-photo-frame {
  width: 340px;
  height: 340px;
  background: var(--accent);
  border: var(--border-width) solid var(--border);
  box-shadow: 10px 10px 0 var(--border);
  position: relative;
  z-index: 2;
  transform-origin: center center;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: url('assets/icons/cricket-ball-cursor.svg?v=3') 12 12, auto !important;
  will-change: transform, box-shadow;
}

.hero-photo-frame.tilted {
  transform: rotate(-3deg);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Playful 3D Waving Box Animation on Hover */
.hero-photo-frame:hover {
  animation: box-wave 1.6s ease-in-out infinite;
}

@keyframes box-wave {
  0% {
    transform: perspective(800px) rotate(0deg) scale(1.02);
  }
  20% {
    transform: perspective(800px) rotate(5deg) translateY(-6px) scale(1.04);
  }
  40% {
    transform: perspective(800px) rotate(-5deg) translateY(-2px) scale(1.04);
  }
  60% {
    transform: perspective(800px) rotate(3deg) translateY(-5px) scale(1.03);
  }
  80% {
    transform: perspective(800px) rotate(-2deg) translateY(-2px) scale(1.02);
  }
  100% {
    transform: perspective(800px) rotate(0deg) scale(1.02);
  }
}

.hero-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.hero-photo-placeholder i {
  font-size: 5rem;
  color: var(--text);
}

.hero-photo-placeholder span {
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--yellow);
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
}

/* Translucent Tape Stickers */
.tape-sticker {
  position: absolute;
  top: -16px;
  right: 35px;
  width: 105px;
  height: 36px;
  background: rgba(255, 217, 61, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  transform: rotate(12deg);
  z-index: 4;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.tape-sticker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

/* Floating SVGs (Left side logos moving slightly) */
.deco-code {
  position: absolute;
  top: -35px;
  left: -48px;
  z-index: 3;
  animation: float-slow-gentle 4s ease-in-out infinite;
  filter: drop-shadow(5px 5px 0 var(--border));
}

.deco-cricket {
  position: absolute;
  bottom: 35px;
  left: -50px;
  z-index: 3;
  transform: rotate(-10deg);
  animation: float-slow-left 3.8s ease-in-out infinite;
  filter: drop-shadow(5px 5px 0 var(--border));
}

/* Static Terminal Badge above the tagline */
.deco-terminal {
  position: absolute;
  bottom: 45px;
  right: -38px;
  z-index: 4;
  filter: drop-shadow(5px 5px 0 var(--border));
}

/* Bottom-Right Tagline */
.deco-label {
  position: absolute;
  bottom: -22px;
  right: -24px;
  padding: 0.55rem 1.3rem;
  background: #a8e6cf;
  color: #000;
  font-weight: 800;
  border: var(--border-width) solid var(--border);
  box-shadow: 5px 5px 0 var(--border);
  white-space: nowrap;
  z-index: 5;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

@keyframes float-slow-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@keyframes float-slow-left {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-8px) rotate(-6deg); }
}

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

@keyframes pop-out {
  0% { transform: translateX(-10px) rotate(-15deg); }
  50% { transform: translateX(0) rotate(-15deg); }
  100% { transform: translateX(-10px) rotate(-15deg); }
}

/* Quick Tech Badges Row */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1rem;
}

.tech-badge {
  padding: 0.6rem 1.2rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

/* ==========================================================================
   Paper Tear Parallax Divider
   ========================================================================== */
.paper-tear {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.paper-tear-top {
  margin-top: -1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.paper-tear-bottom {
  margin-top: -1px;
  margin-bottom: -1px;
  transition: margin-top 0.1s ease-out;
  position: relative;
  z-index: 3;
}

.paper-tear svg {
  display: block;
  width: 100%;
  height: 30px;
}

.page-gap {
  width: 100%;
  height: 250px;
  background: #d4d4d8;
  position: relative;
  transition: height 0.1s ease-out;
}

body[data-theme="dark"] .page-gap {
  background: #0a0a0a;
}

.tear-tape-sticker {
  position: fixed;
  top: var(--tape-position, 0);
  right: 12%;
  width: 130px;
  height: 48px;
  background: rgba(255, 217, 61, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  transform-origin: left center;
  transform: rotate(-8deg) translateY(-40px) translateZ(30px) rotateX(35deg);
  opacity: 0;
  z-index: 50;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* ==========================================================================
   Section Containers & Titles
   ========================================================================== */
.container {
  max-width: 100%;
  padding: 2.5rem 3rem;
  position: relative;
  z-index: 10;
}

.section {
  margin-bottom: 4rem;
  scroll-margin-top: 90px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.8rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--yellow);
  border: var(--border-width) solid var(--border);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--border);
}

.section-title-center {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0.8rem 2rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  display: block;
}

.card {
  background: var(--white);
  border: var(--border-width) solid var(--border);
  padding: 2.2rem;
  box-shadow: 8px 8px 0 var(--border);
  transition: all 0.3s ease;
}

/* Scroll-Driven Highlighters */
.text {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.text:last-child {
  margin-bottom: 0;
}

.highlight {
  padding: 0.1rem 0.5rem;
  font-weight: 700;
  border-radius: 3px;
  display: inline-block;
  margin: 0.2rem 0.1rem;
  position: relative;
  background: transparent;
  z-index: 1;
}

.highlight::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(var(--highlight-progress, 0%) + 2px);
  height: calc(100% + 4px);
  z-index: -1;
  border-radius: 3px;
}

.highlight[data-direction="right"]::before {
  left: auto;
  right: -2px;
}

.highlight-yellow::before { background: var(--yellow); }
.highlight-cyan::before { background: var(--cyan); }
.highlight-pink::before { background: var(--pink); }
.highlight-green::before { background: var(--accent); }

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 5px 5px 0 var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

.stat-number {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  color: var(--text);
  word-break: keep-all;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid-modern {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.8rem;
}

.skill-box {
  background: var(--white);
  border: 4px solid var(--border);
  padding: 1.8rem;
  box-shadow: 7px 7px 0 var(--border);
  transition: all 0.25s ease;
  grid-column: span 2;
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
}

.skill-box:nth-child(1)::before { background: var(--cyan); }
.skill-box:nth-child(2)::before { background: var(--yellow); }
.skill-box:nth-child(3)::before { background: var(--pink); }
.skill-box:nth-child(4)::before { background: var(--accent); }
.skill-box:nth-child(5)::before { background: var(--purple); }
.skill-box:nth-child(6)::before { background: var(--orange); }

.skill-box:hover {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--border);
}

.skill-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--border);
}

.skill-icon-large {
  font-size: 2.5rem;
  color: var(--text);
  transition: transform 0.3s ease;
}

.skill-box:hover .skill-icon-large {
  transform: scale(1.18) rotate(-8deg);
}

.skill-box-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-box .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2.5px solid var(--border);
  background: var(--white);
  box-shadow: 2.5px 2.5px 0 var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag:hover {
  transform: translate(2.5px, 2.5px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

/* ==========================================================================
   Experience & The Cricket Journey Arena (3-Phase 3D Unfolding Playbook)
   ========================================================================== */
.journey-section-wrapper {
  padding-bottom: 0;
}

.journey-scroll-track {
  position: relative;
}

.journey-book-stage {
  width: 100%;
  position: relative;
}

.journey-book-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .journey-scroll-track {
    height: 350vh;
    position: relative;
  }

  .journey-sticky-stage {
    position: sticky;
    top: 40px;
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.5rem;
  }

  .journey-section-wrapper .section-title-center {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    padding: 0.4rem 1.6rem;
  }

  .journey-book-stage {
    width: 100%;
    max-width: 1260px;
    height: calc(100vh - 130px);
    max-height: 580px;
    min-height: 480px;
    margin: 0 auto;
    perspective: 2500px;
  }

  .journey-book-frame {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    transform-style: preserve-3d;
  }

  .book-spine-crease {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 10px;
    margin-left: -5px;
    background: #3e0d00;
    z-index: 40;
    border-radius: 2px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.95);
  }

  .book-page {
    flex: 1;
    height: 100%;
    position: relative;
    background: var(--white);
    border: 3.5px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
  }

  .book-page-left {
    z-index: 10;
    border-right: none;
  }

  .book-page-right {
    z-index: 10;
    border-left: none;
  }

  .journey-timeline {
    width: 100%;
    height: 100%;
    background: var(--white);
    padding: 1.4rem;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  .journey-interactive-container {
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Single Straight Front Cover Flipper (Flips Leftwards) */
  .book-cover-flipper {
    display: flex !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 50;
    transform-origin: left center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 8px 8px 0 var(--border);
    border: 3.5px solid var(--border);
    background: #8b2500;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.05s linear;
  }

  /* Right Page Cover Flipper (Flips Rightwards) */
  .book-right-flipper {
    display: flex !important;
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 45;
    transform-origin: right center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 8px 8px 0 var(--border);
    border: 3.5px solid var(--border);
    background: #8b2500;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.05s linear;
  }
}

.timeline-header {
  font-size: 1.15rem;
  font-weight: 800;
  margin: -1.4rem -1.4rem 1.2rem -1.4rem;
  padding: 0.8rem 1.4rem;
  border-bottom: var(--border-width) solid var(--border);
  position: sticky;
  top: -24px;
  background: var(--yellow);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.timeline-section-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0 -0.2rem 0;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  background: var(--light);
  padding: 0.4rem 0.8rem;
  border-left: 4px solid var(--border);
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
}

.timeline-section-divider.internship {
  border-left-color: var(--cyan);
  background: #e6f9fc;
}

.timeline-section-divider.por {
  border-left-color: var(--pink);
  background: #ffebeb;
}

.timeline-section-divider.achievement {
  border-left-color: var(--yellow);
  background: #fff9db;
}

body[data-theme="dark"] .timeline-section-divider.internship {
  background: rgba(102, 217, 239, 0.15);
  color: #fff;
}

body[data-theme="dark"] .timeline-section-divider.por {
  background: rgba(255, 107, 107, 0.15);
  color: #fff;
}

body[data-theme="dark"] .timeline-section-divider.achievement {
  background: rgba(255, 217, 61, 0.15);
  color: #fff;
}

.timeline-item-flat {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 2px dashed transparent;
  transition: all 0.2s ease;
}

.timeline-item-flat:hover,
.timeline-item-flat.active {
  background: rgba(255, 217, 61, 0.15);
  border-color: var(--border);
  transform: translateX(4px);
}

.timeline-dot {
  min-width: 14px;
  width: 14px;
  height: 14px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-top: 0.3rem;
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.timeline-item-flat:hover .timeline-dot,
.timeline-item-flat.active .timeline-dot {
  background: var(--yellow);
  transform: scale(1.35);
}

.timeline-item-flat:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
  height: 48px;
  background: var(--border);
  opacity: 0.3;
}

.timeline-content-flat {
  flex: 1;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 0.35rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}

.timeline-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.timeline-location {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  opacity: 0.85;
}

/* Cricket Arena Interactive Right Panel */
.cricket-arena-header {
  background: var(--yellow);
  border-bottom: 3.5px solid var(--border);
  padding: 0.45rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.cricket-mode-toggle {
  display: flex;
  gap: 0.35rem;
}

.arena-mode-btn {
  padding: 0.3rem 0.65rem;
  background: var(--white);
  border: 2px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 2px 2px 0 var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.arena-mode-btn.active {
  background: var(--pink);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.cricket-header-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #000;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.arena-replay-btn {
  padding: 0.3rem 0.75rem;
  background: var(--cyan);
  border: 2px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 2.5px 2.5px 0 var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.arena-replay-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

.cricket-arena-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.85rem 0.15rem 0.85rem;
  background: var(--white);
}

body.dark-theme .cricket-arena-tabs {
  background: var(--dark);
}

.cricket-shot-badge {
  padding: 0.22rem 0.55rem;
  background: var(--white);
  border: 2px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cricket-shot-badge.active,
.cricket-shot-badge:hover {
  background: var(--pink);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.cricket-arena-body {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  padding: 0.55rem 0.9rem 0.75rem 0.9rem;
  gap: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(46, 204, 113, 0.08) 0%, transparent 70%),
    var(--white);
  align-items: stretch;
}

body.dark-theme .cricket-arena-body {
  background: var(--dark);
}

.cricket-pitch-visualizer {
  border: 3.5px solid var(--border);
  box-shadow: 5px 5px 0 var(--border);
  background: #1e824c;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  max-width: 300px;
  max-height: 300px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}

.sim-score-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--yellow);
  color: #000;
  border: 2.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
  white-space: nowrap;
}

.sim-score-badge.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.fielder-pin {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fielder-pin:hover {
  transform: scale(1.45);
}

.fielder-pin:hover circle:first-child {
  fill: var(--yellow);
}

.animated-shot-tracer {
  transition: d 0.3s ease;
}

.cricket-pitch-svg {
  width: 100%;
  height: 100%;
}

.cricket-stats-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.scorecard-box {
  background: var(--white);
  border: 2.5px solid var(--border);
  padding: 0.55rem 0.65rem;
  box-shadow: 4px 4px 0 var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.dark-theme .scorecard-box {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Player Bio & Role Header Strip */
.player-profile-strip {
  background: #e0f2fe;
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  padding: 0.3rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  box-sizing: border-box;
  width: 100%;
}

body.dark-theme .player-profile-strip {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.2);
}

.player-strip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
}

.player-jersey-pill {
  font-weight: 900;
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

body.dark-theme .player-jersey-pill {
  color: #38bdf8;
}

.player-badge-role {
  background: var(--yellow);
  color: #000;
  border: 1.2px solid var(--border);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
}

.player-spec-text {
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

/* Match Telemetry HUD Grid */
.telemetry-hud-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.35rem;
}

.hud-item-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  padding: 0.25rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

body.dark-theme .hud-item-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.2);
}

.hud-label {
  font-size: 0.6rem;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  color: var(--text);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hud-val {
  font-size: 0.84rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-val.hud-speed {
  font-family: 'Space Mono', monospace;
  color: #d97706;
}

body.dark-theme .hud-val.hud-speed {
  color: var(--yellow);
}

/* Match Phase Strip */
.tel-phase-strip {
  background: #fffde7;
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  padding: 0.22rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

body.dark-theme .tel-phase-strip {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.2);
}

.tel-phase-label {
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--text);
  opacity: 0.85;
}

.tel-phase-val {
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  font-size: 0.74rem;
}

/* Tactical Execution Box */
.tactics-content-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  padding: 0.3rem 0.45rem;
}

body.dark-theme .tactics-content-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.tel-section-label {
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.1rem;
}

.tactics-content-box .timeline-description {
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

.dossier-compact-note {
  background: #fffde7;
  border-left: 3.5px solid var(--yellow);
  padding: 0.25rem 0.45rem;
  font-size: 0.7rem;
  line-height: 1.25;
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
}

body.dark-theme .dossier-compact-note {
  background: #0f172a;
  border-left-color: var(--yellow);
  color: #e2e8f0;
}

/* ==========================================================================
   Education & Languages Section
   ========================================================================== */
#education.section {
  margin-bottom: 4rem;
}

.education-languages-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.8rem;
  align-items: stretch;
}

.education-column,
.languages-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.education-card {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 1.8rem;
}

.languages-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.8rem;
}

.education-inst-flex {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}

.education-inst-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

.education-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  flex: 1;
}

.education-inst-name {
  font-size: 1.26rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.22;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.education-degree-name {
  font-size: 1.06rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  margin: 0;
}

.education-branch-name {
  font-size: 0.88rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

.education-batch-pill {
  font-size: 0.78rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  background: var(--cyan);
  color: #000;
  padding: 0.22rem 0.65rem;
  border: 2px solid var(--border);
  box-shadow: 2.5px 2.5px 0 var(--border);
  width: fit-content;
  margin-top: 0.2rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.languages-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0.75rem;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 2.5px 2.5px 0 var(--border);
  transition: all 0.2s ease;
}

.language-item:last-child:nth-child(odd) {
  grid-column: span 2;
}

.language-item:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
  background: var(--accent);
}

.language-name-inline {
  font-weight: 700;
  font-size: 0.88rem;
}

.language-stars {
  display: flex;
  gap: 0.3rem;
}

.language-stars .star {
  width: 13px;
  height: 13px;
  border: 1.8px solid var(--border);
  background: var(--white);
  box-shadow: 1.5px 1.5px 0 var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
  transform: scale(0);
}

.language-stars .star.filled {
  background: var(--yellow);
}

.language-stars .star.visible {
  transform: scale(1);
}

/* ==========================================================================
   Template 4: Interactive Tiling OS Workbench (Split-Pane Workstation)
   ========================================================================== */
#projects.projects-sticky-section {
  position: relative;
  height: auto;
  margin-bottom: 4rem;
  padding: 0;
  scroll-margin-top: 80px;
}

.workbench-sticky-container {
  position: relative;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
}

.projects-section-header {
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}

.projects-section-header .section-title {
  font-size: 1.25rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0;
  box-shadow: 3px 3px 0 var(--border);
}

.os-workbench-window {
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
  height: 820px;
  max-height: 88vh;
  min-height: 540px;
}

@media (min-width: 900px) {
  #projects.projects-sticky-section {
    height: 220vh;
    position: relative;
  }

  .workbench-sticky-container {
    position: sticky;
    top: 50px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .projects-section-header {
    margin-bottom: 0.45rem;
  }

  .projects-section-header .section-title {
    font-size: 1.15rem;
    padding: 0.3rem 0.8rem;
  }

  .os-workbench-window {
    flex: 1;
    min-height: 0;
    height: calc(100vh - 125px);
    max-height: calc(100vh - 125px);
    width: 100%;
  }
}

.os-titlebar {
  background: #0f172a;
  color: #fff;
  padding: 0.4rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.os-title-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.os-system-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: #00ff88;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.5px;
}

/* Split Grid Layout with Viewport Fit */
.workbench-split-grid {
  display: grid;
  grid-template-columns: 275px 1fr;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--white);
}

/* LEFT COLUMN: File Explorer */
.workbench-file-explorer {
  background: #f8fafc;
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.explorer-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.explorer-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.explorer-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.explorer-search-box .search-icon {
  position: absolute;
  left: 0.55rem;
  color: #64748b;
  font-size: 0.72rem;
  pointer-events: none;
}

.explorer-search-input {
  width: 100%;
  padding: 0.28rem 0.5rem 0.28rem 1.65rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 1.5px 1.5px 0 var(--border);
  color: var(--text);
  outline: none;
}

.explorer-search-input:focus {
  border-color: #000;
  box-shadow: 2px 2px 0 var(--yellow);
}

/* File Tree Item Rows */
.file-tree-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.file-tree-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #f8fafc;
}

.file-tree-item:hover {
  background: #e0f2fe;
  padding-left: 0.85rem;
}

.file-tree-item.active {
  background: var(--yellow);
  border-left: 4.5px solid #000;
  font-weight: 800;
}

.file-tree-item.hidden {
  display: none !important;
}

.file-icon-wrap {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.file-icon-cpp { color: #0284c7; }
.file-icon-ts { color: #3178c6; }
.file-icon-py { color: #eab308; }
.file-icon-react { color: #06b6d4; }
.file-icon-go { color: #00add8; }

.file-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  overflow: hidden;
}

.file-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.file-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.file-tree-item.active .file-desc {
  color: #1e293b;
  font-weight: 600;
}

.file-status-badge {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 0.12rem 0.42rem;
  border: 1.5px solid #000;
  border-radius: 3px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.2;
}

.status-prod { background: var(--yellow); color: #000; }
.status-shield { background: var(--pink); color: #000; }
.status-opt { background: var(--mint); color: #000; }
.status-clymber { background: #6366f1; color: #ffffff; border-color: #000; }
.status-cv { background: var(--cyan); color: #000; }
.status-pass { background: var(--mint); color: #000; }
.status-genai { background: #a855f7; color: #fff; }
.status-iot { background: #f97316; color: #fff; }

/* RIGHT COLUMN: Live Inspector */
.workbench-inspector-pane {
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.inspector-tabs-bar {
  background: #0f172a;
  padding: 0.25rem 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}

.inspector-active-tab {
  background: var(--white);
  color: #000;
  padding: 0.32rem 0.75rem;
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  font-size: 0.74rem;
  margin-bottom: -2px;
  box-shadow: 2px -2px 0 rgba(0,0,0,0.1);
}

.active-tab-size {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
}

.inspector-nav-pills {
  display: flex;
  gap: 0.3rem;
  padding-bottom: 0.25rem;
}

.sub-tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sub-tab-btn:hover {
  background: var(--yellow);
  color: #000;
  border-color: #000;
}

.sub-tab-btn.active {
  background: var(--yellow);
  color: #000;
  border-color: #000;
  font-weight: 800;
  box-shadow: 2px 2px 0 #000;
}

/* Inspector Body with Internal Scroll */
.inspector-body {
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.inspector-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inspector-project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.inspector-project-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

.inspector-category-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  font-weight: 800;
  background: var(--cyan);
  color: #000;
  padding: 0.12rem 0.45rem;
  border: 1.5px solid #000;
  box-shadow: 1.5px 1.5px 0 #000;
  border-radius: 3px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

/* ==========================================================================
   Subtab 1: Executive Overview & Business Impact (HR & Engineers)
   ========================================================================== */
.overview-content-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.overview-section-box {
  background: var(--white);
  border: 1.8px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
}

body.dark-theme .overview-section-box {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.overview-problem-solution {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

body.dark-theme .overview-problem-solution {
  color: #e2e8f0;
}

.overview-problem-solution p {
  margin: 0 0 0.45rem 0;
}

.overview-problem-solution p:last-child {
  margin-bottom: 0;
}

.problem-badge-pill {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border: 1.5px solid #dc2626;
  border-radius: 3px;
  margin-right: 0.35rem;
}

.solution-badge-pill {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border: 1.5px solid #16a34a;
  border-radius: 3px;
  margin-right: 0.35rem;
}

/* 4 Core Pillars Grid */
.overview-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

@media (max-width: 640px) {
  .overview-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  box-shadow: 1.5px 1.5px 0 var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.dark-theme .pillar-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.18);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

body.dark-theme .pillar-header {
  color: #f8fafc;
}

.pillar-icon {
  font-size: 0.85rem;
}

.pillar-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.35;
}

body.dark-theme .pillar-desc {
  color: #94a3b8;
}

/* Measurable Business & Engineering ROI List */
.overview-impact-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
  background: #f1f5f9;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
}

body.dark-theme .impact-item {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

.impact-bullet-icon {
  color: #16a34a;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

body.dark-theme .impact-bullet-icon {
  color: #4ade80;
}

/* ==========================================================================
   Subtab 2: Structured Architecture Diagram (Image 3 & Mermaid.js)
   ========================================================================== */
.mermaid-diagram-wrap {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 0.5rem;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

body.dark-theme .mermaid-diagram-wrap {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.mermaid-diagram-wrap svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.image3-architecture-diagram {
  background: #f8fafc;
  border: 2px solid #0f172a;
  border-radius: 6px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

body.dark-theme .image3-architecture-diagram {
  background: #09121d;
  border-color: rgba(255, 255, 255, 0.2);
}

.diagram-top-source {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 580px;
  justify-content: center;
}

.diagram-block-card {
  width: 100%;
  max-width: 580px;
  background: #ffffff;
  border: 2px solid #0f172a;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.dark-theme .diagram-block-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.diagram-layer-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  text-align: center;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 0.25rem;
  letter-spacing: 0.4px;
}

body.dark-theme .diagram-layer-title {
  color: #f8fafc;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.diagram-submodules-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.diagram-subnode {
  background: #f1f5f9;
  border: 1.5px solid #0f172a;
  border-radius: 3px;
  padding: 0.35rem 0.55rem;
  text-align: center;
  flex: 1;
  min-width: 110px;
}

body.dark-theme .diagram-subnode {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.2);
}

.diagram-node-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

body.dark-theme .diagram-node-name {
  color: #f8fafc;
}

.diagram-node-detail {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
  display: block;
  margin-top: 0.1rem;
}

body.dark-theme .diagram-node-detail {
  color: #94a3b8;
}

.diagram-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #0f172a;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 0.05rem;
}

body.dark-theme .diagram-flow-arrow {
  color: var(--yellow);
}

.diagram-decision-row {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 580px;
}

.diagram-decision-box {
  flex: 1;
  border: 2px solid #0f172a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  line-height: 1.35;
}

.diagram-decision-box.pass {
  background: #dcfce7;
  border-color: #15803d;
  color: #14532d;
}

.diagram-decision-box.fail {
  background: #fee2e2;
  border-color: #b91c1c;
  color: #7f1d1d;
}

body.dark-theme .diagram-decision-box.pass {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #86efac;
}

body.dark-theme .diagram-decision-box.fail {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   Inspector Footer Bar (Docked Persistent Toolbar)
   ========================================================================== */
.inspector-footer-bar {
  padding: 0.5rem 1.1rem;
  background: #f1f5f9;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  z-index: 5;
}

body.dark-theme .inspector-footer-bar {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.footer-tech-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tech-list .tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.inspector-action-hub {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.inspector-action-hub .project-btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
}

/* Scroll Containment: Prevent inner scroll from moving the outer webpage */
.os-workbench-window,
.workbench-file-explorer,
.file-tree-list,
.workbench-inspector-pane,
.inspector-body {
  overscroll-behavior: contain;
}

/* Live Telemetry HUD Strip */
.telemetry-hud-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0f172a;
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.hud-metric {
  padding: 0.32rem 0.5rem;
  text-align: center;
  border-right: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  background: #0f172a;
}

.hud-metric:last-child {
  border-right: none;
}

.hud-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hud-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.15;
}

.hud-val small {
  font-size: 0.65rem;
  color: #f1f5f9;
  font-weight: 700;
}

.hud-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Sub-Tab Panels */
.inspector-subtab-container {
  min-height: 160px;
}

.subtab-panel {
  display: none;
  animation: fadeInPane 0.25s ease;
}

.subtab-panel.active {
  display: block;
}

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

.card-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Gemini-Style Visual Architecture Pipeline Infographic */
.gemini-pipeline-diagram {
  background: #09121d;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 2.5px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.pipeline-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pipeline-flow-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pipeline-protocol-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.12);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Pipeline Grid Stages */
.pipeline-stages-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pipeline-stages-row {
    grid-template-columns: 1fr;
  }
}

.pipeline-stage-box {
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-stage-box:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.stage-step-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-node-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-node-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.stage-badge-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-top: auto;
  align-self: flex-start;
  border: 1px solid rgba(0,0,0,0.2);
}

.badge-yellow { background: var(--yellow); color: #000; }
.badge-cyan { background: var(--cyan); color: #000; }
.badge-mint { background: var(--mint); color: #000; }
.badge-pink { background: var(--pink); color: #000; }
.badge-purple { background: #a855f7; color: #fff; }

/* Pictorial Visual Hero Banner */
.project-pictorial-banner {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #fff;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pictorial-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.pictorial-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pictorial-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

.pictorial-visual-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00ff88;
}

.ascii-diagram-box {
  background: #09121d;
  color: #00ff88;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 1.1rem;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-x: auto;
}

.algorithm-details-box {
  background: #f8fafc;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.algorithm-details-box p {
  margin: 0 0 0.5rem 0;
}

.algorithm-details-box p:last-child {
  margin-bottom: 0;
}

.terminal-code-block {
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
}

.inspector-action-hub {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Dark Theme Adjustments for Workbench */
body.dark-theme .workbench-file-explorer {
  background: #09121d;
}

body.dark-theme .file-tree-item {
  background: #09121d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .file-tree-item:hover {
  background: #1e293b;
}

body.dark-theme .file-name {
  color: #f8fafc;
}

body.dark-theme .file-desc {
  color: #94a3b8;
}

body.dark-theme .algorithm-details-box {
  background: #0f172a;
  color: #e2e8f0;
}

/* Responsive Workbench (< 960px) */
@media (max-width: 960px) {
  .os-workbench-window {
    height: auto;
    max-height: none;
  }

  .workbench-split-grid {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .workbench-file-explorer {
    border-right: none;
    border-bottom: 3px solid var(--border);
    height: auto;
    max-height: 320px;
  }

  .file-tree-list {
    max-height: 240px;
  }

  .workbench-inspector-pane {
    height: auto;
  }

  .inspector-body {
    max-height: 650px;
  }
}

/* ==========================================================================
   Template 3: Interactive 3D Retro Cartridges & PCB Hardware Vault
   ========================================================================== */
.cartridge-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  perspective: 1200px;
}

.cartridge-scene {
  perspective: 1200px;
  min-height: 480px;
  display: flex;
}

.cartridge-scene.hidden {
  display: none !important;
}

.cartridge-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 10px 10px 14px 14px;
}

.cartridge-3d-wrapper.is-flipped {
  transform: rotateY(180deg) !important;
}

/* Dual-Sided Cartridge Faces */
.cartridge-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 14px 14px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.cartridge-3d-wrapper:hover .cartridge-face {
  box-shadow: 12px 12px 0 var(--border);
}

/* FRONT FACE */
.cartridge-front {
  background: var(--cart-color, var(--yellow));
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: space-between;
}

/* Top Tactile Grip Ribs & Notch */
.cartridge-chassis-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.cartridge-grip-ribs {
  display: flex;
  gap: 4px;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.cartridge-grip-ribs span {
  display: block;
  width: 5px;
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 1px;
}

.cartridge-notch-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #000;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 2px solid #000;
}

.notch-indicator {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88;
}

.capacity-stamp {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Foil Artwork Label */
.cartridge-foil-label {
  position: relative;
  background: var(--white);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #000;
  border-radius: 6px;
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  justify-content: space-between;
  overflow: hidden;
}

.foil-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
  transform: rotate(25deg);
  transition: transform 0.5s ease;
}

.cartridge-scene:hover .foil-glare {
  transform: rotate(25deg) translateY(30%);
}

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

.release-year-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: #000;
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.cart-chip-icon {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
  background: var(--cyan);
  padding: 0.15rem 0.5rem;
  border: 1.5px solid #000;
  border-radius: 3px;
}

.cartridge-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  color: #000;
  margin: 0;
}

.cartridge-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.cartridge-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.stat-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.25rem 0.55rem;
  border: 1.8px solid #000;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 1.5px 1.5px 0 #000;
}

/* Bottom Flip Prompt */
.cartridge-bottom-bar {
  display: flex;
  justify-content: center;
}

.flip-hint-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  background: #000;
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cartridge-3d-wrapper:hover .flip-hint-btn {
  background: var(--white);
  color: #000;
  border: 1.5px solid #000;
}

/* BACK FACE: PCB Circuit Board */
.cartridge-back {
  transform: rotateY(180deg);
  background: #09121d;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Golden PCB Connector Pins */
.pcb-gold-pins {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: #04080e;
  padding: 0.35rem 0.8rem 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pcb-gold-pins span {
  width: 14px;
  height: 18px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #000;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.4);
}

.pcb-body {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: space-between;
}

.pcb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.pcb-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #00ff88;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}

.pcb-serial {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.pcb-architecture-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pcb-spec-row {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
}

.pcb-spec-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.4px;
}

.pcb-spec-text {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #e2e8f0;
  margin: 0;
}

.pcb-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}

.pcb-tech-list .tag {
  background: #1e293b;
  color: #f1f5f9;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.cartridge-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.cartridge-flip-back-btn {
  background: #334155;
  color: #fff;
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  transition: all 0.15s ease;
}

.cartridge-flip-back-btn:hover {
  background: var(--yellow);
  color: #000;
  border-color: #000;
}

/* ==========================================================================
   Template 2 & 1 Styles (Preserved for Rollback)
   ========================================================================== */
.cricket-lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 2.2rem;
}

.lineup-card {
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, opacity 0.3s ease;
  position: relative;
}

.lineup-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border);
}

.lineup-card.hidden {
  display: none !important;
}

/* Lineup Header Strip */
.lineup-header-strip {
  background: #0f172a;
  color: #fff;
  padding: 0.65rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lineup-role-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.jersey-badge-pill {
  background: var(--yellow);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.15rem 0.5rem;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tactical-role-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-match-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #00ff88;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.5px;
}

/* Lineup Card Body */
.lineup-card-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1;
  justify-content: space-between;
}

.lineup-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lineup-project-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.lineup-project-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Tactical Match Breakdown Boxes */
.tactical-dossier-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tactical-item {
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  box-shadow: 2.5px 2.5px 0 var(--border);
  border-radius: 4px;
}

.tactical-pitch-box {
  background: #fff8eb;
}

.tactical-call-box {
  background: #eefbf7;
}

.tactical-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.tactical-pitch-box .tactical-label {
  color: #b45309;
}

.tactical-call-box .tactical-label {
  color: #047857;
}

.tactical-text {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
  color: #1e293b;
  font-weight: 500;
}

/* Broadcast Scorecard Telemetry Grid */
.broadcast-scorecard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2.5px solid var(--border);
  background: #0f172a;
  box-shadow: 3px 3px 0 var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.scorecard-metric-col {
  padding: 0.65rem 0.5rem;
  text-align: center;
  border-right: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  background: #0f172a;
}

.scorecard-metric-col:last-child {
  border-right: none;
}

.scorecard-metric-col .metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.scorecard-metric-col .metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.15;
}

.scorecard-metric-col .metric-value small {
  font-size: 0.72rem;
  color: #f1f5f9;
  font-weight: 700;
}

.scorecard-metric-col .metric-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Dark Theme Support for Tactical Boxes */
body.dark-theme .tactical-pitch-box {
  background: #291b07;
}

body.dark-theme .tactical-pitch-box .tactical-text {
  color: #fef3c7;
}

body.dark-theme .tactical-pitch-box .tactical-label {
  color: #fbbf24;
}

body.dark-theme .tactical-call-box {
  background: #062b1e;
}

body.dark-theme .tactical-call-box .tactical-text {
  color: #d1fae5;
}

body.dark-theme .tactical-call-box .tactical-label {
  color: #34d399;
}

/* Classic Template 1 Fallback Styles (Preserved for Instant Rollback) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.project-card:hover {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--border);
}

.project-window-header {
  background: var(--yellow);
  border-bottom: 3px solid var(--border);
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.window-dot-red { background: #ff5f56; }
.window-dot-yellow { background: #ffbd2e; }
.window-dot-green { background: #27c93f; }

.project-category {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-btn {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 2.5px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.project-btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
}

.project-btn-primary {
  background: var(--cyan);
}

/* ==========================================================================
   Side Quests & Experiments (Side-by-Side Horizontal Carousel)
   ========================================================================== */
.sidequests-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.sidequests-subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim, #475569);
  margin-top: 0.2rem;
}

body.dark-theme .sidequests-subtitle {
  color: #94a3b8;
}

.sidequests-controls-hud {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.4rem 0.6rem;
  border: 2.5px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  border-radius: 6px;
}

body.dark-theme .sidequests-controls-hud {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.sidequests-counter {
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text);
  padding: 0 0.5rem;
}

body.dark-theme .sidequests-counter {
  color: #f8fafc;
}

.sidequest-nav-btn {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border: 2px solid var(--border);
  box-shadow: 2px 2px 0 var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #000000;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-theme .sidequest-nav-btn {
  border-color: #000000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.sidequest-nav-btn:hover:not(.disabled) {
  background: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
}

.sidequest-nav-btn:active:not(.disabled) {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.sidequest-nav-btn.disabled, .sidequest-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Horizontal Track Container */
.sidequests-track-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.8rem 0.2rem 1.4rem 0.2rem;
}

.sidequests-carousel-track {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.2rem 1.2rem 1.6rem 1.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sidequests-carousel-track::-webkit-scrollbar {
  display: none;
}

.sidequests-carousel-track::after {
  content: '';
  flex: 0 0 280px;
  min-width: 280px;
  height: 1px;
  pointer-events: none;
}

/* Original Card Side-by-Side Sizing */
.sidequests-carousel-track .sidequest-card {
  flex: 0 0 340px;
  min-width: 340px;
  scroll-snap-align: start;
  background: var(--white);
  border: var(--border-width) solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  padding: 2.2rem 1.6rem 1.6rem 1.6rem;
  position: relative;
  transition: all 0.25s ease;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidequests-carousel-track .sidequest-card:nth-child(1) { transform: rotate(-1.5deg); background: #fffdf0; }
.sidequests-carousel-track .sidequest-card:nth-child(2) { transform: rotate(1.5deg); background: #f0f9ff; }
.sidequests-carousel-track .sidequest-card:nth-child(3) { transform: rotate(-1deg); background: #fdf2f8; }
.sidequests-carousel-track .sidequest-card:nth-child(4) { transform: rotate(1.2deg); background: #f0fdf4; }
.sidequests-carousel-track .sidequest-card:nth-child(5) { transform: rotate(-1.2deg); background: #fefce8; }
.sidequests-carousel-track .sidequest-card:nth-child(6) { transform: rotate(1deg); background: #f8fafc; }
.sidequests-carousel-track .sidequest-card:nth-child(7) { transform: rotate(-1.4deg); background: #f0fdfa; }
.sidequests-carousel-track .sidequest-card:nth-child(8) { transform: rotate(1.3deg); background: #fff1f2; }
.sidequests-carousel-track .sidequest-card:nth-child(9) { transform: rotate(-1deg); background: #faf5ff; }
.sidequests-carousel-track .sidequest-card:nth-child(10) { transform: rotate(1.5deg); background: #fffbeb; }

body.dark-theme .sidequests-carousel-track .sidequest-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.6);
}

.sidequests-carousel-track .sidequest-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 10px 10px 0 var(--border);
  z-index: 5;
}

body.dark-theme .sidequests-carousel-track .sidequest-card:hover {
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.9);
}

.sidequest-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  width: 100%;
}

.sidequest-gh-link {
  color: var(--text);
  font-size: 1.25rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidequest-gh-link:hover {
  color: var(--pink);
  transform: scale(1.25) rotate(8deg);
}

body.dark-theme .sidequest-gh-link {
  color: #e2e8f0;
}

body.dark-theme .sidequest-gh-link:hover {
  color: #f472b6;
}

.pin-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: var(--cricket-red, #dc2626);
  filter: drop-shadow(2px 2px 0 var(--border));
}

.sidequest-type {
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0;
  display: block;
}

body.dark-theme .sidequest-type {
  color: #f472b6;
}

.sidequest-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.6rem 0;
  color: var(--text);
}

body.dark-theme .sidequest-title {
  color: #f8fafc;
}

.sidequest-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: var(--text);
  opacity: 0.9;
}

body.dark-theme .sidequest-desc {
  color: #cbd5e1;
}

.sidequest-card .tags-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-top: 1.5px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.9rem;
}

body.dark-theme .sidequest-card .tags-group {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .sidequests-carousel-track .sidequest-card {
    flex: 0 0 85vw;
    min-width: 85vw;
  }
}

/* ==========================================================================
   Extra-Curricular / Spotify Lounge / Informal Section
   ========================================================================== */
.informal-lounge-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

/* Retro Cassette & Spotify Music Widget */
.music-widget-card {
  --track-glow: #1db954;
  background: var(--dark);
  color: #fff;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border), 0 0 35px rgba(29, 185, 84, 0.18);
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: box-shadow 0.5s ease, border-color 0.4s ease;
}

.music-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.8rem;
}

.music-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot-mini {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1db954;
  margin-right: 4px;
  animation: pulse-dot 1.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px #1db954); }
}

/* ==========================================================================
   Hi-Fi Vinyl Turntable & Cyber-Deck Lounge
   ========================================================================== */
/* ==========================================================================
   Hi-Fi Vinyl Turntable & Cyber-Deck Lounge
   ========================================================================== */
/* ==========================================================================
   Hi-Fi Vinyl Turntable & Cyber-Deck Lounge
   ========================================================================== */
/* ==========================================================================
   Hi-Fi Vinyl Turntable & Cyber-Deck Lounge
   ========================================================================== */
.music-widget-card {
  background: #0c0d12;
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .music-widget-card {
  background: #09090c;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.85);
}

.music-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #27272a;
  padding-bottom: 0.45rem;
  gap: 0.5rem;
}

.music-tag {
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.4px;
}

.music-tag i {
  color: #1db954;
  font-size: 1rem;
}

/* 3-State Smart Telemetry Badge */
.music-status-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0 #000;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.music-status-badge.status-live {
  background: #1db954;
  color: #fff;
}

.music-status-badge.status-recent {
  background: #0284c7;
  color: #fff;
}

.music-status-badge.status-radio {
  background: var(--yellow);
  color: #000;
}

/* 2-Column Turntable Deck Chassis */
.turntable-deck-chassis {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 0.95rem;
  background: #14151b;
  border: 2px solid #27272a;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.85), 3px 3px 0 rgba(0, 0, 0, 0.6);
  padding: 0.65rem 0.85rem;
  border-radius: 5px;
  align-items: center;
  position: relative;
}

@media (max-width: 640px) {
  .turntable-deck-chassis {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Left Column: Mechanical Turntable Stage */
.turntable-platter-stage {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turntable-deck-metal {
  position: relative;
  width: 108px;
  height: 108px;
  background: radial-gradient(circle, #27272a 0%, #111115 100%);
  border: 2px solid #3f3f46;
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.turntable-platter-base {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #09090b;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 0 0 1.5px #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #09090b 22%, transparent 23%),
    radial-gradient(circle, transparent 33%, rgba(255, 255, 255, 0.08) 34%, transparent 35%),
    radial-gradient(circle, transparent 47%, rgba(255, 255, 255, 0.06) 48%, transparent 49%),
    radial-gradient(circle, transparent 61%, rgba(255, 255, 255, 0.05) 62%, transparent 63%),
    radial-gradient(circle, #18181b 30%, #000 80%);
  border: 1.5px solid #27272a;
  box-shadow: 0 0 0 1px #000, 0 0 15px var(--track-glow, rgba(29, 185, 84, 0.35));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 3.5s linear infinite;
  animation-play-state: running;
  transition: box-shadow 0.6s ease;
}

.vinyl-disc.paused {
  animation-play-state: paused;
  box-shadow: 0 0 0 1px #000, 0 0 4px rgba(0, 0, 0, 0.4);
}

.vinyl-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    rgba(255, 255, 255, 0.12) 0deg,
    transparent 60deg,
    rgba(255, 255, 255, 0.08) 120deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.12) 240deg,
    transparent 300deg,
    rgba(255, 255, 255, 0.08) 360deg
  );
  pointer-events: none;
  z-index: 1;
}

.vinyl-center {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 2;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vinyl-spindle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4e4e7;
  border: 1px solid #000;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
  z-index: 3;
}

/* Mechanical Tonearm Assembly */
.tonearm-assembly {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 44px;
  height: 74px;
  pointer-events: none;
  z-index: 10;
  transform-origin: 32px 8px;
  transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.tonearm-assembly.tonearm-playing {
  transform: rotate(26deg);
}

.tonearm-assembly.tonearm-resting {
  transform: rotate(0deg);
}

.tonearm-base {
  position: absolute;
  top: 2px;
  right: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #f4f4f5 30%, #71717a 100%);
  border: 1px solid #000;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85);
}

.tonearm-rod {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 2.5px;
  height: 54px;
  background: linear-gradient(to right, #e4e4e7, #a1a1aa);
  border: 0.5px solid #000;
  transform-origin: top center;
  transform: rotate(-10deg);
  border-radius: 2px;
}

.tonearm-headshell {
  position: absolute;
  bottom: 5px;
  left: 8px;
  width: 10px;
  height: 14px;
  background: #18181b;
  border: 1px solid #ffd93d;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  transform: rotate(-18deg);
}

.stylus-needle {
  position: absolute;
  bottom: -3px;
  left: 3px;
  width: 1.5px;
  height: 3.5px;
  background: #ef4444;
  border-radius: 1px;
}

.turntable-strobe-light {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 5px #ef4444;
  animation: pulse-strobe 1s ease-in-out infinite;
}

.turntable-rpm-label {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 0.48rem;
  font-weight: 800;
  color: #71717a;
}

/* Right Column: Hi-Fi Console Panel */
.hifi-console-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.music-meta-top {
  margin-bottom: 0;
}

.track-source-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.05rem;
}

.music-track-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.02rem;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.music-track-artist {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-progress-container {
  margin-bottom: 0.15rem;
}

.music-progress-bar {
  width: 100%;
  height: 4.5px;
  background: #27272a;
  border: 1px solid #3f3f46;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.music-progress-fill {
  height: 100%;
  background: var(--track-glow, var(--cyan));
  width: 0%;
  transition: width 0.35s linear, background-color 0.5s ease;
}

.music-timestamps {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-family: 'Space Mono', monospace;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 700;
}

/* 16-Bar Equalizer */
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
  margin-bottom: 0.15rem;
}

.eq-bar {
  width: 3px;
  background: var(--track-glow, var(--cyan));
  height: 2px;
  border-radius: 1px;
  transition: background-color 0.5s ease;
}

.eq-bar.active:nth-child(1) { animation: eq-bounce 0.7s ease-in-out infinite 0.1s; }
.eq-bar.active:nth-child(2) { animation: eq-bounce 1.0s ease-in-out infinite 0.3s; }
.eq-bar.active:nth-child(3) { animation: eq-bounce 0.6s ease-in-out infinite 0.5s; }
.eq-bar.active:nth-child(4) { animation: eq-bounce 1.2s ease-in-out infinite 0.2s; }
.eq-bar.active:nth-child(5) { animation: eq-bounce 0.8s ease-in-out infinite 0.4s; }
.eq-bar.active:nth-child(6) { animation: eq-bounce 1.1s ease-in-out infinite 0.15s; }
.eq-bar.active:nth-child(7) { animation: eq-bounce 0.75s ease-in-out infinite 0.35s; }
.eq-bar.active:nth-child(8) { animation: eq-bounce 0.95s ease-in-out infinite 0.05s; }
.eq-bar.active:nth-child(9) { animation: eq-bounce 0.85s ease-in-out infinite 0.25s; }
.eq-bar.active:nth-child(10) { animation: eq-bounce 1.15s ease-in-out infinite 0.45s; }
.eq-bar.active:nth-child(11) { animation: eq-bounce 0.65s ease-in-out infinite 0.1s; }
.eq-bar.active:nth-child(12) { animation: eq-bounce 1.05s ease-in-out infinite 0.3s; }
.eq-bar.active:nth-child(13) { animation: eq-bounce 0.8s ease-in-out infinite 0.2s; }
.eq-bar.active:nth-child(14) { animation: eq-bounce 1.1s ease-in-out infinite 0.4s; }
.eq-bar.active:nth-child(15) { animation: eq-bounce 0.7s ease-in-out infinite 0.15s; }
.eq-bar.active:nth-child(16) { animation: eq-bounce 0.95s ease-in-out infinite 0.35s; }

/* Sudhanshu's Curated Playlists Row */
.curated-playlists-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-top: 1.5px solid #27272a;
  padding-top: 0.3rem;
  flex-wrap: nowrap;
}

.playlist-row-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  color: #a1a1aa;
  letter-spacing: 0.35px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.playlist-pills-wrap {
  display: flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.playlist-pill-link {
  background: #18181b;
  color: #e4e4e7;
  border: 1px solid #3f3f46;
  padding: 0.16rem 0.42rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.63rem;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.playlist-pill-link:hover {
  background: #27272a;
  color: #1db954;
  border-color: #1db954;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(29, 185, 84, 0.25);
}

.playlist-pill-link i {
  font-size: 0.65rem;
}

/* Music Controls */
.music-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-top: 0.1rem;
}

.music-btn {
  padding: 0.32rem 0.75rem;
  background: var(--yellow);
  color: #000;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.music-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

.music-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.music-btn.spotify-direct-btn:hover {
  background: #1ed760 !important;
}

/* ==========================================================================
   Merged Get In Touch & Spotify Lounge Section
   ========================================================================== */
.merged-lounge-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.8rem;
  align-items: stretch;
}

@media (max-width: 980px) {
  .merged-lounge-contact-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.contact-channels-board {
  background: var(--white);
  border: 4px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: flex-start;
}

body.dark-theme .contact-channels-board {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-channels-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.45rem;
}

body.dark-theme .contact-channels-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.contact-channels-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

.contact-cards-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  flex: 1;
}

@media (max-width: 580px) {
  .contact-cards-compact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-compact-card {
  background: var(--bg);
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.contact-compact-card.copyable-contact-card {
  cursor: copy !important;
  user-select: none;
}

.copy-hint {
  position: absolute;
  top: 5px;
  right: 6px;
  background: var(--dark);
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.copyable-contact-card:hover .copy-hint {
  opacity: 1;
  transform: translateY(0);
}

.copyable-contact-card.copied {
  background: #bbf7d0 !important;
  color: #14532d !important;
  transform: scale(1.03) !important;
  box-shadow: 6px 6px 0 var(--border) !important;
}

.copyable-contact-card.copied .copy-hint {
  opacity: 1;
  transform: translateY(0);
  background: #15803d;
  color: #fff;
}

body.dark-theme .copy-hint {
  background: #0f172a;
  color: #38bdf8;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .copyable-contact-card.copied {
  background: #14532d !important;
  color: #f0fdf4 !important;
}

.contact-compact-card:nth-child(1) { transform: rotate(-0.8deg); background: #e0f2fe; }
.contact-compact-card:nth-child(2) { transform: rotate(0.8deg); background: #fef08a; }
.contact-compact-card:nth-child(3) { transform: rotate(-0.6deg); background: #fce7f3; }
.contact-compact-card:nth-child(4) { transform: rotate(0.7deg); background: #fed7aa; }
.contact-compact-card:nth-child(5) { transform: rotate(-0.7deg); background: #dcfce7; }
.contact-compact-card:nth-child(6) { transform: rotate(0.6deg); background: #f3e8ff; }

body.dark-theme .contact-compact-card {
  background: #1e293b !important;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.contact-compact-card:hover {
  transform: rotate(0deg) translate(-2px, -3px) !important;
  box-shadow: 6px 6px 0 var(--border);
  z-index: 5;
}

.contact-compact-card i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid #ffffff;
  background: #15803d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  display: block;
}

.contact-compact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-compact-info strong {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact-compact-info span {
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  opacity: 0.85;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   Resume Modal
   ========================================================================== */
.resume-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.resume-modal.active {
  opacity: 1;
  visibility: visible;
}

.resume-modal-content {
  background: var(--white);
  border: 6px solid var(--border);
  box-shadow: 12px 12px 0 var(--border);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.2rem 2.5rem;
  position: relative;
}

/* ==========================================================================
   Official Resume Sheet & Modal Styles
   ========================================================================== */
.resume-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3.5px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.resume-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-action-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume-print-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--cyan);
  color: #000;
  border: 2px solid var(--border);
  box-shadow: 2.5px 2.5px 0 var(--border);
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.resume-print-btn:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
}

.resume-print-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.modal-close-btn {
  position: static;
  width: 36px;
  height: 36px;
  background: var(--pink);
  color: #000;
  border: 2px solid var(--border);
  box-shadow: 2.5px 2.5px 0 var(--border);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.modal-close-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
  background: #f43f5e;
  color: #fff;
}

.modal-close-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--border);
}

.resume-sheet {
  background: #ffffff !important;
  color: #111111 !important;
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  padding: 2rem 2.4rem;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 var(--border);
  line-height: 1.35;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px solid #000;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

.sheet-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.sheet-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.sheet-iitj-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.sheet-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  font-family: 'Times New Roman', Times, serif;
  color: #000;
  letter-spacing: 0.5px;
}

.sheet-sub {
  margin: 0;
  font-size: 0.86rem;
  color: #222;
  line-height: 1.3;
}

.sheet-header-right {
  text-align: right;
  font-size: 0.85rem;
  color: #222;
  line-height: 1.4;
}

.sheet-contact-item {
  margin: 0;
}

.sheet-contact-item a,
.sheet-links a {
  color: #0044cc;
  text-decoration: underline;
}

.sheet-section {
  margin-bottom: 0.85rem;
}

.sheet-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #000;
  padding-bottom: 0.15rem;
  margin: 0 0 0.45rem 0;
  color: #000;
  font-family: 'Times New Roman', Times, serif;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.sheet-table th,
.sheet-table td {
  border: 1px solid #333;
  padding: 0.3rem 0.55rem;
  text-align: left;
}

.sheet-table th {
  background: #f0f0f0;
  font-weight: 700;
}

.sheet-entry {
  margin-bottom: 0.65rem;
}

.sheet-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
}

.sheet-entry-title {
  font-weight: 700;
  color: #000;
}

.sheet-entry-date {
  font-weight: 700;
  font-size: 0.84rem;
  color: #333;
  white-space: nowrap;
}

.sheet-entry-subtitle {
  font-size: 0.83rem;
  margin: 0.15rem 0 0.3rem 0;
  color: #333;
  line-height: 1.35;
}

.sheet-bullet-list {
  margin: 0.2rem 0 0.4rem 1.2rem;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.38;
}

.sheet-bullet-list li {
  margin-bottom: 0.2rem;
  color: #111;
}

.sheet-skills-list {
  margin: 0.2rem 0 0.3rem 1.2rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.sheet-skills-list li {
  margin-bottom: 0.15rem;
}

.sheet-plain-text {
  font-size: 0.85rem;
  margin: 0.2rem 0 0.3rem 0;
  line-height: 1.4;
}

/* Pristine 1-Page Print Media Rule */
@media print {
  body * {
    visibility: hidden;
  }
  #resume-modal,
  #resume-modal * {
    visibility: visible;
  }
  #resume-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #fff;
    padding: 0;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .resume-modal-content {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .modal-close-btn,
  .resume-action-bar {
    display: none !important;
  }
  .resume-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 3.5rem;
  padding: 2rem 1rem 1.6rem;
  background: var(--white);
  border-top: var(--border-width) solid var(--border);
}

body.dark-theme .footer {
  background: #090d16;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.footer-compact {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--border);
}

body.dark-theme .footer-main {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.footer-brand-compact strong {
  font-size: 1.15rem;
  font-weight: 900;
  display: block;
  letter-spacing: -0.4px;
  color: var(--text);
}

.footer-brand-compact span {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.8;
  font-family: 'Space Mono', monospace;
}

.footer-nav-compact {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav-compact a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-nav-compact a:hover {
  color: var(--pink);
  transform: translateY(-2px);
}

body.dark-theme .footer-nav-compact a:hover {
  color: #f472b6;
}

.footer-bottom-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.9;
}

.footer-terminal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: #000000;
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--border);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-terminal-link i {
  color: var(--yellow);
}

.footer-terminal-link:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--border);
  background: var(--yellow);
  color: #000000;
}

.footer-terminal-link:hover i {
  color: #000000;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .skills-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-box {
    grid-column: span 1;
  }

  .informal-lounge-grid {
    grid-template-columns: 1fr;
  }

  .education-languages-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .page-wrapper {
    border: 4px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
    margin: 0 auto 10px;
  }

  .navbar {
    margin: 10px 10px 0;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 2rem 1.2rem;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-photo-frame {
    width: 260px;
    height: 260px;
  }

  .deco-code, .deco-terminal, .deco-cricket {
    display: none;
  }

  .container {
    padding: 1.5rem 1.2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cricket-arena-body {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .sidequests-grid {
    grid-template-columns: 1fr;
  }

  .informal-notes-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Loader Responsiveness */
  .loader-wrapper {
    gap: 0.6rem;
  }

  .loader-letter {
    width: 78px;
    height: 78px;
    font-size: 3.2rem;
    border: 4px solid var(--border);
    box-shadow: 6px 6px 0 var(--border);
  }

  .loader-hindi-letter {
    font-size: 3.2rem;
  }

  .loader-letter:nth-child(3) {
    min-width: 95px !important;
  }

  .loader-progress-bar {
    width: 240px;
    height: 16px;
    box-shadow: 4px 4px 0 var(--border);
  }
}
