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

html,
body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Space Grotesk", sans-serif;
  color: white;
}

.spaceship {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 999;
  transition: top 1s ease, left 1s ease;
  pointer-events: none;
}

.intro-text {
  position: absolute;
  top: 70px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: #7be43e;
  z-index: 999;
  animation: fadeInText 2s ease;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbit-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  color: #7be43e;
  border: 1px solid #7be43e;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}
.back-btn:hover {
  background: rgba(123, 228, 62, 0.1);
}

.universe {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

#stars {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.planets {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.planet {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.planet.focused {
  width: 300px;
  height: 300px;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 10;
}

.planet-info {
  display: none;
  position: absolute;
  bottom: -140px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 1rem;
  width: 250px;
  text-align: center;
  font-size: 0.9rem;
  border: 1px solid #7be43e;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}
.planet.focused .planet-info {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem 1rem;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 100;
}

.footer .social {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}
.footer .social:hover {
  color: #7be43e;
}

@media (max-width: 768px) {
  .planet {
    width: 80px;
    height: 80px;
  }

  .planet.focused {
    width: 240px;
    height: 240px;
  }

  .planet.focused .planet-info {
    width: 200px;
    font-size: 0.75rem;
  }
}
.lang-switch-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #7be43e;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.flag {
  font-size: 0.9rem;
  color: white;
  font-weight: bold;
}

.lang-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.lang-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #7be43e;
}

input:checked + .slider:before {
  transform: translateX(22px);
}
