/**
 * EDITORIAL STUDIO CRAFT DESIGN SYSTEM v4.0 (editorial-craft.css)
 * Complete Variable Remapping: Overrides all legacy dark variables in Light Mode
 * so zero dark navy/blue patches or washed-out labels ever appear in Light Mode,
 * and every element in Dark Mode has 100% matching dark editorial contrast.
 */

/* ============================================================================
   1. COMPLETE THEME TOKEN & LEGACY VARIABLE REMAPPING (LIGHT MODE)
============================================================================ */
:root,
body[data-theme="light"] {
  --bg-canvas: #faf8f5;
  --grid-line: rgba(20, 20, 22, 0.045);
  --surface-main: rgba(255, 255, 255, 0.92);
  --surface-card: #ffffff;
  --surface-subtle: #f4f1ea;
  --surface-pill: #ffffff;

  /* Tactile Pastel Case-Study Tints */
  --tint-1: #faf6ee;
  /* Warm Editorial Paper */
  --tint-2: #eef4ff;
  /* Crisp Architectural Sky (Replaces Pink) */
  --tint-3: #f1effe;
  /* Soft Studio Indigo */
  --tint-4: #eafaf2;
  /* Crisp Mint Emerald */
  --soft-purple: var(--ink-primary) !important;
  /* Kills legacy pink span text */

  --ink-primary: #111827;
  --ink-secondary: #374151;
  --ink-muted: #6b7280;

  --border-strong: #18181b;
  --border-subtle: rgba(24, 24, 27, 0.14);
  --shadow-offset: 0 4px 0 #18181b;
  --shadow-card: 0 12px 32px rgba(20, 20, 22, 0.06);

  --accent-purple: #6c5ce7;
  --accent-pill-bg: #dcd6ff;
  --accent-pill-text: #141416;
  --tape-bg: rgba(243, 234, 216, 0.88);
  --badge-bg: #eef2ff;
  --badge-text: #4338ca;

  /* CRITICAL: Override ALL legacy dark variables from style.min.css & inline HTML! */
  --smoky-black: #faf8f5 !important;
  --eerie-black-1: #ffffff !important;
  --eerie-black-2: #f8f6f0 !important;
  --eerie-black-3: #ffffff !important;
  --onyx: #f1efe9 !important;
  --jet: #d4d4d8 !important;
  --white: #111827 !important;
  --white-1: #111827 !important;
  --white-2: #1f2937 !important;
  --light-gray: #374151 !important;
  --light-gray-70: #6b7280 !important;
  --neon-blue: #6c5ce7 !important;
  --cyber-cyan: #4f46e5 !important;
  --orange-yellow-crayola: #6c5ce7 !important;
  --bg-gradient-onyx: #ffffff !important;
  --bg-gradient-jet: #ffffff !important;
  --border-gradient-onyx: #ffffff !important;
  --border-gradient-neon: #18181b !important;
}

/* ============================================================================
   2. COMPLETE THEME TOKEN & LEGACY VARIABLE REMAPPING (DARK MODE)
============================================================================ */
body[data-theme="dark"] {
  --bg-canvas: #0b0c10;
  --grid-line: rgba(255, 255, 255, 0.04);
  --surface-main: rgba(18, 20, 28, 0.92);
  --surface-card: #151822;
  --surface-subtle: #10131c;
  --surface-pill: #181b26;

  /* Tactile Rich Dark Editorial Tints */
  --tint-1: #181920;
  /* Matte Obsidian Slate */
  --tint-2: #131b2e;
  /* Deep Blueprint Navy (Replaces Pink) */
  --tint-3: #191829;
  /* Deep Studio Indigo */
  --tint-4: #11221d;
  /* Deep Emerald Slate */
  --soft-purple: var(--ink-primary) !important;

  --ink-primary: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-muted: #94a3b8;

  --border-strong: rgba(255, 255, 255, 0.24);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --shadow-offset: 0 4px 0 #000000;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5);

  --accent-purple: #818cf8;
  --accent-pill-bg: #6c5ce7;
  --accent-pill-text: #ffffff;
  --tape-bg: rgba(255, 255, 255, 0.14);
  --badge-bg: rgba(129, 140, 248, 0.15);
  --badge-text: #c7d2fe;

  /* CRITICAL: Override ALL legacy variables cleanly for Dark Mode */
  --smoky-black: #0b0c10 !important;
  --eerie-black-1: #151822 !important;
  --eerie-black-2: #10131c !important;
  --eerie-black-3: #151822 !important;
  --onyx: #1c202e !important;
  --jet: rgba(255, 255, 255, 0.16) !important;
  --white: #f8fafc !important;
  --white-1: #f8fafc !important;
  --white-2: #e2e8f0 !important;
  --light-gray: #cbd5e1 !important;
  --light-gray-70: #94a3b8 !important;
  --neon-blue: #818cf8 !important;
  --cyber-cyan: #a5b4fc !important;
  --orange-yellow-crayola: #818cf8 !important;
  --bg-gradient-onyx: #151822 !important;
  --bg-gradient-jet: #151822 !important;
  --border-gradient-onyx: #151822 !important;
  --border-gradient-neon: rgba(255, 255, 255, 0.24) !important;
}

/* ============================================================================
   3. BASE CANVAS, INTERACTIVE DOT GRID & ALWAYS-VISIBLE CURSOR
   Inspired by Gurjot Ahluwalia's portfolio — dot grid + notebook rulers
============================================================================ */
body {
  background-color: var(--bg-canvas) !important;
  color: var(--ink-secondary) !important;
  font-family: 'Plus Jakarta Sans', var(--ff-poppins), sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Interactive dot grid background — fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--grid-dot, rgba(20, 20, 22, 0.18)) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
}

/* Theme-aware dot colors */
body[data-theme="light"]::before {
  --grid-dot: rgba(20, 20, 22, 0.12);
}

body[data-theme="dark"]::before {
  --grid-dot: rgba(255, 255, 255, 0.06);
}

/* Cursor glow canvas — follows mouse with radial highlight */
#cursor-glow-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:hover #cursor-glow-canvas,
#cursor-glow-canvas.active {
  opacity: 1;
}

body[data-theme="dark"] #cursor-glow-canvas {
  mix-blend-mode: screen;
}

