/* ========================================
   COSMIC GENESIS - CERN-LEVEL ACCURATE
   Big Bang to Present Timeline
   ======================================== */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* Quantum particle field background */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
              #000;
  /* Ensure it stays behind everything */
  transform: translateZ(-1px);
}

/* Main timeline container */
.cosmic-timeline-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-size: 0; /* Remove inline-block whitespace */
  /* Remove flex and use inline-block instead */
  scroll-snap-type: none;
  scroll-behavior: smooth;
  z-index: 1;
  /* Ensure proper stacking context but below dropdown */
  transform: translateZ(0);
}

/* Scrollbar styling */
.cosmic-timeline-container::-webkit-scrollbar {
  height: 12px;
}

.cosmic-timeline-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.cosmic-timeline-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.6);
  border-radius: 6px;
}

.cosmic-timeline-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.8);
}

/* Individual cosmic eras */
.cosmic-era {
  width: 100vw !important;
  height: 100vh !important;
  display: inline-block !important;
  position: relative;
  vertical-align: top;
  white-space: normal;
  overflow: hidden;
  font-size: 1rem; /* Reset font-size for content */
  box-sizing: border-box;
  min-width: 100vw; /* Ensure minimum width */
  max-width: 100vw; /* Ensure maximum width */
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* Era backgrounds */
.era-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.singularity-bg {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 200, 0, 0.1) 20%, #000 70%);
}

.planck-bg {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(102, 126, 234, 0.1) 30%, #000 70%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.2)" /><circle cx="80" cy="60" r="1.5" fill="rgba(255,255,255,0.15)" /><circle cx="50" cy="90" r="0.8" fill="rgba(255,255,255,0.25)" /></svg>');
  background-size: 50px 50px;
  animation: quantumFoamFlicker 2s ease-in-out infinite;
}

.gut-bg {
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 40%, #000 70%);
}

.inflation-bg {
  background: radial-gradient(ellipse at center, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.1) 30%, #000 70%);
  animation: inflationExpand 8s ease-out infinite;
}

.ewsb-bg {
  background: radial-gradient(circle at center, rgba(67, 233, 123, 0.2) 0%, rgba(56, 249, 215, 0.1) 35%, #000 70%);
}

.qcd-bg {
  background: radial-gradient(circle at center, rgba(255, 68, 0, 0.2) 0%, rgba(255, 100, 50, 0.1) 35%, #000 70%);
}

.bbn-bg {
  background: radial-gradient(circle at center, rgba(255, 200, 0, 0.15) 0%, rgba(255, 150, 0, 0.1) 40%, #000 70%);
}

.equality-bg {
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1) 0%, rgba(0, 255, 0, 0.1) 50%, rgba(0, 0, 255, 0.1) 100%),
              #000;
}

.recombination-bg {
  background: radial-gradient(circle at center, rgba(255, 255, 0, 0.15) 0%, rgba(255, 200, 100, 0.1) 40%, #000 70%);
}

.dark-ages-bg {
  background: radial-gradient(circle at 20% 30%, rgba(102, 51, 153, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(102, 51, 153, 0.05) 0%, transparent 40%),
              #000;
}

.first-stars-bg {
  background: radial-gradient(circle at center, rgba(255, 170, 0, 0.2) 0%, rgba(255, 200, 100, 0.1) 30%, #000 70%);
}

.galaxies-bg {
  background: radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(240, 147, 251, 0.06) 0%, transparent 35%),
              radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 25%),
              radial-gradient(circle at 30% 80%, rgba(255, 200, 100, 0.05) 0%, transparent 30%),
              #000;
}

.smbh-bg {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(255, 100, 0, 0.15) 20%, rgba(255, 200, 0, 0.1) 40%, #000 70%);
}

.solar-system-bg {
  background: radial-gradient(circle at center, rgba(255, 200, 0, 0.15) 0%, rgba(255, 150, 50, 0.1) 30%, #000 70%);
}

.clusters-bg {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 100px,
    rgba(102, 51, 153, 0.05) 100px,
    rgba(102, 51, 153, 0.05) 102px
  ), #000;
}

.dark-energy-bg {
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 255, 0.1) 50%, #000 100%);
  animation: darkEnergyPulse 12s ease-in-out infinite;
}

/* Era content styling */
.era-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
}

.era-info {
  max-width: 550px;
  min-width: 500px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 35px;
  margin-left: auto;
  position: relative;
}

.era-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, rgba(102, 126, 234, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.era-timeline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: rgba(0, 242, 254, 1);
  margin-bottom: 8px;
  font-weight: 600;
}

.era-temperature {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: rgba(255, 100, 100, 0.9);
  margin-bottom: 15px;
}

.physics-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.equation {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.equation-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-top: 8px;
}

/* ===== ERA-SPECIFIC VISUALIZATIONS ===== */

/* Era 0: Singularity */
.singularity-point {
  position: relative;
  width: 300px;
  height: 300px;
}

.quantum-singularity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, rgba(255, 200, 0, 1) 30%, rgba(255, 100, 0, 0.8) 60%, transparent 100%);
  border-radius: 50%;
  animation: singularityPulse 3s ease-in-out infinite;
  box-shadow: 0 0 100px rgba(255, 255, 255, 1),
              0 0 200px rgba(255, 200, 0, 0.8),
              0 0 300px rgba(255, 100, 0, 0.6);
}

.spacetime-curvature {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: spacetimeCurve 4s ease-in-out infinite;
}

/* Era 1: Planck Epoch */
.planck-physics {
  position: relative;
  width: 400px;
  height: 400px;
}

.quantum-foam {
  position: absolute;
  width: 100%;
  height: 100%;
}

.foam-bubble {
  position: absolute;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: foamBubble 2s ease-in-out infinite;
}

.foam-bubble:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.foam-bubble:nth-child(2) {
  top: 60%;
  right: 25%;
  animation-delay: 0.7s;
}

.foam-bubble:nth-child(3) {
  bottom: 30%;
  left: 60%;
  animation-delay: 1.4s;
}

.planck-scale {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.length-scale, .time-scale, .energy-scale {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0;
}

/* Era 2: Grand Unification */
.gut-symmetry {
  position: relative;
  width: 350px;
  height: 350px;
}

.unified-force-field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
  border: 3px solid rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  animation: unifiedField 4s ease-in-out infinite;
}

.symmetry-breaking {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
}

.force-line {
  position: absolute;
  width: 4px;
  height: 100px;
  background: linear-gradient(180deg, rgba(240, 147, 251, 0.8) 0%, transparent 100%);
  transform-origin: bottom center;
}

.gravity-separates {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  animation: gravitySeparate 6s ease-in-out infinite;
}

.gut-unified {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(15deg);
  animation: gutUnify 6s ease-in-out infinite;
}

.x-boson-decay {
  position: absolute;
  bottom: 20%;
  right: 20%;
}

.x-boson {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, rgba(240, 147, 251, 1) 0%, rgba(245, 87, 108, 0.8) 100%);
  border-radius: 50%;
  animation: xBosonDecay 3s ease-in-out infinite;
}

.decay-products {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  animation: decayProducts 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Era 3: Cosmic Inflation */
.inflation-field {
  position: relative;
  width: 500px;
  height: 500px;
}

.inflaton-potential {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79, 172, 254, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: inflatonRoll 6s ease-in-out infinite;
}

.expansion-visualization {
  position: absolute;
  width: 100%;
  height: 100%;
}

.space-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(79, 172, 254, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 172, 254, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: spaceExpansion 8s ease-out infinite;
}

.horizon-problem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(0, 242, 254, 0.6);
  border-radius: 50%;
  animation: horizonSolve 8s ease-out infinite;
}

.scalar-field-roll {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 120px;
  height: 60px;
}

.potential-well {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(79, 172, 254, 0.3) 50%, rgba(79, 172, 254, 0.6) 100%);
  border-radius: 0 0 60px 60px;
  position: relative;
}

.field-value {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 0, 0.9);
  border-radius: 50%;
  animation: fieldRoll 6s ease-in-out infinite;
}

/* Era 4: Electroweak Symmetry Breaking */
.higgs-mechanism {
  position: relative;
  width: 400px;
  height: 400px;
}

