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

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #ffffff;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.controls-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  z-index: 100;
}

.controls-overlay h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #00d4ff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.controls-overlay p {
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
  margin-bottom: 8px;
}

.controls-overlay strong {
  color: #ffffff;
  font-weight: 500;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.page-title {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  z-index: 100;
  letter-spacing: 0.3px;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.landing-content {
  max-width: 600px;
  text-align: center;
}

.landing-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.landing-content p {
  font-size: 18px;
  color: #b8b8b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.feature-list {
  margin-top: 40px;
  text-align: left;
  background: rgba(10, 10, 10, 0.5);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #00d4ff;
}

.feature-list ul {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  color: #b8b8b8;
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.feature-list li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #00ff88;
  font-weight: bold;
}

.weather-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.weather-controls h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #00d4ff;
  font-weight: 600;
}

.weather-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.weather-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.weather-btn:active {
  transform: translateY(0);
}

.time-display {
  font-size: 13px;
  color: #b8b8b8;
  margin-top: 8px;
  margin-bottom: 0;
}

.time-display span {
  color: #00ff88;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

/* Info Modal Styles */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.info-panel {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 64px rgba(0, 212, 255, 0.2);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.info-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.info-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.info-content h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: #00d4ff;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.info-section {
  margin-bottom: 24px;
}

.info-section h3 {
  font-size: 18px;
  color: #00ff88;
  margin-bottom: 12px;
  font-weight: 600;
}

.info-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-section li {
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.info-section li:before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-weight: bold;
}

/* Info Buttons */
.info-btn {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.9) 0%,
    rgba(0, 153, 204, 0.9) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
  z-index: 50;
  /* No transition for instant position updates */
  /* Transform will be set by JavaScript for positioning */
}

.info-btn:hover {
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.9) 0%,
    rgba(0, 212, 255, 0.9) 100%
  );
  transition: box-shadow 0.2s ease, background 0.2s ease;
  filter: brightness(1.1);
}

.info-btn:active {
  filter: brightness(0.95);
}

/* Scrollbar styling for info panel */
.info-panel::-webkit-scrollbar {
  width: 8px;
}

.info-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* Construction Timeline Control */
.timeline-control {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.timeline-btn {
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.timeline-btn:hover {
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.05);
}

.timeline-btn:active {
  transform: scale(0.98);
}

.timeline-step {
  font-size: 12px;
}

.timeline-slider-container {
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.timeline-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.5);
  transition: all 0.2s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(0, 212, 255, 0.7);
}

.timeline-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.5);
  transition: all 0.2s ease;
}

.timeline-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(0, 212, 255, 0.7);
}

.timeline-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    rgba(0, 212, 255, 0.3) 0%,
    rgba(0, 212, 255, 0.3) var(--progress, 0%),
    rgba(255, 255, 255, 0.1) var(--progress, 0%),
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 3px;
}

.timeline-percentage {
  color: #00d4ff;
  font-weight: 600;
  font-size: 16px;
  min-width: 50px;
  text-align: right;
  font-family: "Courier New", monospace;
}
