* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
}

body {
  background: black;
  color: white;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.panel {
  min-height: 100vh;
  padding: 8vw 12vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.panel .content {
  max-width: 700px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel.active .content {
  opacity: 1;
  transform: translateY(0);
}

.phase-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.science-data {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.science-data:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.data-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.data-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.callout {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
  border-left: 3px solid rgba(59, 130, 246, 0.8);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.element-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.element-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
}

.element-symbol {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.element-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.element-location {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Quotes */
.quote {
  margin: 3rem 0;
  padding: 2rem;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* Final panel */
.panel-final {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.content-center {
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-final.active .content-center {
  opacity: 1;
  transform: translateY(0);
}

.subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 2rem 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.05em;
}

.cta-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.progress-dots {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.progress-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

.progress-dot.active {
  background: white;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.progress-dot.passed {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .panel {
    padding: 6vw 8vw;
  }
  
  .element-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .progress-dots {
    left: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