body[data-theme="light"] #cursor-glow-canvas {
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Notebook Ruler Margins (Left & Right) */
.notebook-ruler {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 0;
  pointer-events: none;
  background: var(--ruler-bg, #f7f6fc);
  overflow: hidden;
}

.notebook-ruler--left {
  left: 0;
  border-right: 1px solid var(--ruler-line, #dcd7fb);
}

.notebook-ruler--right {
  right: 0;
  border-left: 1px solid var(--ruler-line, #dcd7fb);
}

.notebook-ruler::before {
  content: "";
  position: absolute;
  inset: -240px 0;
  background-image:
    repeating-linear-gradient(var(--ruler-mark, #c9c1f3) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(var(--ruler-tick, rgba(28, 28, 36, 0.28)) 0 1px, transparent 1px 18px);
  background-repeat: repeat-y;
  background-size: 100% 90px, 11px 18px;
}

.notebook-ruler--left::before {
  background-position: 0 0, 100% 0;
}

.notebook-ruler--right::before {
  background-position: 0 0, 0 0;
}

body[data-theme="light"] .notebook-ruler {
  --ruler-bg: #f7f6fc;
  --ruler-line: #dcd7fb;
  --ruler-mark: #c9c1f3;
  --ruler-tick: rgba(28, 28, 36, 0.16);
}

body[data-theme="dark"] .notebook-ruler {
  --ruler-bg: #12141e;
  --ruler-line: rgba(129, 140, 248, 0.18);
  --ruler-mark: rgba(129, 140, 248, 0.22);
  --ruler-tick: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
  .notebook-ruler {
    display: none;
  }
}

/* Hide default cursor on desktop */
@media (min-width: 769px) {

  body,
  body * {
    cursor: none !important;
  }
}

body[data-theme="light"] #bg-canvas {
  opacity: 0.14 !important;
  filter: invert(1) hue-rotate(180deg);
}

body[data-theme="dark"] #bg-canvas {
  opacity: 0.24 !important;
  filter: none;
}

#custom-cursor,
.scroll-down,
.env-matrix-switcher,
.cmd-k-trigger-pill,
.awwwards-top-bar,
.executive-top-bar,
.chaos-sim-bar,
.sidebar-telemetry-bar {
  display: none !important;
}

/* ============================================================================
   ALWAYS-VISIBLE GURJOT-STYLE CURSOR (Arrow + Pill Label)
============================================================================ */
.gurjot-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  will-change: transform;
  transform: translate(0, 0);
}

/* SVG Arrow Pointer */
.gurjot-cursor__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Context Label Pill */
.gurjot-cursor__label {
  background: var(--ink-primary);
  color: var(--bg-canvas);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  box-sizing: border-box;
  margin-top: 1px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition:
    max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.gurjot-cursor__label.visible {
  max-width: 220px;
  opacity: 1;
  padding: 5px 12px;
}

.gurjot-cursor__label:not(.visible) {
  max-width: 0;
  opacity: 0;
  padding: 5px 0;
}

/* Hover state: arrow scales slightly */
.gurjot-cursor.hovering .gurjot-cursor__arrow {
  transform: scale(0.85);
}

/* Hide on mobile/touch devices */
@media (max-width: 768px) {
  .gurjot-cursor {
    display: none !important;
  }
}

/* Legacy pill cursor — hidden, replaced by gurjot-cursor */
#craft-pill-cursor {
  display: none !important;
}

/* ============================================================================
   4. STRICT LIGHT / DARK TOP-RIGHT SWITCHER & NAVBAR
============================================================================ */
.theme-toggle-dock {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-pill);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-offset);
}

.theme-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-pill-btn:hover {
  color: var(--ink-primary);
}

.theme-pill-btn.active {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
}

.navbar {
  position: sticky !important;
  top: 20px !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto 28px auto !important;
  width: max-content !important;
  background: var(--surface-pill) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 999px !important;
  padding: 6px 8px !important;
  box-shadow: var(--shadow-offset) !important;
  z-index: 100 !important;
}

.navbar-list {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
}

.navbar-link {
  color: var(--ink-primary) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
}

.navbar-link::after {
  display: none !important;
}

.navbar-link.active {
  background: var(--accent-pill-bg) !important;
  color: var(--accent-pill-text) !important;
  font-weight: 700 !important;
}

/* ============================================================================
   5. SIDEBAR & CONTACT LABELS FIX (Fixes Washed-Out EMAIL / LOCATION / RESUME Labels!)
============================================================================ */
.sidebar,
article {
  background: var(--surface-main) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 26px !important;
  box-shadow: var(--shadow-offset), var(--shadow-card) !important;
}

article {
  padding: 40px 36px !important;
  overflow: visible !important;
}

.avatar-box {
  width: 124px !important;
  height: 124px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border-strong) !important;
  background: #fde047 !important;
}

