/* ==========================================================================
   Trevor Noah Inspired Zero-Scroll Stylesheet (Pure OLED Monochrome Theme)
   ========================================================================== */

@import url('variables.css');

/* Reset & Global Canvas */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Global selection & callout lock — feels native-app, not browser */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection in form inputs */
.form-input,
.form-textarea {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Zero-scroll single viewport presentation */
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* App Viewport Container */
.app-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Header Navigation
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 2rem;
  padding-right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-primary);
  /* Outset top box-shadow seamlessly fills any 1px Android rendering gap at status bar border */
  box-shadow: 0 -15px 0 0 var(--bg-primary);
  border: none !important;
  outline: none !important;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-badge {
  background: var(--text-primary);
  color: var(--bg-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: var(--bg-surface);
  border: var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-pwa-install:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Hero Central Stage (Trevor Noah Cutout Style)
   -------------------------------------------------------------------------- */
.hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
  transition: transform var(--transition-slide);
}

.hero-stage.slide-down {
  transform: translateY(100vh);
}

/* High Legibility Background Typography with Responsive Mouse Pointer Glow */
.bg-title-text {
  position: absolute;
  top: 13vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 13.5vw, 15.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 1;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --glow-intensity: 0;
  transition: filter 0.2s ease, text-shadow 0.2s ease;
}

[data-theme="dark"] .bg-title-text {
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.38);
  background: radial-gradient(
    circle 100px at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.65) 30%,
    rgba(255, 255, 255, 0.15) 65%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 calc(18px * var(--glow-intensity)) rgba(255, 255, 255, calc(0.6 * var(--glow-intensity))));
}

[data-theme="light"] .bg-title-text {
  color: rgba(15, 23, 42, 0.06);
  -webkit-text-stroke: 2px rgba(15, 23, 42, 0.38);
  background: radial-gradient(
    circle 100px at var(--mouse-x) var(--mouse-y),
    rgba(15, 23, 42, 1) 0%,
    rgba(15, 23, 42, 0.65) 30%,
    rgba(15, 23, 42, 0.15) 65%,
    rgba(15, 23, 42, 0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 calc(18px * var(--glow-intensity)) rgba(15, 23, 42, calc(0.4 * var(--glow-intensity))));
}

/* Central Head Container */
.head-portrait-container {
  position: relative;
  width: min(520px, 90vw, calc(72vh * 0.8387));
  aspect-ratio: 520 / 620;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 10;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Glowing Brain Graphic Backdrop */
.brain-graphic-bg {
  position: absolute;
  top: 17.74%;
  left: 50%;
  transform: translateX(-50%);
  width: 84.6%;
  height: auto;
  z-index: 1;
  /* Placed BEHIND head cutout (z-index 10) and category buttons (z-index 5-7) */
  pointer-events: none;
  opacity: 1.0;
  filter: drop-shadow(0 0 20px rgba(220, 120, 140, 0.4));
  animation: pulseBrainGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseBrainGlow {
  0% {
    transform: translateX(-50%) scale(0.98);
    opacity: 0.65;
  }

  100% {
    transform: translateX(-50%) scale(1.03);
    opacity: 0.85;
  }
}

/* Hero Portrait Image (Contains Photorealistic PNG Eye Direction Frames) */
.portrait-img {
  position: relative;
  z-index: 10;
  /* Cutout sits ON TOP of brain items */
  pointer-events: none;
  /* Clicks pass through to brain items behind */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  transition: none;
  /* Instant 60fps frame switching without jitter or transition lag */
}

/* --------------------------------------------------------------------------
   Brain Contents Category Buttons (Popping out from behind Head Paper Tear)
   -------------------------------------------------------------------------- */
.head-burst-items {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  /* Tucked behind head tear cutout */
  pointer-events: auto;
}

.burst-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(14, 14, 18, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, z-index 0.1s ease;
  animation: floatBrainThought 4s ease-in-out infinite alternate;
}

.burst-node i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

/* 3D Brain Contents Custom Badge Positioning */
.node-1 {
  top: 16.9%;
  left: 24%;
  z-index: 5;
  animation-delay: 0s;
}

.node-2 {
  top: 28.2%;
  right: 28%;
  z-index: 7;
  animation-delay: 0.6s;
}

.node-3 {
  top: 16.9%;
  right: 24%;
  z-index: 5;
  animation-delay: 1.2s;
}

.node-4 {
  top: 22.5%;
  left: 15%;
  z-index: 6;
  animation-delay: 0.3s;
}

.node-5 {
  top: 21.7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  animation: floatCenteredBrainThought 4s ease-in-out infinite alternate;
  animation-delay: 1.8s;
}

.node-6 {
  top: 22.5%;
  right: 15%;
  z-index: 6;
  animation-delay: 0.9s;
}

.node-7 {
  top: 28.2%;
  left: 28%;
  z-index: 7;
  animation-delay: 1.5s;
}

/* Obvious High-Contrast Monochrome Hover Highlight */
.burst-node:hover {
  z-index: 100 !important;
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: scale(1.18) translateY(-6px) !important;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.7), 0 15px 30px rgba(0, 0, 0, 0.9);
}

.node-5:hover {
  transform: translateX(-50%) scale(1.18) translateY(-6px) !important;
}

.burst-node:hover i {
  color: #000000 !important;
}

/* Floating Animations (Standard and Centered) */
@keyframes floatBrainThought {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-5px) rotate(0.8deg);
  }
}