.higgs-field-vev {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(67, 233, 123, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: higgsVEV 5s ease-in-out infinite;
}

.gauge-bosons {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.w-boson, .z-boson, .photon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  animation: bosonMotion 4s linear infinite;
}

.w-boson {
  background: radial-gradient(circle, #ff6600 0%, #ff3300 100%);
  animation-delay: 0s;
}

.z-boson {
  background: radial-gradient(circle, #6600ff 0%, #3300ff 100%);
  animation-delay: 1.3s;
}

.photon {
  background: radial-gradient(circle, #ffff00 0%, #ffaa00 100%);
  animation-delay: 2.6s;
}

.mass-generation {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 50px;
}

.fermion-masses {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(67, 233, 123, 0.3),
    rgba(67, 233, 123, 0.3) 5px,
    transparent 5px,
    transparent 10px
  );
  animation: massGeneration 3s ease-in-out infinite;
}

/* Era 5: QCD Phase Transition */
.qcd-transition {
  position: relative;
  width: 450px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quark-gluon-plasma {
  position: relative;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 68, 0, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: plasmaState 3s ease-in-out infinite;
}

.quark {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: #fff;
  animation: quarkFloat 2s ease-in-out infinite;
}

.up-quark {
  background: radial-gradient(circle, #ff3366 0%, #cc0033 100%);
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.down-quark {
  background: radial-gradient(circle, #3366ff 0%, #0033cc 100%);
  top: 60%;
  right: 20%;
  animation-delay: 0.7s;
}

.strange-quark {
  background: radial-gradient(circle, #66ff33 0%, #33cc00 100%);
  bottom: 20%;
  left: 60%;
  animation-delay: 1.4s;
}

.gluon-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,10 80,20 Q90,50 80,80 Q50,90 20,80 Q10,50 20,20" fill="none" stroke="rgba(255,255,0,0.4)" stroke-width="2"/></svg>');
  background-size: 40px 40px;
  animation: gluonField 2s ease-in-out infinite;
}

.confinement-arrow {
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  animation: confinementProcess 4s ease-in-out infinite;
}

.hadron-formation {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.proton, .neutron {
  position: relative;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: hadronForm 4s ease-in-out infinite;
}

.proton {
  background: rgba(255, 51, 102, 0.3);
  animation-delay: 2s;
}

.neutron {
  background: rgba(51, 102, 255, 0.3);
  animation-delay: 2.5s;
}

.proton .quark, .neutron .quark {
  position: static;
  width: 12px;
  height: 12px;
  font-size: 0.6rem;
  animation: none;
}

/* Era 6: Big Bang Nucleosynthesis */
.nucleosynthesis {
  position: relative;
  width: 500px;
  height: 400px;
}

.nuclear-reactions {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
}

.reaction {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  font-size: 1.2rem;
  font-weight: bold;
  animation: reactionSequence 12s ease-in-out infinite;
}

.reaction:nth-child(1) { animation-delay: 0s; }
.reaction:nth-child(2) { animation-delay: 4s; }
.reaction:nth-child(3) { animation-delay: 8s; }

.reactants, .products {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 0, 0.5);
  color: rgba(255, 200, 0, 1);
}

.arrow {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 20px;
  animation: reactionArrow 1s ease-in-out infinite;
}

.abundance-chart {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.element {
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: elementAbundance 8s ease-in-out infinite;
}

.element:nth-child(1) { animation-delay: 0s; }
.element:nth-child(2) { animation-delay: 2s; }
.element:nth-child(3) { animation-delay: 4s; }
.element:nth-child(4) { animation-delay: 6s; }

.symbol {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 200, 0, 1);
  display: block;
  margin-bottom: 5px;
}

.abundance {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Era 7: Matter-Radiation Equality */
.density-evolution {
  position: relative;
  width: 500px;
  height: 300px;
}

.radiation-density, .matter-density {
  position: absolute;
  width: 100%;
  height: 150px;
}

.radiation-density {
  top: 0;
}

.matter-density {
  bottom: 0;
}

.density-curve {
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 2px;
}

.radiation-curve {
  background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 0, 0, 0.3) 70%, transparent 100%);
  top: 50%;
  animation: radiationDensity 10s ease-in-out infinite;
}

.matter-curve {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.3) 30%, rgba(0, 255, 0, 1) 100%);
  bottom: 50%;
  animation: matterDensity 10s ease-in-out infinite;
}

.density-label {
  position: absolute;
  font-size: 1rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 12px;
  border-radius: 6px;
  animation: labelFade 10s ease-in-out infinite;
}

.radiation-density .density-label {
  top: 20px;
  left: 50px;
  color: rgba(255, 0, 0, 1);
  animation-delay: 0s;
}

.matter-density .density-label {
  bottom: 20px;
  right: 50px;
  color: rgba(0, 255, 0, 1);
  animation-delay: 5s;
}

.intersection-point {
  position: absolute;
  top: 50%;
  left: 60%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 0, 0.8) 100%);
  border-radius: 50%;
  animation: intersectionPulse 6s ease-in-out infinite;
  animation-delay: 5s;
}

/* Era 8: Recombination */
.recombination-process {
  position: relative;
  width: 500px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plasma-state, .neutral-state {
  position: relative;
  width: 180px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.ion, .atom {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: #fff;
  animation: particleFloat 3s ease-in-out infinite;
}

.hydrogen-ion {
  background: radial-gradient(circle, #ff6600 0%, #ff3300 100%);
  animation-delay: 0s;
}

.helium-ion {
  background: radial-gradient(circle, #6600ff 0%, #3300ff 100%);
  animation-delay: 0.5s;
}

.free-electron {
  background: radial-gradient(circle, #0099ff 0%, #0066cc 100%);
  animation-delay: 1s;
}

.scattered-photon {
  background: radial-gradient(circle, #ffff00 0%, #ffaa00 100%);
  animation-delay: 1.5s;
}

.hydrogen-atom {
  background: radial-gradient(circle, rgba(255, 102, 0, 0.8) 0%, rgba(255, 102, 0, 0.4) 100%);
  border: 2px solid rgba(255, 102, 0, 1);
  animation-delay: 2s;
}

.helium-atom {
  background: radial-gradient(circle, rgba(102, 0, 255, 0.8) 0%, rgba(102, 0, 255, 0.4) 100%);
  border: 2px solid rgba(102, 0, 255, 1);
  animation-delay: 2.5s;
}

.free-photon.cmb-photon {
  background: radial-gradient(circle, #ffaa00 0%, #ff6600 100%);
  animation-delay: 3s;
}

.recombination-arrow {
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  animation: recombinationProcess 6s ease-in-out infinite;
}

.cmb-release {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 60px;
}

.photon-decoupling {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 0, 0.3) 50%, rgba(255, 170, 0, 0.6) 100%);
  border-radius: 30px;
  animation: cmbDecoupling 8s ease-in-out infinite;
  animation-delay: 3s;
}

.last-scattering-surface {
  position: absolute;
  top: 50%;
  right: 0;
  width: 100px;
  height: 100%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 200, 100, 0.8) 100%);
  animation: lastScattering 8s ease-in-out infinite;
  animation-delay: 4s;
}

/* Era 9: Dark Ages */
.dark-matter-structure {
  position: relative;
  width: 500px;
  height: 400px;
}

.dm-halo {
  position: absolute;
  border: 2px solid rgba(102, 51, 153, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.1) 0%, transparent 70%);
  animation: haloGrowth 8s ease-in-out infinite;
}

.halo-1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.halo-2 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 20%;
  animation-delay: 2s;
}

.halo-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

.gas-collapse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
}

.hydrogen-gas, .helium-gas {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: gasCollapse 10s ease-in-out infinite;
}

.hydrogen-gas {
  background: radial-gradient(circle, rgba(255, 200, 100, 0.2) 0%, transparent 60%);
  animation-delay: 0s;
}

.helium-gas {
  background: radial-gradient(circle, rgba(255, 150, 200, 0.15) 0%, transparent 50%);
  animation-delay: 2s;
}

/* Era 10: First Stars */
.stellar-formation {
  position: relative;
  width: 500px;
  height: 400px;
}

.population-iii {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.pop-iii-star {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.stellar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, #ffaa00 50%, #ff6600 100%);
  border-radius: 50%;
  animation: stellarCore 4s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(255, 170, 0, 1);
}

.nuclear-burning {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 200, 0, 0.6);
  border-radius: 50%;
  animation: nuclearBurning 3s ease-in-out infinite;
}

.mass-range {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 200, 0, 1);
  font-weight: bold;
  font-size: 0.9rem;
}

.nucleosynthesis-process {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 300px;
}

.fusion-chain {
  position: absolute;
  top: 50px;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 0, 0.5);
  color: rgba(255, 200, 0, 1);
  font-size: 1rem;
  font-weight: bold;
  animation: fusionChain 6s ease-in-out infinite;
}

.supernova-explosion {
  position: absolute;
  bottom: 50px;
  width: 100%;
  height: 100px;
}

.core-collapse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #fff 0%, #ff0000 100%);
  border-radius: 50%;
  animation: coreCollapse 8s ease-in-out infinite;
  animation-delay: 4s;
}

.metal-enrichment {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 200, 0, 0.6) 50%, transparent 100%);
  border-radius: 10px;
  animation: metalEnrichment 8s ease-in-out infinite;
  animation-delay: 6s;
}

/* Era 11: Galaxy Formation */
/* Enhanced Galaxy Formation Animation */
.galaxy-formation {
  position: relative;
  width: 800px;
  height: 500px;
  display: flex;
}

.hierarchical-formation {
  position: relative;
  width: 500px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* Stage 1: Dark Matter Halo Evolution */
.dm-halo-evolution {
  position: relative;
  background: rgba(102, 51, 153, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.dm-halo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.6) 0%, rgba(102, 51, 153, 0.2) 50%, transparent 80%);
  border-radius: 50%;
  animation: haloGrowth 8s ease-in-out infinite;
}

.dm-subhalos {
  position: absolute;
  width: 100%;
  height: 100%;
}

.subhalo {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: subhaloMerger 12s ease-in-out infinite;
}

.subhalo:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.subhalo:nth-child(2) {
  top: 70%;
  right: 20%;
  animation-delay: 4s;
}

.subhalo:nth-child(3) {
  bottom: 30%;
  left: 70%;
  animation-delay: 8s;
}

/* Stage 2: Gas Dynamics */
.gas-dynamics {
  position: relative;
  background: rgba(79, 172, 254, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.hot-gas-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.3) 0%, rgba(255, 100, 100, 0.1) 60%, transparent 80%);
  border-radius: 50%;
  animation: gasHaloPulse 6s ease-in-out infinite;
}

.cooling-flows {
  position: absolute;
  width: 100%;
  height: 100%;
}

.gas-stream {
  position: absolute;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, rgba(79, 172, 254, 0.8) 0%, rgba(79, 172, 254, 0.2) 100%);
  border-radius: 2px;
  transform-origin: bottom center;
  animation: gasInfall 4s ease-in-out infinite;
}