.info-content .name {
  color: var(--ink-primary) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

.sidebar .info-content .article-title {
  min-height: 30px !important;
  margin-bottom: 6px !important;
  padding-bottom: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

.sidebar .info-content .article-title::after {
  display: none !important;
}

#changing-text {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--badge-text) !important;
  background: var(--badge-bg) !important;
  border: 1px solid rgba(108, 92, 231, 0.28) !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  margin: 0 !important;
  animation: none !important;
}

/* FIX: Make EMAIL, LOCATION, RESUME labels crisp and readable (Screenshot 4!) */
.contact-title,
.contact-label {
  color: var(--ink-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
}

.contact-item a.contact-link,
.contact-info address {
  background: transparent !important;
  color: var(--ink-primary) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.icon-box {
  background: var(--badge-bg) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 12px !important;
  color: var(--badge-text) !important;
  box-shadow: 0 2px 0 var(--border-strong) !important;
}

.icon-box::before {
  display: none !important;
}

.icon-box ion-icon {
  color: var(--badge-text) !important;
  font-size: 18px !important;
}

.resume-btn {
  background: var(--ink-primary) !important;
  color: var(--bg-canvas) !important;
  border-radius: 999px !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: 1.5px solid var(--border-strong) !important;
  box-shadow: none !important;
}

.resume-btn:hover {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
}

/* ============================================================================
   6. EXPERIENCE MODAL & PROJECT MODAL FIXES (Fixes Screenshots 6 & 7 Dark Modals!)
============================================================================ */
.overlay.active {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(6px) !important;
  opacity: 1 !important;
}

.testimonials-modal,
.project-modal {
  background: var(--surface-card) !important;
  border: 2px solid var(--border-strong) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow-offset), 0 24px 60px rgba(0, 0, 0, 0.25) !important;
  color: var(--ink-primary) !important;
  padding: 32px !important;
}

.testimonials-modal .modal-title,
.testimonials-modal h4,
.testimonials-modal strong {
  color: var(--ink-primary) !important;
  font-weight: 800 !important;
  font-size: 20px !important;
}

.testimonials-modal time {
  color: var(--accent-purple) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: block;
  margin-top: 4px;
}

.testimonials-modal [data-modal-text],
.testimonials-modal [data-modal-text] p {
  color: var(--ink-secondary) !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.modal-close-btn {
  background: var(--surface-subtle) !important;
  color: var(--ink-primary) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  opacity: 1 !important;
}

.modal-close-btn:hover {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
}

/* ============================================================================
   7. CODING PROFILES 2-COLUMN COMPACT GRID FIX (Fixes Screenshot 3 Giant Empty Boxes!)
============================================================================ */
.coding-profiles-title {
  color: var(--ink-primary) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  margin-bottom: 16px !important;
}

.coding-profiles-title ion-icon {
  color: var(--accent-purple) !important;
  font-size: 20px !important;
}

.coding-profiles-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
}

.coding-profile-item {
  background: var(--surface-card) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  box-shadow: var(--shadow-offset) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.coding-profile-item:hover {
  background: var(--tint-3) !important;
  transform: translateY(-3px) !important;
}

.coding-profile-link {
  background: transparent !important;
  color: var(--ink-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  width: 100% !important;
}

.coding-profile-link::after {
  content: "↗";
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-muted);
}

.coding-profile-link ion-icon {
  color: var(--accent-purple) !important;
  font-size: 20px !important;
}

/* ============================================================================
   8. CERTIFICATIONS SECTION FIX (Fixes Screenshot 1 Dark Navy Box & Fade Overlay!)
============================================================================ */
.certificates {
  background: var(--surface-subtle) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: var(--shadow-offset) !important;
}

.certificates h3,
.cert-category-title {
  color: var(--ink-primary) !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
}

.certificate-item,
.certificate-item.premium-cert-item {
  background: var(--surface-card) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  box-shadow: var(--shadow-offset) !important;
}

.certificate-item .cert-img-wrapper {
  background: var(--surface-subtle) !important;
  border: 1px solid var(--border-subtle) !important;
}

.certificate-item p {
  color: var(--ink-primary) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Fix the fade-out gradient at bottom of Foundational Certifications */
#cert-fade-overlay {
  background: linear-gradient(to top, var(--surface-subtle), transparent) !important;
}

/* ============================================================================
   9. BACK-TO-TOP & ASK AI FLOATING BUTTONS FIX (Fixes Screenshot 5!)
============================================================================ */
#back-to-top {
  background: var(--surface-pill) !important;
  border: 1.5px solid var(--border-strong) !important;
  color: var(--ink-primary) !important;
  box-shadow: var(--shadow-offset) !important;
}

#back-to-top ion-icon {
  color: var(--ink-primary) !important;
  font-size: 20px !important;
}

#back-to-top:hover {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
}

#back-to-top:hover ion-icon {
  color: #ffffff !important;
}

#ai-chat-btn.ai-chat-fab {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  top: auto !important;
  right: auto !important;
  z-index: 9995 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: var(--surface-pill) !important;
  border: 1.5px solid var(--border-strong) !important;
  color: var(--ink-primary) !important;
  box-shadow: var(--shadow-offset) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

#ai-chat-btn.ai-chat-fab ion-icon {
  color: var(--accent-purple) !important;
  font-size: 18px !important;
}

#ai-chat-btn .ai-fab-badge::before {
  content: "Ask ";
}

/* AI chat follows the active editorial light/dark theme. */
.ai-chat-panel {
  background: var(--surface-main) !important;
  border: 1.5px solid var(--border-strong) !important;
  box-shadow: var(--shadow-offset), 0 20px 50px rgba(20, 20, 22, 0.18) !important;
}

