:root {
  /* Color System (Neon Dragon Theme) */
  --bg-primary: #05070f;
  --bg-secondary: #0f172a;
  --bg-surface: #131a2f;
  --neon-cyan: #00f5ff;
  --neon-magenta: #ff2bd6;
  --dragon-fire: #ff7a18;
  --highlight-glow: #00ffe1;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  
  /* Gradients */
  --btn-gradient: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  --surface-gradient: linear-gradient(180deg, rgba(19, 26, 47, 0.8) 0%, rgba(5, 7, 15, 0.9) 100%);
  
  /* Layout */
  --max-width: 1400px;
  --game-width-desktop: 1200px;
  --section-gap-desktop: 110px;
  --section-gap-tablet: 80px;
  --section-gap-mobile: 50px;
  
  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Orbitron', sans-serif; /* A sci-fi/gaming font look */
}

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

body {
  font-family: var(--font-main);
  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(0, 245, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 43, 214, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

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

/* Utility Classes */
.text-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 245, 255, 0.5); }
.text-magenta { color: var(--neon-magenta); text-shadow: 0 0 10px rgba(255, 43, 214, 0.5); }
.text-fire { color: var(--dragon-fire); text-shadow: 0 0 10px rgba(255, 122, 24, 0.5); }
.text-center { text-align: center; }

.section-padding {
  padding: var(--section-gap-mobile) 0;
}

@media (min-width: 768px) {
  .section-padding { padding: var(--section-gap-tablet) 0; }
}

@media (min-width: 1024px) {
  .section-padding { padding: var(--section-gap-desktop) 0; }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(19, 26, 47, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--btn-gradient);
  color: var(--text-primary);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--neon-magenta), var(--neon-cyan));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--neon-cyan), 0 0 15px var(--neon-magenta);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2) inset, 0 0 10px rgba(0, 245, 255, 0.2);
}
.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 245, 255, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(5, 7, 15, 0.95);
  border-bottom: 1px solid var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links {
  display: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

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

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

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 1.8rem;
  cursor: pointer;
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
  border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.mobile-nav a:hover {
  color: var(--neon-magenta);
  text-shadow: 0 0 15px var(--neon-magenta);
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: 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%;
  background: 
    linear-gradient(to bottom, rgba(5,7,15,0.3) 0%, rgba(5,7,15,1) 100%),
    url('images/photo-1534447677768-be436bb09401-hero-hero-bg.png') center/cover no-repeat;
  z-index: -2;
  filter: sepia(0.5) hue-rotate(180deg) saturate(2) brightness(0.6);
}

.hero-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(circle at center, var(--neon-cyan) 0%, transparent 2px);
  background-size: 100px 100px;
  opacity: 0.1;
  z-index: -1;
  animation: float 20s linear infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.4));
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Featured Game Section (Main Attraction) */
.featured-game {
  background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.game-portal {
  max-width: var(--game-width-desktop);
  margin: 0 auto;
  position: relative;
}

.game-portal::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-magenta), transparent);
  z-index: -1;
  border-radius: 20px;
  animation: borderRotate 4s linear infinite;
  opacity: 0.5;
}

.game-container {
  width: 100%;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.2), inset 0 0 20px rgba(0, 245, 255, 0.2);
  position: relative;
  aspect-ratio: 16 / 9;
}

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

.game-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--text-primary);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.control-btn:hover {
  background: rgba(0, 245, 255, 0.2);
  box-shadow: 0 0 10px var(--neon-cyan);
}

@media (max-width: 1024px) {
  .game-portal { width: 95%; }
}

@media (max-width: 768px) {
  .game-portal { width: 100%; }
  .game-container { border-radius: 0; border-left: none; border-right: none; }
  .game-portal::before { display: none; }
}

/* Popular Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  group: hover;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
  border-color: rgba(0, 245, 255, 0.5);
}

.game-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.game-card:hover .game-img-wrap img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 7, 15, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 15px;
  text-align: center;
}

.game-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--btn-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

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

.feature-card:hover {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  text-shadow: 0 0 20px var(--dragon-fire);
}

/* Player Experience Section */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  padding: 30px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--neon-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: bold;
}

.stars {
  color: #ffb700;
  text-shadow: 0 0 5px #ffb700;
  margin-bottom: 10px;
}

/* Info Pages (About, Privacy, etc.) */
.page-header {
  padding: 150px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(5,7,15,0.9), var(--bg-primary)), url('images/photo-1550745165-9bc0b252726f-page-header-page-header.png') center/cover;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

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

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  color: var(--neon-cyan);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

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

.content-block ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

/* Responsible Gaming Banner */
.rg-banner {
  background: rgba(255, 122, 24, 0.1);
  border: 1px solid rgba(255, 122, 24, 0.3);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-top: 50px;
}

.rg-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 245, 255, 0.2);
  padding: 60px 0 20px;
  margin-top: 50px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

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

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

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

.footer-links a:hover {
  color: var(--neon-magenta);
  text-shadow: 0 0 5px var(--neon-magenta);
  padding-left: 5px;
}

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

.age-gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Animations */
@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}