.stream-1 {
  top: 10%;
  left: 30%;
  animation-delay: 0s;
}

.stream-2 {
  top: 20%;
  right: 25%;
  animation-delay: 1.3s;
}

.stream-3 {
  top: 15%;
  left: 60%;
  animation-delay: 2.6s;
}

.gas-disk {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.6), transparent);
  border-radius: 4px;
  animation: diskGrowth 8s ease-in-out infinite;
}

/* Stage 3: Stellar Evolution */
.stellar-evolution {
  position: relative;
  background: rgba(255, 200, 0, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.star-forming-regions {
  position: absolute;
  width: 100%;
  height: 100%;
}

.sf-clump {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  animation: starFormation 6s ease-in-out infinite;
}

.sf-clump.active {
  top: 30%;
  left: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 200, 0, 0.6) 70%, transparent 100%);
  animation-delay: 0s;
}

.sf-clump.forming {
  top: 60%;
  right: 30%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.7) 0%, rgba(255, 200, 0, 0.3) 70%, transparent 100%);
  animation-delay: 2s;
}

.sf-clump.dormant {
  bottom: 25%;
  left: 25%;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.5) 0%, rgba(255, 100, 100, 0.2) 70%, transparent 100%);
  animation-delay: 4s;
}

.stellar-feedback {
  position: absolute;
  width: 100%;
  height: 100%;
}

.supernova-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 100, 100, 0.6);
  border-radius: 50%;
  animation: supernovaBubble 8s ease-in-out infinite;
}

.stellar-winds {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, transparent 30%, rgba(255, 200, 0, 0.2) 40%, transparent 60%);
  border-radius: 50%;
  animation: stellarWinds 5s ease-in-out infinite;
}

/* Stage 4: Disk Galaxy */
.disk-galaxy {
  position: relative;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.galactic-disk {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 6px;
  animation: diskRotation 10s linear infinite;
}

.spiral-arms {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
}

.spiral-arm {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 50%;
  border-color: transparent transparent rgba(102, 126, 234, 0.5) transparent;
  animation: spiralRotation 15s linear infinite;
}

.arm-1 {
  animation-delay: 0s;
}

.arm-2 {
  animation-delay: 7.5s;
  transform: rotate(180deg);
}

.central-bulge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255, 200, 0, 0.7) 0%, rgba(255, 200, 0, 0.3) 70%, transparent 100%);
  border-radius: 50%;
  animation: bulgePulse 8s ease-in-out infinite;
}

.bar-structure {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(15deg);
  width: 50px;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 0, 0.4), transparent);
  border-radius: 4px;
  animation: barRotation 20s linear infinite;
}

/* Galaxy Morphology */
.galaxy-morphology {
  position: relative;
  width: 280px;
  height: 100%;
  padding-left: 20px;
}

.morphology-sequence {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.elliptical-type,
.spiral-type,
.irregular-type {
  position: relative;
  width: 100px;
  height: 80px;
  margin: 0 auto;
}

.elliptical-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(255, 200, 0, 0.6) 0%, rgba(255, 200, 0, 0.2) 70%, transparent 100%);
  border-radius: 50%;
  animation: ellipticalGlow 6s ease-in-out infinite;
}

.stellar-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 70px;
  background: radial-gradient(ellipse, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 80%);
  border-radius: 50%;
  animation: haloShimmer 8s ease-in-out infinite;
}

.spiral-disk {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 15px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
  border-radius: 8px;
  animation: spiralDiskRotation 12s linear infinite;
}

.spiral-pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: 3px solid transparent;
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  border-right: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spiralPatternRotation 15s linear infinite;
}

.clumpy-structure {
  position: absolute;
  width: 100%;
  height: 100%;
}

.clumpy-structure::before,
.clumpy-structure::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: clumpyMotion 8s ease-in-out infinite;
}

.clumpy-structure::before {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.clumpy-structure::after {
  bottom: 30%;
  right: 25%;
  animation-delay: 4s;
}

.proto-galaxy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.dm-halo-large {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(102, 51, 153, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.1) 0%, transparent 70%);
  animation: haloGrowth 10s ease-in-out infinite;
}

.gas-accretion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: gasAccretion 8s ease-in-out infinite;
  animation-delay: 2s;
}

.star-formation-regions {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.sf-region {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #fff 0%, #ffaa00 100%);
  border-radius: 50%;
  animation: starFormation 6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.8);
}

.sf-region:nth-child(1) { animation-delay: 4s; }
.sf-region:nth-child(2) { animation-delay: 5s; }
.sf-region:nth-child(3) { animation-delay: 6s; }

.galaxy-types {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 300px;
}

.spiral-galaxy {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 50px;
}

.galactic-disk {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
  border-radius: 50%;
  animation: diskRotation 12s linear infinite;
}

.spiral-arms {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.4), transparent, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  animation: spiralRotation 15s linear infinite;
}

.central-bulge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 200, 0, 0.8) 0%, transparent 100%);
  border-radius: 50%;
  animation: bulgePulse 4s ease-in-out infinite;
}

.elliptical-galaxy {
  width: 100px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  margin: 0 auto;
  animation: ellipticalGlow 8s ease-in-out infinite;
}

/* Era 12: Supermassive Black Holes */
.black-hole-formation {
  position: relative;
  width: 500px;
  height: 400px;
}

.smbh-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  perspective: 1000px;
}

.event-horizon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #000 0%, #000 85%, rgba(255, 150, 50, 0.2) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 0 2px rgba(255, 150, 50, 0.3),
    0 0 60px rgba(0, 0, 0, 1),
    inset 0 0 30px rgba(0, 0, 0, 1);
  animation: eventHorizonPulse 8s ease-in-out infinite;
  z-index: 10;
}

.shadow-silhouette {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #000 0%, #000 90%, transparent 100%);
  border-radius: 50%;
  z-index: 11;
}

.photon-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 200, 100, 0.3);
  border-radius: 50%;
  animation: photonOrbit 4s linear infinite;
  z-index: 9;
}

.accretion-disk {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%) rotateX(75deg);
  z-index: 8;
}

.disk-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border-style: solid;
  transform: translate(-50%, -50%);
  animation: diskRotation 6s linear infinite;
}

.disk-ring-1 {
  width: 180px;
  height: 180px;
  border: 8px solid rgba(255, 200, 100, 0.9);
  border-top-color: rgba(255, 150, 50, 1);
  border-bottom-color: rgba(255, 100, 0, 0.7);
  animation-duration: 3s;
}

.disk-ring-2 {
  width: 220px;
  height: 220px;
  border: 6px solid rgba(255, 180, 80, 0.8);
  border-top-color: rgba(255, 120, 30, 1);
  border-bottom-color: rgba(255, 80, 0, 0.6);
  animation-duration: 4s;
}

.disk-ring-3 {
  width: 260px;
  height: 260px;
  border: 4px solid rgba(255, 160, 60, 0.7);
  border-top-color: rgba(255, 100, 20, 0.9);
  border-bottom-color: rgba(200, 60, 0, 0.5);
  animation-duration: 5s;
}

.disk-ring-4 {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 140, 40, 0.6);
  border-top-color: rgba(200, 80, 10, 0.8);
  border-bottom-color: rgba(150, 40, 0, 0.4);
  animation-duration: 6s;
}

.gravitational-lensing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    rgba(255, 200, 100, 0.3) 0deg,
    rgba(255, 150, 50, 0.5) 90deg,
    rgba(255, 100, 0, 0.3) 180deg,
    rgba(200, 80, 20, 0.2) 270deg,
    rgba(255, 200, 100, 0.3) 360deg
  );
  border-radius: 50%;
  animation: lensingEffect 12s ease-in-out infinite;
  mix-blend-mode: screen;
}

.doppler-effects {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  transform: translate(-50%, -50%) rotateX(75deg);
  z-index: 7;
}

.approaching-side {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(100, 150, 255, 0.3) 30%, 
    rgba(50, 100, 255, 0.2) 50%,
    transparent 70%
  );
  border-radius: 50% 0 0 50%;
  animation: dopplerBlue 8s ease-in-out infinite;
}

.receding-side {
  position: absolute;
  top: 50%;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(270deg, 
    transparent 0%, 
    rgba(255, 100, 100, 0.3) 30%, 
    rgba(255, 50, 50, 0.2) 50%,
    transparent 70%
  );
  border-radius: 0 50% 50% 0;
  animation: dopplerRed 8s ease-in-out infinite;
}

.spacetime-distortion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.distortion-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  animation: spacetimeRipple 6s ease-in-out infinite;
}

.ring-1 {
  width: 250px;
  height: 250px;
  animation-delay: 0s;
}

.ring-2 {
  width: 300px;
  height: 300px;
  animation-delay: 1s;
}

.ring-3 {
  width: 350px;
  height: 350px;
  animation-delay: 2s;
}

.relativistic-jets {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 12;
}

.jet {
  position: absolute;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
}

.jet-north {
  top: 0;
  height: 35%;
  background: linear-gradient(180deg, 
    rgba(100, 200, 255, 0.9) 0%, 
    rgba(50, 150, 255, 0.7) 30%,
    rgba(0, 100, 255, 0.5) 70%,
    transparent 100%
  );
  border-radius: 6px 6px 20px 20px;
}

.jet-south {
  bottom: 0;
  height: 35%;
  background: linear-gradient(0deg, 
    rgba(100, 200, 255, 0.9) 0%, 
    rgba(50, 150, 255, 0.7) 30%,
    rgba(0, 100, 255, 0.5) 70%,
    transparent 100%
  );
  border-radius: 20px 20px 6px 6px;
}

