/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & ARCHITECTURAL FOUNDATION
   Project: Sam Sunny Portfolio Website
   Reference Aesthetic: Editorial Dark HUD / landonorris.com
   Version: 1.0.0 (Phase 2 Foundation)
   ========================================================================== */

/* --- 1. DESIGN TOKENS & CSS CUSTOM PROPERTIES --- */
:root {
  /* Fluid Math Container Model */
  --min-width: 360px;
  --max-width: 1728px;
  --design-width: 1728;
  --design-unit: 16;
  --scale-factor: 1;

  /* Color Palette — Deep Obsidian & Electric Accents */
  --color-canvas: #030303;
  --color-canvas-rgb: 3, 3, 3;
  --color-surface-obsidian: #090909;
  --color-surface-glass: rgba(14, 14, 14, 0.70);
  --color-surface-glass-heavy: rgba(10, 10, 10, 0.90);
  --color-card-black: #000000;

  /* Signature Electric Neon Accent */
  --color-lime: #D2FF00;
  --color-lime-rgb: 210, 255, 0;
  --color-lime-dim: rgba(210, 255, 0, 0.12);
  --color-lime-glow: rgba(210, 255, 0, 0.4);

  /* Secondary Accents */
  --color-cyan: #00F0FF;
  --color-cyan-dim: rgba(0, 240, 255, 0.15);

  /* Monochromatic & Text Tokens */
  --color-text-white: #FFFFFF;
  --color-text-editorial: #E3E8DC;
  --color-text-muted: #8E9685;
  --color-text-dim: #4B5244;

  /* Structural 1px HUD Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(210, 255, 0, 0.28);
  --border-accent-bright: #D2FF00;

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-editorial: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid Spacing Scale */
  --space-2xs: clamp(0.25rem, 0.5vw, 0.375rem);
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1.125rem);
  --space-md: clamp(1.25rem, 2.5vw, 1.75rem);
  --space-lg: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 4.5rem);
  --space-2xl: clamp(4.5rem, 9vw, 7rem);
  --space-3xl: clamp(6rem, 12vw, 10rem);

  /* Fluid Type Scale */
  --font-size-xs: clamp(0.7rem, 0.8vw, 0.8rem);
  --font-size-sm: clamp(0.85rem, 0.95vw, 0.95rem);
  --font-size-base: clamp(1rem, 1.1vw, 1.125rem);
  --font-size-md: clamp(1.2rem, 1.4vw, 1.4rem);
  --font-size-lg: clamp(1.5rem, 2vw, 2rem);
  --font-size-xl: clamp(2.2rem, 3.5vw, 3.5rem);
  --font-size-hero: clamp(3.2rem, 6.5vw, 6.8rem);
  --font-size-monumental: clamp(4.5rem, 10vw, 11rem);

  /* Layering & Layout */
  --z-canvas-3d: 0;
  --z-content: 10;
  --z-hud-overlay: 20;
  --z-header: 50;
  --z-modal: 100;

  /* Transitions & Curves */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 750ms;
}

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

html {
  background-color: var(--color-canvas);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto; /* Lenis controls smooth scrolling */
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--color-canvas);
  color: var(--color-text-white);
  selection-background-color: var(--color-lime);
  selection-color: var(--color-card-black);
}

::selection {
  background-color: var(--color-lime);
  color: #000000;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* --- 3. AMBIENT BACKGROUND & NOISE OVERLAY --- */
.ambient-mesh {
  display: none;
  background: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3D WebGL Background Canvas Container (Disabled: Topo is strictly in Landing Page) */
#webgl-canvas-container {
  display: none !important;
}

/* Content wrapper that sits cleanly on top of 3D Canvas */
.content-wrapper {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  min-height: 100vh;
}

/* --- 4. TYPOGRAPHY SYSTEM --- */
.font-sans { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }
.font-editorial { font-family: var(--font-editorial); font-style: italic; }
.font-mono { font-family: var(--font-mono); }

.text-hero {
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* --- CINEMATIC HERO SLOW REVEAL SYSTEM --- */
.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: clamp(2rem, 3.8vw, 4.5rem);
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* Live Telemetry Status Pill */
.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.95rem;
  background: rgba(210, 255, 0, 0.06);
  border: 1px solid rgba(210, 255, 0, 0.24);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(210, 255, 0, 0.05);
  align-self: flex-start;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hero-status-tag:hover {
  background: rgba(210, 255, 0, 0.1);
  border-color: rgba(210, 255, 0, 0.45);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 10px var(--color-lime);
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.status-indicator-text {
  font-size: 0.72rem;
  color: var(--color-lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero-title-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.hero-monumental-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  line-height: 0.9;
}

.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line-1 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(2.4rem, 6.2vw, 5.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-editorial);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  line-height: 1;
}

/* Micro-Telemetry Ribbon on Hero Content */
.hero-telemetry-ribbon {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.telemetry-pill {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.telemetry-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-lime);
  text-shadow: 0 0 14px rgba(210, 255, 0, 0.45);
}

.telemetry-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-text-editorial);
}

.telemetry-sep {
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

/* --- CYBERNETIC PORTRAIT SHOWCASE STAGE --- */
.hero-portrait-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  min-width: 0;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: rgba(14, 19, 9, 0.76);
  border: 1px solid rgba(210, 255, 0, 0.22);
  border-radius: 20px;
  padding: 1.15rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.78),
    0 0 45px rgba(210, 255, 0, 0.08),
    inset 0 0 24px rgba(210, 255, 0, 0.04);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-portrait-card:hover {
  border-color: rgba(210, 255, 0, 0.45);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.88),
    0 0 60px rgba(210, 255, 0, 0.18),
    inset 0 0 30px rgba(210, 255, 0, 0.08);
}