@keyframes floatCenteredBrainThought {
  0% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateX(-50%) translateY(-5px) rotate(0.8deg);
  }
}

@keyframes floatNode {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* Bottom Quick Dock Bar */
.bottom-nav-bar {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 0.6rem;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  border: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.quick-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-tab-btn:hover,
.quick-tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Full Viewport Panel Overlay (Slide-Up Section Panels)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Full Viewport Panel Overlay (Slide-Up Section Panels)
   -------------------------------------------------------------------------- */
.panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform var(--transition-slide), opacity 0.3s ease;
  padding: 1.25rem 1.5rem;
  overflow: hidden !important;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
}

.panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.btn-close-panel {
  background: var(--bg-surface);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-close-panel:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Panel Sections Grid Layout */
.panel-section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  min-height: 0;
}

.projects-panel-grid,
.skills-panel-grid,
.timeline,
.horizontal-panel-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding: 0.5rem 0.5rem 1.25rem 0.5rem;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.projects-panel-grid::-webkit-scrollbar,
.skills-panel-grid::-webkit-scrollbar,
.timeline::-webkit-scrollbar,
.horizontal-panel-slider::-webkit-scrollbar {
  height: 6px;
}

.projects-panel-grid::-webkit-scrollbar-track,
.skills-panel-grid::-webkit-scrollbar-track,
.timeline::-webkit-scrollbar-track,
.horizontal-panel-slider::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.projects-panel-grid::-webkit-scrollbar-thumb,
.skills-panel-grid::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb,
.horizontal-panel-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
}

.slider-card {
  flex: 0 0 min(330px, 80vw) !important;
  scroll-snap-align: start;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  box-sizing: border-box;
}

.project-item-card {
  flex: 0 0 min(330px, 80vw) !important;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  box-sizing: border-box;
}

.project-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.project-item-img {
  width: 100%;
  height: min(150px, 22vh);
  object-fit: cover;
  flex-shrink: 1;
}

.project-item-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

/* Skills Grid inside Panel */
.skill-card {
  flex: 0 0 min(290px, 76vw) !important;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  margin-top: 0.6rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 1s ease;
}

/* Timeline Cards */
.timeline {
  max-width: 100%;
  margin: 0;
}

.timeline-card {
  flex: 0 0 min(310px, 78vw) !important;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
}

/* Contact Panel Grid */
.contact-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input,
.form-textarea {
  background: rgba(0, 0, 0, 0.4);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  outline: none;
}