.jet-core {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(200, 230, 255, 0.8) 100%);
  border-radius: 3px;
  animation: jetCore 4s ease-in-out infinite;
}

.jet-plume {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(100, 150, 255, 0.3) 0%, transparent 100%);
  border-radius: 50%;
  animation: jetPlume 6s ease-in-out infinite;
  top: 10%;
}

.jet-shock {
  position: absolute;
  left: 50%;
  width: 30px;
  height: 15px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 200, 100, 0.6) 0%, transparent 100%);
  border-radius: 50%;
  animation: jetShock 3s ease-in-out infinite;
}

.jet-north .jet-shock {
  top: -5px;
}

.jet-south .jet-shock {
  bottom: -5px;
}

.mass-growth {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 100, 0, 0.5);
  color: rgba(255, 100, 0, 1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* Era 13: Solar System */
.solar-nebula {
  position: relative;
  width: 600px;
  height: 400px;
}

.proto-sun {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
}

.stellar-ignition {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #fff 0%, #ffaa00 50%, #ff6600 100%);
  border-radius: 50%;
  animation: solarIgnition 5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(255, 170, 0, 1);
}

.t-tauri-phase {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 200, 0, 0.6);
  border-radius: 50%;
  animation: tTauriWind 4s ease-in-out infinite;
}

.protoplanetary-disk {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
}

.dust-grains {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(150, 100, 50, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(150, 100, 50, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 20% 80%, rgba(150, 100, 50, 0.25) 1px, transparent 1px);
  background-size: 30px 30px, 40px 40px, 25px 25px;
  animation: dustAccretion 8s ease-in-out infinite;
}

.planetesimals {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: planetesimalGrowth 10s ease-in-out infinite;
  animation-delay: 4s;
}

.planet-formation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terrestrial-planets, .gas-giants {
  display: flex;
  align-items: center;
  gap: 30px;
}

.terrestrial-planets {
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translateY(-50%);
}

.gas-giants {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.planet {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: planetOrbit 12s linear infinite;
}

.mercury { 
  background: radial-gradient(circle, #8c7853 0%, #6d5f43 100%);
  animation-delay: 0s;
}

.venus { 
  background: radial-gradient(circle, #ffc649 0%, #d4a729 100%);
  animation-delay: 1s;
}

.earth { 
  background: radial-gradient(circle, #6b93d6 0%, #4a69a5 100%);
  animation-delay: 2s;
}

.mars { 
  background: radial-gradient(circle, #cd5c5c 0%, #a14242 100%);
  animation-delay: 3s;
}

.jupiter { 
  background: radial-gradient(circle, #d8ca9d 0%, #b8a373 100%);
  width: 40px;
  height: 40px;
  animation-delay: 4s;
}

.saturn { 
  background: radial-gradient(circle, #fab27b 0%, #d4914f 100%);
  width: 35px;
  height: 35px;
  animation-delay: 5s;
}

.uranus { 
  background: radial-gradient(circle, #4fd0e7 0%, #3ba7bd 100%);
  width: 30px;
  height: 30px;
  animation-delay: 6s;
}

.neptune { 
  background: radial-gradient(circle, #4b70dd 0%, #3a56b0 100%);
  width: 30px;
  height: 30px;
  animation-delay: 7s;
}

/* Era 14: Large Scale Structure */
.large-scale-structure {
  position: relative;
  width: 600px;
  height: 400px;
}

.galaxy-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.cluster-galaxies {
  position: absolute;
  width: 100%;
  height: 100%;
}

.galaxy {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
  border-radius: 50%;
  animation: galaxyClusterMotion 8s ease-in-out infinite;
}

.galaxy-1 {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.galaxy-2 {
  top: 60%;
  right: 25%;
  animation-delay: 2s;
}

.galaxy-3 {
  bottom: 30%;
  left: 60%;
  animation-delay: 4s;
}

.galaxy-4 {
  top: 40%;
  left: 20%;
  animation-delay: 6s;
}

.intracluster-medium {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 100, 100, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: icmGlow 6s ease-in-out infinite;
}

.dark-matter-distribution {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(102, 51, 153, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(102, 51, 153, 0.15) 0%, transparent 35%);
  animation: dmDistribution 10s ease-in-out infinite;
}

.cosmic-web-structure {
  position: absolute;
  width: 100%;
  height: 100%;
}

.filaments {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(102, 51, 153, 0.3) 49%, rgba(102, 51, 153, 0.3) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(102, 51, 153, 0.2) 49%, rgba(102, 51, 153, 0.2) 51%, transparent 52%);
  animation: filamentGrowth 12s ease-in-out infinite;
}

.voids {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: voidExpansion 8s ease-in-out infinite;
}

.nodes {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 2px, transparent 3px),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.3) 2px, transparent 3px),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.35) 2px, transparent 3px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 2px, transparent 3px);
  animation: nodesPulse 6s ease-in-out infinite;
}

/* Era 15: Dark Energy Domination */
.accelerated-expansion {
  position: relative;
  width: 500px;
  height: 400px;
}

.expansion-visualization {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
}

.scale-factor-curve {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 50%;
  background: linear-gradient(90deg, rgba(0, 0, 255, 0.8) 0%, rgba(0, 100, 255, 0.6) 50%, rgba(0, 200, 255, 1) 100%);
  border-radius: 2px;
  animation: scaleFactor 10s ease-out infinite;
}

.acceleration-phase {
  position: absolute;
  right: 0;
  top: 50%;
  width: 100px;
  height: 100px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 100, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: accelerationGlow 8s ease-in-out infinite;
}

.dark-energy-field {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
}

.vacuum-energy {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 255, 0.1) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(0, 0, 255, 0.05) 50%, transparent 100%);
  animation: vacuumFluctuation 6s ease-in-out infinite;
}

.cosmological-constant {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: bold;
  color: rgba(0, 100, 255, 0.8);
  animation: lambdaPulse 4s ease-in-out infinite;
}

/* Timeline Navigation */
.timeline-navigation {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 15px 25px 45px 25px;
  width: 90vw;
  max-width: 1200px;
  overflow: hidden;
}

.nav-track {
  position: relative;
  width: 100%;
  height: 40px;
}

.nav-progress {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, rgba(102, 126, 234, 1) 0%, rgba(0, 242, 254, 1) 100%);
  border-radius: 2px;
  width: 0%;
  animation: timelineProgress 16s ease-in-out infinite;
}

.nav-markers {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-marker {
  position: relative;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(102, 126, 234, 0.6) 100%);
  border: 2px solid rgba(0, 242, 254, 0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: markerPulse 16s ease-in-out infinite;
}

.nav-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
}

.marker-time {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Era Navigation Dropdown */
.era-dropdown {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  width: 280px;
  /* Force new stacking context */
  isolation: isolate;
  /* Ensure hardware acceleration on all platforms */
  will-change: transform;
  transform: translateZ(0);
}

.dropdown-toggle {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  /* Ensure proper rendering on all platforms */
  position: relative;
  z-index: 1;
  transform: translateZ(0);
}

.dropdown-toggle:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.6);
}

.current-era-text {
  font-weight: 500;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.6) transparent;
  /* Critical z-index fixes for macOS */
  z-index: 10000;
  /* Force new stacking context and hardware acceleration */
  isolation: isolate;
  transform-style: preserve-3d;
  /* Ensure proper layering on WebKit */
  -webkit-transform: translateZ(0);
  -webkit-transform-style: preserve-3d;
  /* Box shadow for better visibility */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 
              0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
  .dropdown-menu {
    background: rgba(0, 0, 0, 0.98);
  }
  .dropdown-toggle {
    background: rgba(0, 0, 0, 0.95);
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-overflow-scrolling: touch) {
  .era-dropdown {
    /* Force GPU acceleration on iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  .dropdown-menu {
    /* Improve scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Force hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  .dropdown-menu.show {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
  /* Ensure visibility on all platforms */
  -webkit-transform: translateY(0) translateZ(0);
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.6);
  border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.8);
}

.dropdown-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(102, 126, 234, 0.2);
}

.dropdown-item.active {
  background: rgba(0, 242, 254, 0.2);
  border-left: 3px solid rgba(0, 242, 254, 1);
}

