@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #02030a;
  --bg-secondary: #070b1a;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --neon-blue: #3b82f6;
  --cosmic-purple: #8b5cf6;
  --astro-pink: #ec4899;
  --star-cyan: #06b6d4;
  
  --text-primary: #e0e7ff;
  --text-secondary: #a5b4fc;
  
  --gradient-cosmic: linear-gradient(135deg, var(--neon-blue), var(--cosmic-purple));
  --gradient-nebula: linear-gradient(135deg, var(--astro-pink), var(--star-cyan));
  
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Cursor */
.cursor-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* Particles */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--text-secondary); }

.text-gradient {
  background: var(--gradient-nebula);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(2, 3, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-cosmic);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--neon-blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--star-cyan);
  text-shadow: 0 0 8px var(--star-cyan);
}

.btn-primary {
  background: var(--gradient-cosmic);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(2, 3, 10, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: block;
  }
  .nav-cta {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/space.png');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: -2;
  transform: scale(1.1);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s;
}

.glass-card:hover::before {
  left: 150%;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-nebula);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Game Section */
.game-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.game-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.2), 0 0 20px rgba(236, 72, 153, 0.2);
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: #000;
}

.game-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.5);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 1024px) {
  .game-wrapper { width: 95%; }
}
@media (max-width: 768px) {
  .game-wrapper { width: 100%; aspect-ratio: 4/3; border-radius: 12px; }
  .game-wrapper::after { border-radius: 12px; }
}

/* Parallax Space Section */
.parallax-section {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/photo-1451187580459-43490279c0fa-parallax-parallax-section.png');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  text-align: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 10, 0.7);
}

.parallax-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

/* Page Headers (for inner pages) */
.page-header {
  padding: 150px 0 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0) 0%, var(--bg-secondary) 100%);
}

.content-section {
  padding: 50px 0 100px;
}

.text-content {
  max-width: 900px;
  margin: 0 auto;
}

.text-content h2 {
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.text-content p {
  margin-bottom: 1.5rem;
}

.text-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-secondary);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

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

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.legal-notice {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.legal-notice p {
  margin-bottom: 0;
  color: #94a3b8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }