@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap");

:root {
  /* Advanced Color System */
  --electric-cyan: #00d4ff;
  --plasma-pink: #ff0080;
  --quantum-yellow: #ffe600;
  --bio-green: #00ff88;
  --neural-purple: #8b5cf6;
  --fusion-orange: #ff6b35;
  --photon-blue: #0066ff;
  --atomic-red: #ff3366;

  --void-black: #000000;
  --obsidian: #0a0a0a;
  --charcoal: #1a1a1a;
  --graphite: #2a2a2a;
  --steel: #404040;
  --silver: #808080;
  --platinum: #c0c0c0;
  --crystal: #ffffff;

  /* Advanced Typography */
  --font-display: "Syne", sans-serif;
  --font-primary: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-ui: "Inter", sans-serif;

  /* Sophisticated Easing */
  --ease-elastic-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-back-out: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-circ-out: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-quart-out: cubic-bezier(0.25, 1, 0.5, 1);

  /* Timing System */
  --duration-micro: 150ms;
  --duration-short: 250ms;
  --duration-medium: 400ms;
  --duration-long: 600ms;
  --duration-extended: 1000ms;

  /* Advanced Shadows */
  --shadow-brutal: 8px 8px 0px;
  --shadow-depth: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px;
  --shadow-inset: inset 0 0 40px rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--void-black);
  color: var(--crystal);
  min-height: 100vh;
  line-height: 1.4;
  cursor: none;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--void-black);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-circle {
  position: absolute;
  border: 3px solid transparent;
  border-top-color: var(--electric-cyan);
  border-radius: 50%;
  animation: loaderSpin 1.5s ease-in-out infinite;
}

.loader-circle:nth-child(1) {
  inset: 0;
  animation-delay: 0s;
}

.loader-circle:nth-child(2) {
  inset: 15px;
  border-top-color: var(--plasma-pink);
  animation-delay: 0.2s;
  animation-direction: reverse;
}

.loader-circle:nth-child(3) {
  inset: 30px;
  border-top-color: var(--quantum-yellow);
  animation-delay: 0.4s;
}

@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 2rem;
  font-family: var(--font-mono);
  color: var(--electric-cyan);
  letter-spacing: 0.2em;
  animation: loadingPulse 1s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Enhanced Custom Cursor System */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--electric-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.1s ease-out, background 0.3s ease;
  opacity: 0;
}

.cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--plasma-pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  opacity: 0;
}

.cursor.visible {
  opacity: 1;
}

.cursor-trail.visible {
  opacity: 0.5;
}

.cursor.hover {
  transform: scale(2.5);
  background: var(--plasma-pink);
}

.cursor.click {
  transform: scale(0.8);
  background: var(--quantum-yellow);
}

/* Liquid Metal Navigation - FIXED */
.liquid-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 30px;
  border: 1px solid var(--steel);
}

.nav-blob {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--electric-cyan);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.nav-items {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.nav-items li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
  padding: 0.5rem;
  margin: -0.5rem;
}

/* Active state styling */
.nav-items li.active {
  color: var(--electric-cyan) !important;
}

.nav-items li.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--electric-cyan);
  box-shadow: 0 0 10px var(--electric-cyan);
}

/* Hover state */
.nav-items li:not(.active)::before {
  content: attr(data-text);
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: var(--electric-cyan);
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav-items li:not(.active):hover {
  color: transparent;
}

.nav-items li:not(.active):hover::before {
  opacity: 1;
  transform: translateY(0);
}

.nav-items li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  user-select: none;
  padding: 0.5rem;
  margin: -0.5rem;
}

.nav-items li::before {
  content: attr(data-text);
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: var(--electric-cyan);
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.nav-items li:hover {
  color: transparent;
}

.nav-items li:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.nav-items li:hover ~ .nav-blob,
.nav-blob:hover {
  opacity: 0.6;
}

/* 3D DNA Helix */
.dna-container {
  position: fixed;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 300px;
  z-index: 100;
  pointer-events: none;
}

.dna-helix {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: dnaRotate 10s linear infinite;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
}

.dna-strand::before,
.dna-strand::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--bio-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bio-green);
}

