/* Modern Gaming Theme */
:root {
  --primary-color: #6c2bd9;
  --secondary-color: #2bd9d9;
  --secondary-color-rgb: 43, 217, 217;
  --background-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #ff6b6b;
  --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

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

.logo {
  height: 40px;
  z-index: 2;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  transition: transform 0.3s;
}

.menu-icon::before {
  transform: translateY(-8px);
}

.menu-icon::after {
  transform: translateY(8px);
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  font-weight: 600;
  background: rgba(var(--secondary-color-rgb), 0.1);
}

.nav-section {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-section:not(:first-child) {
  position: relative;
}

.nav-section:not(:first-child)::before {
  content: '•';
  color: var(--secondary-color);
  opacity: 0.5;
  margin-right: 0.25rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6rem 2rem 2rem;
  background-image: var(--hero-image, none);
  /* Fallback gradient when no image is available */
  background-color: linear-gradient(135deg, rgba(108,43,217,0.85), rgba(43,217,217,0.08));
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35), rgba(10,10,10,0.1));
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(0);
  opacity: 1;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 6px 20px rgba(108,43,217,0.18);
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Decorative SVG waves */
.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
}

/* Entrance animation */
.hero-content {
  animation: hero-entrance 900ms cubic-bezier(.2,.9,.3,1);
}

@keyframes hero-entrance {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Page-specific hero backgrounds */
.hero--home {
  --hero-image: url('../img/hero.jpg');
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, transparent, rgba(108, 43, 217, 0.1));
}

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

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Game Section */
.game-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-container {
  width: min(100%, 900px);
  max-width: 900px; /* cap the player width */
  margin: 0 auto;
  position: relative;
  /* Preferred modern API */
  aspect-ratio: 16 / 9;
  /* Fallback for older browsers: padding-top = 9/16 = 56.25% */
  height: 0;
  padding-top: 56.25%;
  box-sizing: content-box; /* ensure padding-top calculates as expected */
  /* cap height as a hard fallback in case something stretches it */
  max-height: calc(900px * 9 / 16);
}

/* Inner wrapper holds border-radius and visual chrome; allowing iframe content to paint beyond if necessary */
.game-inner {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  overflow: visible; /* allow canvas to position itself without being clipped */
  background: var(--card-bg);
}

.game-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Disclaimer specifically for the game area */
.game-disclaimer {
  width: min(100%, 900px);
  max-width: 900px;
  margin: 1.25rem auto 0; /* sit close above the game */
  text-align: center;
}
.game-disclaimer .disclaimer-card {
  margin: 0; /* reuse disclaimer-card visuals, tighten spacing */
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  opacity: 0.95;
  text-align: center;
}

/* Reviews Section */
.reviews {
  padding: 4rem 2rem;
  background: linear-gradient(to top, transparent, rgba(43, 217, 217, 0.1));
}

.section-title {
  text-align: center;
  color: var(--secondary-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.review-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.95);
  padding: 4rem 2rem 2rem;
}

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

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s ease;
}

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

.disclaimer-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  text-align: center;
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Make sure footer always sits after content and copyright is readable */
.footer {
  display: block; /* default block, but ensure layout stability */
}

.footer .copyright {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* Small screens: reduce footer padding so it doesn't feel heavy */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 1rem 1rem;
  }
  .footer .footer-content {
    gap: 1.25rem;
  }
}

/* Disclaimer Popup */
.disclaimer-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--background-color);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1001;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.accept-btn {
  background: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.accept-btn:hover {
  background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-container {
    padding: 0.5rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    max-width: 300px;
    background: var(--background-color);
    flex-direction: column;
    padding: 5rem 1rem 2rem;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
  }

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

  .nav-link {
    font-size: 1.1rem;
    padding: 1rem;
    text-align: left;
    border-radius: 8px;
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-section {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-section:not(:first-child) {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-section:not(:first-child)::before {
    display: none;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-link.active {
    background: rgba(var(--secondary-color-rgb), 0.15);
  }

  .nav-section:not(:first-child) .nav-link {
    padding-left: 1.5rem;
    position: relative;
  }

  .nav-section:not(:first-child) .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--secondary-color);
    transform: translateY(-50%);
    opacity: 0.5;
  }

  /* Hamburger animation */
  .menu-toggle.active .menu-icon {
    background-color: transparent;
  }

  .menu-toggle.active .menu-icon::before {
    transform: rotate(45deg) translate(0);
  }

  .menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg) translate(0);
  }
}

/* Content Pages */
.content-section {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: calc(80px + 4rem) 2rem 0;  /* Increased top padding */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tighten spacing specifically for the About section on the homepage */
.about .content-section {
  /* reduce the large top padding reserved for content pages */
  padding-top: calc(80px + 1.5rem);
  /* allow the section to size to its content so features sit closer */
  min-height: auto;
}

/* Pull the features section up slightly to reduce gap visually */
.features {
  margin-top: -1.5rem;
  padding-top: 3rem; /* keep content padding comfortable */
}

.content-section h1 {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* About image styling */
.about-image {
  width: 100%;
  max-width: 320px; /* much smaller size limit */
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}