/* Modern Aurora Theme */
:root {
  --primary-color: #00BCD4;
  --primary-color-rgb: 0, 188, 212;
  --secondary-color: #1DE9B6;
  --secondary-color-rgb: 29, 233, 182;
  --accent-color: #FF4081;
  --accent-color-rgb: 255, 64, 129;
  --background-color: #FFFFFF;
  --card-bg: #F8F9FA;
  --text-color: #869fab;
  --heading-color: #263238;
  --border-color: #E0E0E0;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #37474F;
  --gradient: linear-gradient(135deg, #00BCD4, #1DE9B6);
}

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

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

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

/* Navbar */
.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: auto;
  min-height: 60px;
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--heading-color);
  z-index: 1002;
}

.logo {
  height: 40px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1002;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-toggle.active {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-section {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

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

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

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

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 8, 12, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    /* More top padding to avoid logo and give space for close button */
    padding: 10rem 2rem 3rem 2rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }

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

  .nav-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .nav-section a {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    width: 100%;
    display: block;
    background: transparent;
    border-radius: 8px;
    margin: 0;
    color: #fff;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-section a:hover,
  .nav-section a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    transform: translateX(5px);
  }

  .nav-section + .nav-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .logo {
    height: 35px;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  text-align: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: moveBackground 60s linear infinite;
  opacity: 0.1;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
}

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

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  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;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.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;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-image img {
    max-width: 100%;
    aspect-ratio: 4/3;
  }
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #F8F9FA 0%, #E3F2FD 100%);
  position: relative;
  overflow: hidden;
}

.features-section h2 {
  text-align: center;
  font-size: 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;
}

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

.feature-card {
  background: var(--background-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(65, 88, 208, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

/* Game Section */
.game-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(65, 88, 208, 0.05));
}

.game-section h2 {
  text-align: center;
  font-size: 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;
}

.game-container {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Reviews Section */
.reviews-section {
  padding: 6rem 0;
  background: linear-gradient(0deg, transparent, rgba(80, 201, 195, 0.05));
}

.reviews-section h2 {
  text-align: center;
  font-size: 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;
}

.review-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
}

.review-stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.reviewer {
  color: var(--secondary-color);
  margin-top: 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-logo {
  height: 40px;
  filter: brightness(1.2);
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.social-link:hover {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-group h4 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.footer-nav-group h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.footer-nav-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  width: fit-content;
}

.footer-nav-group a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer-nav-group a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.disclaimer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 4rem 1.5rem 2rem;
  }

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

  .footer-brand {
    align-items: center;
    text-align: center;
  }

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

  .footer-nav-group {
    align-items: center;
    text-align: center;
  }

  .footer-nav-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav-group a:hover {
    transform: translateY(-2px);
  }

  .social-links {
    justify-content: center;
  }
}

/* Disclaimer Popup */
.disclaimer-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 500px;
  width: 90%;
}

.disclaimer-popup h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.accept-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

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

/* Legal Navigation */
.legal-nav {
  background: var(--card-bg);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.legal-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: var(--gradient);
  color: white;
}

@media (max-width: 768px) {
  .legal-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .legal-nav a {
    width: 100%;
    text-align: center;
    display: block;
  }
}

/* Content Pages */
.content-section {
  max-width: 800px;
  margin: 100px auto 4rem;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.page-header p {
  color: var(--text-color);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

.content-section h2 {
  color: var(--text-color);
  margin: 2rem 0 1rem;
}

/* Contact Form */
.contact-form-container {
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(var(--primary-color-rgb), 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

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

.form-group input:hover,
.form-group textarea:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--primary-color-rgb), 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.1);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}

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

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

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

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(var(--primary-color-rgb), 0.2);
}

@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .submit-btn {
    width: 100%;
    padding: 1rem;
  }
}

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

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .footer-logo {
    margin-bottom: 2rem;
  }
  
  .game-container {
    aspect-ratio: 4/3;
  }
}

/* Disclaimer modal styles */
.disclaimer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.disclaimer-modal-backdrop.active {
  display: flex;
}

.disclaimer-modal {
  background: #fff;
  color: var(--heading-color);
  max-width: 720px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  padding: 1.5rem;
  transform: translateY(0);
}

.disclaimer-modal h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.disclaimer-modal p {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.disclaimer-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.disclaimer-btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.disclaimer-btn.secondary {
  background: transparent;
  color: var(--heading-color);
  border: 1px solid var(--border-color);
}

.disclaimer-btn.primary {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

@media (max-width: 480px) {
  .disclaimer-modal {
    padding: 1rem;
  }
  .disclaimer-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
}