@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #111827;
  --bg-overlay: rgba(255, 255, 255, 0.05);
  --accent-red: #ef4444;
  --accent-yellow: #facc15;
  --accent-green: #22c55e;
  --glow-soft: #4ade80;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-red), var(--accent-yellow), var(--accent-green));
  --grad-glass-glow: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.15);
  --blur: blur(16px);
  
  /* Layout */
  --max-width: 1440px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.05), transparent 25%);
  background-attachment: fixed;
}

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

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 5rem 0;
  position: relative;
}

/* Glass Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--grad-glass-glow);
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-gradient {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-gradient::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

.btn-gradient:hover::after {
  animation: shine 1s;
}

@keyframes shine {
  100% { left: 200%; }
}

/* Header & Nav */
.header {
  position: fixed;
  top: 20px;
  left: 0; right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background: url('images/hero-elf-forest-bg.jpg') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), var(--bg-primary));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.legal-notice {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1.5rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Game Section */
.game-section {
  padding: 2rem 0 6rem;
}

.game-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  padding: 10px;
  background: var(--glass-bg);
  box-shadow: 0 0 40px rgba(250, 204, 21, 0.1);
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* Content Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.img-glass-wrap {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--glass-bg);
  border: var(--glass-border);
}

.img-glass-wrap img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cinematic-banner {
  width: 100%;
  height: 400px;
  background: url('images/cinematic-magical-experience.jpg') center/cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4rem 0;
}

.cinematic-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
}

.cinematic-banner h2 {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* Grid Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: var(--glass-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Legal Footer & Info */
.site-footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
}

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

.footer-col h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

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

.footer-col ul a:hover {
  color: var(--accent-yellow);
}

.legal-disclaimer {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--accent-red);
  background: rgba(239, 68, 68, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.legal-disclaimer h4 {
  color: var(--accent-red);
  text-transform: uppercase;
}

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

.copyright {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Page Standard Layout */
.page-header {
  padding: 150px 0 50px;
  text-align: center;
  background: url('images/page-header-fantasy-bg.jpg') center/cover;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.8), var(--bg-primary));
}

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

.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.content-block h2 {
  margin-top: 2rem;
  color: var(--accent-yellow);
}

.content-block p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-block ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  transition: border 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-green);
}

/* Responsive */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section.reverse .img-glass-wrap {
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: var(--blur);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    font-size: 1.5rem;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .game-wrapper {
    aspect-ratio: 4/3;
  }
}