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

:root {
  --bg-primary: #041b15;
  --bg-secondary: #0b2f24;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --surface-glass-border: rgba(255, 255, 255, 0.1);
  
  --accent-primary: #16a34a;
  --accent-secondary: #4ade80;
  --accent-highlight: #eab308;
  
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;
  --text-muted: #6ee7b7;
  
  --border-glow: rgba(74, 222, 128, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  --font-main: 'Poppins', sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(22, 163, 74, 0.08), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.05), transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.text-center {
  text-align: center;
}

.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
  filter: brightness(1.1);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
}

.btn-secondary:hover {
  background: rgba(74, 222, 128, 0.1);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(4, 27, 21, 0.85);
  backdrop-filter: blur(16px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--accent-secondary);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-secondary);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url('../images/jungle-canopy-sunlight-background.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to right, var(--bg-primary) 0%, rgba(4, 27, 21, 0.4) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.hero-visual {
  position: relative;
}

.hero-visual-img {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--surface-glass-border);
  animation: float 6s ease-in-out infinite;
}

/* Game Section */
.game-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.game-wrapper {
  padding: 24px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(22, 163, 74, 0.1);
  transition: var(--transition-smooth);
}

.game-wrapper:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(74, 222, 128, 0.2);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-glass-border);
}

.game-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  color: var(--accent-highlight);
}

.game-frame-container {
  width: 100%;
  height: 650px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  position: relative;
}

.game-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* Internal Pages (About, Terms, etc.) */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(4, 27, 21, 0.9), var(--bg-primary)), url('../images/ancient-temple-leaves-header.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--surface-glass-border);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.content-section {
  padding: 80px 0;
}

.content-box {
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.content-box h2 {
  color: var(--accent-secondary);
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.content-box p, .content-box ul {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.content-box ul {
  padding-left: 24px;
}

.content-box li {
  margin-bottom: 8px;
  position: relative;
}

.content-box li::before {
  content: '🌿';
  position: absolute;
  left: -24px;
  top: 2px;
  font-size: 0.8rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

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

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

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

/* Footer */
.footer {
  background: #020e0b;
  padding: 80px 0 24px;
  border-top: 1px solid var(--surface-glass-border);
  margin-top: 60px;
}

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

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  font-size: 0.9rem;
}

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

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

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--surface-glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  font-weight: 700;
  color: var(--text-muted);
}