@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=IBM+Plex+Sans:wght@400;600&family=IBM+Plex+Mono&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: #0d0221;
  --bg-medium: #1e0a3a;
  --bg-darker: #080114;
  --card-bg: rgba(30, 10, 58, 0.7);
  --card-border: rgba(139, 92, 246, 0.25);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --radius: 8px;
}

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

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--bg-darker) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.4s ease-out;
  font-weight: 600;
}

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

.age-badge {
  background: #dc2626;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* 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: 10000;
  align-items: center;
  justify-content: center;
}

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

.age-modal-content {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 40px var(--primary-glow);
}

.age-modal-icon {
  width: 80px;
  height: 80px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.age-modal h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.age-modal p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 16px;
}

.age-modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 14px 32px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.4s ease-out;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: var(--primary);
  transform: scale(1.03);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary {
  background: var(--primary);
}

.btn-danger {
  border-color: #dc2626;
  color: #dc2626;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('images/ban.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 2, 33, 0.92), rgba(30, 10, 58, 0.88));
}

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

.hero-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  background: #dc2626;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  text-shadow: 0 0 30px var(--primary-glow);
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

.hero-disclaimer {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
}

/* Section Styles */
.section {
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 42px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease-out;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  transition: left 0.6s ease-out;
}

.game-card:hover::before {
  left: 100%;
}

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

.game-image-container {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-medium), var(--bg-darker));
  position: relative;
  overflow: hidden;
}

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

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  padding: 20px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
}

.game-category {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-title {
  padding: 16px;
  font-size: 20px;
}

.play-demo-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.4s ease-out;
}

.play-demo-btn:hover {
  background: var(--primary);
  box-shadow: 0 0 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: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-content {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

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

.modal-header h2 {
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.4s ease-out;
}

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

#game-iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

.demo-unavailable {
  display: none;
  width: 100%;
  height: 70vh;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease-out;
}

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

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

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
}

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

.step-card {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: all 0.4s ease-out;
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

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

.step-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
}

/* Responsible Gaming */
.responsible-gaming {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  margin: 60px 0;
}

.responsible-icon {
  width: 100px;
  height: 100px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 50px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

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

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.responsible-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.faq-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 12px 24px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.4s ease-out;
}

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

/* Footer */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

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

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

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.4s ease-out;
}

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

.footer-badge {
  width: 120px;
  height: 120px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
}

.footer-disclaimer {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-disclaimer p {
  color: var(--text-muted);
  line-height: 1.8;
}

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

/* Page Content */
.page-content {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-content h1 {
  font-size: 48px;
  margin-bottom: 30px;
}

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

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

.page-content ul {
  color: var(--text-muted);
  margin: 20px 0 20px 30px;
  line-height: 1.8;
}

.age-notice {
  background: var(--card-bg);
  border: 2px solid #dc2626;
  border-radius: var(--radius);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.age-notice h2 {
  color: #dc2626;
  margin: 0 0 16px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--card-border);
  }

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

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-badge {
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 18px;
  }

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

  .section-header h2 {
    font-size: 32px;
  }

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

  .age-modal-content {
    padding: 30px 20px;
  }

  .responsible-gaming {
    padding: 30px 20px;
  }

  #game-iframe {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .page-content h1 {
    font-size: 32px;
  }
}