.era-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(102, 126, 234, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

.dropdown-item.active .era-number {
  background: rgba(0, 242, 254, 0.6);
  border-color: rgba(0, 242, 254, 1);
}

.era-name {
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
}

/* Old Era Navigation (keeping for backwards compatibility) */
.era-navigation {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* Hidden by default, dropdown is now primary */
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  max-width: 90vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.era-navigation::-webkit-scrollbar {
  display: none;
}

.nav-circle {
  display: none !important; /* Completely hide navigation circles */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  border: 2px solid rgba(102, 126, 234, 0.6);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.nav-circle:hover {
  background: rgba(102, 126, 234, 0.6);
  border-color: rgba(102, 126, 234, 1);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

.nav-circle.active {
  background: rgba(0, 242, 254, 0.6);
  border-color: rgba(0, 242, 254, 1);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
  animation: activePulse 2s ease-in-out infinite;
}

.nav-circle::before {
  content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.nav-circle:hover::before {
  opacity: 1;
}

@keyframes activePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.8); }
  50% { box-shadow: 0 0 30px rgba(0, 242, 254, 1); }
}

/* Controls */
.cosmic-controls {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 15px;
}

.control-btn {
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.8);
  transform: scale(1.1);
}

.play-icon {
  margin-left: 2px;
}

/* Info Button */
.info-btn {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  border: 2px solid #ffffff !important; /* Force white border */
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  font-style: italic;
  font-family: 'Times New Roman', serif;
  transition: all 0.3s ease;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.info-btn:hover {
  background: rgba(102, 126, 234, 0.4);
  border: 2px solid #ffffff !important; /* Keep white border on hover */
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

/* Old data attribution styles removed - now handled by footer-container */

/* Animations */
@keyframes quantumFoamFlicker {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes inflationExpand {
  0% { transform: scale(1); }
  100% { transform: scale(2); }
}

/* Galaxy Formation Animations */
@keyframes haloGrowth {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

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

@keyframes gasHaloPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

@keyframes gasInfall {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0.3; }
}

@keyframes diskGrowth {
  0% { width: 20px; opacity: 0.3; }
  100% { width: 60px; opacity: 0.8; }
}

@keyframes starFormation {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes supernovaBubble {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes stellarWinds {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

@keyframes diskRotation {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes bulgePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes barRotation {
  0% { transform: translate(-50%, -50%) rotate(15deg); }
  100% { transform: translate(-50%, -50%) rotate(375deg); }
}

@keyframes ellipticalGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes haloShimmer {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

@keyframes spiralDiskRotation {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spiralPatternRotation {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes clumpyMotion {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.2); }
}

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

@keyframes singularityPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes spacetimeCurve {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes foamBubble {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes unifiedField {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes gravitySeparate {
  0%, 50% { transform: translateX(-50%) rotate(-15deg); opacity: 1; }
  100% { transform: translateX(-50%) rotate(-45deg); opacity: 0.5; }
}

@keyframes gutUnify {
  0%, 50% { transform: translateX(-50%) rotate(15deg); opacity: 1; }
  100% { transform: translateX(-50%) rotate(45deg); opacity: 0.7; }
}

@keyframes xBosonDecay {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

@keyframes decayProducts {
  0%, 50% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes inflatonRoll {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes spaceExpansion {
  0% { background-size: 50px 50px; }
  100% { background-size: 200px 200px; }
}

@keyframes horizonSolve {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(2); }
}

@keyframes fieldRoll {
  0% { left: 80px; }
  100% { left: 20px; }
}

@keyframes higgsVEV {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

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

@keyframes massGeneration {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes plasmaState {
  0%, 100% { filter: blur(8px) brightness(1); }
  50% { filter: blur(4px) brightness(1.5); }
}

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

@keyframes gluonField {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

@keyframes hadronForm {
  0%, 60% { opacity: 0; transform: scale(0); }
  80% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes reactionSequence {
  0%, 75% { opacity: 0; transform: scale(0.8); }
  85% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes reactionArrow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes elementAbundance {
  0%, 50% { opacity: 0; transform: translateY(20px); }
  70% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes radiationDensity {
  0% { width: 100%; opacity: 1; }
  50% { width: 70%; opacity: 0.7; }
  100% { width: 30%; opacity: 0.3; }
}

@keyframes matterDensity {
  0% { width: 20%; opacity: 0.3; }
  50% { width: 70%; opacity: 1; }
  100% { width: 90%; opacity: 0.8; }
}

@keyframes labelFade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes intersectionPulse {
  0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

@keyframes recombinationProcess {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes cmbDecoupling {
  0%, 30% { opacity: 0; width: 0%; }
  70% { opacity: 0.8; width: 80%; }
  100% { opacity: 1; width: 100%; }
}

@keyframes lastScattering {
  0%, 40% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 0.8; }
}

@keyframes haloGrowth {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

@keyframes gasCollapse {
  0% { transform: scale(1.5); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.6; }
}

@keyframes stellarCore {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes nuclearBurning {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fusionChain {
  0%, 60% { opacity: 0; transform: translateY(20px); }
  80% { opacity: 1; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes coreCollapse {
  0%, 50% { opacity: 0; transform: translateX(-50%) scale(0); }
  70% { opacity: 1; transform: translateX(-50%) scale(1.5); }
  100% { opacity: 0; transform: translateX(-50%) scale(3); }
}

@keyframes metalEnrichment {
  0%, 75% { opacity: 0; width: 0%; }
  100% { opacity: 1; width: 100%; }
}

@keyframes gasAccretion {
  0% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

@keyframes starFormation {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 170, 0, 0.8); }
  50% { transform: scale(1.3); box-shadow: 0 0 40px rgba(255, 170, 0, 1); }
}

@keyframes diskRotation {
  to { transform: rotate(360deg); }
}

@keyframes spiralRotation {
  to { transform: rotate(360deg); }
}

@keyframes bulgePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes ellipticalGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes eventHorizonPulse {
  0%, 100% { 
    box-shadow: 
      0 0 0 2px rgba(255, 150, 50, 0.3),
      0 0 60px rgba(0, 0, 0, 1),
      inset 0 0 30px rgba(0, 0, 0, 1);
  }
  50% { 
    box-shadow: 
      0 0 0 4px rgba(255, 150, 50, 0.6),
      0 0 80px rgba(0, 0, 0, 1),
      inset 0 0 40px rgba(0, 0, 0, 1);
  }
}

@keyframes photonOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes diskRotation {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lensingEffect {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) rotate(180deg); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 0.5; }
}

@keyframes dopplerBlue {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes dopplerRed {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes spacetimeRipple {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.1; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    opacity: 0.3; 
  }
}

@keyframes jetCore {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}

@keyframes jetPlume {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scaleX(1.2); }
}

@keyframes jetShock {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.3); }
}

@keyframes accretionDisk {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes relativisticJets {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1.2); }
}

@keyframes solarIgnition {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(255, 170, 0, 1); }
  50% { transform: scale(1.1); box-shadow: 0 0 80px rgba(255, 170, 0, 1.2); }
}

@keyframes tTauriWind {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes dustAccretion {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

@keyframes planetesimalGrowth {
  0%, 40% { opacity: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}

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

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

@keyframes icmGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes dmDistribution {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes filamentGrowth {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes voidExpansion {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0.3; }
}

@keyframes nodesPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes scaleFactor {
  0% { width: 20%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

@keyframes accelerationGlow {
  0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

@keyframes vacuumFluctuation {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes lambdaPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes timelineProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes markerPulse {
  0%, 90% { border-color: rgba(0, 242, 254, 0.8); }
  95% { border-color: rgba(0, 242, 254, 1); transform: scale(1.1); }
  100% { border-color: rgba(0, 242, 254, 0.8); transform: scale(1); }
}

/* Modal Equation Styling */
.modal-equation {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  font-size: 1.1rem;
}

.modal-section.scientific {
  background: rgba(240, 147, 251, 0.05);
  border-left: 3px solid rgba(240, 147, 251, 0.5);
  padding-left: 15px;
  margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .era-content {
    flex-direction: column;
    padding: 0 3%;
  }
  
  .era-info {
    max-width: 90%;
    margin-left: 0;
    margin-top: 20px;
  }
  
  .era-title {
    font-size: 2rem;
  }
  
  .timeline-navigation {
    width: 95vw;
    padding: 10px 15px;
  }
  
  .nav-marker {
    width: 15px;
    height: 15px;
  }
  
  .marker-time {
    font-size: 0.6rem;
  }
}/* ========================================
   NEW EPOCHS CSS FOR COSMIC GENESIS
   ======================================== */

/* Baryogenesis Era */
.era-baryogenesis {
  position: relative;
}

.baryogenesis-bg {
  background: radial-gradient(circle at center, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.1) 35%, #000 70%);
}

.baryon-asymmetry {
  position: relative;
  width: 400px;
  height: 400px;
}

.antimatter-annihilation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.particle-pair {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 50px;
}

.particle, .antiparticle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  animation: particleVibrate 2s ease-in-out infinite;
}

.particle {
  background: radial-gradient(circle, rgba(102, 126, 234, 1) 0%, rgba(102, 126, 234, 0.6) 100%);
}

.antiparticle {
  background: radial-gradient(circle, rgba(240, 147, 251, 1) 0%, rgba(240, 147, 251, 0.6) 100%);
  animation-delay: 0.5s;
}

.annihilation-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 0, 0.4) 50%, transparent 100%);
  border-radius: 50%;
  animation: annihilationFlash 3s ease-in-out infinite;
}

.cp-violation {
  position: absolute;
  bottom: 50px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cp-symbol {
  font-size: 2rem;
  font-weight: bold;
  color: rgba(240, 147, 251, 1);
  animation: cpViolation 4s ease-in-out infinite;
}

.violation-arrow {
  font-size: 2.5rem;
  color: rgba(255, 100, 100, 0.8);
  animation: violationPulse 2s ease-in-out infinite;
}

/* Neutrino Decoupling Era */
.era-neutrino {
  position: relative;
}

.neutrino-bg {
  background: radial-gradient(circle at center, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.1) 40%, #000 70%);
}

.neutrino-decoupling {
  position: relative;
  width: 500px;
  height: 400px;
}

.neutrino-field {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.neutrino-particle {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.6) 0%, rgba(79, 172, 254, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  animation: neutrinoFloat 4s ease-in-out infinite;
  opacity: 0.8;
}

.neutrino-particle:nth-child(1) { animation-delay: 0s; }
.neutrino-particle:nth-child(2) { animation-delay: 1.3s; }
.neutrino-particle:nth-child(3) { animation-delay: 2.6s; }

.weak-interaction-cease {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
}

.interaction-line {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.8) 0%, transparent 100%);
  animation: interactionWeaken 6s ease-in-out infinite;
}

.decoupling-boundary {
  position: absolute;
  right: 0;
  top: -20px;
  width: 2px;
  height: 40px;
  background: rgba(0, 242, 254, 0.8);
  animation: boundaryPulse 3s ease-in-out infinite;
}

/* Reionization Era */
.era-reionization {
  position: relative;
}

.reionization-bg {
  background: radial-gradient(circle at 20% 30%, rgba(255, 170, 0, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 200, 100, 0.15) 0%, transparent 40%),
              #000;
}

.reionization-process {
  position: relative;
  width: 600px;
  height: 400px;
}

.ionization-bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.hii-region {
  position: relative;
  width: 150px;
  height: 150px;
  animation: bubbleGrowth 8s ease-in-out infinite;
}

.hii-region:nth-child(1) { animation-delay: 0s; }
.hii-region:nth-child(2) { animation-delay: 2s; }
.hii-region:nth-child(3) { animation-delay: 4s; }

.uv-source {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #fff 0%, rgba(255, 200, 0, 0.8) 50%, transparent 100%);
  border-radius: 50%;
  animation: uvEmission 3s ease-in-out infinite;
}

.ionization-front {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 200, 0, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.1) 0%, transparent 70%);
  animation: ionizationExpand 6s ease-in-out infinite;
}

.igm-ionization {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 60px;
  display: flex;
  align-items: center;
}

.neutral-igm {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(100, 100, 100, 0.3) 0%, rgba(100, 100, 100, 0.1) 100%);
  border-radius: 30px 0 0 30px;
  animation: neutralShrink 10s ease-in-out infinite;
}

.ionized-igm {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.1) 0%, rgba(255, 200, 0, 0.3) 100%);
  border-radius: 0 30px 30px 0;
  animation: ionizedGrow 10s ease-in-out infinite;
}

/* Structure Formation Era */
.era-structure-formation {
  position: relative;
}

.structure-formation-bg {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 80px,
    rgba(102, 51, 153, 0.05) 80px,
    rgba(102, 51, 153, 0.05) 82px
  ),
  repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 80px,
    rgba(102, 51, 153, 0.03) 80px,
    rgba(102, 51, 153, 0.03) 82px
  ), #000;
}

.structure-evolution {
  position: relative;
  width: 600px;
  height: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.linear-growth {
  position: relative;
  width: 180px;
  height: 300px;
}

.density-perturbations {
  position: absolute;
  width: 100%;
  height: 100%;
}

.perturbation {
  position: absolute;
  width: 100%;
  height: 80px;
  background: linear-gradient(0deg, transparent, rgba(102, 51, 153, 0.3), transparent);
  animation: perturbationGrow 6s ease-in-out infinite;
}

.mode-1 {
  top: 20%;
  animation-delay: 0s;
}

.mode-2 {
  top: 45%;
  animation-delay: 2s;
}

.mode-3 {
  top: 70%;
  animation-delay: 4s;
}

.nonlinear-collapse {
  position: relative;
  width: 180px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.halo-merger {
  display: flex;
  align-items: center;
  gap: 20px;
}

.halo-small {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(102, 51, 153, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.2) 0%, transparent 70%);
  animation: haloMerge 8s ease-in-out infinite;
}

.merger-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  animation: mergerPulse 4s ease-in-out infinite;
}

.halo-large {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(102, 51, 153, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 51, 153, 0.3) 0%, transparent 70%);
  animation: haloResult 8s ease-in-out infinite;
  animation-delay: 4s;
}

.lcdm-simulation {
  position: relative;
  width: 180px;
  height: 300px;
}

.simulation-box {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.dark-matter-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(102, 51, 153, 0.5) 2px, transparent 3px),
    radial-gradient(circle at 60% 40%, rgba(102, 51, 153, 0.4) 2px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(102, 51, 153, 0.6) 2px, transparent 3px),
    radial-gradient(circle at 80% 80%, rgba(102, 51, 153, 0.5) 2px, transparent 3px);
  background-size: 50px 50px;
  animation: particleEvolution 10s ease-in-out infinite;
}

.filament-structure {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 40%, rgba(102, 51, 153, 0.3) 48%, rgba(102, 51, 153, 0.3) 52%, transparent 60%),
    linear-gradient(45deg, transparent 40%, rgba(102, 51, 153, 0.2) 48%, rgba(102, 51, 153, 0.2) 52%, transparent 60%);
  animation: filamentForm 12s ease-in-out infinite;
}

/* Cosmological Observations Era */
.era-observations {
  position: relative;
}

.observations-bg {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(102, 126, 234, 0.05) 40%, #000 70%);
}

.cosmological-probes {
  position: relative;
  width: 600px;
  height: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmb-anisotropies {
  position: relative;
  width: 180px;
  height: 250px;
}

.power-spectrum {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 200, 0, 0.1) 20%, rgba(255, 200, 0, 0.3) 50%, rgba(255, 200, 0, 0.1) 80%, transparent 100%);
  border-radius: 10px;
  position: relative;
}

.acoustic-peaks {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60%;
  background: repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(255, 200, 0, 0.5) 30px, rgba(255, 200, 0, 0.5) 32px);
  animation: acousticOscillation 4s ease-in-out infinite;
}

.damping-tail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 30%;
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.3) 0%, transparent 100%);
  animation: dampingFade 6s ease-in-out infinite;
}

.bao-signal {
  position: relative;
  width: 180px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.correlation-function {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, rgba(102, 126, 234, 0.2) 50%, transparent 60%);
  animation: baoRing 5s ease-in-out infinite;
}

.bao-scale {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(102, 126, 234, 1);
  animation: scalePulse 3s ease-in-out infinite;
}

.type-ia-supernovae {
  position: relative;
  width: 180px;
  height: 250px;
}

.hubble-diagram {
  width: 100%;
  height: 80%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 100, 100, 0.1) 50%, rgba(255, 100, 100, 0.3) 100%);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 10px;
  position: relative;
  animation: hubbleExpansion 8s ease-in-out infinite;
}

.acceleration-evidence {
  position: absolute;
  bottom: 20px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 100, 100, 0.3) 0%, rgba(255, 100, 100, 0.8) 100%);
  animation: accelerationShow 6s ease-in-out infinite;
}

/* Gravitational Waves Era */
.era-gravitational-waves {
  position: relative;
}

.gw-bg {
  background: 
    radial-gradient(ellipse at center, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(0, 242, 254, 0.05) 20%, transparent 60%),
    #000;
}

.gw-sources {
  position: relative;
  width: 600px;
  height: 400px;
}

.primordial-gw {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
}

.inflation-tensor-modes {
  position: relative;
  width: 100%;
  height: 100%;
}

.tensor-perturbation {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.6), transparent);
  animation: tensorWave 3s linear infinite;
}

.gw-propagation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 20px,
    rgba(0, 242, 254, 0.2) 20px,
    rgba(0, 242, 254, 0.2) 22px
  );
  animation: gwPropagate 4s linear infinite;
}

.astrophysical-gw {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.binary-merger {
  position: relative;
  width: 100%;
  height: 100%;
  animation: binaryOrbit 6s linear infinite;
}

.inspiral-phase {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-radius: 50%;
  animation: inspiralTighten 6s ease-in infinite;
}

.merger-ringdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.8) 0%, transparent 100%);
  border-radius: 50%;
  animation: ringdownPulse 6s ease-out infinite;
  animation-delay: 4s;
}