/* Dynamic Ambient Glow Behind Portrait */
.portrait-ambient-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(210, 255, 0, 0.28) 0%, rgba(0, 240, 255, 0.12) 42%, transparent 72%);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
  animation: portraitGlowPulse 5.5s ease-in-out infinite alternate;
}

@keyframes portraitGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; }
}

/* Tactical Corner Brackets */
.portrait-hud-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-lime);
  border-style: solid;
  pointer-events: none;
  z-index: 4;
  opacity: 0.85;
}

.hud-corner-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.hud-corner-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }
.hud-corner-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }

/* Tactical Header Bar */
.portrait-tactical-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(210, 255, 0, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-text-editorial);
  position: relative;
  z-index: 3;
}

.tactical-id-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tactical-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
  animation: pulseDot 1.8s infinite ease-in-out;
}

.tactical-id {
  color: #FFFFFF;
  font-weight: 700;
}

.tactical-spec {
  color: var(--color-lime);
  font-size: 0.62rem;
}

/* Image Viewport & Cutout */
.portrait-img-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 20, 0, 0.45) 0%, rgba(8, 12, 5, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
}

.hero-portrait-img {
  width: auto;
  height: 105%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(210, 255, 0, 0.18));
  -webkit-mask-image: linear-gradient(to bottom, #000000 82%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000000 82%, rgba(0, 0, 0, 0) 100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  user-select: none;
}

.hero-portrait-card:hover .hero-portrait-img {
  transform: scale(1.035);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 35px rgba(210, 255, 0, 0.35));
}

/* Precision HUD Scanline Effect */
.portrait-scanline-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(210, 255, 0, 0.015) 3px,
    rgba(210, 255, 0, 0.015) 6px
  );
  border-radius: 14px;
  opacity: 0.8;
  z-index: 3;
}

/* Floating Verified Status Pill */
.portrait-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
  background: rgba(10, 15, 7, 0.92);
  border: 1px solid rgba(210, 255, 0, 0.38);
  border-radius: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(210, 255, 0, 0.14);
  z-index: 4;
  animation: badgeHoverFloat 4.2s ease-in-out infinite alternate;
}

@keyframes badgeHoverFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.floating-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-lime);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-info {
  display: flex;
  flex-direction: column;
}

