/* ==========================================================================
   NEURALCRANK // MODERN CYBERNETIC SYSTEMS PORTFOLIO
   Domain: neuralcrank.com
   Style: Modern High-Tech Developer & Industrial Engineer Portfolio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Neutral Canvas & Surfaces */
  --bg-canvas: #06090e;
  --bg-surface: #0b111a;
  --bg-card: rgba(13, 20, 31, 0.72);
  --bg-card-hover: rgba(18, 28, 44, 0.85);
  --bg-glass: rgba(10, 16, 26, 0.65);
  
  /* Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: #00f0ff;
  
  /* Modern High-Tech Accents */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  
  /* Typography Stack */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & FOUNDATION
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    linear-gradient(to bottom, #06090e 0%, #090e16 100%);
  background-attachment: fixed;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Cybernetic Grid Canvas Overlay */
.grid-mesh-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
}

::selection {
  background-color: var(--accent-cyan);
  color: #05080f;
}

/* --------------------------------------------------------------------------
   3. MODERN TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 9, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.75rem;
  transition: border-color 0.2s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Zone 1: Modern Brand Lockup */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform 0.4s var(--transition-smooth);
}

.brand-brain-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--accent-cyan-glow));
  transition: transform 0.4s var(--transition-smooth);
}

.brand-mark:hover .brand-icon,
.brand-mark:hover .brand-brain-img {
  transform: scale(1.1) rotate(6deg);
}

.brand-suffix {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Zone 2: Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-code);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 0.35rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.nav-slash {
  color: var(--accent-cyan);
  font-weight: 700;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.nav-label {
  color: inherit;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover .nav-slash,
.nav-link.active .nav-slash {
  opacity: 1;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: 2px;
  transition: width 0.25s var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Zone 3: Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.scroll-anchor {
  position: relative;
  top: -90px;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  margin: 0;
}

.header-mail-btn {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.header-mail-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.header-mail-btn svg {
  color: var(--text-secondary);
  opacity: 0.85;
  transition: all 0.2s ease;
}

.header-mail-btn .at-sym {
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.header-mail-btn:hover svg {
  color: var(--text-primary);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25));
}

.header-mail-btn:hover .at-sym {
  color: var(--text-primary);
  opacity: 1;
  text-shadow: none;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-menu-email-item {
  display: none;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION ("THE SYSTEM")
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.75rem 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
  max-width: 100%;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.hero-kicker-badge.is-offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.18);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald), 0 0 16px var(--accent-emerald-glow);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot-beam 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes pulse-dot-beam {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--accent-emerald), 0 0 16px var(--accent-emerald-glow);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
    box-shadow: 0 0 3px var(--accent-emerald), 0 0 6px var(--accent-emerald-glow);
  }
}

.hero-kicker-badge.is-offline .pulse-dot,
.hero-brain-status-bar.is-offline .pulse-dot {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.5);
  animation: pulse-dot-beam-red 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot-beam-red {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.5);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
    box-shadow: 0 0 3px #ef4444, 0 0 6px rgba(239, 68, 68, 0.25);
  }
}

.hero-brain-badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px var(--accent-emerald-glow));
  transition: filter 0.3s ease;
}

.hero-kicker-badge.is-offline .hero-brain-badge-icon {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.gradient-code {
  background: linear-gradient(135deg, #00f0ff 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gears {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.4);
  text-underline-offset: 6px;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-roles strong {
  color: var(--text-primary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Modern Primary Button */
.btn-primary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--accent-cyan);
  color: #05080f;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
  transition: transform 0.2s var(--transition-smooth), box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Telemetry Strip */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   4.1 HERO BRAIN SHOWCASE (FRAMELESS & SCALED)
   -------------------------------------------------------------------------- */
.hero-brain-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-brain-card {
  position: relative;
  width: 100%;
  max-width: 594px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.hero-brain-ambient-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.28) 0%, rgba(16, 185, 129, 0.14) 40%, transparent 68%);
  filter: blur(48px);
  pointer-events: none;
  animation: brain-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes brain-glow-pulse {
  0% { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 0.95; transform: scale(1.08); }
}

.hero-brain-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 572px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  scale: 1.1;
  transform-origin: center center;
  filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.35)) drop-shadow(0 0 70px rgba(0, 240, 255, 0.15));
  animation: brain-floating 6s ease-in-out infinite alternate;
  transition: scale 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth), filter 0.4s ease;
}

.hero-brain-card:hover .hero-brain-main-img {
  scale: 1.16;
  filter: drop-shadow(0 0 45px rgba(0, 240, 255, 0.6)) drop-shadow(0 0 90px rgba(16, 185, 129, 0.25));
}