.dna-strand:nth-child(2) {
  transform: rotateY(180deg);
}

@keyframes dnaRotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Enhanced Particle System */
.particle-system {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--electric-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s linear infinite;
}

.particle.connected {
  width: 1px;
  height: 1px;
}

.particle-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--electric-cyan),
    transparent
  );
  height: 1px;
  transform-origin: left center;
  opacity: 0.2;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(100px) rotate(360deg);
  }
}

/* Enhanced Neural Grid */
.neural-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.neural-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 128, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFlow 25s linear infinite;
  mask: radial-gradient(circle at center, transparent 20%, black 70%);
}

.neural-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      var(--electric-cyan) 1px,
      transparent 1px
    ),
    radial-gradient(circle at 80% 70%, var(--plasma-pink) 1px, transparent 1px),
    radial-gradient(circle at 60% 20%, var(--bio-green) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px, 250px 250px;
  animation: neuralPulse 4s ease-in-out infinite;
  opacity: 0.6;
}

/* Enhanced Morphing Blobs */
.morphing-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px) contrast(3);
}

.blob {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  animation: blobMorph 12s ease-in-out infinite;
  background-blend-mode: screen;
}

.blob-1 {
  width: 400px;
  height: 300px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--electric-cyan),
    transparent 70%
  );
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 250px;
  background: radial-gradient(
    circle at 70% 70%,
    var(--plasma-pink),
    transparent 70%
  );
  top: 60%;
  right: -15%;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px;
  height: 400px;
  background: radial-gradient(
    circle at 50% 50%,
    var(--bio-green),
    transparent 70%
  );
  bottom: 10%;
  left: 30%;
  animation-delay: -8s;
}

/* Enhanced Laboratory Container */
.laboratory {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(12, minmax(80px, auto));
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 10;
}

/* Enhanced Primary Header with Liquid Text */
.primary-header {
  grid-column: 1 / 11;
  grid-row: 2 / 5;
  background: linear-gradient(135deg, var(--plasma-pink), var(--photon-blue));
  padding: clamp(1.5rem, 4vw, 3rem);
  transform: rotate(-1.5deg) skewX(-1deg);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--crystal);
  z-index: 5;
  box-shadow: var(--shadow-brutal) var(--electric-cyan),
    calc(var(--shadow-brutal) + 8px) calc(var(--shadow-brutal) + 8px) 0px
      var(--plasma-pink),
    calc(var(--shadow-brutal) + 16px) calc(var(--shadow-brutal) + 16px) 0px
      var(--quantum-yellow),
    var(--shadow-depth);
}

.header-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.header-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: headerParticleFloat 3s ease-in-out infinite;
}

@keyframes headerParticleFloat {
  0%,
  100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-50px) scale(1);
    opacity: 1;
  }
}

.liquid-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--void-black);
  position: relative;
  z-index: 6;
  line-height: 0.85;
  transform: rotate(1deg);
  text-shadow: 2px 2px 0px var(--quantum-yellow),
    4px 4px 0px var(--electric-cyan), 6px 6px 0px var(--bio-green),
    8px 8px 20px rgba(0, 0, 0, 0.5);
}

.liquid-text span {
  display: inline-block;
  animation: liquidWave 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes liquidWave {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

/* Enhanced Tagline with Typewriter */
.tagline-block {
  grid-column: 11 / 17;
  grid-row: 1 / 4;
  background: var(--quantum-yellow);
  color: var(--void-black);
  padding: clamp(1rem, 3vw, 2rem);
  transform: rotate(2deg);
  border: 3px solid var(--void-black);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 4;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-brutal) var(--void-black);
}

.typewriter-container {
  display: flex;
  align-items: center;
}

.typewriter-text {
  font-family: var(--font-mono);
}

.typewriter-cursor {
  animation: blink 1s ease-in-out infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* New: Experiment Cards */
.experiment-showcase {
  grid-column: 1 / 17;
  grid-row: 5 / 6;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.experiment-card {
  width: 300px;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.experiment-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px solid var(--electric-cyan);
}

.card-front {
  background: linear-gradient(135deg, var(--obsidian), var(--charcoal));
}

.card-back {
  background: linear-gradient(135deg, var(--charcoal), var(--graphite));
  transform: rotateY(180deg);
}

.experiment-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-graph {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, var(--electric-cyan) 0%, transparent 100%);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,25 Q25,5 50,25 T100,25' stroke='white' fill='none' stroke-width='3'/%3E%3C/svg%3E");
  animation: graphPulse 2s ease-in-out infinite;
}

@keyframes graphPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

.quantum-particles {
  position: relative;
  width: 100%;
  height: 50px;
}

.quantum-particles::before,
.quantum-particles::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--plasma-pink);
  border-radius: 50%;
  animation: quantumOrbit 3s linear infinite;
}

.quantum-particles::after {
  background: var(--electric-cyan);
  animation-delay: -1.5s;
}

@keyframes quantumOrbit {
  0% {
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

/* Enhanced Status Terminal with Audio Visualizer */
.status-terminal {
  grid-column: 1 / 9;
  grid-row: 7 / 10;
  background: var(--obsidian);
  border: 2px solid var(--electric-cyan);
  padding: clamp(1rem, 3vw, 2rem);
  transform: rotate(-0.5deg);
  position: relative;
  overflow: hidden;
  z-index: 6;
  box-shadow: var(--shadow-glow) var(--electric-cyan), var(--shadow-inset);
}

.terminal-header {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--electric-cyan);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.terminal-btn:hover {
  transform: scale(1.2);
}

.terminal-btn.red {
  background: #ff5f56;
}
.terminal-btn.yellow {
  background: #ffbd2e;
}
.terminal-btn.green {
  background: #27c93f;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  height: 40px;
  gap: 4px;
  margin-bottom: 1rem;
}

.visualizer-bar {
  flex: 1;
  background: linear-gradient(to top, var(--electric-cyan), var(--plasma-pink));
  opacity: 0.8;
  animation: audioWave 1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes audioWave {
  0%,
  100% {
    height: 20%;
  }
  50% {
    height: calc(40% + random() * 60%);
  }
}

/* Enhanced Feature Matrix with 3D Perspective */
.feature-matrix {
  grid-column: 9 / 17;
  grid-row: 7 / 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  transform: rotate(0.5deg);
  z-index: 7;
}

.feature-module {
  padding: clamp(0.8rem, 2.5vw, 1.5rem);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid;
  transition: all var(--duration-medium) var(--ease-back-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  line-height: 1.3;
  transform-style: preserve-3d;
}

.perspective-card {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.feature-background {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(30px);
}

.feature-module:hover .feature-background {
  opacity: 0.3;
}

/* New: Data Sculpture */
.data-sculpture {
  grid-column: 3 / 15;
  grid-row: 11 / 12;
  background: var(--obsidian);
  border: 2px solid var(--neural-purple);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#dataSculpture {
  width: 100%;
  height: 200px;
  background: transparent;
}

.sculpture-controls {
  display: flex;
  gap: 1rem;
}

.sculpture-btn {
  background: var(--charcoal);
  border: 1px solid var(--neural-purple);
  color: var(--crystal);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sculpture-btn:hover {
  background: var(--neural-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.5);
}

.sculpture-btn.active {
  background: var(--neural-purple);
}

/* Enhanced Contact Interface with Matrix Rain */
.contact-interface {
  grid-column: 3 / 15;
  grid-row: 12 / 13;
  background: var(--charcoal);
  border: 3px solid var(--bio-green);
  padding: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-mono);
  transform: rotate(-0.2deg);
  position: relative;
  overflow: hidden;
  z-index: 9;
  box-shadow: var(--shadow-glow) var(--bio-green), var(--shadow-inset),
    var(--shadow-depth);
}

.matrix-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.1;
  pointer-events: none;
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--bio-green);
  animation: matrixFall linear infinite;
  animation-duration: calc(5s + random() * 10s);
}

@keyframes matrixFall {
  to {
    transform: translateY(calc(100vh + 100%));
  }
}

/* Holographic Contact Link */
.holographic {
  position: relative;
  background: linear-gradient(
    45deg,
    var(--plasma-pink),
    var(--electric-cyan),
    var(--quantum-yellow)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

/* Floating Action Menu */
.floating-menu {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.menu-trigger {
  width: 60px;
  height: 60px;
  background: var(--electric-cyan);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.menu-trigger span {
  width: 20px;
  height: 2px;
  background: var(--void-black);
  transition: all 0.3s ease;
}

.menu-trigger.active {
  background: var(--plasma-pink);
  transform: rotate(45deg);
}

.menu-trigger.active span:nth-child(1) {
  transform: rotate(90deg) translateX(6px);
}

.menu-trigger.active span:nth-child(2) {
  opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
  transform: rotate(0deg) translateX(-6px);
}

.menu-items {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-items.active {
  opacity: 1;
  visibility: visible;
}

.menu-item {
  width: 50px;
  height: 50px;
  background: var(--charcoal);
  border: 2px solid var(--electric-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(0);
}

.menu-items.active .menu-item {
  transform: scale(1);
  animation: menuItemBounce 0.5s ease forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes menuItemBounce {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.menu-item:hover {
  background: var(--electric-cyan);
  transform: scale(1.1) rotate(360deg);
}

/* Enhanced Lab Equipment with Fixed Positioning */
.lab-equipment {
  position: fixed;
  font-size: clamp(2rem, 5vw, 4rem);
  z-index: 3;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-elastic-out);
  animation: equipmentFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px currentColor);
}

.equipment-1 {
  top: 10%;
  left: 5%;
  color: var(--electric-cyan);
  animation-delay: 0s;
}

.equipment-2 {
  top: 25%;
  right: 8%;
  color: var(--plasma-pink);
  animation-delay: -1.5s;
}

.equipment-3 {
  bottom: 30%;
  left: 10%;
  color: var(--bio-green);
  animation-delay: -3s;
}

.equipment-4 {
  bottom: 15%;
  right: 15%;
  color: var(--quantum-yellow);
  animation-delay: -4.5s;
}

@keyframes equipmentFloat {
  0%,
  100% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 20px currentColor);
  }
  25% {
    transform: translate(-10px, -15px) rotate(5deg) scale(1.02);
    filter: drop-shadow(0 0 25px currentColor);
  }
  50% {
    transform: translate(8px, -25px) rotate(-3deg) scale(0.98);
    filter: drop-shadow(0 0 30px currentColor);
  }
  75% {
    transform: translate(-5px, 10px) rotate(8deg) scale(1.01);
    filter: drop-shadow(0 0 22px currentColor);
  }
}

.lab-equipment:hover {
  transform: scale(1.4) rotate(180deg);
  filter: drop-shadow(0 0 30px currentColor) drop-shadow(0 0 60px currentColor);
  animation-play-state: paused;
}

.magnetic-hover {
  transition: all 0.1s ease-out;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
  .dna-container {
    display: none;
  }

  .experiment-showcase {
    flex-direction: column;
    grid-row: 5 / 7;
  }

  .data-sculpture {
    grid-column: 1 / 13;
  }

  .experiments-grid,
  .collaborations-showcase {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }

  .liquid-nav {
    top: 1rem;
    right: 1rem;
  }

  .nav-items {
    flex-direction: column;
    gap: 1rem;
    background: var(--charcoal);
    padding: 1rem;
    border-radius: 10px;
    display: none;
  }

  .nav-items.mobile-active {
    display: flex;
  }

  .experiment-card {
    width: 250px;
    height: 150px;
  }

  .lab-equipment {
    font-size: 2rem;
    position: fixed;
  }

  .equipment-1 {
    top: 5%;
    left: 5%;
  }
  .equipment-2 {
    top: 5%;
    right: 5%;
  }
  .equipment-3 {
    bottom: 10%;
    left: 5%;
  }
  .equipment-4 {
    bottom: 10%;
    right: 5%;
  }

  .experiments-grid,
  .study-cards,
  .collaborations-showcase {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Animation Performance */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
