/* ==========================================================================
   RAJVIR // REEL REPLICA STYLESHEET (v4.0)
   Exact Visual & Spatial Match for Instagram Reel (DfaAyiJIf5o)
   Theme: Crimson Red & Deep Dark, Hollow PORTFOLIO Outline, Solid Red Name,
   Ultra-Responsive 3-Column Grid (No Cropping), and Swarm Cursors
   ========================================================================== */

:root {
  --bg-deep: #08090d;
  --bg-card: #0f111a;
  --bg-card-elevated: #151824;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-red: rgba(239, 68, 68, 0.45);
  --border-blue: rgba(59, 130, 246, 0.5);

  --crimson: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.28);
  --steel: #94a3b8;
  --titanium-white: #f8fafc;
  --emerald: #10b981;
  --blue-swarm: #3b82f6;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-cursive: 'Caveat', cursive;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background-color: var(--bg-deep);
  color: var(--titanium-white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100vw;
  min-height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Hide system default cursor everywhere (replaced by Red & Black custom arrow cursor) */
html, body, * {
  cursor: none !important;
}

/* Custom Red & Black Pointer Cursor (Sharp Arrow, No Circle, No Glow) */
#custom-mouse-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100005;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#custom-mouse-cursor.visible {
  opacity: 1;
}

/* Subtle Scroll Prompt on Blank Initial Canvas */
.scroll-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  color: rgba(248, 250, 252, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 26, 0.75);
  padding: 8px 18px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: pulse-dot 2.2s infinite ease-in-out;
}

.scroll-prompt.hidden {
  opacity: 0;
  transform: translate(-50%, -60%);
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Swarm Canvas & Multiplayer Cursors Layer
   -------------------------------------------------------------------------- */
#swarm-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
}

#swarm-cursors-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease;
}

#swarm-cursors-container.active {
  opacity: 1;
}

.swarm-multi-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.swarm-cursor-svg {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  flex-shrink: 0;
}

.swarm-cursor-pill {
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transform: translate(4px, 10px);
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Giant Tall Condensed PORTFOLIO Background Text (Exact Reference Match, No Glow)
   -------------------------------------------------------------------------- */
.hero-bg-outline-text {
  position: relative;
  font-family: 'Outfit', var(--font-display), sans-serif;
  font-size: clamp(3.8rem, 13.2vw, 12.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.94;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.42) 0%, rgba(127, 29, 29, 0.16) 58%, rgba(20, 4, 6, 0.04) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(239, 68, 68, 0.85);
  margin-top: 0;
  padding-top: 4px;
  margin-bottom: -8px;
  text-align: center;
  width: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.98;
}

/* --------------------------------------------------------------------------
   Top Floating Pill HUD Navbar (Exact Reference Match)
   -------------------------------------------------------------------------- */
.hud-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 96vw;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 18px;
  background: rgba(12, 14, 22, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  z-index: 1000;
  box-sizing: border-box;
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-logo-badge {
  color: var(--crimson);
  font-size: 0.75rem;
}

.hud-logo-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.hud-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.hud-link {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.hud-link:hover {
  color: #fff;
}

/* Compact Dropdown for Extra Sections */
.hud-dropdown {
  position: relative;
}

.hud-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
}

.hud-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 145px;
  background: rgba(12, 14, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1005;
}

.hud-dropdown:hover .hud-dropdown-menu,
.hud-dropdown:focus-within .hud-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hud-dropdown-item {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--steel);
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.hud-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fff;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hud-sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  width: 28px;
  height: 26px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.hud-sound-btn:hover {
  border-color: var(--crimson);
  color: #fff;
  background: rgba(239, 68, 68, 0.12);
}

.hud-sound-btn.muted {
  color: var(--steel);
  opacity: 0.7;
}

.hud-status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
}

.green-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 1.2s infinite;
  display: inline-block;
}

.hud-btn-dispatch {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--border-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.hud-btn-dispatch:hover {
  background: var(--crimson);
  color: #fff;
}

/* --------------------------------------------------------------------------
   SECTION 1: HERO (100% RESPONSIVE 3-COLUMN LAYOUT - NO CROPPING)
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 68px clamp(1.25rem, 4vw, 3.5rem) 3rem clamp(1.25rem, 4vw, 3.5rem);
  z-index: 2;
  box-sizing: border-box;
}

.hero-three-column-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: min(1360px, 94vw);
  width: 100%;
  margin: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-three-column-grid.built {
  opacity: 1;
  transform: scale(1);
}

/* --- COLUMN 1: LEFT OPERATOR INFO --- */
.hero-col-left {
  display: flex;
  flex-direction: column;
}

.hero-cursive-intro {
  font-family: var(--font-cursive);
  font-size: 1.9rem;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 2px;
  transform: rotate(-1.5deg);
}

.hero-name-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--crimson);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  padding: 5px 16px;
  border-radius: 4px;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.hero-system-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--steel);
  margin-bottom: 0.95rem;
  align-self: flex-start;
}

.hero-bio {
  font-size: 0.84rem;
  color: var(--steel);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  max-width: 420px;
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.4rem;
}

.btn-dispatch {
  background: #0f1017;
  border: 1px solid var(--border-red);
  color: #ffffff;
  padding: 8px 15px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-dispatch:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-2px);
}

.btn-architecture {
  background: #12141f;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  padding: 8px 15px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.btn-architecture:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats-row {
  display: flex;
  gap: 1.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.stat-val.red-text {
  color: var(--crimson);
}

.stat-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--steel);
}

/* --- COLUMN 2: CENTER PORTRAIT CARD (COMPACT & PROPORTIONATE) --- */
.hero-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  background: #0a0b12;
  border: 1px solid var(--border-red);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0b12;
}

.portrait-svg,
.portrait-img {
  width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: contain;
  display: block;
}

.portrait-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 11, 18, 0.95);
  border: 1px solid var(--border-red);
  padding: 3px 10px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #fff;
  margin-top: -12px;
  margin-bottom: 8px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* --- COLUMN 3: RIGHT FLAGSHIPS (COMPACT) --- */
.hero-col-right {
  display: flex;
  flex-direction: column;
}

.flagship-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.flagship-card-mini:hover, .flagship-card-mini.active-glow {
  border-color: var(--border-red);
  background: var(--bg-card-elevated);
}

.card-mini-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crimson);
}

.card-mini-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.card-mini-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--steel);
  line-height: 1.35;
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.4rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   SECTION FRAMEWORK (SECTIONS 2-5)
   -------------------------------------------------------------------------- */
section {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5.5rem clamp(1.25rem, 4vw, 3.5rem) 4rem clamp(1.25rem, 4vw, 3.5rem);
  box-sizing: border-box;
}

/* Swarm Target Elements & Atomic Layers: Blank Until Scroll (Except PORTFOLIO Title) */
.swarm-target,
.swarm-layer {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  pointer-events: none;
  will-change: opacity, transform;
}

.swarm-target.built,
.swarm-layer.built {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Keep PORTFOLIO giant header always visible at start */
#bg-portfolio-text {
  opacity: 0.98 !important;
  transform: none !important;
}

.section-container {
  max-width: min(1360px, 94vw);
  width: 100%;
  box-sizing: border-box;
}

.section-meta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--crimson);
  letter-spacing: 1.5px;
  margin-bottom: 3px;
}

.section-eyebrow-red {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.section-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   SECTION 2: ABOUT / PHILOSOPHY (Exact Video Frame 00:08)
   -------------------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.8rem;
  width: 100%;
  align-items: stretch;
}

.philosophy-text-col,
.philosophy-specs-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.philosophy-text-col {
  justify-content: space-between;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  min-width: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.philosophy-card:hover {
  border-color: var(--border-blue);
}

.philosophy-card-featured {
  border-color: var(--border-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 65%);
}

.about-card-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.about-badge-red {
  background: rgba(239, 68, 68, 0.16);
  color: var(--crimson);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
}

.about-badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
}

.about-role-label {
  color: var(--steel);
  letter-spacing: 0.6px;
}