.floating-badge-title {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.floating-badge-role {
  color: var(--color-lime);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* Coordinates Pill */
.portrait-coord-badge {
  position: absolute;
  top: 3.2rem;
  right: -0.75rem;
  padding: 0.3rem 0.65rem;
  background: rgba(10, 15, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-size: 0.6rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
  z-index: 4;
}

/* --- FLOATING STICKY BRAND LOGO (Scroll-Triggered) --- */
.sticky-brand-container {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: var(--z-nav, 100);
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-brand-container.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sticky-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  background: rgba(10, 15, 7, 0.82);
  border: 1px solid rgba(210, 255, 0, 0.22);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(210, 255, 0, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.sticky-brand-link:hover {
  border-color: rgba(210, 255, 0, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(210, 255, 0, 0.35);
}

.sticky-brand-img {
  height: 32px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(210, 255, 0, 0.4));
}

/* --- INTERACTIVE ASCII BLOCK BURST TYPOGRAPHY --- */
.ascii-hero-container {
  display: flex;
  flex-direction: column;
  margin-top: 0.25em;
  user-select: none;
  cursor: crosshair;
  position: relative;
  will-change: transform;
}

.ascii-name-block {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.ascii-word-group {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  position: relative;
}

.ascii-row {
  display: flex;
  align-items: center;
  white-space: pre;
  line-height: 0.92;
  letter-spacing: 0;
}

.ascii-cell {
  display: inline-block;
  font-family: inherit;
  font-size: clamp(1.5rem, 3.4vw, 4.4rem);
  font-weight: 700;
  line-height: 0.92;
  width: 0.62em;
  text-align: center;
  transform-origin: center center;
  transition: filter 0.15s ease, text-shadow 0.15s ease;
}

.ascii-cell.ascii-space {
  pointer-events: none;
  user-select: none;
}

/* SAM: Brilliant White with Pure Glow */
.ascii-word-sam .ascii-cell:not(.ascii-space) {
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
}

/* SUNNY: Cyber Lime with Neon Aura */
.ascii-word-sunny .ascii-cell:not(.ascii-space) {
  color: var(--color-lime);
  text-shadow: 0 0 22px rgba(210, 255, 0, 0.75);
}

.ascii-cell:hover {
  filter: brightness(1.7) drop-shadow(0 0 16px #FFFFFF);
}



/* Slow, elegant animation tokens */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(2deg);
  filter: blur(14px);
  will-change: transform, opacity, filter;
  animation: slowHeroReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-word.word-i {
  animation-delay: 0.25s;
  color: var(--color-text-white);
  font-family: var(--font-editorial);
  font-style: italic;
}

.reveal-word.word-am {
  animation-delay: 0.55s;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--color-lime);
  letter-spacing: normal;
}

.reveal-word.word-sam {
  animation-delay: 0.85s;
  color: #FFFFFF;
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  letter-spacing: inherit !important;
  display: block;
}

.reveal-word.word-sunny {
  animation-delay: 1.1s;
  color: var(--color-lime);
  background: linear-gradient(135deg, #FFFFFF 20%, #D2FF00 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(210, 255, 0, 0.3));
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  letter-spacing: inherit !important;
  display: block;
}

.shuffle-name-wrapper.is-shuffling {
  filter: drop-shadow(0 0 24px rgba(210, 255, 0, 0.35));
}

/* Staggered description & actions reveals */
.hero-badge-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: slowContentReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-portrait-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(10px);
  will-change: transform, opacity, filter;
  animation: slowPortraitReveal 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-desc-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  animation: slowContentReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.65s forwards;
}

.hero-actions-reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  animation: slowContentReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 1.95s forwards;
}

.hero-telemetry-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: slowContentReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 2.15s forwards;
}

@keyframes slowPortraitReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Responsive Media Queries for Hero */
@media (max-width: 1100px) {
  .hero-space-layer {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: max(4.5rem, 6vh);
    padding-bottom: 3.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: left;
  }
  .hero-portrait-stage {
    justify-content: flex-start;
  }
  .hero-portrait-card {
    max-width: 360px;
  }
  .portrait-img-viewport {
    height: 360px;
  }
  .ascii-cell {
    font-size: clamp(1rem, 3.2vw, 2.4rem);
  }
}

@media (max-width: 768px) {
  .hero-space-layer {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-grid {
    gap: 1.5rem;
  }
  .hero-portrait-card {
    max-width: 270px;
    padding: 0.85rem;
    margin: 0 auto;
  }
  .portrait-img-viewport {
    height: 270px;
  }
  .portrait-floating-badge {
    left: 0;
    bottom: 0.65rem;
    padding: 0.35rem 0.65rem;
  }
  .portrait-coord-badge {
    right: 0;
    top: 2rem;
  }
  .hero-telemetry-ribbon {
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
  .ascii-cell {
    font-size: clamp(0.85rem, 3.6vw, 1.8rem);
  }
}

@keyframes slowHeroReveal {
  0% {
    opacity: 0;
    transform: translateY(110%) rotate(2.5deg);
    filter: blur(16px);
  }
  50% {
    opacity: 0.85;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes slowContentReveal {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

.text-monumental {
  font-family: var(--font-display);
  font-size: var(--font-size-monumental);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.text-heading {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-subheading {
  font-family: var(--font-sans);
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-editorial-accent {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  color: var(--color-lime);
  text-transform: none;
  letter-spacing: normal;
  padding: 0 0.15em;
}

.text-muted { color: var(--color-text-muted); }
.text-dim { color: var(--color-text-dim); }
.text-lime { color: var(--color-lime); }
.text-cyan { color: var(--color-cyan); }
.text-editorial-muted { color: var(--color-text-editorial); }

/* --- 5. MICRO-HUD & GLASSMORPHIC COMPONENTS --- */

/* Glass Cards & Bento Surfaces */
.glass-panel {
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  position: relative;
  transition: border-color var(--duration-normal) var(--ease-expo),
              box-shadow var(--duration-normal) var(--ease-expo),
              transform var(--duration-normal) var(--ease-expo);
}

.glass-panel:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.6), 0 0 16px -4px var(--color-lime-dim);
}

/* Corner Bracket Accents (HUD reticle style) */
.hud-frame {
  position: relative;
}

.hud-frame::before,
.hud-frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-lime);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--duration-fast) ease;
}

.hud-frame::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid var(--color-lime);
  border-left: 1.5px solid var(--color-lime);
}

.hud-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid var(--color-lime);
  border-right: 1.5px solid var(--color-lime);
}

.hud-frame:hover::before,
.hud-frame:hover::after {
  opacity: 1;
}

/* Notched Technical Corner (Geometric Silhouette) */
.notch-card {
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    0 100%
  );
}

/* Status Pill / Live System Beacon */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(14, 19, 9, 0.75);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-editorial);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-lime);
  position: relative;
  box-shadow: 0 0 10px var(--color-lime);
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-lime);
  animation: pulseBeacon 2.2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* High-Contrast Interactive Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  background-color: var(--color-lime);
  color: var(--color-card-black);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--color-lime);
  transition: all var(--duration-fast) var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--color-lime-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  background: rgba(14, 19, 9, 0.6);
  color: var(--color-text-white);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-expo);
}