.gw-detectors {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

.ligo-virgo, .lisa, .pta {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.5);
  border-radius: 20px;
  color: rgba(0, 242, 254, 1);
  font-weight: bold;
  animation: detectorActive 4s ease-in-out infinite;
}

.ligo-virgo { animation-delay: 0s; }
.lisa { animation-delay: 1.3s; }
.pta { animation-delay: 2.6s; }

/* Animations for new epochs */
@keyframes particleVibrate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes annihilationFlash {
  0%, 90% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  95% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

@keyframes cpViolation {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

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

@keyframes neutrinoFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(0.9); opacity: 0.4; }
}

@keyframes interactionWeaken {
  0% { width: 100%; opacity: 1; }
  100% { width: 30%; opacity: 0.2; }
}

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

@keyframes bubbleGrowth {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes uvEmission {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 200, 0, 0.8); }
  50% { box-shadow: 0 0 40px rgba(255, 200, 0, 1); }
}

@keyframes ionizationExpand {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes neutralShrink {
  0% { width: 100%; }
  100% { width: 20%; }
}

@keyframes ionizedGrow {
  0% { width: 0%; }
  100% { width: 80%; }
}

@keyframes perturbationGrow {
  0%, 100% { height: 80px; opacity: 0.3; }
  50% { height: 120px; opacity: 0.8; }
}

@keyframes haloMerge {
  0%, 60% { transform: scale(1); }
  80% { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(0); opacity: 0; }
}

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

@keyframes haloResult {
  0%, 40% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes particleEvolution {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

@keyframes filamentForm {
  0% { opacity: 0; }
  100% { opacity: 0.6; }
}

@keyframes acousticOscillation {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.8); }
}

@keyframes dampingFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes baoRing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes hubbleExpansion {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes accelerationShow {
  0% { width: 30%; }
  100% { width: 100%; }
}

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

@keyframes gwPropagate {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

@keyframes binaryOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes inspiralTighten {
  0% { transform: scale(1); }
  80% { transform: scale(0.3); }
  100% { transform: scale(0); }
}

@keyframes ringdownPulse {
  0%, 70% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

@keyframes detectorActive {
  0%, 100% { border-color: rgba(0, 242, 254, 0.5); }
  50% { border-color: rgba(0, 242, 254, 1); box-shadow: 0 0 20px rgba(0, 242, 254, 0.5); }
}

/* Era 18: Quantum Gravity Theory */
.era-quantum-gravity {
  position: relative;
}

.quantum-gravity-bg {
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(240, 147, 251, 0.2) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(255, 255, 255, 0.05) 100px,
      rgba(255, 255, 255, 0.05) 102px
    ),
    #000;
  animation: quantumFieldFluctuations 8s ease-in-out infinite;
}

.spacetime-foam {
  position: relative;
  width: 500px;
  height: 400px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.planck-scale-structure {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}

.foam-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(102, 126, 234, 0.7) 30%,
    rgba(240, 147, 251, 0.5) 60%, 
    transparent 100%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 0 30px rgba(102, 126, 234, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
  animation: 
    foamFluctuation 3s ease-in-out infinite,
    quantumTunneling 4s linear infinite,
    planckBubble 2.5s ease-in-out infinite;
}

.bubble-1 {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 15px;
  height: 15px;
  top: 60%;
  right: 25%;
  animation-delay: 0.7s;
}

.bubble-3 {
  width: 25px;
  height: 25px;
  bottom: 30%;
  left: 60%;
  animation-delay: 1.4s;
}

.bubble-4 {
  width: 18px;
  height: 18px;
  top: 40%;
  left: 20%;
  animation-delay: 0.3s;
}

.bubble-5 {
  width: 22px;
  height: 22px;
  top: 70%;
  right: 40%;
  animation-delay: 1.1s;
}

.planck-length-scale {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-indicator {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(102, 126, 234, 0.8) 0%, 
    rgba(255, 255, 255, 1) 50%, 
    rgba(240, 147, 251, 0.8) 100%
  );
  border-radius: 2px;
  animation: planckPulse 3s ease-in-out infinite;
}

.quantum-corrections {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 150px;
  height: 100px;
}

.correction-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 0%, rgba(240, 147, 251, 0.2) 50%, transparent 100%),
    linear-gradient(-45deg, transparent 0%, rgba(102, 126, 234, 0.15) 50%, transparent 100%);
  animation: quantumCorrection 4s ease-in-out infinite;
}

.loop-quantum-gravity {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
}

.spin-network {
  position: relative;
  width: 100%;
  height: 100%;
}

.network-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(102, 126, 234, 0.8) 100%);
  border-radius: 50%;
  animation: nodePulse 2s ease-in-out infinite;
}

