:root {
  --bg-primary: #0e0d19;
  --bg-secondary: #1c1a2f;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --neon-purple: #bf7af0;
  --lavender-glow: #dab6ff;
  --magenta-bloom: #ff78a8;
  --cyan-glow: #6cf0f0;
  --text-primary: #fefefe;
  --text-secondary: #cfcfd1;
  --font-main: 'Nunito', 'Segoe UI', sans-serif;
  --container-max: 1400px;
  --spacing-desktop: 120px;
  --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-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(191, 122, 240, 0.15), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(255, 120, 168, 0.1), transparent 50%);
  z-index: -2;
  pointer-events: none;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Floating Particles (CSS Only) */
.particles-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--lavender-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--magenta-bloom);
  opacity: 0.4;
  animation: floatUp 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; width: 12px; height: 12px; animation-duration: 22s; animation-delay: -5s; }
.particle:nth-child(3) { left: 50%; animation-duration: 15s; animation-delay: -2s; }
.particle:nth-child(4) { left: 70%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: -8s; }
.particle:nth-child(5) { left: 90%; animation-duration: 20s; animation-delay: -1s; }

@keyframes floatUp {
  0% { transform: translateY(110vh) translateX(0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(50px) rotate(360deg); opacity: 0; }
}

/* Top Sidebar / Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(14, 13, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(191, 122, 240, 0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 20px rgba(191,122,240,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand span {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(191, 122, 240, 0.6);
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-link i {
  font-size: 1.1rem;
  color: var(--lavender-glow);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(191, 122, 240, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(191, 122, 240, 0.2);
}

.nav-link:hover i {
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-purple);
  transform: scale(1.1);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--neon-purple);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--neon-purple);
  animation: pulseLine 2s infinite;
}

@keyframes pulseLine {
  0% { box-shadow: 0 0 5px var(--neon-purple); }
  50% { box-shadow: 0 0 15px var(--magenta-bloom); }
  100% { box-shadow: 0 0 5px var(--neon-purple); }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

#nav-toggle {
  display: none;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(28, 26, 47, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid rgba(191, 122, 240, 0.2);
  }
  #nav-toggle:checked ~ .nav-menu {
    max-height: 400px;
  }
  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }
  .nav-link:hover {
    transform: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-purple), var(--magenta-bloom));
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(191, 122, 240, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(191, 122, 240, 0.6), 0 0 15px var(--magenta-bloom);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--neon-purple);
  box-shadow: inset 0 0 10px rgba(191, 122, 240, 0.1);
}

.btn-secondary:hover {
  background: rgba(191, 122, 240, 0.1);
  box-shadow: inset 0 0 15px rgba(191, 122, 240, 0.3), 0 4px 15px rgba(191, 122, 240, 0.4);
}

/* Sections & Typography */
section {
  padding: var(--spacing-desktop) 0;
}

@media (max-width: 768px) {
  section { padding: var(--spacing-mobile) 0; }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(191, 122, 240, 0.3);
}

.section-title span {
  color: var(--magenta-bloom);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('images/purple-fantasy-garden-hero.jpg') center/cover no-repeat;
  padding-top: 70px; /* Offset for navbar */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(14,13,25,0.7) 0%, rgba(14,13,25,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 800px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(191,122,240,0.1);
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--lavender-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 40px 20px; width: 90%; }
}

/* Game Section */
.game-section {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: var(--spacing-desktop);
}

/* Game frame 30% smaller than default -> Using max-width scaling */
.game-container {
  width: 70%; 
  max-width: 1000px; 
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 20px;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 30px rgba(191, 122, 240, 0.4), inset 0 0 20px rgba(0,0,0,0.8);
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease;
  animation: scaleIn 1s ease-out;
}

.game-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(191, 122, 240, 0.6), inset 0 0 20px rgba(0,0,0,0.8);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@media (max-width: 1024px) {
  .game-container { width: 90%; }
}
@media (max-width: 768px) {
  .game-container { width: 95%; border-radius: 12px; }
}

/* Feature Grid */
.features {
  background: var(--bg-secondary);
  position: relative;
}

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

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(191,122,240,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(191,122,240,0.2);
  border-color: rgba(191, 122, 240, 0.4);
}

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

.feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.05);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* Interior Pages Content Box */
.content-box {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 50px;
  margin-top: 100px; /* offset for nav */
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.content-box h2 {
  margin-bottom: 20px;
  color: var(--neon-purple);
}

.content-box p {
  margin-bottom: 20px;
}

.content-box ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.content-box li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .content-box { padding: 30px 20px; }
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 15px rgba(191, 122, 240, 0.2);
}

/* Footer */
.footer {
  background: #07060d;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(191, 122, 240, 0.1);
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--neon-purple);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

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

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

.legal-notice {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.age-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(191, 122, 240, 0.1);
  border: 2px solid var(--neon-purple);
  color: var(--text-primary);
  font-weight: bold;
  margin-bottom: 10px;
}

.copyright {
  font-size: 0.9rem;
  color: #666;
}