/* =============================================
   CRAZY MONKEY SOCIAL CASINO — STYLE.CSS
   Jungle Theme System
   ============================================= */

/* ─── CSS VARIABLES ─── */
:root {
  /* Jungle Palette */
  --color-jungle-deep:    #081C15;
  --color-jungle-dark:    #0B3D2E;
  --color-jungle-mid:     #1F7A4D;
  --color-jungle-light:   #2DA05D;
  --color-jungle-bright:  #3EC971;
  --color-banana-yellow:  #F4D35E;
  --color-banana-warm:    #E8B84B;
  --color-monkey-brown:   #7A4E2D;
  --color-bark-dark:      #4A2E14;
  --color-leaf-glow:      rgba(31, 122, 77, 0.3);
  --color-glass:          rgba(11, 61, 46, 0.45);
  --color-glass-light:    rgba(31, 122, 77, 0.15);
  --color-text-primary:   #F0F7F4;
  --color-text-secondary: #A8D5BE;
  --color-text-muted:     #6B9F84;
  --color-border:         rgba(61, 201, 113, 0.2);
  --color-border-glow:    rgba(244, 211, 94, 0.4);

  /* Gradients */
  --grad-primary:    linear-gradient(135deg, #1F7A4D 0%, #F4D35E 100%);
  --grad-hero:       linear-gradient(180deg, #081C15 0%, #0B3D2E 50%, #1F7A4D 100%);
  --grad-card:       linear-gradient(135deg, rgba(11,61,46,0.8) 0%, rgba(31,122,77,0.4) 100%);
  --grad-btn:        linear-gradient(135deg, #1F7A4D 0%, #F4D35E 100%);
  --grad-footer:     linear-gradient(180deg, #081C15 0%, #050F0A 100%);

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-2xl:  64px;
  --space-3xl:  100px;
  --space-4xl:  120px;

  /* Layout */
  --max-width:  1320px;
  --pad-desktop: 32px;
  --pad-tablet:  24px;
  --pad-mobile:  16px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(31,122,77,0.4);
  --shadow-yellow: 0 0 30px rgba(244,211,94,0.3);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Transitions */
  --trans-fast:   0.15s ease;
  --trans-mid:    0.3s ease;
  --trans-slow:   0.5s ease;

  /* Header height */
  --header-height: 80px;
  --topbar-height: 36px;
  --total-header: calc(var(--header-height) + var(--topbar-height));
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-jungle-deep);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--color-banana-yellow);
  text-decoration: none;
  transition: var(--trans-fast);
}

a:hover {
  color: var(--color-jungle-bright);
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ─── LAYOUT ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-desktop);
}

/* ─── AMBIENT BACKGROUND ─── */
.jungle-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light-rays {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ray {
  position: absolute;
  width: 3px;
  height: 100vh;
  background: linear-gradient(180deg, transparent 0%, rgba(244,211,94,0.06) 40%, transparent 100%);
  transform-origin: top center;
  animation: rayDrift 8s ease-in-out infinite;
}

.ray-1 { left: 20%; transform: rotate(-15deg); animation-delay: 0s; }
.ray-2 { left: 50%; transform: rotate(5deg); animation-delay: 3s; }
.ray-3 { left: 75%; transform: rotate(-8deg); animation-delay: 6s; }

/* ─── HEADER / CANOPY NAV ─── */
.canopy-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 28, 21, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--trans-mid);
}

.canopy-nav.scrolled {
  background: rgba(8, 28, 21, 0.95);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  border-bottom-color: rgba(61,201,113,0.3);
}

/* ─── HEADER TOP BAR ─── */
.header-top-bar {
  background: rgba(8, 28, 21, 0.95);
  border-bottom: 1px solid var(--color-border);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  overflow: hidden;
  transition: height var(--trans-mid), padding var(--trans-mid), opacity var(--trans-mid), border var(--trans-mid);
}

