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

:root {
  /* Color Palette */
  --bg-primary: #0A0A0D;
  --bg-secondary: #141417;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --accent-primary: #00FF88;
  --accent-secondary: #00FFCC;
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  
  /* Gradients */
  --neon-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --text-gradient: linear-gradient(to right, var(--text-primary), var(--accent-secondary));
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  
  /* Spacing */
  --spacing-section: 50px;
  --container-max: 1400px;
  --game-max: 1300px;
  
  /* Effects */
  --glass-blur: blur(12px);
  --neon-glow: 0 0 20px rgba(0, 255, 136, 0.15);
  --neon-glow-hover: 0 0 30px rgba(0, 255, 204, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --spacing-section: 70px;
  }
}

@media (min-width: 1024px) {
  :root {
    --spacing-section: 100px;
  }
}

/* ================= Reset & Global ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-primary);
}

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================= Layout & Grid ================= */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

section {
  padding: var(--spacing-section) 0;
}

/* ================= Glass Header ================= */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 13, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-gradient);
  transition: var(--transition-smooth);
  box-shadow: var(--neon-glow);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ================= Buttons ================= */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 14px;
  background: var(--neon-gradient);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  box-shadow: var(--neon-glow);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-glow-hover);
  color: var(--bg-primary);
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Offset header */
  background: linear-gradient(to bottom, rgba(10, 10, 13, 0.6), var(--bg-primary)), 
              url('images/photo-1590523277543-a94d2e4eb00b-hero.png') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-tagline {
  color: var(--accent-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.legal-warning-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  padding: 16px 24px;
  border-radius: 12px;
  margin: 1rem 0 2rem 0;
  display: inline-block;
}

.legal-warning-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.legal-warning-box span {
  color: var(--accent-primary);
}

/* Page Hero for subpages */
.page-hero {
  padding: 180px 0 100px;
  background: linear-gradient(to bottom, rgba(10, 10, 13, 0.9), var(--bg-primary)), 
              url('images/photo-1540206395-68808572332f-page-hero-page-hero.png') center/cover no-repeat;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* ================= Game Section ================= */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.game-wrapper {
  width: 100%;
  max-width: var(--game-max);
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.08);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (min-width: 1024px) {
  .game-wrapper {
    width: 85%;
  }
}

/* ================= Features / Information Grid ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: var(--spacing-section);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: var(--neon-glow);
}

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

.glass-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.icon-wrapper svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent-primary);
}

/* ================= Content Pages (About, Terms, etc.) ================= */
.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.text-content {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
}

.text-content h2 {
  color: var(--accent-secondary);
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.text-content h2:first-child {
  margin-top: 0;
}

.text-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.text-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.text-content li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  position: relative;
  list-style-type: disc;
}

.text-content li::marker {
  color: var(--accent-primary);
}

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

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

.form-group label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

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

/* ================= Footer ================= */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.footer-disclaimer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 13, 0.95);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-links a {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .game-wrapper {
    width: 100%;
    border-radius: 12px;
  }
}