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

:root {
  /* Colors */
  --midnight-desert: #0f0a1a;
  --deep-night: #1a1033;
  --royal-gold: #fbbf24;
  --desert-amber: #f59e0b;
  --mystic-purple: #7c3aed;
  --ruby-red: #dc2626;
  --soft-sand: #fef3c7;
  --muted-text: #c084fc;
  
  /* Gradients */
  --grad-royal-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-night-magic: linear-gradient(135deg, #1a1033, #7c3aed);
  --grad-desert-flame: linear-gradient(135deg, #dc2626, #fbbf24);
  
  /* Glows */
  --glow-gold: rgba(251, 191, 36, 0.45);
  --glow-purple: rgba(124, 58, 237, 0.35);
  --glow-amber: rgba(245, 158, 11, 0.35);
  
  /* Surface */
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-dark: rgba(15, 10, 26, 0.7);
  --border-gold: rgba(251, 191, 36, 0.3);
  
  /* Layout */
  --container-max: 1280px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--midnight-desert);
  color: var(--soft-sand);
  font-family: 'Poppins', sans-serif;
  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%, var(--deep-night), var(--midnight-desert) 80%);
  z-index: -2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--royal-gold);
}

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

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

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

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

.gold-text {
  background: var(--grad-royal-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.title-ornament::before,
.title-ornament::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--grad-royal-gold);
  box-shadow: 0 0 10px var(--glow-gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-royal-gold);
  color: var(--midnight-desert);
  box-shadow: 0 4px 15px var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow-amber);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.6s ease;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-secondary {
  background: transparent;
  color: var(--royal-gold);
  border: 1px solid var(--royal-gold);
  box-shadow: 0 0 10px var(--glow-gold) inset;
}

.btn-secondary:hover {
  background: var(--bg-glass);
  box-shadow: 0 0 20px var(--glow-gold) inset, 0 0 15px var(--glow-gold);
  transform: translateY(-2px);
}

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  padding: 15px 0;
  transition: background 0.3s;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--royal-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px var(--glow-gold);
}

.logo span {
  font-size: 1.8rem;
}

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

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

@media (max-width: 992px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-glass-dark);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
  }
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 30s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15,10,26,0.3) 0%, rgba(15,10,26,0.8) 60%, var(--midnight-desert) 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  animation: fadeInUp 1s ease forwards;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--soft-sand);
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1.4s ease forwards;
  opacity: 0;
}

.hero-legal {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--muted-text);
  opacity: 0;
  animation: fadeInUp 1.6s ease forwards;
}

/* Floating Lanterns */
.lantern {
  position: absolute;
  width: 40px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M12 2L10 6H14L12 2ZM6 8V18C6 19.1 6.9 20 8 20H16C17.1 20 18 19.1 18 18V8H6ZM12 18C10.3 18 9 16.7 9 15C9 13.3 10.3 12 12 12C13.7 12 15 13.3 15 15C15 16.7 13.7 18 12 18Z"/></svg>') no-repeat center;
  filter: drop-shadow(0 0 15px var(--royal-gold));
  opacity: 0.8;
  z-index: 0;
}

.l-1 { top: 30%; left: 15%; animation: floatLantern 8s infinite ease-in-out; }
.l-2 { top: 50%; right: 20%; animation: floatLantern 10s infinite ease-in-out reverse; width: 30px; }
.l-3 { top: 70%; left: 25%; animation: floatLantern 12s infinite ease-in-out 1s; width: 50px; }
.l-4 { top: 40%; right: 10%; animation: floatLantern 9s infinite ease-in-out 2s; }

/* Game Section */
.game-section {
  position: relative;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" opacity="0.02"><pattern id="pattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M20 0L40 20L20 40L0 20Z" fill="%23fbbf24"/></pattern><rect width="100%" height="100%" fill="url(%23pattern)"/></svg>');
}

.game-chamber {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px var(--glow-purple), inset 0 0 20px var(--glow-gold);
  position: relative;
}

.game-chamber::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad-royal-gold);
  z-index: -1;
  border-radius: 26px;
  opacity: 0.3;
}

.game-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 30px rgba(0,0,0,1);
}

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

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--glow-purple);
  border-color: var(--royal-gold);
}

.feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(251,191,36,0.2);
  transition: transform 0.5s;
}

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

.feature-content {
  padding: 25px;
  position: relative;
  z-index: 1;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-content p {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about-section {
  position: relative;
  background: linear-gradient(to right, var(--deep-night), var(--midnight-desert));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 40px var(--glow-amber);
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 2px solid var(--royal-gold);
  border-radius: 24px;
  opacity: 0.5;
  pointer-events: none;
}

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

.about-text p {
  margin-bottom: 20px;
  color: var(--soft-sand);
  line-height: 1.8;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img-wrap {
    order: -1;
  }
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--muted-text);
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-details li span {
  font-size: 1.5rem;
}

.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-gold);
  border-radius: 12px;
  color: var(--soft-sand);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal-gold);
  box-shadow: 0 0 15px var(--glow-gold);
}

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

/* Footer */
footer {
  background: var(--deep-night);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-gold);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--muted-text);
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--royal-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

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

.footer-links ul li a:hover {
  color: var(--royal-gold);
  text-shadow: 0 0 8px var(--glow-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(251,191,36,0.1);
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* Standard Pages (Legal) */
.page-header {
  padding: 150px 0 50px;
  text-align: center;
  background: var(--grad-night-magic);
  border-bottom: 1px solid var(--border-gold);
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--soft-sand);
}

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

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes floatLantern {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-30px) rotate(5deg); opacity: 1; filter: drop-shadow(0 0 25px var(--royal-gold)); }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px var(--glow-purple); }
  50% { box-shadow: 0 0 30px var(--glow-gold); }
  100% { box-shadow: 0 0 10px var(--glow-purple); }
}

/* Sparkles (Optional via CSS) */
.sparkle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--royal-gold);
  animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(0.5); }
}