.ai-chat-header {
  background: var(--surface-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-top-color: var(--accent-purple) !important;
}

.ai-chat-title,
.ai-chat-close {
  color: var(--ink-primary) !important;
}

.ai-chat-title ion-icon {
  color: var(--accent-purple) !important;
}

.ai-title-sub,
.ai-quick-label {
  color: var(--ink-muted) !important;
}

.ai-message.bot,
.ai-chip,
.ai-chat-form input {
  background: var(--surface-card) !important;
  color: var(--ink-primary) !important;
  border-color: var(--border-subtle) !important;
}

.ai-message.user {
  background: var(--accent-pill-bg) !important;
  color: var(--accent-pill-text) !important;
}

.ai-chat-form {
  border-top-color: var(--border-subtle) !important;
}

.ai-chat-form button {
  background: var(--accent-pill-bg) !important;
  color: var(--accent-pill-text) !important;
  border-color: var(--border-strong) !important;
}

.ai-chat-form input::placeholder {
  color: var(--ink-muted) !important;
}

.ai-chip:hover,
.ai-chat-form button:hover {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
}

/* ============================================================================
   10. HERO, MARQUEE, SERVICES, RESUME, PROJECTS & FOOTER
============================================================================ */
.craft-hero-greeting {
  font-family: 'Caveat', cursive !important;
  font-size: 64px !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  color: var(--ink-primary) !important;
  margin-bottom: 20px !important;
}

.about-text p {
  color: var(--ink-secondary) !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  margin-bottom: 16px !important;
  text-align: left !important;
}

.about-text strong {
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
}

.about-text a,
p a {
  display: inline-flex !important;
  color: var(--accent-purple) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.craft-marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  background: var(--tint-1);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 0;
  margin: 26px 0 34px;
  box-shadow: var(--shadow-offset);
}

.craft-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: craftMarquee 24s linear infinite;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.craft-marquee-dot {
  color: var(--accent-purple);
}

@keyframes craftMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.service-item,
.content-card,
.blog-post-item>a {
  position: relative !important;
  background: var(--surface-card) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 20px !important;
  padding: 24px 20px !important;
  box-shadow: var(--shadow-offset) !important;
  transition: transform 0.25s ease !important;
  overflow: visible !important;
}

.service-item::before,
.content-card::before,
.blog-post-item>a::before {
  display: none !important;
}

.service-item::after,
.blog-post-item>a::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 66px;
  height: 20px;
  background: var(--tape-bg);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.service-item-title,
.testimonials-item-title,
.blog-item-title,
.h2,
.h3,
.service-title,
.skills-title,
.testimonials-title,
.form-title {
  color: var(--ink-primary) !important;
  font-weight: 800 !important;
}

.service-item-text,
.testimonials-text,
.blog-meta :is(.blog-category, time) {
  color: var(--ink-secondary) !important;
}

/* Education Timeline & Journey */
.timeline-line {
  display: none !important;
}

.timeline-item.premium-card {
  opacity: 1 !important;
  transform: none !important;
}

.timeline-item:not(:last-child)::before {
  left: -30px !important;
  width: 2px !important;
  background: var(--border-strong) !important;
}

.timeline-item::after {
  display: none !important;
}

.timeline-dot {
  left: -35px !important;
  top: 18px !important;
  width: 12px !important;
  height: 12px !important;
  background: var(--bg-canvas) !important;
  border: 2.5px solid var(--ink-primary) !important;
  box-shadow: none !important;
}

.timeline-content {
  background: var(--tint-1) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: var(--shadow-offset) !important;
}

.timeline-year {
  background: var(--surface-card) !important;
  color: var(--accent-purple) !important;
  border: 1px solid var(--border-strong) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
}

.timeline-item-title {
  color: var(--ink-primary) !important;
  font-weight: 800 !important;
}

.timeline-text {
  color: var(--ink-secondary) !important;
}

.journey-panel {
  background: var(--tint-3) !important;
  border: 1.5px solid var(--border-strong) !important;
  box-shadow: var(--shadow-offset) !important;
}

.panel-content h4 {
  color: var(--accent-purple) !important;
}

.panel-text,
.panel-text span {
  color: var(--ink-primary) !important;
}

.skill .title-wrapper h5 {
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
}

.skill .title-wrapper data {
  color: var(--ink-muted) !important;
  font-weight: 600 !important;
}

.skill-progress-bg {
  background: var(--border-subtle) !important;
  height: 10px !important;
  border-radius: 999px !important;
}

.skill-progress-fill {
  background: var(--accent-purple) !important;
  box-shadow: none !important;
}

/* Projects Section */
article.projects .projects-header {
  display: none !important;
}

.craft-tilted-banner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 4px 0 32px;
}

.craft-Display-Title {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: var(--ink-primary) !important;
  margin-bottom: 10px !important;
}

.craft-taped-strip {
  display: inline-block;
  background: var(--tint-1);
  color: var(--ink-primary);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  transform: rotate(-1.3deg);
}

.filter-list {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 32px !important;
}

.filter-item button {
  background: var(--surface-card) !important;
  color: var(--ink-primary) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 0 var(--border-strong) !important;
}

.filter-item button.active {
  background: var(--accent-pill-bg) !important;
  color: var(--accent-pill-text) !important;
  font-weight: 700 !important;
}

section.projects .project-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 36px !important;
}

section.projects .project-item {
  display: none !important;
}

section.projects .project-item.active {
  display: block !important;
}

section.projects .project-item.active {
  position: sticky !important;
  width: 100% !important;
}

section.projects .project-item:nth-child(4n+1) {
  top: 88px !important;
}

section.projects .project-item:nth-child(4n+2) {
  top: 108px !important;
}

section.projects .project-item:nth-child(4n+3) {
  top: 128px !important;
}

section.projects .project-item:nth-child(4n+4) {
  top: 148px !important;
}

section.projects .project-item>a {
  display: grid !important;
  grid-template-columns: 1.05fr 1fr !important;
  align-items: center !important;
  gap: 30px !important;
  padding: 26px !important;
  border-radius: 24px !important;
  border: 1.5px solid var(--border-strong) !important;
  box-shadow: var(--shadow-offset), var(--shadow-card) !important;
}

section.projects .project-item:nth-child(4n+1)>a {
  background: var(--tint-1) !important;
}

section.projects .project-item:nth-child(4n+2)>a {
  background: var(--tint-2) !important;
}

section.projects .project-item:nth-child(4n+3)>a {
  background: var(--tint-3) !important;
}

section.projects .project-item:nth-child(4n+4)>a {
  background: var(--tint-4) !important;
}

.project-img-wrapper {
  height: 250px !important;
  border-radius: 16px !important;
  border: 1.5px solid var(--border-strong) !important;
  background: #101218 !important;
}

.project-category {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--accent-purple) !important;
  margin-left: 0 !important;
  margin-bottom: 8px !important;
}

.project-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--ink-primary) !important;
  margin-left: 0 !important;
  margin-bottom: 10px !important;
}

.project-desc {
  font-size: 14.5px !important;
  color: var(--ink-secondary) !important;
}

.project-secondary-image {
  display: block !important;
  width: 100% !important;
  height: 92px !important;
  margin-top: 16px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.project-source-link {
  display: inline-block !important;
  margin-top: 12px !important;
  color: var(--accent-purple) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.project-source-link:hover,
.project-source-link:focus-visible {
  color: var(--ink-primary) !important;
}

.tech-tag {
  background: var(--surface-card) !important;
  color: var(--ink-primary) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
}

/* Contact & FAQ */
.stylized-map-card {
  background: var(--tint-3) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-offset) !important;
}

.stylized-map-card h3 {
  color: var(--ink-primary) !important;
  font-weight: 800 !important;
}

.stylized-map-card p {
  color: var(--ink-secondary) !important;
}

.form-input {
  background: var(--surface-card) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 14px !important;
  color: var(--ink-primary) !important;
}

.form-btn {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-offset) !important;
  opacity: 1 !important;
}

.form-btn::before {
  display: none !important;
}

.faq-item {
  background: var(--surface-card) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-offset) !important;
}

.faq-toggle {
  color: var(--ink-primary) !important;
  font-weight: 700 !important;
}

.faq-content {
  background: transparent !important;
}

.faq-content p {
  color: var(--ink-secondary) !important;
}

/* Handwritten Footer CTA */
.craft-cta-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--accent-purple) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  border: 1.5px solid var(--border-strong) !important;
  box-shadow: var(--shadow-offset) !important;
  cursor: pointer;
}

.craft-footer-cta {
  margin-top: 48px;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--tint-1);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.craft-footer-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-purple);
}

.craft-footer-handwritten {
  font-family: 'Caveat', cursive;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink-primary);
}

.craft-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.craft-black-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.craft-black-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--ink-primary) !important;
  color: var(--bg-canvas) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}

/* ============================================================================
   13. FULL MOBILE-TO-LAPTOP PARITY (<= 1024px & <= 768px)
============================================================================ */
@media (max-width: 1024px) {
  .theme-toggle-dock {
    top: 12px !important;
    right: 12px !important;
    padding: 3px !important;
    z-index: 10001 !important;
  }

  .theme-pill-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }

  .info_more-btn {
    top: 14px !important;
    right: 14px !important;
    width: auto !important;
    height: auto !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: var(--tint-3) !important;
    color: var(--ink-primary) !important;
    border: 1.5px solid var(--border-strong) !important;
    box-shadow: 0 2px 0 var(--border-strong) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .info_more-btn::before {
    display: none !important;
  }

  .info_more-btn span {
    display: inline !important;
    font-size: 11px !important;
  }

  .info_more-btn ion-icon {
    display: inline-block !important;
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  main {
    margin: 56px 12px 96px 12px !important;
  }

  /* Keep mobile social links aligned with the existing dark resume controls. */
  .social-item .social-link {
    color: var(--bg-canvas) !important;
    background: var(--ink-primary) !important;
    border: 1.5px solid var(--border-strong) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  .social-item .social-link ion-icon {
    color: var(--bg-canvas) !important;
  }

  .social-item .social-link:hover,
  .social-item .social-link:focus-visible {
    color: #ffffff !important;
    background: var(--accent-purple) !important;
    border-color: var(--border-strong) !important;
    box-shadow: none !important;
  }

  .sidebar {
    padding: 24px 18px !important;
    border-radius: 22px !important;
    max-height: none !important;
  }

  .sidebar.active {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .sidebar:not(.active) .sidebar-info_more {
    display: none !important;
  }

  .sidebar.active .sidebar-info_more {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .avatar-box {
    width: 96px !important;
    height: 96px !important;
    margin-bottom: 4px !important;
  }

  .navbar {
    position: fixed !important;
    top: auto !important;
    bottom: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    border-radius: 999px !important;
    background: var(--surface-pill) !important;
    border: 1.5px solid var(--border-strong) !important;
    box-shadow: 0 4px 0 var(--border-strong), 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    z-index: 9998 !important;
  }

  .navbar-list {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 2px !important;
  }

  .navbar-link {
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  article {
    padding: 26px 18px !important;
    border-radius: 22px !important;
  }

  .craft-hero-greeting {
    font-size: 46px !important;
    margin-bottom: 14px !important;
  }

  .about-text p {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
  }

  .craft-marquee-strip {
    margin: 20px 0 26px !important;
    padding: 8px 0 !important;
  }

  .filter-select-box {
    display: none !important;
  }

  .filter-list {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    margin-bottom: 22px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-list::-webkit-scrollbar {
    display: none;
  }

  .filter-item {
    flex-shrink: 0 !important;
  }

  section.projects .project-list {
    gap: 24px !important;
  }

  section.projects .project-item:nth-child(4n+1) {
    top: 64px !important;
  }

  section.projects .project-item:nth-child(4n+2) {
    top: 76px !important;
  }

  section.projects .project-item:nth-child(4n+3) {
    top: 88px !important;
  }

  section.projects .project-item:nth-child(4n+4) {
    top: 100px !important;
  }

  section.projects .project-item>a {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .project-img-wrapper {
    height: 185px !important;
    border-radius: 14px !important;
  }

  .project-title {
    font-size: 20px !important;
  }

  .project-desc {
    font-size: 13.5px !important;
  }

  .coding-profiles-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .coding-profile-item {
    padding: 12px 14px !important;
  }

  .coding-profile-link {
    font-size: 12.5px !important;
  }

  .craft-footer-cta {
    padding: 28px 20px !important;
    margin-top: 32px !important;
  }

  .craft-footer-handwritten {
    font-size: 38px !important;
  }

  #ai-chat-btn.ai-chat-fab {
    bottom: 76px !important;
    left: 14px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  #back-to-top {
    bottom: 76px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* ============================================================================
   14. TOP-1% DESIGN-ENGINEER UI/UX UPGRADES
   - Proof-of-Work Bento Grid
   - Editorial Case-Study Slide-Over Sheet (Replaces "Preview Not Available")
   - Scroll-Depth Card Scaling & 1-Click Copy Email Toast
============================================================================ */

/* --- A. Proof-of-Work Bento Grid (About Section) --- */
.craft-proof-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 38px 0;
}

.craft-proof-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
  text-decoration: none !important;
}

.craft-proof-card:nth-child(1) {
  background: var(--tint-1);
}

.craft-proof-card:nth-child(2) {
  background: var(--tint-3);
}

.craft-proof-card:nth-child(3) {
  background: var(--tint-4);
}

.craft-proof-card:nth-child(4) {
  background: var(--tint-2);
}

.craft-proof-card:hover {
  transform: translateY(-4px);
}

.craft-proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.craft-proof-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.craft-proof-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.craft-proof-sub {
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* --- B. Editorial Case-Study Drawer (Replaces "Preview Not Available") --- */
.craft-case-study-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 26px;
  background: var(--surface-card);
  color: var(--ink-primary);
  overflow-y: auto;
  max-height: 78vh;
  text-align: left;
}

.cs-sheet-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.cs-sheet-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-sheet-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.cs-sheet-banner {
  width: 100%;
  height: 280px;
  max-height: 280px;
  border-radius: 16px;
  border: 1.5px solid var(--border-strong);
  overflow: hidden;
  background: #101218;
}

.cs-sheet-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cs-sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cs-sheet-block {
  background: var(--tint-1);
  border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-offset);
}

.cs-sheet-block:nth-child(2) {
  background: var(--tint-3);
}

.cs-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 6px;
  display: block;
}

.cs-block-text {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.cs-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

/* --- C. 1-Click Copy Email Toast --- */
.craft-copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 999999;
  background: var(--ink-primary);
  color: var(--bg-canvas);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.craft-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .craft-proof-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .craft-proof-value {
    font-size: 22px;
  }

  .cs-sheet-grid {
    grid-template-columns: 1fr;
  }

  .craft-case-study-sheet {
    padding: 20px 16px;
  }
}

/* ============================================================================
   15. TOP-1% INTERACTIVE EDITORIAL RESUME DOSSIER + SCREENSHOT GLITCH FIXES
============================================================================ */

/* Fix 1: Hide "DEMO MODE — DATA IS NOT STORED" banner when viewing Case Studies */
.demo-frame:has(.craft-case-study-sheet) .demo-banner {
  display: none !important;
}

/* Fix 2: Prevent #changing-text from collapsing into an empty circle when erasing */
#changing-text:empty::before {
  content: "\00a0";
}

#changing-text {
  min-width: 145px;
  justify-content: center;
}

/* --- A. Executive Resume Dossier Top Header --- */
.resume-dossier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  margin-bottom: 36px;
  background: var(--tint-1);
  border: 1.5px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-offset);
}

.dossier-meta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dossier-headline {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.dossier-sub {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* --- B. Gurjot-Style Notebook Experience & Engineering Ledger --- */
.craft-ledger-section {
  margin-bottom: 42px;
}

.craft-ledger-card {
  position: relative;
  background: var(--tint-1);
  border: 1.5px solid var(--border-strong);
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: var(--shadow-offset);
}

/* Diagonal Washi Tape on top-right corner (Just like Gurjot's Experience Screenshot!) */
.craft-ledger-card::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 28px;
  width: 76px;
  height: 22px;
  background: var(--tape-bg);
  border: 1px solid var(--border-subtle);
  transform: rotate(18deg);
  pointer-events: none;
}

.ledger-entry {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1.5px dashed var(--border-subtle);
}

.ledger-entry:first-child {
  padding-top: 4px;
}

.ledger-entry:last-child {
  padding-bottom: 4px;
  border-bottom: none;
}

.ledger-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.ledger-org {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
}

.ledger-loc {
  font-size: 12px;
  color: var(--ink-muted);
}

.ledger-role-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.ledger-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  counter-reset: ledger-bullet;
}

.ledger-bullets li {
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
  counter-increment: ledger-bullet;
}

.ledger-bullets li::before {
  content: counter(ledger-bullet, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--accent-purple);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ledger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ledger-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--ink-primary);
  border: 1px solid var(--border-strong);
}

/* --- C. Education Score Badges & Coursework Chips --- */
.edu-header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.edu-score-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 2px 0 var(--border-strong);
}

.edu-coursework-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* --- D. Interactive Year-Tab Coding Journey Scrubber (Replaces 200vh Scroll Trap) --- */
.journey-horizontal-section {
  margin: 38px 0 !important;
}

.journey-wrapper {
  min-height: auto !important;
  height: auto !important;
}

.craft-journey-scrubber {
  background: var(--tint-3);
  border: 1.5px solid var(--border-strong);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-offset);
}

.scrubber-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.scrubber-year-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-card);
  color: var(--ink-secondary);
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scrubber-year-btn.active,
.scrubber-year-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--border-strong);
}

.scrubber-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scrubber-stage-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-primary);
}

.scrubber-stage-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* --- E. 6-Domain Engineering Skill Matrix (Replaces Arbitrary 60% Bars) --- */
.craft-skill-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.skill-domain-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-strong);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-domain-card:nth-child(1) {
  background: var(--tint-1);
}

.skill-domain-card:nth-child(2) {
  background: var(--tint-3);
}

.skill-domain-card:nth-child(3) {
  background: var(--tint-4);
}

.skill-domain-card:nth-child(4) {
  background: var(--tint-2);
}

.skill-domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.skill-domain-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-primary);
}

.skill-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-matrix-chip {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 2px 0 var(--border-strong);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.skill-matrix-chip:hover {
  transform: translateY(-2px);
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
}

/* --- F. Key Honours & Hackathon Strip (From Resume PDF) --- */
.craft-honours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.honour-badge-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 3px 0 var(--border-strong);
}

.honour-icon {
  font-size: 22px;
  line-height: 1;
}

.honour-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.honour-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .ledger-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .craft-skill-matrix,
  .craft-honours-grid {
    grid-template-columns: 1fr;
  }

  .craft-ledger-card {
    padding: 22px 18px;
  }
}

/* ============================================================================
   16. RESUME NEXT-LEVEL INTERACTIVE UX PATCH
============================================================================ */

/* 1. Fix pink unreadable text inside Education timeline spans */
.timeline-list span.edu-score-badge {
  background: #10b981 !important;
  color: #ffffff !important;
  border: 1.5px solid var(--border-strong) !important;
  font-weight: 800 !important;
}

.timeline-list span.ledger-tag {
  background: var(--surface-card) !important;
  color: var(--ink-primary) !important;
  border: 1.5px solid var(--border-strong) !important;
  font-weight: 700 !important;
}

.timeline-list span.timeline-year {
  background: var(--surface-card) !important;
  color: var(--accent-purple) !important;
  border: 1.5px solid var(--border-strong) !important;
  font-weight: 700 !important;
}

/* Clean neutral card surface for Education with subtle hover lift */
.timeline-content {
  background: var(--surface-card) !important;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.timeline-item.premium-card:hover .timeline-content,
.timeline-item.scroll-focused .timeline-content {
  transform: translateX(6px) translateY(-2px) !important;
  background: var(--tint-3) !important;
}

.timeline-item.scroll-focused .timeline-dot {
  background: var(--accent-purple) !important;
  transform: scale(1.35) !important;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2) !important;
}

/* 2. Resume Sub-Navigation Quick-Jump Pill Bar */
.resume-quickjump-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border-subtle);
  width: 100%;
}

.rj-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-card);
  color: var(--ink-secondary);
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.18s ease;
}

.rj-pill:hover {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  transform: translateY(-2px);
  box-shadow: 0 2px 0 var(--border-strong);
}

/* 3. Interactive Skill-to-Project X-Ray Chips */
.skill-matrix-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.skill-matrix-chip.active-xray {
  background: var(--ink-primary) !important;
  color: var(--bg-canvas) !important;
  transform: translateY(-3px);
  box-shadow: 0 4px 0 var(--accent-purple) !important;
}

