/* CSS Reset & Custom Properties */
:root {
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.4);
  --secondary: #6366f1;
  --accent: #f472b6;
  --accent-glow: rgba(244, 114, 182, 0.3);
  --bg-dark: #0f0a1a;
  --bg-mid: #312e81;
  --bg-light: #1e1b4b;
  --card-bg: rgba(30, 27, 75, 0.6);
  --card-border: rgba(168, 85, 247, 0.2);
  --text-light: #ffffff;
  --text-muted: #cbd5e1;
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: 0.4s ease-out;
}

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

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

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

/* Header Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.nav-menu li a {
  transition: var(--transition);
  font-weight: 500;
}

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

.age-badge {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('/images/ban.jpg') center/cover;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 10, 26, 0.85), rgba(49, 46, 129, 0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.hero p {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

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

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

.hero-disclaimer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Section Styles */
section {
  padding: 100px 20px;
  position: relative;
}

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

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

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

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

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

.game-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
}

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

.game-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.game-category {
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.game-title {
  font-size: 18px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.play-demo-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.play-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

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

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

.close-btn {
  background: var(--card-bg);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

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

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

/* 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: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.feature-card:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 0 40px 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);
  font-size: 15px;
}

/* Steps Grid */
.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: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 0 30px var(--primary-glow);
}

.step-icon {
  font-size: 48px;
  margin: 20px 0;
}

.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-lg);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  max-width: 900px;
  margin: 0 auto;
}

.responsible-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

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

.responsible-gaming p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

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

.responsible-links a {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.responsible-links a:hover {
  color: var(--accent);
}

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

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

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

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

/* Age Verification Modal */
.age-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

.age-icon {
  font-size: 100px;
  margin-bottom: 24px;
}

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

.age-modal-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.age-buttons .btn {
  min-width: 150px;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
}

.btn-danger:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

/* Footer */
footer {
  background: rgba(15, 10, 26, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 60px 20px 30px;
  margin-top: 100px;
}

.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-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 15px;
}

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

.footer-badge-large {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 20px 40px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 32px;
  display: inline-block;
  box-shadow: 0 0 50px rgba(220, 38, 38, 0.6);
  margin-bottom: 20px;
}

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

.footer-disclaimer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
}

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

/* Games Page */
.games-header {
  text-align: center;
  padding: 60px 20px 40px;
}

.age-reminder {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.2));
  border: 2px solid rgba(220, 38, 38, 0.5);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

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

.filter-btn {
  padding: 12px 28px;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
  transform: scale(1.03);
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.legal-page h1 {
  font-size: 42px;
  margin-bottom: 40px;
  text-align: center;
}

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

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

.legal-page ul, .legal-page ol {
  color: var(--text-muted);
  margin-left: 30px;
  margin-bottom: 20px;
  line-height: 1.9;
}

.legal-page li {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(15, 10, 26, 0.98);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    padding: 30px 0;
    border-top: 1px solid var(--card-border);
  }

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

  .hero {
    min-height: 80vh;
  }

  section {
    padding: 60px 20px;
  }

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

  .modal-content {
    max-height: 95vh;
  }

  #game-iframe, .demo-unavailable {
    height: 50vh;
  }

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