:root {
  --bg-primary: #050505;
  --bg-secondary: #0f0f0f;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent-primary: #ff1e1e;
  --accent-secondary: #ef4444;
  --accent-glow: #ff3b3b;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --spacing-desktop: 110px;
  --spacing-tablet: 80px;
  --spacing-mobile: 50px;
}

* {
  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;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

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

.text-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-center {
  text-center;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-primary);
  box-shadow: 0 4px 30px rgba(255, 30, 30, 0.2);
}

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

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

.logo span {
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

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

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

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

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(255, 30, 30, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 30, 30, 0.6);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: linear-gradient(to bottom, rgba(5,5,5,0.6), rgba(5,5,5,0.95)), url('images/hero-jungle-monkey-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: slideUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #d1d5db;
  animation: slideUp 1s ease forwards;
}

/* Glassmorphism UI Components */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Game Section */
.game-section {
  background-color: var(--bg-secondary);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,30,30,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.game-container {
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(255, 30, 30, 0.2), inset 0 0 20px rgba(255, 30, 30, 0.1);
  padding: 10px;
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

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

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

.feature-card {
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 30, 30, 0.15);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* SEO Content Section */
.seo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.seo-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.seo-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(255, 30, 30, 0.2);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  padding: 30px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.stars {
  color: #fbbf24;
  margin-bottom: 10px;
}

/* Responsible Gaming Banner */
.rg-banner {
  background: linear-gradient(to right, rgba(5,5,5,0.9), rgba(15,15,15,0.9)), url('images/jungle-leaves-texture.jpg');
  background-size: cover;
  border-top: 1px solid var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary);
}

.rg-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.rg-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background: rgba(5,5,5,0.95);
  border-top: 2px solid var(--accent-primary);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50%;
  height: 2px;
  background: var(--accent-primary);
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utility Pages (Privacy, Terms, About, Contact) */
.page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(5,5,5,0.8), var(--bg-primary)), url('images/jungle-trees-bg.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
  border-bottom: 1px solid var(--accent-primary);
}

.page-header h1 {
  font-size: 3rem;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 15px var(--accent-glow);
}

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

.content-wrapper h2 {
  margin-top: 30px;
  color: var(--text-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: var(--font-main);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .section { padding: var(--spacing-tablet) 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-content { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3rem; }
  .game-container { width: 90%; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  
  .hero h1 { font-size: 2.5rem; }
  .features-grid, .testimonials-grid, .footer-grid { grid-template-columns: 1fr; }
  
  .game-container { width: 100%; border-radius: 0; border-left: none; border-right: none; }
  
  .footer-grid { gap: 30px; text-align: center; }
  .footer-col h3::after { left: 25%; }
}