/* Dynamic Proof-of-Use Drawer below Tech Stack Matrix */
.skill-xray-inspector {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--tint-3);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-offset);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-primary);
  transition: all 0.2s ease;
}

.xray-skill-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-purple);
  color: #ffffff;
}

/* ============================================================================
   17. PHASE 3 — TORN PAPER EDGES, TAPE CORNERS & PAPER TEXTURES
   (Gurjot-style editorial paper feel across all cards)
============================================================================ */

/* Torn paper edge clip-path for experience entries */
.craft-ledger-card {
  isolation: isolate;
}

.craft-ledger-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 5px, 12% 0, 24% 4px, 39% 1px, 58% 5px, 77% 0, 91% 3px, 100% 0,
      100% calc(100% - 5px), 90% 100%, 74% calc(100% - 4px), 56% 100%,
      35% calc(100% - 3px), 17% 100%, 0 calc(100% - 4px));
  border-radius: inherit;
  background: inherit;
}

/* Diagonal tape strips on card corners (like real sticky tape) */
.paper-tape {
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 7px, transparent 7px 14px),
    var(--tape-bg);
  width: clamp(66px, 8vw, 106px);
  height: 30px;
  position: absolute;
  box-shadow: 0 2px 6px rgba(26, 25, 23, 0.16);
}

.paper-tape--tl {
  top: -13px;
  left: -32px;
  transform: rotate(-45deg);
}

.paper-tape--tr {
  top: -13px;
  right: -32px;
  transform: rotate(45deg);
}

.paper-tape--bl {
  bottom: -13px;
  left: -32px;
  transform: rotate(45deg);
}

.paper-tape--br {
  bottom: -13px;
  right: -32px;
  transform: rotate(-45deg);
}

/* Paper noise texture overlay on card surfaces */
.craft-proof-card,
.skill-domain-card,
.honour-badge-card,
.craft-ledger-card,
.timeline-content,
.craft-journey-scrubber {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.035'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
}

/* ============================================================================
   18. PHASE 4 — IMPROVED STICKY SCROLL STACK + PROGRESS DOTS
============================================================================ */

/* Project card depth scaling on scroll */
section.projects .project-item.active>a {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease,
    box-shadow 0.4s ease !important;
  transform-origin: 50% 0;
  will-change: transform, filter;
}

/* Scroll progress dots (right-edge tracker) */
.scroll-progress-dots {
  position: fixed;
  top: 50%;
  right: clamp(16px, 3vw, 40px);
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-progress-dots.visible {
  opacity: 1;
}

.scroll-progress-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--border-subtle);
  background: var(--surface-card);
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease, border-width 0.35s ease;
}

.scroll-progress-dot.active {
  border: 2px solid var(--accent-purple);
  background: var(--tint-3);
  height: 36px;
}

@media (max-width: 640px) {
  .scroll-progress-dots {
    display: none;
  }
}

/* ============================================================================
   19. PHASE 5 — SCROLL REVEAL CHOREOGRAPHY & MICRO-ANIMATIONS
============================================================================ */

/* Scroll reveal base state */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements */
.scroll-reveal.delay-1 {
  transition-delay: 0.08s;
}

.scroll-reveal.delay-2 {
  transition-delay: 0.16s;
}

.scroll-reveal.delay-3 {
  transition-delay: 0.24s;
}

.scroll-reveal.delay-4 {
  transition-delay: 0.32s;
}

/* Ken Burns zoom entrance for project images */
.project-img-wrapper img,
.cs-sheet-banner img {
  transition: transform 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  transform: scale(1.08);
}

.project-item.active:hover .project-img-wrapper img,
.scroll-reveal.is-visible .project-img-wrapper img {
  transform: scale(1) !important;
}

/* Hero entrance staggered animation */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.craft-hero-greeting {
  animation: heroFadeUp 0.6s ease-out 0.05s both;
}

.about-text {
  animation: heroFadeUp 0.6s ease-out 0.2s both;
}

.craft-marquee-strip {
  animation: heroFadeUp 0.6s ease-out 0.35s both;
}

.craft-proof-bento {
  animation: heroFadeUp 0.6s ease-out 0.45s both;
}

/* Marquee pause on hover */
.craft-marquee-strip:hover .craft-marquee-track {
  animation-play-state: paused;
}

/* Service card hover micro-animation */
.service-item:hover {
  transform: translateY(-5px) rotate(-0.5deg) !important;
}

/* Blog card hover micro-animation */
.blog-post-item>a:hover {
  transform: translateY(-4px) rotate(0.3deg) !important;
}

/* Certificate card 3D tilt hint */
.certificate-item:hover {
  transform: perspective(800px) rotateX(-2deg) rotateY(2deg) translateY(-3px) !important;
}

/* ============================================================================
   20. PHASE 6 — PEEL NOTES, MULTI-COLOR CARD CYCLING & TYPOGRAPHY
============================================================================ */

/* Peel-corner sticky notes */
.peel-note {
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  background: #f1e7cd;
  border-radius: 20px 20px 4px;
  max-width: min(90vw, 560px);
  margin: 4px 0 0;
  padding: 13px 42px 14px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: inline-block;
  position: relative;
  box-shadow: 5px 5px rgba(26, 25, 23, 0.18);
}