.node-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.node-2 {
  top: 20%;
  right: 20%;
  animation-delay: 0.5s;
}

.node-3 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

.network-edge {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(102, 126, 234, 0.4) 100%);
  animation: edgeFlow 3s linear infinite;
}

.edge-1 {
  top: 25%;
  left: 25%;
  width: 50%;
  transform: rotate(0deg);
}

.edge-2 {
  top: 35%;
  left: 30%;
  width: 40%;
  transform: rotate(60deg);
}

.edge-3 {
  top: 50%;
  left: 35%;
  width: 30%;
  transform: rotate(-60deg);
}

/* Era 19: String Theory */
.era-string-theory {
  position: relative;
}

.string-theory-bg {
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(240, 147, 251, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(79, 172, 254, 0.2) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 120px,
      rgba(240, 147, 251, 0.08) 120px,
      rgba(240, 147, 251, 0.08) 122px
    ),
    #000;
  animation: dimensionalShimmer 10s ease-in-out infinite;
}

.higher-dimensions {
  position: relative;
  width: 600px;
  height: 400px;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.eleven-dimensions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 300px;
  transform-style: preserve-3d;
}

.dimension-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(240, 147, 251, 0.3);
  border-radius: 15px;
  background: radial-gradient(ellipse, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
  animation: dimensionalShift 6s ease-in-out infinite;
}

.dim-4 {
  transform: scale(1) rotateX(0deg) rotateY(0deg);
  animation-delay: 0s;
  z-index: 10;
}

.dim-5 {
  transform: scale(0.9) rotateX(15deg) rotateY(15deg);
  animation-delay: 1s;
  z-index: 9;
}

.dim-6 {
  transform: scale(0.8) rotateX(30deg) rotateY(30deg);
  animation-delay: 2s;
  z-index: 8;
}

.dim-7 {
  transform: scale(0.7) rotateX(45deg) rotateY(45deg);
  animation-delay: 3s;
  z-index: 7;
}

.compactified-dimensions {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 120px;
  height: 120px;
}

.calabi-yau-manifold {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.5) 0%, rgba(240, 147, 251, 0.4) 50%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(240, 147, 251, 0.6), inset 0 0 20px rgba(79, 172, 254, 0.4);
  animation: calabiYauMorphing 10s ease-in-out infinite, manifoldRotation 8s linear infinite;
  overflow: hidden;
}

.calabi-yau-manifold::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(79, 172, 254, 0.2) 20deg,
      transparent 40deg,
      rgba(240, 147, 251, 0.2) 60deg,
      transparent 80deg
    );
  border-radius: 50%;
  animation: conyStructure 12s linear infinite reverse;
}

.calabi-yau-manifold::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: 
    radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  border-radius: 50%;
  animation: manifoldPulse 6s ease-in-out infinite;
}

.manifold-structure {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    conic-gradient(from 0deg at 50% 50%, 
      transparent 0deg, 
      rgba(79, 172, 254, 0.4) 60deg, 
      transparent 120deg,
      rgba(240, 147, 251, 0.3) 180deg,
      transparent 240deg,
      rgba(79, 172, 254, 0.4) 300deg,
      transparent 360deg
    );
  border-radius: 50%;
  animation: structureFlow 12s linear infinite;
}

.vibrating-strings {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 100px;
}

.string-mode {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(240, 147, 251, 1) 25%, 
    rgba(79, 172, 254, 1) 50%, 
    rgba(240, 147, 251, 1) 75%, 
    transparent 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(240, 147, 251, 0.8);
  animation: hyperStringVibration 2s ease-in-out infinite;
  overflow: hidden;
}

.string-mode::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%
  );
  animation: stringEnergy 2s linear infinite;
}

.string-mode::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 200%;
  top: -50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  animation: stringResonance 3s ease-in-out infinite;
}

.fundamental-mode {
  top: 20px;
  animation-delay: 0s;
}

.harmonic-1 {
  top: 40px;
  animation-delay: 0.3s;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(240, 147, 251, 0.6) 20%, 
    rgba(79, 172, 254, 0.8) 40%, 
    rgba(240, 147, 251, 0.6) 60%, 
    rgba(79, 172, 254, 0.8) 80%, 
    transparent 100%
  );
}

.harmonic-2 {
  top: 60px;
  animation-delay: 0.6s;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(240, 147, 251, 0.4) 15%, 
    rgba(79, 172, 254, 0.6) 30%, 
    rgba(240, 147, 251, 0.4) 45%, 
    rgba(79, 172, 254, 0.6) 60%, 
    rgba(240, 147, 251, 0.4) 75%, 
    rgba(79, 172, 254, 0.6) 90%, 
    transparent 100%
  );
}

.m-theory-membrane {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 200px;
  height: 150px;
  transform: rotateX(60deg) rotateY(20deg);
}

.membrane-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(240, 147, 251, 0.4) 0%, rgba(79, 172, 254, 0.5) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  border: 2px solid rgba(240, 147, 251, 0.7);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(240, 147, 251, 0.5);
  animation: membraneWave 5s ease-in-out infinite, membraneFluctuation 4s ease-in-out infinite;
}

.brane-world {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(240, 147, 251, 0.1) 20px,
    rgba(240, 147, 251, 0.1) 22px
  );
  animation: braneOscillation 3s ease-in-out infinite;
}

