@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Base Colors */
  --bg-primary: #0c0f0a;
  --bg-secondary: #151a12;
  
  /* Accent Colors */
  --emerald: #22c55e;
  --gold: #eab308;
  --violet: #a855f7;
  --amber: #f59e0b;
  --soft-white: #f5f5f5;
  
  /* Gradients */
  --grad-nature: linear-gradient(135deg, #22c55e, #eab308);
  --grad-arcane: linear-gradient(135deg, #a855f7, #22c55e);
  --grad-royal: linear-gradient(135deg, #eab308, #f59e0b);
  
  /* Glows */
  --glow-green: rgba(34, 197, 94, 0.45);
  --glow-gold: rgba(234, 179, 8, 0.35);
  --glow-violet: rgba(168, 85, 247, 0.35);
  
  /* Glass Surface */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(234, 179, 8, 0.3);
  
  /* Typography */
  --font-primary: 'Cinzel', serif;
  --font-secondary: 'Lora', serif;
  --text-primary: #f8fafc;
  --text-secondary: #d4d4d8;
  --text-muted: #71717a;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 10px var(--glow-gold);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass & UI Components */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 16px;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grad-nature);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px var(--glow-green);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--grad-royal);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px var(--glow-gold);
  color: var(--bg-primary);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.3s ease;
}

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

.header-glass {
  background: rgba(12, 15, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald);
  text-shadow: 0 0 8px var(--glow-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--soft-white);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--gold);
}

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

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

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

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/images/enchanted-elven-forest-glowing-trees-4k.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: bg-zoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(12, 15, 10, 0.9) 0%, rgba(12, 15, 10, 0.4) 60%, transparent 100%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  animation: fade-in-up 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--grad-nature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

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

.legal-warning {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 15px;
}

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

.game-section::before {
  content: '';
  position: absolute;
  top: -50px; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary));
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.game-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px;
  background: var(--glass-bg);
  border: 2px solid;
  border-image: var(--grad-arcane) 1;
  border-radius: 20px;
  box-shadow: 0 0 40px var(--glow-violet);
  transition: box-shadow 0.4s ease;
}

.game-wrapper:hover {
  box-shadow: 0 0 60px var(--glow-violet), inset 0 0 20px var(--glow-green);
}

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

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

/* Features Section */
.features-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(34,197,94,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px var(--glow-green);
}

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

.feature-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-nature);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 0 15px var(--glow-gold);
}

.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--emerald);
}

/* Internal Pages Structure */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(12, 15, 10, 0.85);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.content-section {
  padding: 80px 0;
}

.text-block {
  max-width: 800px;
  margin: 0 auto;
}

.text-block p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.text-block h3 {
  margin: 30px 0 15px;
  color: var(--emerald);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: var(--font-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 10px var(--glow-green);
}

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

/* Footer */
footer {
  background: #050704;
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

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

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.disclaimer-box {
  margin-top: 20px;
  padding: 15px;
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 8px;
  display: inline-block;
}

.disclaimer-box strong {
  color: var(--gold);
}

/* Animations */
@keyframes bg-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px var(--glow-green); }
  50% { box-shadow: 0 0 25px var(--glow-gold); }
  100% { box-shadow: 0 0 10px var(--glow-green); }
}

/* Magical Particles System */
.particles-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, #fff, var(--gold), transparent);
  border-radius: 50%;
  opacity: 0;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-20vh) translateX(50px) scale(1.5);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 15, 10, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 16px;
  }
}