.peel-note::after {
  content: "";
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  filter: drop-shadow(-2px -2px rgba(26, 25, 23, 0.16));
  background: linear-gradient(135deg, #faf3e1 0%, #ecdfbe 42%, #d7c69e 100%);
  width: 28px;
  height: 28px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.peel-note--left {
  transform: rotate(-2.5deg);
}

.peel-note--right {
  transform: rotate(2.5deg);
}

body[data-theme="dark"] .peel-note {
  background: #2a2520;
  color: #f8fafc;
  box-shadow: 5px 5px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .peel-note::after {
  background: linear-gradient(135deg, #2a2520 0%, #1e1a15 42%, #151210 100%);
}

@media (max-width: 640px) {
  .peel-note {
    border-radius: 14px 14px 3px;
    padding: 8px 26px 9px 15px;
    font-size: 12px;
    box-shadow: 4px 4px rgba(26, 25, 23, 0.18);
  }

  .peel-note::after {
    width: 20px;
    height: 20px;
  }
}

/* Multi-color card cycling for testimonials (Gurjot-style 3-color rotation) */
[data-testimonials-item]:nth-child(3n+1) {
  background: var(--tint-3) !important;
}

[data-testimonials-item]:nth-child(3n+2) {
  background: var(--tint-2) !important;
}

[data-testimonials-item]:nth-child(3n+3) {
  background: var(--tint-1) !important;
}

/* Handwritten section accents using Caveat font (Gurjot-style) */
.craft-handwritten-accent {
  font-family: 'Caveat', cursive;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-primary);
  display: inline-block;
}

/* Interactive card border glow on hover */
.craft-proof-card:hover,
.skill-domain-card:hover,
.honour-badge-card:hover {
  border-color: var(--accent-purple) !important;
  box-shadow: var(--shadow-offset), 0 0 0 1px rgba(108, 92, 231, 0.15) !important;
}

/* Content card colorful gradient on hover */
.content-card:hover {
  background: var(--tint-3) !important;
  transform: translateY(-4px) !important;
}

/* Smooth page-section slide transitions */
article {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Footer CTA bounce animation */
@keyframes ctaBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.craft-cta-pill:hover {
  animation: ctaBounce 0.5s ease 1;
  box-shadow: 0 8px 0 var(--border-strong), 0 12px 24px rgba(108, 92, 231, 0.2) !important;
}

/* Social pill hover effect */
.craft-black-pill:hover {
  background: var(--accent-purple) !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 4px 4px var(--border-strong) !important;
}

/* ============================================================================
   17. NEXT-LEVEL UI/UX POLISH: HERO DECK, ★ BADGES & NAVBAR CLEARANCE
============================================================================ */

/* Fix 1: Give article headers breathing room below the sticky pill navbar */
article>header {
  padding-top: 12px !important;
  margin-bottom: 24px !important;
}

article.resume>header .article-title,
article.blog>header .article-title,
article.contact>header .article-title {
  margin-top: 8px !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

/* Fix 2: Ensure floating cursor pill never clips or wraps */
#craft-pill-cursor {
  width: max-content !important;
  max-width: none !important;
  overflow: visible !important;
  z-index: 2147483647 !important;
}

/* --- A. Mobile-Only Interactive Stackable Hero Deck & Flagship Badges --- */
/* By default on wider screens (laptops & desktops): preserve previous look 100% */
.craft-hero-split {
  display: contents;
}

.craft-deck-stage {
  display: none !important;
}

.craft-hero-proj-badge {
  display: none !important;
}

/* Mobile & Small Screens (<= 900px): Activate the new interactive Polaroids & Badges */
@media (max-width: 900px) {
  .craft-hero-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }

  .craft-deck-stage {
    position: relative;
    height: 330px;
    width: 100%;
    margin: 10px 0 18px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    perspective: 1000px;
  }

  .craft-deck-card {
    position: absolute;
    width: 100%;
    max-width: 310px;
    height: 315px;
    background: var(--surface-card);
    border: 2px solid var(--border-strong);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--shadow-offset), var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    will-change: transform;
  }

  .craft-deck-card[data-pos="0"] {
    z-index: 3;
    transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(1);
  }

  .craft-deck-card[data-pos="1"] {
    z-index: 2;
    transform: translate3d(14px, 12px, -20px) rotate(3deg) scale(0.95);
    background: var(--tint-3);
  }

  .craft-deck-card[data-pos="2"] {
    z-index: 1;
    transform: translate3d(-14px, 22px, -40px) rotate(-4deg) scale(0.9);
    background: var(--tint-1);
  }

  .craft-deck-card:hover[data-pos="0"] {
    transform: translate3d(0, -6px, 0) rotate(0deg) scale(1.02);
  }

  .deck-card-img {
    width: 100%;
    height: 175px;
    border-radius: 14px;
    border: 1.5px solid var(--border-strong);
    overflow: hidden;
    background: #101218;
  }

  .deck-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .deck-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }

  .deck-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink-primary);
    line-height: 1.25;
  }

  .deck-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    padding-top: 6px;
    border-top: 1px dashed var(--border-subtle);
  }

  /* Gurjot-Style "★ HERO PROJECT" Badge on Top Project Cards (Mobile-Only) */
  .craft-hero-proj-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    background: var(--surface-card);
    color: var(--ink-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    box-shadow: 0 3px 0 var(--border-strong);
  }

  .craft-hero-proj-badge .star {
    color: #f59e0b;
  }
}

/* ============================================================================
   18. SENIOR DESIGN-ENGINEER UI PHYSICS (Spring Glider, Magnetic Pull, 3D Card Flip)
============================================================================ */

/* --- A. True Spring-Physics Sliding Pill in Navbar & Filter Bar --- */
.navbar-list,
.filter-list {
  position: relative !important;
}

.navbar-link,
.filter-item button {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.filter-list {
  background: var(--surface-pill);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  box-shadow: var(--shadow-offset);
}

.spring-glider-pill {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent-pill-bg);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1.28, 0.36, 1),
    width 0.36s cubic-bezier(0.22, 1.28, 0.36, 1),
    height 0.3s ease;
}

/* --- B. Neighbor-Aware Polaroid Fan-Out Physics (Services & Blog) --- */
.service-list:hover .service-item:not(:hover),
.blog-posts-list:hover .blog-post-item:not(:hover) > a {
  opacity: 0.72;
  transform: scale(0.98) rotate(2deg) !important;
}

.service-item,
.blog-post-item > a {
  transition:
    transform 0.35s cubic-bezier(0.22, 1.25, 0.36, 1),
    opacity 0.25s ease,
    box-shadow 0.25s ease !important;
}

/* --- C. In-Place 3D Architecture Spec Flip on Project Thumbnails --- */
.project-img-wrapper {
  perspective: 1000px;
}

.proj-spec-toggle-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 6;
  background: var(--surface-pill);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 3px 0 var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.proj-spec-toggle-btn:hover {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  transform: translateY(-2px);
}

.proj-backplate-specs {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--surface-card);
  color: var(--ink-primary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-img-wrapper.specs-open .proj-backplate-specs {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.spec-row-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 12.5px;
}

.spec-row-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
}

.spec-row-val {
  font-weight: 700;
  color: var(--ink-primary);
  text-align: right;
}