:root {
  --bg-main: #04070d;
  --bg-sec: #0b1220;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --gold: #facc15;
  --text-main: #e2e8f0;
  --text-sec: #94a3b8;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  background-image: radial-gradient(circle at 50% 0%, #1a1a3a 0%, #04070d 60%);
  background-attachment: fixed;
}

/* -----------------------------
   TYPOGRAPHY
----------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--cyan);
}

p {
  color: var(--text-sec);
  margin-bottom: 1rem;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue);
}

/* -----------------------------
   HEADER & NAVIGATION
----------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  z-index: 1000;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav .nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.main-nav .nav-links li a:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

/* Mobile Nav Toggle */
#menu-toggle {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-sec);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

/* -----------------------------
   LAYOUT
----------------------------- */
main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

/* -----------------------------
   HERO SECTION
----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem; /* Increased top padding to avoid header overlap */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: url('images/deep-space-nebula-background.png') center/cover no-repeat;
  opacity: 0.4;
  animation: slowZoom 30s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(4,7,13,0.2) 0%, rgba(4,7,13,1) 100%);
  z-index: -1;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: 650px;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-gradient {
  background: linear-gradient(45deg, var(--cyan), var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero h1 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Floating Legal Box */
.hero-legal-box {
  background: rgba(11, 18, 32, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(34, 211, 238, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-legal-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.hero-legal-box p:last-child {
  color: var(--cyan);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .hero-legal-box {
    margin: 1.5rem auto;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* -----------------------------
   HERO VISUAL (PLANET)
----------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.planet-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.planet-sphere {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--blue) 40%, var(--bg-sec) 80%);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.4), inset -20px -20px 50px rgba(0,0,0,0.8);
  position: absolute;
  z-index: 2;
}

.planet-ring {
  position: absolute;
  width: 400px;
  height: 120px;
  border: 20px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), inset 0 0 30px rgba(139, 92, 246, 0.5);
  z-index: 1;
}

.planet-ring-front {
  position: absolute;
  width: 400px;
  height: 120px;
  border: 20px solid rgba(139, 92, 246, 0.7);
  border-radius: 50%;
  transform: rotate(-20deg);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), inset 0 0 30px rgba(139, 92, 246, 0.5);
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  z-index: 3;
}

@media (max-width: 500px) {
  .planet-container {
    width: 250px;
    height: 250px;
  }
  .planet-sphere {
    width: 150px;
    height: 150px;
  }
  .planet-ring, .planet-ring-front {
    width: 280px;
    height: 80px;
    border-width: 12px;
  }
}

/* -----------------------------
   BUTTONS
----------------------------- */
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(45deg, var(--blue), var(--purple), var(--cyan));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.6);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
  transform: scale(1);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: 30px;
  border: 1px solid var(--cyan);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.1);
}

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.3), 0 0 15px rgba(34, 211, 238, 0.3);
  color: #fff;
  transform: translateY(-3px);
}

/* -----------------------------
   GAME SECTION & FEATURES
----------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.game-section {
  padding: 5rem 2rem;
  background: var(--bg-sec);
  position: relative;
}

.game-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 200px;
  flex-shrink: 0;
}

.stat-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-container {
  flex-grow: 1;
  width: 100%;
  height: 600px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 5px;
  background: linear-gradient(45deg, var(--blue), var(--purple));
  position: relative;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--cyan), var(--blue), var(--purple), var(--cyan));
  z-index: -1;
  border-radius: 22px;
  background-size: 400%;
  animation: glowAnimation 10s linear infinite;
}

@keyframes glowAnimation {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.15);
  border-color: var(--cyan);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.experience-text {
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cyan);
  margin: 4rem auto;
  max-width: 800px;
  font-family: var(--font-heading);
}

/* -----------------------------
   CONTENT PAGES (Legal/About/Contact)
----------------------------- */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(11, 18, 32, 0.8), var(--bg-main));
  border-bottom: 1px solid var(--glass-border);
}

.content-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.content-box h3 {
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-box ul {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  color: var(--text-sec);
}

.content-box ul li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cyan);
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  background: var(--bg-sec);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.footer-col p {
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-sec);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-sec);
}

/* -----------------------------
   RESPONSIVE DESIGN
----------------------------- */
@media (max-width: 992px) {
  .game-wrapper {
    flex-direction: column-reverse;
  }
  .game-sidebar {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .stat-box {
    flex: 1;
    min-width: 120px;
  }
  .game-container {
    height: 50vw;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--cyan);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  #menu-toggle:checked ~ .main-nav {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .main-nav .nav-links {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    text-align: center;
  }
  
  .main-nav .nav-links li a {
    justify-content: center;
    font-size: 1.1rem;
  }
}

/* Star particles effect utility */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}