@keyframes brain-floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.hero-brain-status-bar {
  margin-top: 1.75rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(6, 9, 14, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-cyan-glow);
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
  z-index: 2;
  transition: all 0.3s ease;
}

.hero-brain-status-bar.is-offline {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(239, 68, 68, 0.25);
}

.dossier-terminal {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   5. MODERN DEVELOPER CLI / TERMINAL
   -------------------------------------------------------------------------- */
.terminal-wrapper {
  background: #090e16;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 20px 45px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.terminal-header {
  background: rgba(14, 21, 33, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background-color: #ff5f56; }
.dot-amber { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-screen {
  flex: 1 1 0px;
  min-height: 0;
  height: 0;
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  scroll-behavior: smooth;
}

.terminal-screen::-webkit-scrollbar {
  width: 5px;
}
.terminal-screen::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

.terminal-line {
  word-break: break-word;
  white-space: pre-wrap;
}

.terminal-line.sys { color: var(--text-muted); }
.terminal-line.success { color: var(--accent-emerald); }
.terminal-line.info { color: var(--accent-cyan); }
.terminal-line.warn { color: var(--accent-amber); }
.terminal-line.cmd { color: #f8fafc; font-weight: 600; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 27, 0.9);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.terminal-prompt-sym {
  color: var(--accent-cyan);
  font-family: var(--font-code);
  font-weight: 600;
  font-size: 0.85rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.terminal-input::placeholder {
  color: var(--text-dim);
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #070a0f;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.chip-btn {
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.chip-btn[data-cmd="clear"],
.chip-btn.chip-btn-clear {
  margin-left: auto;
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.chip-btn[data-cmd="clear"]:hover,
.chip-btn.chip-btn-clear:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
}

.hero-unix-time {
  font-family: var(--font-code);
  font-variant-numeric: tabular-nums;
  color: #34d399;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   6. ABOUT & SYSTEM SPECS ("THE DEV")
   -------------------------------------------------------------------------- */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.75rem;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 3rem;
}

.section-kicker {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title .h2-slash,
.h2-slash {
  color: var(--accent-cyan);
  font-weight: 700;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.section-title:hover .h2-slash {
  opacity: 1;
  text-shadow: 0 0 10px var(--accent-cyan);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.7;
}

.specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: stretch;
}

/* Modern Dev Profile Card */
.dev-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dev-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dev-avatar-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Frameless Brain by NeuralCrank */
.dev-brain-avatar {
  width: 80px;
  height: 80px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.dev-brain-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 28px rgba(16, 185, 129, 0.2));
  transition: transform 0.3s var(--transition-smooth), filter 0.3s ease;
}

.dev-brain-avatar:hover .dev-brain-img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 22px rgba(0, 240, 255, 0.8)) drop-shadow(0 0 45px rgba(16, 185, 129, 0.35));
}

.dev-avatar-svg {
  width: 44px;
  height: 44px;
}

.dev-identity-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dev-role-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}

.dev-bio {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.dev-bio p + p {
  margin-top: 1rem;
}

/* Sleek Progress Bars */
.dev-metrics-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.metric-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Right Column Tech Stack */
.tech-matrix {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-tab.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.2s var(--transition-smooth), border-color 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tech-abbr {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
}

.tech-level {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

.tech-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tech-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. PROJECTS CAROUSEL ("SUBDOMAINS & BUILDS")
   -------------------------------------------------------------------------- */
.builds-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.builds-head-info {
  flex: 1;
  min-width: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.carousel-counter {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
}

.carousel-counter-curr {
  color: var(--accent-cyan);
}

.carousel-counter-sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.carousel-counter-total {
  color: var(--text-muted);
}

.carousel-btn-group {
  display: flex;
  gap: 0.35rem;
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.carousel-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: var(--border-subtle);
}

.projects-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
  --carousel-cols: 3;
  --carousel-gap: 1.5rem;
  overflow: visible;
}

/* Left & Right ambient edge glows - positioned behind cards and radiating around edges */
.carousel-glow {
  position: absolute;
  top: -28px;
  bottom: -16px;
  width: 240px;
  pointer-events: none;
  z-index: 0; /* Strictly behind cards */
  opacity: 0.9;
  filter: blur(42px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.carousel-glow-left {
  left: -15px;
  background: radial-gradient(
    ellipse at 20% 50%,
    rgba(0, 240, 255, 0.72) 0%,
    rgba(0, 240, 255, 0.38) 45%,
    rgba(16, 185, 129, 0.14) 75%,
    transparent 100%
  );
  border-radius: var(--radius-xl);
}

.carousel-glow-right {
  right: -15px;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(0, 240, 255, 0.72) 0%,
    rgba(0, 240, 255, 0.38) 45%,
    rgba(16, 185, 129, 0.14) 75%,
    transparent 100%
  );
  border-radius: var(--radius-xl);
}

/* Dynamic intensified glow state when moving/scrolling */
.projects-carousel-wrapper.is-moving .carousel-glow {
  opacity: 1;
  filter: blur(48px) brightness(1.4);
  transform: scaleY(1.08);
}

.projects-carousel-wrapper.is-moving .carousel-glow-left {
  background: radial-gradient(
    ellipse at 15% 50%,
    rgba(0, 240, 255, 0.95) 0%,
    rgba(0, 240, 255, 0.55) 45%,
    rgba(16, 185, 129, 0.25) 75%,
    transparent 100%
  );
}

.projects-carousel-wrapper.is-moving .carousel-glow-right {
  background: radial-gradient(
    ellipse at 85% 50%,
    rgba(0, 240, 255, 0.95) 0%,
    rgba(0, 240, 255, 0.55) 45%,
    rgba(16, 185, 129, 0.25) 75%,
    transparent 100%
  );
}

/* Edge fade states indicating scroll directions */
.projects-carousel-wrapper.at-start .carousel-glow-left {
  opacity: 0.05;
}
.projects-carousel-wrapper.at-end .carousel-glow-right {
  opacity: 0.05;
}
.projects-carousel-wrapper.is-moving.at-start .carousel-glow-left {
  opacity: 0.3;
}
.projects-carousel-wrapper.is-moving.at-end .carousel-glow-right {
  opacity: 0.3;
}

@media (max-width: 992px) {
  .projects-carousel-wrapper {
    --carousel-cols: 2;
    --carousel-gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .projects-carousel-wrapper {
    --carousel-cols: 1;
    --carousel-gap: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-glow {
    width: 140px;
    top: -18px;
    bottom: -10px;
    filter: blur(30px);
  }
  .carousel-glow-left {
    left: -5px;
  }
  .carousel-glow-right {
    right: -5px;
  }
}

.projects-carousel {
  position: relative;
  z-index: 1; /* In front of ambient edge glow */
  display: flex;
  gap: var(--carousel-gap, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.25rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.45) rgba(7, 12, 20, 0.6);
  cursor: grab;
  user-select: none;
}

.projects-carousel:active {
  cursor: grabbing;
}

.projects-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.projects-carousel::-webkit-scrollbar {
  height: 6px;
}

.projects-carousel::-webkit-scrollbar-track {
  background: rgba(7, 12, 20, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-carousel::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.project-card {
  position: relative;
  z-index: 2;
  flex: 0 0 calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap, 1.5rem)) / var(--carousel-cols));
  width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap, 1.5rem)) / var(--carousel-cols));
  min-width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap, 1.5rem)) / var(--carousel-cols));
  max-width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap, 1.5rem)) / var(--carousel-cols));
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #0b111a;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--transition-smooth), border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 16px 40px -10px rgba(0, 240, 255, 0.12);
}

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