.btn-secondary:hover {
  border-color: var(--color-lime);
  color: var(--color-lime);
  background: var(--color-lime-dim);
  transform: translateY(-2px);
}

/* Hero Action Buttons Sizing */
.hero-actions-reveal .btn-primary,
.hero-actions-reveal .btn-secondary {
  padding: 0.72rem 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* --- 6. CONTINUOUS MARQUEE TICKER (Edge Masked) --- */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.4);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeLoop 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.marquee-separator {
  color: var(--color-lime);
  font-size: 0.7em;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 7. STRUCTURAL LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3.5vw, 4rem);
  padding-right: clamp(1rem, 3.5vw, 4rem);
}

.section-padding {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

/* Subtle Grid Guide Lines (Disabled) */
.grid-lines {
  background-image: none !important;
}

/* --- 8. LENIS SMOOTH SCROLL INTEGRATION --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- 9. ACCESSIBILITY & PREFERS-REDUCED-MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   10. SPACE STAGE: 3D WARP ZOOM & SOLAR SYSTEM TECH STACK
   Architectural Stage: Deep space zoom from Hero into 3D Solar Tech Universe
   ========================================================================== */

/* Outer scroll track for smooth cosmic travel through space, wormhole, projects & credentials (700vh scroll distance) */
.space-stage-track {
  position: relative;
  width: 100%;
  height: 700vh;
}

/* Sticky 100vh spatial viewport stage */
.space-stage-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  perspective: 1200px;
}

/* Shared Cosmic Starfield & 3D Orbital Canvas */
.space-warp-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero Layer (Zooms in towards viewer and dissolves into space) */
.hero-space-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  overflow: hidden;
}

/* Dedicated Landing Page Topographic Background Container */
.hero-topo-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-topo-container canvas,
.topo-background-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  display: block;
}

/* Tech Universe Layer (Zooms in from deep cosmic fog into foreground) */
.tech-space-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
}

.tech-universe-section {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* 3D Solar Stage Wrapper */
.solar-stage-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  perspective: 1000px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central Gravitational Singularity / Star Core (Subtle celestial glow) */
.solar-singularity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(210, 255, 0, 0.04) 0%, rgba(0, 240, 255, 0.02) 35%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(50px);
  animation: singularityPulse 7s ease-in-out infinite alternate;
}

@keyframes singularityPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.85; }
}

/* Central Monumental 3D Text (PIVOT DEPTH: z-index: 50) */
.solar-center-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50; /* EXACT DEPTH THRESHOLD: nodes < 0 behind text, nodes >= 0 over text */
  pointer-events: none;
  text-align: center;
  width: 100%;
  max-width: 950px;
  padding: 0 1rem;
}

.solar-center-3d-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s linear;
}

.solar-text-pre {
  font-size: var(--font-size-xs);
  letter-spacing: 0.25em;
  color: var(--color-lime);
  margin-bottom: 0.4rem;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(210, 255, 0, 0.35);
}

.solar-text-monumental {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6E8E3 45%, #888E82 80%, #252822 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Layered 3D Depth Shadows with subtle ambient aura */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.95))
          drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
  margin: 0;
  user-select: none;
}

.solar-text-sub {
  font-size: clamp(0.65rem, 0.9vw, 0.82rem);
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-top: 0.8rem;
  max-width: 600px;
  text-transform: uppercase;
}

/* 3D Orbiting Logos Container */
.solar-orbits-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Individual Planetary Tech Node */
.solar-node {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: filter 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

/* 2D Billboard Badge (Pure Borderless Floating Logos) */
.solar-node-badge {
  width: clamp(42px, 4.4vw, 56px);
  height: clamp(42px, 4.4vw, 56px);
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s var(--ease-expo);
}

.solar-node-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.solar-node-glow {
  display: none !important;
}

/* FOREGROUND STATE: PASSING OVER THE TEXT (Subtle luminous aura) */
.solar-node.is-front .solar-node-badge {
  box-shadow: none !important;
  border: none !important;
}

.solar-node.is-front .solar-node-img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 4px var(--node-accent));
}