.about-card-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.philosophy-card p {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.6;
}

.philosophy-card strong {
  color: #fff;
}

.blueprint-specs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  min-width: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.about-timeline {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.about-timeline-title {
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: var(--crimson);
  font-weight: 700;
}

.about-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  flex-shrink: 0;
}

.about-timeline-item.active .tl-dot {
  background: var(--crimson);
}

.tl-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tl-year {
  font-size: 0.58rem;
  color: var(--steel);
}

.about-timeline-item.active .tl-year {
  color: var(--crimson);
  font-weight: 700;
}

.tl-desc {
  font-size: 0.7rem;
  color: #e2e8f0;
}

.specs-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.specs-num {
  color: var(--crimson);
  font-weight: 700;
}

.specs-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.specs-manifesto {
  font-size: 0.75rem;
  color: var(--steel);
  line-height: 1.45;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.7rem;
}

.spec-label {
  color: var(--steel);
  flex-shrink: 0;
}

.spec-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   SECTION 3: TECHNICAL ARSENAL
   -------------------------------------------------------------------------- */
.skills-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 1.8rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--steel);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.skills-matrix-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.skill-matrix-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.skill-matrix-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.skill-row-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-row-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.6px;
}

.skill-row-sub {
  font-size: 0.78rem;
  color: var(--steel);
}

.skill-row-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 4px;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.matrix-pill:hover {
  border-color: var(--crimson);
  color: #fff;
  background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 760px) {
  .skill-matrix-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.2rem;
  transition: all var(--transition-fast);
}

.skill-card:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

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

.skill-tag-level {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--crimson);
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.skill-desc {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.skill-meter {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-meter-fill {
  height: 100%;
  background: var(--crimson);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 4: PROJECTS (BHARATNET)
   -------------------------------------------------------------------------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flagship-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.8rem;
}

.project-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.project-badge-red {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: var(--crimson);
  padding: 2px 7px;
  border-radius: 3px;
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--steel);
}

.project-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.project-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--crimson);
  margin-bottom: 0.95rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.8rem;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.metric-num.red-text {
  color: var(--crimson);
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--steel);
}

/* --------------------------------------------------------------------------
   SECTION 5: CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.8rem;
}

.contact-details-col, .contact-form-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.8rem;
}

.contact-channel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.channel-icon {
  font-size: 1.15rem;
  color: var(--crimson);
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--steel);
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fff;
}

.green-text {
  color: var(--emerald) !important;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel);
  margin-bottom: 0.3rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 11px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--crimson);
}

.form-textarea {
  min-height: 85px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   AUTHENTIC BOTTOM SWARM TOOLBAR (Video Frame 00:05 & 00:08)
   -------------------------------------------------------------------------- */
.swarm-bottom-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(14, 16, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 13px;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #cbd5e1;
}

.agent-circles-cluster {
  display: flex;
  align-items: center;
  margin-right: 2px;
}

.agent-circles-cluster .circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #0e1018;
  margin-left: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: #fff;
}

.agent-circles-cluster .circle:first-child {
  margin-left: 0;
}

.swarm-bar-indicator {
  white-space: nowrap;
}

.swarm-progress-track {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.swarm-progress-bar {
  height: 100%;
  background: var(--blue-swarm);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.swarm-bar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.swarm-bar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.swarm-bar-btn.primary {
  background: var(--blue-swarm);
  border-color: var(--blue-swarm);
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   SECTION 4: EXPERIENCE
   -------------------------------------------------------------------------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition-fast);
}

.experience-card:hover {
  border-color: var(--border-blue);
}

.experience-card-active {
  border-color: var(--border-red);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, var(--bg-card) 70%);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.exp-badge-red,
.exp-badge-neutral {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.45rem;
}

.exp-badge-red {
  background: rgba(239, 68, 68, 0.16);
  color: var(--crimson);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.exp-badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
}

.exp-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.exp-org {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel);
}

.exp-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--steel);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.exp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exp-points li {
  position: relative;
  padding-left: 14px;
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.55;
}

