@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans:wght@400;600&family=Source+Code+Pro&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --secondary: #7c3aed;
  --accent: #c4b5fd;
  --accent-glow: rgba(196, 181, 253, 0.3);
  --bg-dark-1: #0d0221;
  --bg-dark-2: #1e0a3a;
  --bg-dark-3: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 50%, var(--bg-dark-3) 100%);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 2, 33, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.logo-text { font-family: var(--font-heading); font-size: 20px; color: #fff; }

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-weight: 600;
}

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

.age-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: pulse 8s infinite;
  opacity: 0.3;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-content { position: relative; z-index: 1; }

.hero .age-badge { position: absolute; top: 20px; right: 20px; font-size: 18px; }

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.btn {
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover { transform: scale(1.01); box-shadow: 0 6px 30px var(--primary-glow); }

.btn-secondary {
  background: var(--card-bg);
  color: #fff;
  border: 2px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover { transform: scale(1.01); border-color: var(--primary); }

.hero-disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
}

/* Section Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.section-header h2 {
  font-size: 3rem;
  color: #fff;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.game-card:hover {
  transform: scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.game-category {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.game-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}

.play-demo-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 16px;
}

.play-demo-btn:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-modal.active { display: flex; }

.modal-content {
  background: var(--bg-dark-2);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  width: 100%;
  max-width: 1400px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--card-border);
  gap: 20px;
}

.modal-header h2 {
  font-size: 1.5rem;
  flex: 1;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease-in-out;
}

.close-btn:hover { color: var(--primary); }

#game-iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #000;
  min-height: 500px;
}

.demo-unavailable {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  min-height: 500px;
}

/* Age Verification Modal */
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-modal.active { display: flex; }

.age-modal-content {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  max-width: 500px;
  backdrop-filter: blur(20px);
}

.age-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.age-modal-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.age-modal-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.age-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease-in-out;
}

.feature-card:hover {
  transform: scale(1.01);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

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

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
}

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

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsible Gaming */
.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
}

.responsible-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 60px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.responsible-gaming h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.responsible-gaming p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.8;
}

.responsible-gaming .btn {
  margin-top: 10px;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.faq-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.faq-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

/* Footer */
footer {
  background: rgba(8, 1, 20, 0.8);
  border-top: 1px solid var(--card-border);
  padding: 60px 0 30px;
  margin-top: 100px;
}

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

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  color: rgba(255, 255, 255, 0.6);
}

.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-badge .age-badge {
  font-size: 20px;
  padding: 10px 20px;
}

/* Games Page */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.age-reminder {
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid #dc2626;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.category-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 30px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* Legal Pages */
.legal-page {
  padding: 80px 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 60px;
  backdrop-filter: blur(10px);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--accent);
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 40px;
    transition: left 0.3s ease-in-out;
    backdrop-filter: blur(20px);
  }

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

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .age-modal-content, .responsible-gaming, .legal-content {
    padding: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-header h2 {
    font-size: 1.1rem;
  }
}