/* BACKGROUND STATE: PASSING BEHIND THE TEXT */
.solar-node.is-behind .solar-node-badge {
  box-shadow: none !important;
  border: none !important;
}

.solar-node.is-behind .solar-node-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* HOVERED / FOCUSED STATE (Subtle defined glow) */
.solar-node:hover .solar-node-badge,
.solar-node.is-hovered .solar-node-badge {
  transform: scale(1.35);
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 100 !important;
}

.solar-node:hover .solar-node-img,
.solar-node.is-hovered .solar-node-img {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 8px var(--node-accent)) !important;
}

/* ==========================================================================
   FLOATING NEAR-POINTER HOLOGRAPHIC TOOLTIP
   Follows cursor tip dynamically when inspecting any tech node
   ========================================================================== */

/* ==========================================================================
   MINIMAL NEAR-POINTER TELEMETRY TOOLTIP
   Clean, compact pill badges: Tech Name + Projects [Name <gitsymbol>]
   ========================================================================== */

.solar-cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  width: max-content;
  max-width: 380px;
  min-width: 170px;
  background: rgba(10, 14, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--tooltip-accent, rgba(210, 255, 0, 0.35));
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 16px var(--tooltip-glow, rgba(210, 255, 0, 0.15));
  opacity: 0;
  transform: scale(0.92);
  will-change: transform, opacity;
  transition: opacity 0.16s var(--ease-expo), transform 0.16s var(--ease-expo), border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.solar-cursor-tooltip.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.tooltip-header-simple {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tooltip-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tooltip-icon-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.tooltip-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tooltip-projects-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.tooltip-projects-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.tooltip-projects-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.tooltip-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
  cursor: pointer;
}

.tooltip-project-chip:hover {
  background: var(--tooltip-accent, var(--color-lime));
  border-color: var(--tooltip-accent, var(--color-lime));
  color: #0A0E08;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tooltip-glow, rgba(210, 255, 0, 0.35));
}

.tooltip-project-chip:hover .chip-git-icon {
  fill: #0A0E08;
}

.chip-git-icon {
  width: 12px;
  height: 12px;
  fill: var(--tooltip-accent, var(--color-lime));
  transition: fill 0.16s ease;
  flex-shrink: 0;
}

/* ==========================================================================
   11. PROJECTS SOLAR SYSTEM & WORMHOLE DESTINATION STAGE
   ========================================================================== */

/* Projects Universe Layer (Emerges through wormhole into foreground) */
.projects-space-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
}

.projects-universe-section {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.projects-stage-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  perspective: 1000px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.projects-singularity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, rgba(168, 85, 247, 0.03) 35%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(55px);
  animation: projectsSingularityPulse 6s ease-in-out infinite alternate;
}

@keyframes projectsSingularityPulse {
  0% { transform: translate(-50%, -50%) scale(0.90); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.85; }
}

.projects-center-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: none;
  text-align: center;
  width: 100%;
  max-width: 950px;
  padding: 0 1rem;
}

.projects-center-3d-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s linear;
}

.projects-text-pre {
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  color: var(--color-lime);
  margin-bottom: 0.4rem;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(210, 255, 0, 0.35);
}

.projects-text-monumental {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 0%, #D8DFE6 45%, #7B8594 80%, #1A202C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.95))
          drop-shadow(0 0 20px rgba(0, 240, 255, 0.08));
  margin: 0;
  user-select: none;
}

.projects-text-sub {
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-top: 0.8rem;
  max-width: 600px;
  text-transform: uppercase;
}

.projects-orbits-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Individual Project Planetary World Node */
.project-node {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity, filter;
  transition: filter 0.25s ease, opacity 0.25s ease;
  user-select: none;
}

.project-node-badge {
  width: clamp(210px, 22vw, 260px);
  background: rgba(14, 19, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--proj-accent, rgba(255, 255, 255, 0.16));
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 12px color-mix(in srgb, var(--proj-accent) 25%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.25s var(--ease-expo), border-color 0.25s, box-shadow 0.25s;
  position: relative;
}

.project-node:hover .project-node-badge,
.project-node.is-hovered .project-node-badge {
  transform: scale(1.12);
  border-color: var(--proj-accent, #D2FF00);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 20px color-mix(in srgb, var(--proj-accent) 45%, transparent);
}

.project-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-badge-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.project-badge-status {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--proj-accent, var(--color-lime));
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--proj-accent) 30%, transparent);
  white-space: nowrap;
}

.project-badge-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-badge-sub {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin: 0.15rem 0 0 0;
  text-transform: uppercase;
}

/* In-Stage HUD Navigation Buttons */
.stage-nav-hud {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: auto;
}