.project-id-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.carousel-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-cyan);
  width: 44px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.35);
}

.project-visual {
  height: 140px;
  background: #090e17;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subdomain-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 9, 14, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  backdrop-filter: blur(6px);
}

.status-badge-pending {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  user-select: none;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.pending-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.9);
  animation: pending-dot-blink 2s ease-in-out infinite;
}

.pending-pulse-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.8);
  animation: pending-dot-blink 2s ease-in-out infinite;
}

@keyframes pending-dot-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

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

.project-meta-tags {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tech-badge {
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}

.project-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.6rem;
}

.btn-card-launch {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-card-launch:hover {
  background: var(--accent-cyan);
  color: #05080f;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.btn-card-launch.is-pending {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
  cursor: not-allowed;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-card-launch.is-pending:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  transform: none;
}

.btn-card-git {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-card-git:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* --------------------------------------------------------------------------
   8. TRANSMISSION & DIRECT EMAIL CARD (COMPACT)
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.75rem 4rem;
  border-top: none;
  background: transparent;
}

.compact-section-head {
  margin-bottom: 2rem;
}

.compact-section-head .section-title {
  margin-bottom: 0.5rem;
}

.compact-contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 
    0 20px 45px -15px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.compact-contact-box:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 30px -10px var(--accent-cyan-glow);
}

.compact-contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), rgba(16, 185, 129, 0.5), transparent);
}

