:root {
  --purple: #5e2b97;
  --cyan: #00d2ff;
  --yellow: #ffeb3b;
  --grey: #f5f5f5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0px;
  margin-top: -30px;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
  perspective-origin: center;
  background: transparent; /* remove previous galaxy gradient */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 450px;
  text-align: left;
}

.section-img {
  width: 575px !important; /* was 450px */
  max-width: 90vw; /* makes it responsive on smaller screens */
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatImage 8s ease-in-out infinite;
}

.section-img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(255, 255, 0, 0.3);
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}


h1, h2, h3, .logo {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--yellow);
}

nav a {
  margin: 0 12px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  color: var(--yellow);
}

.hero {
  text-align: center;
  padding: 100px 20px 50px;
}
.hero h1 {
  font-size: 3em;
  color: var(--yellow);
}
.hero p {
  font-size: 1.2em;
  margin: 10px 0 20px;
}
.button {
  background: var(--cyan);
  color: #000;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
}
.button:hover {
  background: var(--yellow);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.info th, .info td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  text-align: left;
}
.info th {
  background: var(--purple);
  color: var(--yellow);
}

.rules ul {
  list-style: none;
  padding: 0;
}
.rules li {
  margin-bottom: 10px;
  background: rgba(255,255,255,0.05);
  padding: 10px 15px;
  border-left: 5px solid var(--yellow);
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: var(--yellow);
}

/* Full galaxy star field */
.starry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  background: radial-gradient(circle at center, #0d0d2b, #000010, #000);
  background-size: cover;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

/* Individual stars */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  z-index: -3;
  opacity: 0.3;
  animation: twinkle 5s infinite ease-in-out;
}

/* Glow animation */
@keyframes twinkle {
  0%, 100% { opacity: 0.0; }
  50% { opacity: 1; }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, white, rgba(255,255,255,0));
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  border-radius: 50%;
  transform: rotate(315deg);
  filter: blur(1px);
  animation: shootStar 1.5s ease-out forwards;
}

@keyframes shootStar {
  0% {
    transform: translate(0, 0) rotate(315deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(800px, 800px) rotate(315deg);
    opacity: 0;
  }
}


.rocket-launch {
  position: fixed;
  width: 80px;
  z-index: -1;
  pointer-events: none;
  animation: rotateDrift 60s linear infinite;
}

.rocket-launch img {
  width: 100%;
}

/* Floating rotation like in space */
@keyframes rotateDrift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ASTRONAUT */
/* Floating wrapper (handles vertical floating only) */
.floating-container {
  position: fixed;
  top: 15%;
  left: 5%;
  width: 80px;
  z-index: 100;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  transform-style: preserve-3d;
}

/* Astronaut (handles mouse interaction only) */
.floating-astronaut {
  width: 100%;
  pointer-events: auto;
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.floating-astronaut img {
  width: 100%;
  display: block;
}

/* Floating animation */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

.playground-plan {
  text-align: center;
  padding: 40px 20px;
}

.playground-plan h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.playground-plan p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.playground-plan .layout-img {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-content .section-img {
    max-width: 100%;
  }

  .hero-text {
    text-align: center;
  }
  .nav-toggle {
    display: block;
	background: red; /* just for debug */
  }

  .nav-links {
    display: none; /* ✅ Force hidden on small screens */
    flex-direction: column;
    position: absolute;
    right: 30px;
    top: 70px;
    background: var(--glass-bg);
    padding: 15px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 99;
	transition: right 0.3s ease;
  }

  .nav-links.active {
    display: flex !important; /* ✅ Ensure it's visible when toggled */
  }

  .navbar {
    flex-wrap: wrap;
    position: relative;
  }
  /* Right Slide-In Menu */
.nav-links {
  position: fixed;
  top: 0;
  right: -200px; /* Hidden off-screen */
  width: 150px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--glass-border);
  padding: 80px 20px 20px; /* top space for nav button */
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: right 0.35s ease-in-out;
  z-index: 999;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

/* Show menu when active */
.nav-links.active {
  right: 0;
}

/* Menu links styling */
.nav-links a {
  color: var(--yellow);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  padding: 10px 0;
  opacity: 1;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-links.active a {
  opacity: 1;
  transform: translateX(0);
}

.nav-links a:hover {
  color: var(--cyan);
}

/* Push page content left when menu is open */
.page-content.slide-left {
  transform: translateX(-200px);
  transition: transform 0.35s ease-in-out;
}

/* Prevent scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
}
@media (min-width: 769px) {
  .navbar {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-links {
    position: static;
    height: auto;
    width: auto;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav-links a {
    transform: none !important;
    opacity: 1 !important;
    padding: 0;
    font-size: 1em;
    color: var(--cyan);
  }

  .page-content.slide-left {
    transform: none !important;
  }

  .nav-toggle {
    display: none !important;
  }
}


.nav-toggle {
  font-size: 2rem;
  color: var(--yellow);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}


/* Animated when active */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.nav-toggle .bar {
  box-shadow: 0 0 5px var(--yellow);
}