.header-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-top-bar strong {
  color: var(--color-banana-yellow);
  font-weight: 500;
}

.canopy-nav.scrolled .header-top-bar {
  height: 0;
  padding: 0;
  opacity: 0;
  border-bottom: 0px solid transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-md);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  transition: var(--trans-fast);
}

.logo-link:hover {
  color: var(--color-banana-yellow);
  transform: scale(1.03);
}

.logo-icon {
  font-size: 1.8rem;
  animation: logoBounce 3s ease-in-out infinite;
}

.logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  position: relative;
  padding: 4px 2px;
  transition: var(--trans-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--color-banana-yellow);
  border-radius: var(--radius-full);
  transition: width var(--trans-mid);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-banana-yellow);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: var(--trans-fast);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: rgba(8, 28, 21, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
  transition: right var(--trans-slow);
  border-left: 1px solid var(--color-border);
}

.mobile-overlay.open {
  right: 0;
}

.mobile-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--trans-fast);
}

.mobile-close:hover {
  color: var(--color-banana-yellow);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.mobile-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
  transition: var(--trans-fast);
}

.mobile-link:hover {
  color: var(--color-banana-yellow);
  padding-left: var(--space-sm);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--trans-mid);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-btn);
  color: var(--color-jungle-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
  filter: brightness(1.1);
  color: var(--color-jungle-deep);
}

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

.btn-secondary:hover {
  background: var(--color-glass-light);
  border-color: var(--color-banana-yellow);
  transform: translateY(-2px);
  color: var(--color-banana-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-banana-yellow);
}