.compact-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.compact-email-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.contact-brain-mini {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

.compact-email-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.compact-email-address {
  font-family: var(--font-code);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  user-select: all;
  white-space: nowrap;
}

.at-sym {
  color: var(--accent-cyan);
  font-weight: 600;
  padding: 0;
}

.compact-email-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-compact-copy {
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-compact-copy:hover {
  background: var(--accent-cyan);
  color: #05080f;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.btn-compact-send {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-compact-send:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Toast alert for copy feedback - pops up on the right side of email with zero frame height shift */
.copy-feedback-toast {
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s ease;
  z-index: 10;
}

.copy-feedback-toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.copy-check {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

/* Compact Relays Divider */
.compact-relays-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.compact-relays-label {
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Compact Socials Grid */
.compact-socials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.compact-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s var(--transition-smooth);
  white-space: nowrap;
}

.compact-social-item:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.compact-social-x {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
footer,
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04070b;
  padding: 2.75rem 1.75rem;
  position: relative;
  z-index: 1;
  font-family: var(--font-code);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-author-text {
  text-transform: lowercase;
}

.footer-container a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-container a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--accent-cyan-glow);
}

.footer-brand-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-version-badge {
  font-family: var(--font-code);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.08rem 0.38rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  transition: all 0.2s ease;
  user-select: none;
}

.footer-version-badge:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.footer-badge-online {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-left: 0.2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-badge-online.is-offline {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.footer-keys {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-code);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.footer-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.footer-key-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-key-btn:hover .key-tag {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.footer-key-btn:active {
  transform: translateY(0);
}

.footer-key-btn.copied {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.footer-key-btn.copied .key-tag {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.key-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  color: var(--accent-cyan);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.2s ease;
  display: inline-block;
}

.terminal-wrapper.terminal-focused-glow {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.45), 0 20px 40px -15px rgba(0, 0, 0, 0.8) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .specs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dossier-terminal,
  .terminal-wrapper {
    height: 480px;
    max-height: 480px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-socials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .nav-container {
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .header-mail-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.65rem 1rem;
  }

  .nav-container {
    gap: 0.5rem;
  }

  .brand-mark {
    font-size: 1rem;
    gap: 0.45rem;
  }

  .brand-brain-img {
    width: 24px;
    height: 24px;
  }

  .nav-actions {
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }

  nav[aria-label="Main Navigation"] {
    order: 3;
    flex-shrink: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
  }

  .header-mail-btn {
    padding: 0.45rem 0.65rem;
    height: 36px;
    min-width: 36px;
    justify-content: center;
    gap: 0;
  }

  .header-mail-btn span {
    display: none;
  }

  /* Responsive section paddings preventing overflow */
  .hero-section {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .section-container {
    padding: 3.5rem 1.25rem;
  }

  .dev-card {
    padding: 1.5rem 1.25rem;
  }

  .compact-contact-box {
    padding: 1.5rem 1.25rem;
    overflow: hidden;
  }

  .site-footer {
    padding: 2.25rem 1.25rem;
  }

  .builds-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 9, 14, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.25rem 1.75rem;
    gap: 1.25rem;
  }

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

  .mobile-menu-email-item {
    display: block;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-menu-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-sm);
    word-break: break-all;
  }

  .tech-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-socials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .compact-email-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .compact-email-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }

  .compact-email-address {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
    max-width: 100%;
    word-break: break-all;
  }

  /* Inline toast positioning on mobile preventing horizontal boundary spill */
  .copy-feedback-toast {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 0.25rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  }

  .copy-feedback-toast.show {
    transform: none;
  }

  .compact-email-actions {
    width: 100%;
  }

  .btn-compact-copy,
  .btn-compact-send {
    flex: 1;
    justify-content: center;
  }

  .hero-stats-row {
    gap: 1rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.6rem 0.85rem;
  }

  .brand-suffix {
    display: none;
  }

  .hero-section {
    padding: 3rem 1rem 2rem;
  }

  .section-container {
    padding: 3rem 1rem;
  }

  .dev-card {
    padding: 1.25rem 1rem;
  }

  .compact-contact-box {
    padding: 1.25rem 1rem;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .compact-email-address {
    font-size: clamp(0.92rem, 4.4vw, 1.15rem);
    word-break: break-all;
  }

  .compact-email-badge {
    font-size: 0.68rem;
    max-width: 100%;
    word-break: break-word;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .stat-val {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .hero-kicker-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
    max-width: 100%;
    word-break: break-word;
  }

  .hero-brain-status-bar {
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem;
    max-width: 100%;
  }

  .terminal-header {
    padding: 0.55rem 0.75rem;
    font-size: 0.68rem;
    gap: 0.5rem;
  }

  .terminal-screen {
    padding: 0.85rem 0.75rem;
    font-size: 0.75rem;
  }

  .terminal-input-row {
    padding: 0.55rem 0.75rem;
  }
}

@media (max-width: 380px) {
  .compact-socials-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .compact-social-item {
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