.stage-nav-btn {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  background: rgba(14, 19, 10, 0.88);
  border: 1px solid rgba(210, 255, 0, 0.35);
  color: var(--color-lime);
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.stage-nav-btn:hover {
  background: var(--color-lime);
  color: #000000;
  box-shadow: 0 0 24px rgba(210, 255, 0, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   12. INTERACTIVE PROJECT DEEP-DIVE MODAL
   ========================================================================== */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-expo);
}

.project-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 2, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  background: rgba(14, 18, 10, 0.96);
  border: 1px solid var(--modal-accent, var(--color-lime));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 28px rgba(210, 255, 0, 0.15);
  transform: scale(0.92);
  transition: transform 0.25s var(--ease-expo);
}

.project-modal.is-active .project-modal-card {
  transform: scale(1);
}

.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.project-modal-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-dim);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.project-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--color-text-bright);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.modal-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.65rem;
  background: rgba(210, 255, 0, 0.05);
  border: 1px solid rgba(210, 255, 0, 0.2);
  border-radius: 6px;
  color: var(--color-lime);
  text-align: center;
}

/* Dynamic Viewport Unit (dvh) Support for Mobile Browsers */
@supports (height: 100dvh) {
  @media (max-width: 768px) {
    .space-stage-viewport,
    .hero-space-layer,
    .tech-space-layer,
    .projects-space-layer,
    .credentials-space-layer {
      height: 100dvh !important;
      min-height: 100dvh !important;
    }
  }
}

/* Mobile & Tablet Ergonomic & Sizing Optimizations (Strictly max-width: 768px) */
@media (max-width: 768px) {
  .sticky-brand-container {
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    left: 0.85rem;
  }
  .sticky-brand-img {
    width: 38px;
    height: 38px;
  }

  .solar-text-monumental {
    font-size: clamp(2.2rem, 9.5vw, 3.8rem);
    letter-spacing: 0.02em;
  }
  .projects-text-monumental {
    font-size: clamp(1.9rem, 8.5vw, 3.2rem);
    letter-spacing: 0.02em;
  }

  /* Touch hit area and badge scaling */
  .solar-node {
    padding: 6px;
    margin: -6px;
    touch-action: pan-y;
  }
  .solar-node-badge {
    width: 34px;
    height: 34px;
  }
  .solar-node-img {
    width: 18px;
    height: 18px;
  }

  /* Flagship Projects Card */
  .project-node-badge {
    width: 175px;
    padding: 0.55rem 0.75rem;
    touch-action: pan-y;
  }
  .project-node-title {
    font-size: 0.82rem;
  }
  .project-node-tech {
    font-size: 0.58rem;
  }

  /* Mobile Bottom-Sheet Dossier Card (Fixed at bottom to prevent thumb obstruction) */
  .solar-cursor-tooltip.is-pinned,
  .solar-cursor-tooltip.is-visible {
    position: fixed !important;
    top: auto !important;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
    max-width: 420px !important;
    z-index: 1000 !important;
    background: rgba(10, 14, 8, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(210, 255, 0, 0.35) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.95), 0 0 25px rgba(210, 255, 0, 0.25) !important;
    border-radius: 14px !important;
    padding: 1rem 1.15rem !important;
    pointer-events: auto !important;
  }
  .solar-cursor-tooltip .tooltip-close-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Stage Nav Controls */
  .stage-nav-hud {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .stage-nav-btn {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.1em;
    min-height: 40px;
    touch-action: manipulation;
  }
}

/* Extra Compact Mobile Screens (Phones under 480px) */
@media (max-width: 480px) {
  .solar-node-badge {
    width: 32px;
    height: 32px;
  }
  .solar-node-img {
    width: 17px;
    height: 17px;
  }
  .solar-text-monumental {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }
  .projects-text-monumental {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }
  .project-node-badge {
    width: 155px;
    padding: 0.45rem 0.65rem;
  }
}


/* ==========================================================================
   13. CREDENTIALS UNIVERSE LAYER: INFINITY STONES CELESTIAL NEXUS
   Grand Finale of Space Journey: 7 certificate cards burst in at velocity,
   decelerate with spring physics, and settle into gentle floating orbits.
   ========================================================================== */

/* Credentials Universe Layer (Grand Finale of Space Journey) */
.credentials-space-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.credentials-universe-section {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 1.5rem;
}

.orbit3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  z-index: 10;
  pointer-events: none;
}

.orbit3d-header,
.stage-nav-hud,
.stage-nav-btn {
  pointer-events: auto;
}

/* Deep Space Cosmic Stardust Void (Clean cosmos without green lines) */
.orbit3d-cosmic-void {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(800px, 92vw);
  height: min(480px, 60vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(210, 255, 0, 0.03) 0%,
    rgba(0, 240, 255, 0.02) 40%,
    transparent 72%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

/* Section Header */
.orbit3d-header {
  text-align: center;
  margin-bottom: 0.5rem;
  z-index: 2;
  position: relative;
}

.orbit3d-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-lime);
  display: inline-block;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 12px rgba(210, 255, 0, 0.4);
}

