:root {
  --lime: #A3FF12;
  --jungle: #0B1F1A;
  --orange: #FF7A00;
  --cyan: #00E5FF;
  --purple: #8B5CF6;
  --bg-gradient: linear-gradient(135deg, #000000 0%, #0B1F1A 50%, #004d40 100%);
  --glass-bg: rgba(11, 31, 26, 0.6);
  --glass-border: rgba(163, 255, 18, 0.3);
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

ul {
  list-style: none;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--jungle);
}
::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--lime);
  color: var(--jungle);
  box-shadow: 0 0 15px rgba(163, 255, 18, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(163, 255, 18, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3) inset;
}

.btn-secondary:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-radius: 0 0 30px 30px;
  border-bottom: 2px solid var(--cyan);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(163, 255, 18, 0.6);
}

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

.nav-links a {
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
  text-shadow: 0 0 8px var(--orange);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--lime);
  transition: 0.3s;
}

/* HERO SECTION (WebGL) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

#webgl-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--lime), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 20px rgba(163, 255, 18, 0.3);
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

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

/* MONKEY METER */
.monkey-meter-container {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  z-index: 50;
  border: 1px solid var(--lime);
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.2);
}

.monkey-meter-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--orange), var(--lime));
  border-radius: 10px;
  box-shadow: 0 0 15px var(--lime);
  transition: height 0.2s ease-out;
}

/* SECTIONS */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
}

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

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

/* EXTRA JUNGLE SECTION */
.jungle-split {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.jungle-text {
  flex: 1;
}

.jungle-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--lime);
}

.jungle-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.jungle-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  border: 2px solid var(--purple);
}

.jungle-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.jungle-img:hover img {
  transform: scale(1.05);
}

/* GAME PAGE */
.page-header {
  padding: 120px 20px 40px;
  text-align: center;
}

.game-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-bottom: 80px;
}

.game-card {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(255, 122, 0, 0.2);
  transform-style: preserve-3d;
}

.game-card img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform: translateZ(30px);
}

.game-card h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--lime);
  transform: translateZ(40px);
}

.game-card p {
  margin-bottom: 25px;
  color: #ddd;
  transform: translateZ(20px);
}

.game-card .btn {
  transform: translateZ(50px);
}

.game-area {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

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

/* CONTENT PAGES (About, Contact, Terms, Privacy) */
.content-wrapper {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 40px;
  border-radius: 20px;
  border-color: var(--purple);
}

.content-wrapper h1 {
  font-size: 2.5rem;
  color: var(--lime);
  margin-bottom: 20px;
  text-align: center;
}

.content-wrapper p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ddd;
}

.content-wrapper ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #ddd;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

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

.input-group label {
  color: var(--cyan);
  font-weight: 500;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 10px rgba(163, 255, 18, 0.3);
}

/* FOOTER */
.footer {
  margin-top: auto;
  border-radius: 40px 40px 0 0;
  border-top: 2px solid var(--purple);
  padding: 40px 20px 20px;
  text-align: center;
  box-shadow: 0 -10px 30px rgba(139, 92, 246, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 20px;
  color: var(--lime);
  font-weight: bold;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s;
}

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

.footer-legal {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 0.9rem;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  transition: bottom 0.5s ease-in-out;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.cookie-banner.show {
  bottom: 20px;
}

.cookie-text {
  font-size: 0.9rem;
  color: #ddd;
  margin-right: 20px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btns button {
  padding: 8px 15px;
  font-size: 0.8rem;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--cyan);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-out;
  }

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

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .jungle-split {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .monkey-meter-container {
    width: 5px;
    right: 10px;
  }
}