/* Quantum Gravity Animations */
@keyframes foamFluctuation {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes planckPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

@keyframes quantumCorrection {
  0%, 100% { opacity: 0.4; transform: rotate(0deg); }
  50% { opacity: 0.8; transform: rotate(180deg); }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes edgeFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* String Theory Animations */
@keyframes dimensionalShift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

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

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

@keyframes stringVibration {
  0%, 100% { 
    transform: scaleY(1) translateY(0); 
    filter: hue-rotate(0deg);
  }
  25% { 
    transform: scaleY(1.5) translateY(-2px); 
    filter: hue-rotate(90deg);
  }
  50% { 
    transform: scaleY(0.5) translateY(0); 
    filter: hue-rotate(180deg);
  }
  75% { 
    transform: scaleY(1.5) translateY(2px); 
    filter: hue-rotate(270deg);
  }
}

@keyframes membraneFluctuation {
  0%, 100% { transform: rotateX(60deg) rotateY(20deg) scale(1); }
  50% { transform: rotateX(60deg) rotateY(20deg) scale(1.05); }
}

@keyframes braneOscillation {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

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

@keyframes manifoldPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

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

@keyframes stringResonance {
  0%, 100% { 
    left: 10%; 
    opacity: 0.3; 
    transform: scaleX(1); 
  }
  25% { 
    left: 30%; 
    opacity: 0.8; 
    transform: scaleX(1.5); 
  }
  50% { 
    left: 50%; 
    opacity: 1; 
    transform: scaleX(2); 
  }
  75% { 
    left: 70%; 
    opacity: 0.8; 
    transform: scaleX(1.5); 
  }
}

/* Era 24: Multiverse Theory */
.era-multiverse {
  position: relative;
}

.multiverse-bg {
  background: 
    radial-gradient(circle at 15% 25%, rgba(102, 126, 234, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(240, 147, 251, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(102, 126, 234, 0.02) 30deg,
      transparent 60deg,
      rgba(240, 147, 251, 0.02) 90deg,
      transparent 120deg
    ),
    #000;
}

.multiverse-structure {
  position: relative;
  width: 600px;
  height: 400px;
}

.level-1-multiverse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
}

.bubble-universe {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(102, 126, 234, 0.4) 0%, 
    rgba(240, 147, 251, 0.2) 30%, 
    rgba(79, 172, 254, 0.1) 60%, 
    transparent 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

.bubble-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 60%;
  animation-delay: 4s;
}

.bubble-4 {
  width: 90px;
  height: 90px;
  top: 40%;
  left: 10%;
  animation-delay: 1s;
}

.bubble-5 {
  width: 110px;
  height: 110px;
  top: 70%;
  right: 40%;
  animation-delay: 3s;
}

.eternal-inflation {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 80px;
}

.inflation-field {
  position: relative;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, 
      transparent 0%, 
      rgba(102, 126, 234, 0.3) 20%, 
      rgba(240, 147, 251, 0.4) 50%, 
      rgba(79, 172, 254, 0.3) 80%, 
      transparent 100%
    );
  border-radius: 40px;
  animation: inflationExpand 6s ease-in-out infinite;
}

.quantum-tunneling {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  border-radius: 50%;
  animation: quantumTunnel 4s ease-in-out infinite;
}

.anthropic-principle {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 150px;
  height: 120px;
}

.fine-tuning-parameters {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.parameter {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  animation: parameterTweak 5s ease-in-out infinite;
}

.cosmological-constant {
  background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, rgba(102, 126, 234, 0.4) 100%);
  animation-delay: 0s;
}

.fine-structure {
  background: radial-gradient(circle, rgba(240, 147, 251, 0.8) 0%, rgba(240, 147, 251, 0.4) 100%);
  animation-delay: 1.7s;
}

.strong-force {
  background: radial-gradient(circle, rgba(79, 172, 254, 0.8) 0%, rgba(79, 172, 254, 0.4) 100%);
  animation-delay: 3.3s;
}

/* Multiverse Animations */
@keyframes bubbleFloat {
  0%, 100% { 
    transform: translateY(0) scale(1); 
    opacity: 0.7; 
  }
  50% { 
    transform: translateY(-20px) scale(1.05); 
    opacity: 1; 
  }
}

@keyframes inflationExpand {
  0%, 100% { 
    transform: scaleX(1); 
    opacity: 0.5; 
  }
  50% { 
    transform: scaleX(1.2); 
    opacity: 0.8; 
  }
}

@keyframes quantumTunnel {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.8; 
  }
  25% { 
    transform: translate(-50%, -50%) scale(0.5); 
    opacity: 0.3; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.5); 
    opacity: 1; 
  }
  75% { 
    transform: translate(-50%, -50%) scale(0.8); 
    opacity: 0.6; 
  }
}

@keyframes parameterTweak {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.1); 
    opacity: 1; 
    box-shadow: 0 0 20px currentColor; 
  }
}

/* Enhanced Quantum Gravity Animations */
@keyframes quantumFieldFluctuations {
  0%, 100% { 
    filter: brightness(1) hue-rotate(0deg); 
  }
  25% { 
    filter: brightness(1.2) hue-rotate(90deg); 
  }
  50% { 
    filter: brightness(0.8) hue-rotate(180deg); 
  }
  75% { 
    filter: brightness(1.1) hue-rotate(270deg); 
  }
}

@keyframes quantumTunneling {
  0%, 100% { 
    transform: translateX(0) scale(1); 
    opacity: 0.8; 
  }
  25% { 
    transform: translateX(-10px) scale(0.7); 
    opacity: 0.4; 
  }
  50% { 
    transform: translateX(0) scale(1.3); 
    opacity: 1; 
  }
  75% { 
    transform: translateX(10px) scale(0.9); 
    opacity: 0.6; 
  }
}

@keyframes planckBubble {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    filter: hue-rotate(0deg); 
  }
  33% { 
    transform: rotate(120deg) scale(1.2); 
    filter: hue-rotate(120deg); 
  }
  66% { 
    transform: rotate(240deg) scale(0.8); 
    filter: hue-rotate(240deg); 
  }
}

@keyframes quantumFluctuation {
  0%, 100% { 
    opacity: 0.3; 
    transform: scale(0.5); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.5); 
    box-shadow: 0 0 20px currentColor; 
  }
}

@keyframes randomMotion {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -10px) rotate(90deg); }
  50% { transform: translate(-10px, 15px) rotate(180deg); }
  75% { transform: translate(-15px, -5px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes quantumRotation {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  33% { transform: rotateX(120deg) rotateY(120deg) rotateZ(120deg); }
  66% { transform: rotateX(240deg) rotateY(240deg) rotateZ(240deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes planckScale {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); 
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.8); 
  }
}

@keyframes gravitonWave {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 0.7; 
  }
  50% { 
    transform: scale(1.5) rotate(180deg); 
    opacity: 1; 
    box-shadow: 0 0 25px currentColor; 
  }
}

@keyframes gravitonPath {
  0% { transform: translate(0, 0); }
  25% { transform: translate(40px, -20px); }
  50% { transform: translate(80px, 0); }
  75% { transform: translate(40px, 20px); }
  100% { transform: translate(0, 0); }
}

@keyframes spacetimeCurvature {
  0%, 100% { 
    transform: perspective(600px) rotateX(0deg) rotateY(0deg); 
  }
  25% { 
    transform: perspective(600px) rotateX(15deg) rotateY(15deg); 
  }
  50% { 
    transform: perspective(600px) rotateX(-10deg) rotateY(-10deg); 
  }
  75% { 
    transform: perspective(600px) rotateX(10deg) rotateY(-15deg); 
  }
}

@keyframes gridDistortion {
  0%, 100% { 
    transform: skew(0deg, 0deg) scale(1); 
  }
  25% { 
    transform: skew(5deg, 2deg) scale(1.05); 
  }
  50% { 
    transform: skew(-3deg, -5deg) scale(0.95); 
  }
  75% { 
    transform: skew(-2deg, 3deg) scale(1.02); 
  }
}

/* Enhanced String Theory Animations */
@keyframes dimensionalShimmer {
  0%, 100% { 
    filter: brightness(1) saturate(1) hue-rotate(0deg); 
  }
  33% { 
    filter: brightness(1.3) saturate(1.5) hue-rotate(120deg); 
  }
  66% { 
    filter: brightness(0.7) saturate(0.8) hue-rotate(240deg); 
  }
}

@keyframes hyperStringVibration {
  0%, 100% { 
    transform: scaleY(1) rotateZ(0deg); 
    filter: hue-rotate(0deg); 
  }
  20% { 
    transform: scaleY(1.8) rotateZ(5deg); 
    filter: hue-rotate(72deg); 
  }
  40% { 
    transform: scaleY(0.3) rotateZ(-3deg); 
    filter: hue-rotate(144deg); 
  }
  60% { 
    transform: scaleY(2.2) rotateZ(7deg); 
    filter: hue-rotate(216deg); 
  }
  80% { 
    transform: scaleY(0.5) rotateZ(-5deg); 
    filter: hue-rotate(288deg); 
  }
}

@keyframes membraneWave {
  0%, 100% { 
    transform: rotateX(60deg) rotateY(0deg) scaleZ(1); 
    opacity: 0.6; 
  }
  25% { 
    transform: rotateX(75deg) rotateY(45deg) scaleZ(1.2); 
    opacity: 0.9; 
  }
  50% { 
    transform: rotateX(45deg) rotateY(90deg) scaleZ(0.8); 
    opacity: 0.4; 
  }
  75% { 
    transform: rotateX(90deg) rotateY(135deg) scaleZ(1.1); 
    opacity: 0.8; 
  }
}

@keyframes calabiYauMorphing {
  0%, 100% { 
    transform: rotate(0deg) scale(1); 
    border-radius: 50%; 
  }
  25% { 
    transform: rotate(90deg) scale(1.2); 
    border-radius: 30% 70% 60% 40% / 40% 30% 70% 60%; 
  }
  50% { 
    transform: rotate(180deg) scale(0.8); 
    border-radius: 60% 40% 30% 70% / 70% 60% 40% 30%; 
  }
  75% { 
    transform: rotate(270deg) scale(1.1); 
    border-radius: 40% 60% 70% 30% / 30% 70% 40% 60%; 
  }
}

@keyframes extraDimensionalFlow {
  0% { 
    background-position: 0% 0%, 100% 100%; 
    opacity: 0.3; 
  }
  33% { 
    background-position: 100% 0%, 0% 100%; 
    opacity: 0.7; 
  }
  66% { 
    background-position: 50% 100%, 50% 0%; 
    opacity: 0.5; 
  }
  100% { 
    background-position: 0% 0%, 100% 100%; 
    opacity: 0.3; 
  }
}

/* Footer Styling */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  height: 50px;
  box-sizing: border-box;
}

.data-attribution {
  flex: 1;
}

.data-attribution p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 300;
}

.support-button {
  flex-shrink: 0;
}

.buy-coffee-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FF813F 0%, #FF6B35 100%);
  color: white !important;
  text-decoration: none;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 129, 63, 0.3);
  height: 34px;
  box-sizing: border-box;
}

.buy-coffee-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 129, 63, 0.4);
  background: linear-gradient(135deg, #FF6B35 0%, #FF813F 100%);
}

.buy-coffee-btn svg {
  flex-shrink: 0;
}

.buy-coffee-btn span {
  white-space: nowrap;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 4px;
    padding: 6px 15px;
    height: 60px;
  }
  
  .data-attribution {
    text-align: center;
  }
  
  .data-attribution p {
    font-size: 0.75rem;
  }
  
  .buy-coffee-btn {
    font-size: 0.75rem;
    padding: 4px 12px;
    height: 28px;
    gap: 4px;
  }
  
  .timeline-navigation {
    bottom: 70px;
  }
}