.exp-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-size: 0.75rem;
}

.exp-points strong {
  color: #fff;
}

/* Projects Secondary Grid */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.projects-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.project-badge-neutral {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 3px;
}

.project-heading-sm {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.project-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.75rem;
}

.preview-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.preview-tab-btn:hover,
.preview-tab-btn.active {
  border-color: var(--crimson);
  color: #fff;
  background: rgba(239, 68, 68, 0.14);
}

.project-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #08090d;
  margin: 0.75rem 0 0.95rem 0;
}

.project-preview-hero {
  border-color: rgba(239, 68, 68, 0.25);
}

.project-preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-preview-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8, 9, 13, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   SECTION 6 & 8: SERVICES & BEYOND CODING GRIDS
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.service-card,
.beyond-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.4rem;
  transition: border-color var(--transition-fast);
}

.service-card:hover,
.beyond-card:hover {
  border-color: var(--border-red);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.service-desc {
  font-size: 0.84rem;
  color: var(--steel);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 7: EDUCATION & CERTIFICATIONS
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.45rem;
}

.edu-institute {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}

.edu-desc {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.55;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   SECTION 9: RESUME DOSSIER & HANGING PENDULUM PREVIEW
   -------------------------------------------------------------------------- */
.resume-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.2rem;
  align-items: center;
}

.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.hanging-resume-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  perspective: 900px;
}

.hanging-anchor-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid #fff;
  z-index: 3;
}

.hanging-resume-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
  user-select: none;
  touch-action: none;
}

.hanging-resume-rig.swing-active {
  opacity: 1;
}

.hanging-strap {
  width: 14px;
  height: 36px;
  background: repeating-linear-gradient(
    45deg,
    #b91c1c,
    #b91c1c 3px,
    #7f1d1d 3px,
    #7f1d1d 6px
  );
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(0, 0, 0, 0.45);
}

.hanging-clasp {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -10px;
  z-index: 4;
}

.clasp-ring {
  width: 14px;
  height: 8px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #0f172a;
}

.clasp-jaw {
  width: 28px;
  height: 12px;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 3px;
  margin-top: -2px;
}

.hanging-resume-sheet {
  position: relative;
  width: 100%;
  max-width: 330px;
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.45rem 1.05rem 1rem 1.05rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  overflow: hidden;
  will-change: transform;
}

.sheet-slot-hole {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 6px;
  border-radius: 4px;
  background: #0f172a;
  border: 1px solid #cbd5e1;
}

.sheet-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.65) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hanging-resume-sheet:hover .sheet-sheen {
  opacity: 0.55;
}

.hanging-resume-sheet:hover {
  border-color: var(--crimson);
}

.sheet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.sheet-tags span {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
  padding: 1.5px 5px;
  border-radius: 2px;
}

.sheet-header {
  border-bottom: 1.5px solid #ef4444;
  padding-bottom: 0.4rem;
}

.sheet-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.4px;
}

.sheet-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #dc2626;
}

.sheet-meta {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #475569;
  margin-top: 2px;
}

.sheet-block {
  font-size: 0.56rem;
  line-height: 1.42;
  color: #334155;
}

.sheet-sec-title {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #e2e8f0;
}

.sheet-hover-badge {
  margin-top: 0.35rem;
  text-align: center;
  background: #0f172a;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.hanging-resume-sheet:hover .sheet-hover-badge {
  background: #ef4444;
}

@keyframes resumePendulum {
  0%   { transform: rotate(-10deg) translateY(-16px); }
  22%  { transform: rotate(7deg) translateY(0); }
  45%  { transform: rotate(-4.5deg); }
  66%  { transform: rotate(2.4deg); }
  84%  { transform: rotate(-1.1deg); }
  100% { transform: rotate(0deg); }
}

@keyframes resumeSway {
  0%, 100% { transform: rotate(-0.8deg); }
  50%      { transform: rotate(0.8deg); }
}