.orbit3d-title {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: #FFFFFF;
  text-shadow: 0 0 25px rgba(210, 255, 0, 0.22);
}

.orbit3d-sub {
  font-size: clamp(0.55rem, 1vw, 0.68rem);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* 3D Isometric Orbit Viewport Stage */
.orbit3d-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: clamp(450px, 62vh, 670px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1400px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
  z-index: 2;
  user-select: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}

.orbit3d-stage:active {
  cursor: grabbing;
}

/* 3D Ring Anchor (Tilted at isometric camera angle) */
.orbit3d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

/* Individual 3D Certification Card (Not Tidally Locked - Curves with Ring) */
.orbit3d-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 255px;
  height: 165px;
  margin-left: -127px;
  margin-top:  -82px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 26, 16, 0.94) 0%, rgba(8, 13, 8, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  will-change: transform, opacity, filter, box-shadow;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Front Spotlight Card — Radiant Electric-Lime Glowing Border (Matches Screenshot) */
.orbit3d-card.is-front {
  border: 2px solid #D2FF00;
  box-shadow:
    0 0 38px rgba(210, 255, 0, 0.55),
    0 20px 55px rgba(0, 0, 0, 0.95),
    inset 0 0 18px rgba(210, 255, 0, 0.12);
}

.orbit3d-card:hover,
.orbit3d-card.is-hovered {
  border-color: #D2FF00;
  box-shadow:
    0 0 50px rgba(210, 255, 0, 0.70),
    0 24px 65px rgba(0, 0, 0, 0.95),
    inset 0 0 22px rgba(210, 255, 0, 0.18);
}

/* Card Internal Layout */
.orbit3d-card-inner {
  padding: 0.85rem 1rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Top Row: Authentic Analyzed Logos Cluster + Verified Status Pill */
.orbit3d-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.orbit3d-logos-cluster {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.cred-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.isro-mark {
  padding: 0.12rem 0.35rem;
}

.isro-svg {
  width: 52px;
  height: 22px;
}

.h2s-tag {
  font-size: 0.55rem;
  font-weight: 800;
  color: #00F0FF;
  letter-spacing: 0.05em;
}

.logo-svg {
  height: 18px;
  width: auto;
  max-width: 28px;
  flex-shrink: 0;
}

.iit-text,
.nptel-text,
.edu-ai-text,
.mits-text,
.zp-text,
.union-text,
.mariapps-text,
.cambridge-text {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #FFFFFF;
}

.swayam-text,
.ihrd-text,
.nba-text {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-lime);
}

.orbit3d-badge-pill {
  font-size: 0.50rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--card-accent, #D2FF00);
  color: var(--card-accent, #D2FF00);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card Body / Main Title */
.orbit3d-card-body {
  margin: 0.2rem 0;
}

.orbit3d-card-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.22;
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit3d-card-sub {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--card-accent, #D2FF00);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Bottom: Certification Shield Badge, Score, and Rosette Seal */
.orbit3d-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.orbit3d-shield-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.shield-badge-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.shield-badge-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shield-score {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shield-issuer {
  font-size: 0.48rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit3d-rosette-wrap {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rosette-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px currentColor);
}

/* Bottom Micro Telemetry & ID */
.orbit3d-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.48rem;
  color: #A0B09A;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Hover Reveal Cue */
.orbit3d-reveal-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(210, 255, 0, 0.25), transparent);
  padding: 0.25rem 0.5rem;
  font-size: 0.50rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-lime);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-weight: 700;
  pointer-events: none;
}

.orbit3d-card:hover .orbit3d-reveal-indicator,
.orbit3d-card.is-hovered .orbit3d-reveal-indicator {
  opacity: 1;
}

/* Navigation HUD */
.stage-nav-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.8rem;
  z-index: 50;
  position: relative;
}

.stage-nav-btn {
  padding: 0.45rem 1rem;
  background: rgba(10, 14, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
}

.stage-nav-btn:hover {
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--color-lime);
  color: var(--color-lime);
  box-shadow: 0 0 16px rgba(210, 255, 0, 0.3);
}

/* High-Resolution Document Lightbox Modal */
.orbit3d-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.orbit3d-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.orbit3d-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.orbit3d-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 1;
}

.orbit3d-lightbox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.orbit3d-lightbox-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(10, 14, 8, 0.92);
  border: 1px solid var(--color-lime);
  color: var(--color-lime);
}

.orbit3d-lightbox-title {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin: 0;
}

.orbit3d-lightbox-media-wrap {
  position: relative;
  max-width: 100%;
}

.orbit3d-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(210, 255, 0, 0.15);
}

