* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #05041a; /* Warna gelap ala luar angkasa */
  color: #ffffff;
  overflow-x: hidden;
}

/* Navigasi */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00d2ff;
}

/* Sections (Halaman) */
section {
  display: none;
  min-height: 100vh;
  padding: 100px 50px 50px;
}

section.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bagian Home / Hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, #fff, transparent),
    radial-gradient(1px 1px at 90px 40px, #eee, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
    radial-gradient(1px 1px at 200px 50px, #eee, transparent),
    radial-gradient(2px 2px at 250px 80px, #fff, transparent),
    radial-gradient(1px 1px at 300px 20px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #b0b0b0;
}

.video-wrapper {
  margin: 40px auto 0;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.video-wrapper::before {
  content: "Video Jelajah";
  display: block;
  text-align: center;
  margin-bottom: 18px;
  color: #b0b0b0;
  font-size: 1rem;
  letter-spacing: 1px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.home-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Facts Section */
.facts-section {
  margin: 60px auto 0;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
}

.facts-section h2 {
  color: #00d2ff;
  margin-bottom: 30px;
  font-size: 2rem;
}

.facts-container {
  position: relative;
  height: 120px;
  overflow: hidden;
  margin-bottom: 30px;
}

.fact-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.fact-item.active {
  opacity: 1;
  transform: translateY(0);
}

.facts-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: #00d2ff;
}

.indicator:hover {
  background: #00d2ff;
}

/* Light Theme Facts */
body.light .facts-section h2 {
  color: #3a7bd5;
}

body.light .fact-item {
  color: #555;
}

body.light .indicator {
  background: rgba(0, 0, 0, 0.2);
}

body.light .indicator.active {
  background: #3a7bd5;
}

body.light .indicator:hover {
  background: #3a7bd5;
}

button {
  padding: 15px 30px;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

/* Grid Planet */
#planets-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.planet-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.planet-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.planet-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: #00d2ff;
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.planet-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.planet-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 10px;
}

.gallery-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.gallery-item p {
  margin: 12px 0 0;
  color: #d5d5d5;
  font-weight: 600;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* About Section */
.about-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.profile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00d2ff;
  margin-bottom: 20px;
}

.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: #00d2ff;
}

/* Light Theme */
body.light {
  background-color: #f0f0f0;
  color: #333;
}

body.light nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

body.light .nav-links a {
  color: #333;
}

body.light .nav-links a:hover {
  color: #3a7bd5;
}

body.light .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.light .hero h1 {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .hero p {
  color: #666;
}

body.light button {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

body.light button:hover {
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

body.light .planet-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

body.light .planet-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: #667eea;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

body.light .modal-content {
  background: #fff;
  color: #333;
  border-color: #667eea;
}

body.light .profile-card {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

/* Modal (Pop-up) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1a1a2e;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
  border: 1px solid #3a7bd5;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #b0b0b0;
}

.close-btn:hover {
  color: #fff;
}

.moons-info {
  color: #00d2ff;
  font-weight: bold;
  margin: 15px 0;
  font-size: 1.2rem;
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

nav {
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #00d2ff;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero h1 {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.planet-card {
  transform-style: preserve-3d;
}

.planet-card:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.planet-card:hover {
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.home-video {
  transition: transform 0.3s ease;
}

.home-video:hover {
  transform: scale(1.05);
}

/* Footer Styles */
.footer {
  background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
  border-top: 1px solid rgba(0, 210, 255, 0.3);
  padding: 60px 50px 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h4 {
  color: #00d2ff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-logo-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #00d2ff;
}

.footer-desc {
  color: #b0b0b0;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d0d0d0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "›";
  margin-right: 8px;
  color: #00d2ff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  color: #00d2ff;
  padding-left: 10px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  color: #d0d0d0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #888;
  margin-bottom: 10px;
}

.footer-credit {
  font-size: 0.9rem;
  color: #666 !important;
}

/* Light Theme Footer */
body.light .footer {
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
  border-top-color: rgba(102, 126, 234, 0.3);
}

body.light .footer-section h4 {
  color: #3a7bd5;
}

body.light .footer-desc,
body.light .footer-contact li {
  color: #555;
}

body.light .footer-links a {
  color: #555;
}

body.light .footer-links a:hover {
  color: #3a7bd5;
}

body.light .social-link {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light .social-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

body.light .footer-bottom p {
  color: #666;
}

body.light .footer-credit {
  color: #888 !important;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}


#music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}


@media (max-width: 768px) {

  /* NAVBAR */
  nav {
    padding: 15px 20px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    display: none;
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  /* SECTION */
  section {
    padding: 100px 20px 40px;
  }

  /* HERO */
  .hero {
    height: auto;
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 2rem; /* dari 4rem jadi kecil */
  }

  .hero p {
    font-size: 0.95rem;
  }

  button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* PLANET */
  .planet-container {
    grid-template-columns: 1fr;
  }

  .planet-card-image {
    height: 150px;
  }

  /* PROFILE */
  .profile-container {
    grid-template-columns: 1fr;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* MODAL */
  .modal-content {
    padding: 20px;
  }

}



#menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  color: white;
  border: none;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }
}


#three-canvas {
  pointer-events: none; /* biar gak ganggu klik */
}


html {
  scroll-behavior: smooth;
}