@media (max-width: 900px) {
  .resume-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.resume-info {
  max-width: 620px;
}

.resume-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.resume-desc {
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.55;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   BOUNCE CARDS (React Bits Spring-Physics Stack) & LIGHTBOX
   -------------------------------------------------------------------------- */
.bounce-cards-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0 1rem 0;
  margin: 0.4rem 0 0.8rem 0;
  overflow: visible;
}

.bounce-cards {
  position: relative;
  margin: 0 auto;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.bounce-cards__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--bounce-cards-w, 230px);
  height: var(--bounce-cards-h, 165px);
  overflow: hidden;
  border: var(--bounce-cards-border, 3px) solid var(--bounce-cards-border-color, #ffffff);
  border-radius: var(--bounce-cards-radius, 18px);
  background: #0f111a;
  box-shadow: var(--bounce-cards-shadow);
  transform: translate(-50%, -50%) scale(0);
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.bounce-cards__card[data-active] {
  box-shadow: var(--bounce-cards-shadow-active);
  border-color: var(--crimson);
}

.bounce-cards__card--clickable {
  cursor: pointer;
}

.bounce-cards__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
  user-select: none;
}

.bounce-cards__label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(8, 9, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
}

.bounce-cards-hint {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--steel);
  text-align: center;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-lightbox.active {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 1050px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  padding: 0.75rem;
}

.lightbox-inner img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  text-align: center;
}

.devtools-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(8, 9, 13, 0.98);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.devtools-guard-overlay.active {
  display: flex;
}

.devtools-guard-box {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  text-align: center;
  max-width: 400px;
}

.devtools-guard-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--crimson);
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.devtools-guard-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.devtools-guard-box p {
  font-size: 0.85rem;
  color: var(--steel);
}

/* ==========================================================================
   ON-PAGE ANIMATED BOX-BUILD RESUME PREVIEW MODAL
   ========================================================================== */
.resume-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.resume-preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.rm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(11, 14, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  z-index: 3;
}

.rm-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rm-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.4s infinite;
}

.rm-topbar-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f8fafc;
}

.rm-build-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.rm-build-status.done {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

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

.rm-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rm-btn:hover {
  transform: translateY(-1px);
}

.rm-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.rm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rm-btn-primary {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.rm-btn-primary:hover {
  background: #dc2626;
}

.rm-btn-close {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.rm-btn-close:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

.rm-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

#resume-modal-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

#resume-modal-cursors {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.45s ease;
}

.rm-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.rm-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rm-build-item {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rm-build-item.rm-built {
  opacity: 1;
  transform: translateY(0);
}

.rm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  border-bottom: 2px solid #ef4444;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.rm-header h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
  margin: 0;
}

.rm-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #dc2626;
  margin: 0.2rem 0 0;
}

.rm-contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #475569;
}

.rm-section {
  min-height: auto;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  align-items: stretch;
}

.rm-section h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.3rem;
  margin: 0 0 0.55rem;
}

.rm-section p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
  margin: 0;
}

.rm-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1.2rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

.rm-exp-item {
  margin-bottom: 0.75rem;
}

.rm-exp-item:last-child {
  margin-bottom: 0;
}

.rm-exp-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #0f172a;
}

.rm-date {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.rm-exp-item ul {
  margin: 0.3rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
}

.rm-exp-item li {
  margin-bottom: 0.2rem;
}

.rm-proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.rm-proj-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}

.rm-proj-card strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.rm-proj-card p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #475569;
}

.rm-edu-row {
  font-size: 0.86rem;
  color: #0f172a;
}

.rm-edu-certs {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #475569;
}

@media (max-width: 720px) {
  .rm-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .rm-sheet {
    padding: 1.35rem 1.2rem;
  }
  .rm-contact-meta {
    align-items: flex-start;
  }
  .rm-skills-grid,
  .rm-proj-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

@media (max-width: 990px) {
  .hero-three-column-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .hud-nav-links { display: none; }
  .philosophy-grid,
  .projects-secondary-grid,
  .services-grid,
  .education-grid,
  .beyond-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .resume-card { flex-direction: column; align-items: flex-start; }
  .portrait-card { max-width: 250px; margin: auto; }
}