.form-textarea {
  min-height: 100px;
}

/* Modal Window */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

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

.modal-content {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Immersive Image Cards (Party Favors & Graphic Design)
   -------------------------------------------------------------------------- */
.immersive-card {
  position: relative;
  flex: 0 0 min(330px, 80vw) !important;
  scroll-snap-align: start;
  min-height: 260px;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.immersive-card:hover {
  transform: translateY(-4px);
  box-shadow: none !important;
}

/* Bottom gradient scrim for text legibility */
.immersive-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* Overlaid text cluster */
.immersive-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.immersive-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.immersive-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.25;
}

/* CTA button inside immersive card */
.immersive-card .immersive-card-cta {
  position: relative;
  z-index: 2;
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Custom Long-Press Context Menu
   -------------------------------------------------------------------------- */
.immersive-menu {
  position: fixed;
  z-index: 500;
  display: none;
  flex-direction: column;
  min-width: 180px;
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: none !important;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
  pointer-events: none;
}

.immersive-menu.active {
  display: flex;
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.immersive-menu button {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: background 0.15s ease;
}

.immersive-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.immersive-menu button i {
  font-size: 0.9rem;
  width: 1.1rem;
  text-align: center;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Fullscreen Lightbox (Gallery with Swipe, Text & Navigation)
   -------------------------------------------------------------------------- */
.immersive-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: hidden;
}

.immersive-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* Inner container holds image + text vertically */
.immersive-lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  gap: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
  position: relative;
  z-index: 1;
}

.immersive-lightbox-container.swipe-left {
  transform: translateX(-60px);
  opacity: 0;
}

.immersive-lightbox-container.swipe-right {
  transform: translateX(60px);
  opacity: 0;
}

.immersive-lightbox-container.swipe-down {
  transform: translateY(80px);
  opacity: 0;
}

.immersive-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: none !important;
  flex-shrink: 1;
}

/* Text below image */
.immersive-lightbox-text {
  text-align: center;
  padding: 0.75rem 1.5rem 0.5rem;
  max-width: 600px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.immersive-lightbox-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.immersive-lightbox-title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.immersive-lightbox-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.immersive-lightbox-save-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Navigation arrows */
.immersive-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
  z-index: 3;
  opacity: 0.6;
}

.immersive-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.immersive-lightbox-prev { left: 0.75rem; }
.immersive-lightbox-next { right: 0.75rem; }


/* Responsive Adjustments */
@media (max-width: 992px) {
  .burst-node {
    padding: 0.42rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.45rem;
  }

  .node-1 {
    top: 15.3%;
    left: 16%;
  }

  .node-2 {
    top: 25.8%;
    right: 22%;
  }

  .node-3 {
    top: 15.3%;
    right: 16%;
  }

  .node-4 {
    top: 21.0%;
    left: 9%;
  }

  .node-5 {
    top: 20.1%;
    left: 50%;
  }

  .node-6 {
    top: 21.0%;
    right: 9%;
  }

  .node-7 {
    top: 25.8%;
    left: 22%;
  }

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

@media (max-width: 600px) {
  .header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .nav-controls {
    gap: 0.4rem;
  }

  .btn-pwa-install,
  #pwa-install-header {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.76rem !important;
    gap: 0.35rem !important;
    font-weight: 700 !important;
    max-height: 36px !important;
    white-space: nowrap !important;
  }

  .btn-icon {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .bg-title-text {
    font-size: 16vw;
    top: 16vh;
  }

  .burst-node {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }

  .node-1 {
    top: 13.0%;
    left: 10%;
  }

  .node-2 {
    top: 23.4%;
    right: 18%;
  }

  .node-3 {
    top: 13.0%;
    right: 10%;
  }

  .node-4 {
    top: 18.5%;
    left: 5%;
  }

  .node-5 {
    top: 17.7%;
    left: 50%;
  }

  .node-6 {
    top: 18.5%;
    right: 5%;
  }

  .node-7 {
    top: 23.4%;
    left: 18%;
  }
}