/* CSS Reset & Variables */
:root {
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.5);
  --secondary: #0891b2;
  --accent: #67e8f9;
  --accent-glow: rgba(103, 232, 249, 0.3);
  --bg-from: #042f2e;
  --bg-via: #134e4a;
  --bg-to: #021716;
  --card-bg: rgba(19, 78, 74, 0.6);
  --card-border: rgba(6, 182, 212, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --transition: 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-weight: 400;
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-via) 50%, var(--bg-to) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 47, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 1001;
}

/* Age Badge */
.age-badge {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  display: inline-block;
}

.age-badge-large {
  padding: 1rem 2rem;
  font-size: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(19, 78, 74, 0.2) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--accent-glow) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
}

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

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

.hero-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px var(--primary-glow);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.disclaimer-small {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

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

.btn-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px var(--primary-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.btn-secondary:hover {
  transform: scale(1.08);
  background: var(--primary);
  color: white;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-header h2 {
  text-shadow: 0 0 30px var(--primary-glow);
}

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

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.game-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

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

.game-card:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

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

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.game-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
}

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

.game-category {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.game-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.play-demo-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.play-demo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px 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: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-content {
  background: var(--bg-from);
  border: 2px solid var(--primary);
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--primary-glow);
}

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

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

.close-btn {
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid #dc2626;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  line-height: 1;
}

.close-btn:hover {
  background: #dc2626;
  transform: scale(1.08);
}

#game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  background: #000;
}

.demo-unavailable {
  display: none;
  align-items: center;
  justify-content: center;
  height: 600px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

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

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

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px var(--primary-glow);
  animation: float 3s ease-in-out infinite;
}

.step:nth-child(2) .step-number { animation-delay: 0.5s; }
.step:nth-child(3) .step-number { animation-delay: 1s; }

.step h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

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

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

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: '+';
  font-size: 2rem;
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Responsible Gaming Section */
.responsible-gaming {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}

.responsible-gaming h2 {
  color: #ef4444;
  margin-bottom: 1.5rem;
}

.responsible-gaming p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: rgba(4, 47, 46, 0.95);
  border-top: 2px solid var(--card-border);
  padding: 4rem 0 2rem;
  margin-top: 100px;
}

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

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-disclaimer {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-disclaimer p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

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

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

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

.age-modal-content {
  background: linear-gradient(135deg, var(--bg-from), var(--bg-via));
  border: 3px solid var(--primary);
  border-radius: 24px;
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 25px 70px var(--primary-glow);
  animation: fadeInUp 0.5s ease;
}

.age-modal-content .age-badge-large {
  margin-bottom: 2rem;
}

.age-modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.age-modal-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.age-modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-accept:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.btn-exit {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-exit:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
}

/* Category Filters */
.category-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-primary);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Montserrat', sans-serif;
}

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

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

.legal-page h1 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.legal-page h2 {
  color: var(--primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.legal-page h3 {
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-page p, .legal-page ul {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-page ul {
  padding-left: 2rem;
}

.legal-page ul li {
  margin-bottom: 0.75rem;
}

.legal-notice {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(4, 47, 46, 0.98);
    flex-direction: column;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-right: 2px solid var(--primary);
  }

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

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

  .hero-badge {
    top: 20px;
    right: 20px;
  }

  .hero {
    min-height: 80vh;
    padding: 80px 20px;
  }

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

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

  #game-iframe {
    height: 400px;
  }

  section {
    padding: 60px 20px;
  }

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

  .age-modal-content {
    padding: 2rem;
  }

  .age-modal-buttons {
    flex-direction: column;
  }

  .btn {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }
}

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