:root {
  /* Colors */
  --deep-jungle: #0b1f1a;
  --canopy-shadow: #12352d;
  --stone-surface: rgba(255,255,255,0.05);
  --stone-border: rgba(255,255,255,0.1);
  --jade-green: #00a86b;
  --emerald-glow: #10b981;
  --sunlight-gold: #d4af37;
  --warm-mist: #f3f4f6;
  --soft-leaf: #86efac;
  
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;

  /* Gradients */
  --grad-jade: linear-gradient(135deg, var(--jade-green) 0%, var(--emerald-glow) 100%);
  --grad-stone: linear-gradient(180deg, rgba(18,53,45,0.8) 0%, rgba(11,31,26,0.9) 100%);
  
  /* Spacing */
  --space-desktop: 100px;
  --space-tablet: 70px;
  --space-mobile: 50px;
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Cinzel', 'Playfair Display', serif; /* Gives ancient feel */

  /* Images */
  --bg-jungle-hero: url('https://images.unsplash.com/photo-1542382156909-9ae37b3f56fd?q=80&w=2000&auto=format&fit=crop');
  --bg-stone-texture: url('https://images.unsplash.com/photo-1518931754045-8120b6e92ba1?q=80&w=1000&auto=format&fit=crop');
}

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

body {
  font-family: var(--font-main);
  background-color: var(--deep-jungle);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* Atmosphere Elements */
.ambient-particles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.particle {
  position: absolute;
  background: var(--sunlight-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite linear;
  box-shadow: 0 0 10px var(--sunlight-gold);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 31, 26, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 168, 107, 0.2);
  transition: all 0.4s ease;
}

header.scrolled {
  background: rgba(11, 31, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(0, 168, 107, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--sunlight-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-jade);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 168, 107, 0.5);
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--deep-jungle);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 8px 0;
  color: var(--text-secondary);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-jade);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--emerald-glow);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-jade);
  color: var(--deep-jungle);
  box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 168, 107, 0.5);
}

.btn-secondary {
  background: var(--stone-surface);
  color: var(--text-primary);
  border: 1px solid var(--stone-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--jade-green);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: 80px; /* Offset for header */
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--bg-jungle-hero);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11,31,26,0.6) 0%, var(--deep-jungle) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  background: linear-gradient(to bottom, #fff, var(--soft-leaf));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Subpage Hero */
.sub-hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  background: var(--canopy-shadow);
  border-bottom: 1px solid var(--stone-border);
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: var(--bg-stone-texture);
  background-size: cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.sub-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--sunlight-gold);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

/* Game Section */
.game-section {
  padding: var(--space-desktop) 0;
  position: relative;
  z-index: 10;
}

.game-container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  background: var(--grad-stone);
  border: 1px solid rgba(0, 168, 107, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad-jade);
  z-index: -1;
  border-radius: 22px;
  opacity: 0.3;
  animation: pulseGlow 4s infinite alternate;
}

.game-container:hover {
  transform: scale(1.005);
  box-shadow: 0 25px 60px rgba(0, 168, 107, 0.15), inset 0 0 30px rgba(0,0,0,0.5);
}

.iframe-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 20px rgba(0,0,0,0.8) inset;
}

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

/* Legal Disclaimer */
.legal-disclaimer {
  margin-top: 30px;
  text-align: center;
  background: rgba(0,0,0,0.3);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--stone-border);
}

.legal-disclaimer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft-leaf);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Content Sections */
.content-section {
  padding: var(--space-desktop) 0;
  position: relative;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

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

.text-content h2 {
  font-size: 32px;
  color: var(--sunlight-gold);
  margin-bottom: 24px;
}

.card {
  background: var(--stone-surface);
  border: 1px solid var(--stone-border);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 168, 107, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--emerald-glow);
  font-size: 24px;
}

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

.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--stone-surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--stone-border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--stone-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--jade-green);
  background: rgba(0,0,0,0.4);
}

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

/* Text Pages (Terms, Privacy) */
.document-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--stone-surface);
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--stone-border);
}

.document-content h2 {
  color: var(--sunlight-gold);
  margin: 40px 0 20px;
  font-size: 24px;
}

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

.document-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--canopy-shadow);
  border-top: 1px solid var(--stone-border);
  padding: 60px 0 20px;
  margin-top: 60px;
}

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

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--sunlight-gold);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  from { opacity: 0.2; box-shadow: 0 0 10px rgba(0, 168, 107, 0.2); }
  to { opacity: 0.5; box-shadow: 0 0 30px rgba(0, 168, 107, 0.6); }
}

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --space-desktop: var(--space-mobile);
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--canopy-shadow);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--stone-border);
  }

  .nav-links.nav-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-cta {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .game-container {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
  }
  
  .document-content {
    padding: 24px;
  }
}