.orbit3d-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.orbit3d-lightbox-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.orbit3d-lightbox-org {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.orbit3d-lightbox-code {
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.orbit3d-lightbox-close {
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--color-text-white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.orbit3d-lightbox-close:hover {
  background: rgba(210, 255, 0, 0.15);
  border-color: var(--color-lime);
  color: var(--color-lime);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .orbit3d-stage {
    min-height: 400px;
  }
  .orbit3d-card {
    width: 220px;
    height: 145px;
    margin-left: -110px;
    margin-top: -72px;
  }
  .orbit3d-card-inner {
    padding: 0.7rem 0.85rem 0.65rem 0.85rem;
  }
  .orbit3d-card-title {
    font-size: 0.78rem;
  }
  .orbit3d-title {
    font-size: 1.25rem;
  }
  .stage-nav-hud {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ==========================================================================
   14. CONTACT & TRANSMISSION PROTOCOL SECTION
   High-end dark cyber-editorial design system with glassmorphic cards,
   micro-interactions, clipboard telemetry, and responsive grid layout.
   ========================================================================== */

.contact-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  padding: 6.5rem 1.5rem 4rem 1.5rem;
  background: radial-gradient(circle at 50% 12%, rgba(20, 36, 22, 0.45) 0%, rgba(6, 12, 8, 0.95) 45%, #020402 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 1px solid rgba(210, 255, 0, 0.16);
  box-shadow: inset 0 60px 100px rgba(0, 0, 0, 0.95);
}

/* Ambient Radial Glow */
.contact-bg-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(210, 255, 0, 0.08) 0%, rgba(0, 255, 136, 0.04) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.contact-container {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

/* Section Header */
.contact-header {
  margin-bottom: 3rem;
  position: relative;
  z-index: 5;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(210, 255, 0, 0.06);
  border: 1px solid rgba(210, 255, 0, 0.25);
  color: var(--color-lime);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.contact-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 10px var(--color-lime);
  animation: contactDotPulse 1.4s ease-in-out infinite alternate;
}

@keyframes contactDotPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--color-lime); }
}

.contact-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #FFFFFF;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6FFE6 50%, #D2FF00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(210, 255, 0, 0.25));
  margin: 0;
}

.contact-subtitle {
  font-size: clamp(0.85rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  max-width: 680px;
  margin: 1rem auto 0;
  color: #A3B899;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

/* Featured Card (Email) Spans 2 Columns on Desktop */
.contact-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(14, 24, 16, 0.85) 0%, rgba(8, 14, 10, 0.75) 100%) !important;
  border-color: rgba(210, 255, 0, 0.22) !important;
}

/* Base Contact Card */
.contact-card {
  position: relative;
  background: rgba(10, 16, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 1.6rem 1.6rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.contact-card:hover {
  border-color: rgba(210, 255, 0, 0.38);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(210, 255, 0, 0.14);
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.08);
  background: rgba(210, 255, 0, 0.08);
}

.contact-card-tag {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.contact-card-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #8E9F88;
  margin: 0 0 1rem 0;
}

.contact-card-value {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--color-lime);
  background: rgba(210, 255, 0, 0.05);
  border: 1px solid rgba(210, 255, 0, 0.18);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  word-break: break-all;
  margin-bottom: 1.2rem;
  user-select: all;
}

/* Card Action Buttons */
.contact-card-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-contact-action {
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.05rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  font-weight: 600;
}

.btn-contact-action.primary {
  background: var(--color-lime);
  color: #000000;
  border: 1px solid var(--color-lime);
}

.btn-contact-action.primary:hover {
  background: #E2FF4D;
  box-shadow: 0 0 16px rgba(210, 255, 0, 0.45);
  transform: translateY(-2px);
}

.btn-contact-action.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-contact-action.secondary:hover {
  background: rgba(210, 255, 0, 0.12);
  border-color: var(--color-lime);
  color: var(--color-lime);
  transform: translateY(-2px);
}

.btn-contact-action.is-copied {
  background: rgba(0, 255, 136, 0.2) !important;
  border-color: #00FF88 !important;
  color: #00FF88 !important;
}

/* Telemetry Status Bar */
.contact-telemetry {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: rgba(8, 14, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-label {
  color: var(--color-text-muted);
}

.telemetry-val {
  color: #FFFFFF;
}

.telemetry-separator {
  color: rgba(255, 255, 255, 0.2);
}

/* Footer & Copyright */
.contact-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  width: 100%;
}

.contact-copyright {
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.75;
}

.copyright-dot {
  color: var(--color-lime);
}

/* Clipboard Toast */
.contact-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(25px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  background: rgba(8, 14, 10, 0.96);
  border: 1px solid var(--color-lime);
  color: var(--color-lime);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(210, 255, 0, 0.25);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.contact-toast .toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
}

.contact-toast.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .contact-section {
    padding: 4.5rem 1rem 3rem 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-featured {
    grid-column: span 1;
  }
  .contact-telemetry {
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
  }
  .telemetry-separator {
    display: none;
  }
  .contact-toast {
    max-width: 90vw;
    font-size: 0.65rem;
    padding: 0.55rem 1rem;
  }
}


