/* CSS Reset & Custom Properties */
:root {
  --primary-color: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.5);
  --secondary-color: #0891b2;
  --accent-color: #67e8f9;
  --accent-glow: rgba(103, 232, 249, 0.3);
  --bg-gradient-from: #042f2e;
  --bg-gradient-via: #134e4a;
  --bg-gradient-to: #021716;
  --card-bg: rgba(19, 78, 74, 0.6);
  --card-border: rgba(6, 182, 212, 0.25);
  --transition-speed: 0.3s;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --hover-scale: 1.02;
  --border-radius: 14px;
  --spacing: 70px;
}

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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+Pro:wght@300;400;600&family=Fira+Code&display=swap');

body {
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-from), var(--bg-gradient-via), var(--bg-gradient-to));
  color: #e0f2f1;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) var(--easing);
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a {
  color: #b2dfdb;
  font-weight: 400;
  transition: all var(--transition-speed) var(--easing);
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.age-badge {
  background: #dc2626;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.8rem;
  cursor: pointer;
}

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

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

.age-modal-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 500px;
  border: 2px solid var(--card-border);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.age-modal-icon {
  font-size: 4rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.age-modal h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.age-modal p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.age-modal button {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
  font-weight: 600;
}

.btn-confirm {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

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

.btn-exit:hover {
  background: #b91c1c;
  transform: scale(var(--hover-scale));
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(4, 47, 46, 0.8));
  overflow: hidden;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

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

.hero-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  background: #dc2626;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 0 30px var(--accent-glow);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #b2dfdb;
}

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

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 6px 20px var(--primary-glow);
}

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

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--bg-gradient-from);
  transform: scale(var(--hover-scale));
}

.disclaimer-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #80cbc4;
}

/* Section Styles */
.section {
  padding: var(--spacing) 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all var(--transition-speed) var(--easing);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

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

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

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

.game-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--accent-color);
  font-weight: 600;
  padding: 1rem;
  text-align: center;
}

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

.game-category {
  background: var(--secondary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

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

.play-demo-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

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

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

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

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

.modal-header h2 {
  color: var(--accent-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: all var(--transition-speed) var(--easing);
}

.close-btn:hover {
  color: #dc2626;
  transform: scale(1.2);
}

#game-iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.demo-unavailable {
  flex: 1;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent-color);
}

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

.feature-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) var(--easing);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
}

.feature-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

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

.step {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) var(--easing);
}

.step:hover {
  transform: scale(var(--hover-scale));
  border-color: var(--primary-color);
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  line-height: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.step h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* Responsible Gaming */
.responsible-gaming {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  margin: var(--spacing) auto;
  max-width: 1200px;
}

.responsible-gaming-icon {
  font-size: 4rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.responsible-gaming h2 {
  color: #dc2626;
  margin-bottom: 1rem;
}

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

.faq-item {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) var(--easing);
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform var(--transition-speed) var(--easing);
}

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

/* Footer */
footer {
  background: var(--bg-gradient-from);
  padding: 3rem 1.5rem;
  margin-top: var(--spacing);
  border-top: 2px solid var(--card-border);
}

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

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

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

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

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

.footer-badge {
  font-size: 3rem;
  background: #dc2626;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: inline-block;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
}

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

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

/* Games Page Specific */
.page-header {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--card-bg);
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow);
  margin-bottom: 1rem;
}

.age-reminder {
  background: rgba(220, 38, 38, 0.2);
  border: 2px solid rgba(220, 38, 38, 0.4);
  padding: 1rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 10px;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
  font-weight: 600;
}

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

/* Content Pages */
.content-page {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.content-page h1 {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--accent-glow);
}

.content-page h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-page ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(4, 47, 46, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left var(--transition-speed) var(--easing);
  }

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

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

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

  .hero-badge {
    font-size: 2rem;
    padding: 0.7rem 1rem;
    top: 1rem;
    right: 1rem;
  }

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

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

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

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

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

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

  .content-page {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem;
  }
}