.btn-outline:hover {
  background: var(--color-banana-yellow);
  color: var(--color-jungle-deep);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-badge {
  display: inline-block;
  background: var(--color-glass-light);
  border: 1px solid var(--color-border);
  color: var(--color-banana-yellow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── HERO SECTION ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--total-header);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.jungle-layer {
  position: absolute;
  inset: 0;
}

.layer-back {
  background: radial-gradient(ellipse at 20% 80%, rgba(31,122,77,0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(11,61,46,0.5) 0%, transparent 60%),
              linear-gradient(180deg, var(--color-jungle-deep) 0%, #0D2E1F 60%, #1F4A30 100%);
}

.layer-mid {
  background: radial-gradient(ellipse at 60% 70%, rgba(244,211,94,0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 10% 30%, rgba(31,122,77,0.2) 0%, transparent 40%);
  animation: layerDrift 12s ease-in-out infinite alternate;
}

.layer-front {
  background: linear-gradient(0deg, rgba(8,28,21,0.6) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(244,211,94,0.15);
  border: 1px solid rgba(244,211,94,0.4);
  color: var(--color-banana-yellow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-yellow {
  color: var(--color-banana-yellow);
  text-shadow: 0 0 40px rgba(244,211,94,0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-banana-yellow);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Slot Preview (Hero Visual) */
.slot-preview-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-preview-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(244,211,94,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.slot-preview-frame {
  position: relative;
  background: var(--color-glass);
  border: 2px solid var(--color-border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  width: 100%;
  max-width: 420px;
  animation: floatFrame 5s ease-in-out infinite;
}

.slot-preview-screen {
  background: rgba(8, 28, 21, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.reel-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.reel-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.reel-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(31,122,77,0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  transition: var(--trans-fast);
}

.reel-center .reel-symbol {
  border-color: var(--color-border-glow);
  background: rgba(244,211,94,0.1);
}

.spin-active {
  animation: reelSpin 1.5s ease-in-out infinite;
}

.win-line {
  text-align: center;
  padding: var(--space-xs) 0;
}

.win-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: winPulse 1s ease-in-out infinite;
}

.floating-banana {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  animation: floatBanana 4s ease-in-out infinite;
}

.banana-1 { top: -20px; right: -20px; animation-delay: 0s; }
.banana-2 { bottom: 20px; left: -30px; animation-delay: 1.5s; }
.banana-3 { top: 40%; right: -40px; animation-delay: 0.8s; }

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ─── GAME SECTION ─── */
.game-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.game-container {
  position: relative;
}

.game-glow-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.game-glow-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--grad-primary);
  border-radius: calc(var(--radius-xl) + 3px);
  opacity: 0.6;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

.game-frame-border {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  border: 1px solid var(--color-border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-iframe-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-jungle-deep);
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
}

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

.game-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.game-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  backdrop-filter: blur(8px);
  transition: var(--trans-mid);
}

.game-meta-item:hover {
  border-color: var(--color-banana-yellow);
  transform: translateY(-2px);
}

.meta-icon {
  font-size: 1.2rem;
}

.meta-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ─── FEATURES SECTION ─── */
.features-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: var(--trans-mid);
  animation-delay: var(--delay);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-mid);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
  animation: iconFloat 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card-leaf-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(31,122,77,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

/* ─── HOW TO PLAY ─── */
.howtoplay-section {
  padding: var(--space-4xl) 0;
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.step-card {
  flex: 1;
  text-align: center;
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(12px);
  transition: var(--trans-mid);
}

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

.step-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 60px;
}

.connector-vine {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-jungle-mid), var(--color-banana-yellow));
  position: relative;
  border-radius: var(--radius-full);
}

.connector-vine::after {
  content: '▶';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-banana-yellow);
  font-size: 0.7rem;
}

/* ─── DISCLAIMER BANNER ─── */
.disclaimer-banner {
  padding: var(--space-xl) 0;
}

.disclaimer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: rgba(122, 78, 45, 0.2);
  border: 1px solid rgba(122, 78, 45, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  backdrop-filter: blur(12px);
}

.disclaimer-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.disclaimer-text {
  flex: 1;
}

.disclaimer-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-banana-warm);
  margin-bottom: 4px;
}

.disclaimer-text p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ─── PAGE HERO VARIANTS ─── */
.page-hero {
  padding: calc(var(--total-header) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero--canopy {
  background: radial-gradient(ellipse at 50% 0%, rgba(31,122,77,0.4) 0%, transparent 60%),
              linear-gradient(180deg, #0B3D2E 0%, #081C15 100%);
}

.page-hero--night {
  background: radial-gradient(ellipse at 30% 50%, rgba(11,61,46,0.6) 0%, transparent 60%),
              linear-gradient(180deg, #050F0A 0%, #0B3D2E 50%, #081C15 100%);
}

.page-hero--deep {
  background: radial-gradient(ellipse at 70% 30%, rgba(31,122,77,0.3) 0%, transparent 60%),
              linear-gradient(135deg, #081C15, #0D2E1F);
}

.page-hero--river {
  background: radial-gradient(ellipse at 50% 100%, rgba(62,201,113,0.2) 0%, transparent 60%),
              linear-gradient(180deg, #0B3D2E 0%, #1F4A30 50%, #081C15 100%);
}

.page-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ─── ABOUT PAGE ─── */
.about-story-section {
  padding: var(--space-4xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.about-text p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.about-text .section-badge {
  margin-bottom: var(--space-md);
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-stat-card {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--trans-mid);
}

.about-stat-card:hover {
  border-color: var(--color-border-glow);
  transform: translateX(8px);
}

.stat-big {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
  text-align: center;
}

.values-section {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.value-card {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: var(--trans-mid);
}

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

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── CONTACT PAGE ─── */
.contact-section {
  padding: var(--space-4xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-banana-yellow);
  margin-bottom: 2px;
}

.contact-item-text span {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--grad-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
}

.jungle-form h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(8, 28, 21, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--trans-fast);
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-banana-yellow);
  box-shadow: 0 0 0 3px rgba(244,211,94,0.15);
}

.form-group select option {
  background: var(--color-jungle-dark);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ─── LEGAL SECTION ─── */
.legal-section {
  padding: var(--space-4xl) 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-block {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.legal-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.legal-block h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-banana-yellow);
  margin-bottom: var(--space-sm);
}

.legal-block p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-block p + p {
  margin-top: var(--space-sm);
}

.legal-nav-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: var(--space-xl);
}

.responsible-intro-card {
  display: flex;
  gap: var(--space-md);
  background: rgba(31,122,77,0.2);
  border: 1px solid rgba(31,122,77,0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ri-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.responsible-intro-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.jungle-footer {
  background: var(--grad-footer);
  border-top: 1px solid var(--color-border);
  position: relative;
  margin-top: var(--space-2xl);
}

.footer-canopy {
  height: 4px;
  background: var(--grad-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-brand-name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--trans-fast);
  color: inherit;
}

.social-link:hover {
  border-color: var(--color-banana-yellow);
  transform: translateY(-2px);
  background: var(--color-glass-light);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-banana-yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: var(--trans-fast);
}

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

.footer-address {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--color-banana-warm);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
/* ENDFILE */

<!-- FILE: js/main.js -->
/**
 * CRAZY MONKEY SOCIAL CASINO — MAIN.JS
 * Jungle Interaction System
 */

(function () {
  'use strict';

  /* ─── MOBILE MENU ─── */
  const mobileToggle = document.getElementById('mobileToggle');
  const mobileOverlay = document.getElementById('mobileOverlay');
  const mobileClose = document.getElementById('mobileClose');

  function openMenu() {
    if (mobileOverlay) {
      mobileOverlay.classList.add('open');
      document.body.style.overflow = 'hidden';
    }
  }

  function closeMenu() {
    if (mobileOverlay) {
      mobileOverlay.classList.remove('open');
      document.body.style.overflow = '';
    }
  }

  if (mobileToggle) mobileToggle.addEventListener('click', openMenu);
  if (mobileClose) mobileClose.addEventListener('click', closeMenu);

  // Close on mobile link click
  document.querySelectorAll('.mobile-link').forEach(function (link) {
    link.addEventListener('click', closeMenu);
  });

  // Close on overlay background click
  if (mobileOverlay) {
    mobileOverlay.addEventListener('click', function (e) {
      if (e.target === mobileOverlay) closeMenu();
    });
  }

  /* ─── STICKY HEADER SCROLL ─── */
  const header = document.getElementById('mainHeader');
  let lastScroll = 0;

  function handleScroll() {
    const currentScroll = window.scrollY;
    if (header) {
      if (currentScroll > 60) {
        header.classList.add('scrolled');
      } else {
        header.classList.remove('scrolled');
      }
    }
    lastScroll = currentScroll;
  }

  window.addEventListener('scroll', handleScroll, { passive: true });

  /* ─── SCROLL-TRIGGERED ANIMATIONS ─── */
  function initScrollAnimations() {
    const elements = document.querySelectorAll('.fade-in-up, .fade-in-right');

    if (!elements.length) return;

    const observer = new IntersectionObserver(
      function (entries) {
        entries.forEach(function (entry) {
          if (entry.isIntersecting) {
            entry.target.classList.add('visible');
            observer.unobserve(entry.target);
          }
        });
      },
      {
        threshold: 0.15,
        rootMargin: '0px 0px -50px 0px'
      }
    );

    elements.forEach(function (el) {
      observer.observe(el);
    });
  }

  /* ─── JUNGLE PARTICLES ─── */
  function initParticles() {
    const container = document.getElementById('jungleParticles');
    if (!container) return;

    const symbols = ['🍃', '🌿', '✨', '🍂', '🌱', '💫', '🍀'];
    const count = window.innerWidth < 768 ? 8 : 16;

    for (let i = 0; i < count; i++) {
      const particle = document.createElement('div');
      particle.classList.add('particle');
      particle.textContent = symbols[Math.floor(Math.random() * symbols.length)];

      const left = Math.random() * 100;
      const delay = Math.random() * 15;
      const duration = 12 + Math.random() * 18;
      const size = 0.6 + Math.random() * 0.8;

      particle.style.left = left + '%';
      particle.style.animationDelay = delay + 's';
      particle.style.animationDuration = duration + 's';
      particle.style.fontSize = size + 'rem';
      particle.style.opacity = (0.1 + Math.random() * 0.4).toString();

      container.appendChild(particle);
    }
  }

  /* ─── SMOOTH ANCHOR SCROLL ─── */
  function initSmoothScroll() {
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
      anchor.addEventListener('click', function (e) {
        const target = document.querySelector(this.getAttribute('href'));
        if (target) {
          e.preventDefault();
          const headerOffset = 120;
          const elementPosition = target.getBoundingClientRect().top;
          const offsetPosition = elementPosition + window.pageYOffset - headerOffset;

          window.scrollTo({
            top: offsetPosition,
            behavior: 'smooth'
          });

          closeMenu();
        }
      });
    });
  }

  /* ─── CONTACT FORM ─── */
  function initContactForm() {
    const form = document.getElementById('contactForm');
    if (!form) return;

    form.addEventListener('submit', function (e) {
      e.preventDefault();

      const btn = form.querySelector('[type="submit"]');
      const originalText = btn.innerHTML;

      btn.innerHTML = '🌴 Sending...';
      btn.disabled = true;

      // Simulate form submission
      setTimeout(function () {
        btn.innerHTML = '✅ Message Sent!';
        btn.style.background = 'linear-gradient(135deg, #1F7A4D, #3EC971)';

        setTimeout(function () {
          btn.innerHTML = originalText;
          btn.disabled = false;
          btn.style.background = '';
          form.reset();
        }, 3000);
      }, 1500);
    });
  }

  /* ─── REEL ANIMATION CYCLE ─── */
  function initReelAnimation() {
    const reelSymbols = ['🐒', '🍌', '⭐', '🌴', '🎯', '💎', '7️⃣'];
    const spinElements = document.querySelectorAll('.spin-active');

    if (!spinElements.length) return;

    setInterval(function () {
      spinElements.forEach(function (el) {
        el.style.transform = 'scale(1.1)';
        setTimeout(function () {
          el.textContent = reelSymbols[Math.floor(Math.random() * reelSymbols.length)];
          el.style.transform = 'scale(1)';
        }, 200);
      });
    }, 2000);
  }

  /* ─── ACTIVE NAV LINK ─── */
  function setActiveNavLink() {
    const currentPath = window.location.pathname;
    document.querySelectorAll('.nav-link').forEach(function (link) {
      const href = link.getAttribute('href');
      if (href && !href.startsWith('#')) {
        const linkPath = href.split('#')[0];
        if (
          currentPath.endsWith(linkPath) ||
          (linkPath === 'index.html' && (currentPath === '/' || currentPath.endsWith('/')))
        ) {
          link.classList.add('active');
        } else {
          link.classList.remove('active');
        }
      }
    });
  }

  /* ─── LAZY LOAD IFRAMES ─── */
  function initLazyIframes() {
    const iframes = document.querySelectorAll('iframe[loading="lazy"]');
    if ('IntersectionObserver' in window) {
      const iframeObserver = new IntersectionObserver(function (entries) {
        entries.forEach(function (entry) {
          if (entry.isIntersecting) {
            const iframe = entry.target;
            if (iframe.dataset.src) {
              iframe.src = iframe.dataset.src;
            }
            iframeObserver.unobserve(iframe);
          }
        });
      }, { rootMargin: '200px' });

      iframes.forEach(function (iframe) {
        iframeObserver.observe(iframe);
      });
    }
  }

  /* ─── INIT ALL ─── */
  function init() {
    initScrollAnimations();
    initParticles();
    initSmoothScroll();
    initContactForm();
    initReelAnimation();
    setActiveNavLink();
    initLazyIframes();
  }

  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', init);
  } else {
    init();
  }

})();