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

:root {
  /* Colors */
  --bg-primary: #05060a;
  --bg-secondary: #0c0f1a;
  --bg-surface: #12162a;
  
  /* Accents */
  --neon-purple: #8b5cf6;
  --electric-blue: #00e0ff;
  --neon-pink: #ff2fd1;
  --cosmic-yellow: #ffe066;
  
  /* Text */
  --text-primary: #f5f7ff;
  --text-secondary: #9aa3b2;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #00e0ff, #ff2fd1);
  --gradient-secondary: linear-gradient(135deg, #ff2fd1, #ffe066);
  --gradient-glass: rgba(10, 12, 25, 0.7);
  
  /* Layout */
  --max-width: 1440px;
  --border-radius-sm: 12px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  
  /* Spacing */
  --spacing-base: 60px;
}

@media (min-width: 768px) {
  :root { --spacing-base: 80px; }
}

@media (min-width: 1200px) {
  :root { --spacing-base: 110px; }
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Background Effects */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, var(--text-primary), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, var(--text-secondary), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, var(--electric-blue), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, var(--neon-purple), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, var(--text-primary), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, var(--neon-pink), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: starfield 60s linear infinite;
  opacity: 0.4;
}

@keyframes starfield {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Floating Navbar */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.navbar {
  width: 100%;
  max-width: var(--max-width);
  background: var(--gradient-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 224, 255, 0.3);
  border-color: rgba(0, 224, 255, 0.5);
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--electric-blue);
}

.nav-links a:hover {
  color: var(--electric-blue);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: none;
}

.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.mobile-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00e0ff, #ff2fd1, #8b5cf6);
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 47, 209, 0.6);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* Sections */
section {
  padding: var(--spacing-base) 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  position: relative;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.legal-notice {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.legal-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inner Page Hero */
.inner-hero {
  padding: calc(var(--spacing-base) + 80px) 0 var(--spacing-base);
  text-align: center;
  background: radial-gradient(ellipse at top, var(--bg-surface) 0%, transparent 70%);
}

.inner-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

/* Game Section */
.game-section {
  text-align: center;
  position: relative;
}

.game-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  background: var(--bg-surface);
  padding: 8px;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 224, 255, 0.15);
  animation: floatGame 6s ease-in-out infinite;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-primary);
  z-index: -1;
  border-radius: calc(var(--border-radius-lg) + 2px);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.game-wrapper:hover::before {
  opacity: 1;
  box-shadow: 0 0 30px var(--neon-purple), 0 0 60px var(--electric-blue);
}

.game-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--border-radius-lg) - 4px);
  overflow: hidden;
  background: #000;
}

.game-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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

/* Features Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: rgba(18, 22, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.feature-card:hover::after {
  opacity: 0.05;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-blue);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
}

/* Content Pages (About, Terms, etc.) */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: 40px 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.content-wrapper h2, .content-wrapper h3 {
  margin: 32px 0 16px;
  color: var(--electric-blue);
}

.content-wrapper p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-wrapper ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-secondary);
  list-style-type: disc;
}

.content-wrapper ul li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-control {
  background: rgba(5, 6, 10, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
}

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

/* Additional Section: Explore */
.explore-section {
  position: relative;
  overflow: hidden;
}

.explore-banner {
  background: linear-gradient(rgba(12, 15, 26, 0.8), rgba(12, 15, 26, 0.8)), url('images/photo-1506318137071-a8e063b4bec0-explore-banner-explore-bann.png') center/cover;
  border-radius: var(--border-radius-lg);
  padding: 80px 24px;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.explore-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(255, 47, 209, 0.5);
}

/* Separator */
.neon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--electric-blue), transparent);
  margin: var(--spacing-base) 0;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 24px;
  margin-top: var(--spacing-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-legal-warning {
  background: rgba(255, 47, 209, 0.05);
  border: 1px solid rgba(255, 47, 209, 0.2);
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
  margin-bottom: 32px;
}

.footer-legal-warning p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-legal-warning strong {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations & Utilities */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .content-wrapper {
    padding: 60px 48px;
  }
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
  
  .nav-actions {
    display: block;
  }
  
  .mobile-toggle {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}