/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Custom Properties for consistent theming (Glassmorphic) */
:root {
  --bg-dark: #1a1a2e; /* Deep dark background */
  --glass-bg: rgba(
    255,
    255,
    255,
    0.08
  ); /* Transparent white for glass effect */
  --glass-border: rgba(255, 255, 255, 0.15); /* Subtle border for glass */
  --text-light: #e0e0e0; /* Light text for dark background */
  --text-muted: #b0b0b0; /* Muted text */
  --accent-color: #0f4c75; /* Blue accent */
  --accent-hover: #3282b8; /* Lighter blue for hover */
  --success-green: #4caf50; /* Green for success/ratings */
  --border-radius: 16px;
  --border-radius-lg: 24px;

  /* Glassmorphic Shadows */
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-inset-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);

  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(12px);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Anonymous Pro", monospace; /* Using the font from the original HTML */
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  position: relative; /* Needed for absolute positioning of blobs */
}

/* Animated Blurry Blobs */
.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* Ensure blobs are in the background */
}

.blob {
  position: absolute;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  border-radius: 50%;
  opacity: 0.3; /* Adjust opacity for blur effect */
  filter: blur(80px); /* Blurry effect */
  animation: blob-animation 20s infinite alternate;
}

.blob:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-duration: 25s;
}

.blob:nth-child(2) {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 70%;
  animation-duration: 20s;
}

.blob:nth-child(3) {
  width: 250px;
  height: 250px;
  top: 80%;
  left: 20%;
  animation-duration: 30s;
}

@keyframes blob-animation {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-50px, 50px) scale(0.9);
  }
  75% {
    transform: translate(30px, 40px) scale(1.2);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Typography */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-light);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Header */
header {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
}

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

header a {
  text-decoration: none;
  z-index: 1001;
  transition: all 0.3s ease;
}

header a:hover {
  transform: translateY(-1px);
}

header h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo img {
    height: 40px;
}

/* Desktop Navigation */
.nav-list {
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav-element a {
  color: var(--text-muted);
  font-weight: 400;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  display: block;
  backdrop-filter: var(--blur-sm);
}

.nav-element a:hover {
  background-color: var(--glass-bg);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--glass-shadow);
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-light);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:first-child {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: var(--blur-lg);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.active {
  pointer-events: auto;
}

.nav-overlay.active {
  opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  border-left: 1px solid var(--glass-border);
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  padding-top: 4rem;
  overflow-y: auto;
}

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

.mobile-nav .nav-list {
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.mobile-nav .nav-element {
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
}

.mobile-nav .nav-element:last-child {
  border-bottom: none;
}

.mobile-nav .nav-element a {
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  color: var(--text-muted);
  display: block;
  text-decoration: none;
  width: 100%;
  font-weight: 400;
}

.mobile-nav .nav-element a:hover {
  background-color: var(--glass-bg);
  border-left-color: var(--accent-color);
  transform: translateX(0.5rem);
  color: var(--text-light);
}

/* Mobile Navigation Close Button */
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  z-index: 1001;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover {
  background-color: var(--glass-bg);
}

.mobile-nav-close:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Main Content Container */
main {
  max-width: 1200px;
  margin: 0 auto;
}

/* About Us Section */
.about-us {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("images/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
  filter: var(--blur-sm) grayscale(100%); /* Grayscale for dark theme */
  z-index: 1;
}

.about-us > * {
  position: relative;
  z-index: 2;
}

.about-us h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.about-us p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Offers Section */
.offers {
  padding: 5rem 2rem;
  background: var(--bg-dark);
}

.offers h1 {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-weight: 700;
}

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

.offer {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.offer:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque on hover */
}

.offer-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  background-color: rgba(
    0,
    0,
    0,
    0.2
  ); /* Darker transparent background for images */
  border: 2px solid var(--glass-border);
  box-shadow: var(--glass-inset-shadow); /* Inset shadow for images */
  padding: 1rem;
  filter: grayscale(50%) brightness(0.8); /* Adjust for dark theme */
  transition: all 0.3s ease;
}

.offer-img:hover {
  filter: grayscale(0%) brightness(1);
  box-shadow: var(--glass-shadow);
  border-color: var(--accent-color);
  background-color: rgba(0, 0, 0, 0.3);
}

.offer h1 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 700;
}

.rating-numbers {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success-green);
  margin-bottom: 0.25rem;
}

.rating-stars {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.welcome-bonus {
  background: rgba(
    255,
    255,
    255,
    0.05
  ); /* Lighter transparent for bonus text */
  color: var(--text-light);
  padding: 1rem;
  border-radius: var(--border-radius);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.4;
  box-shadow: var(--glass-inset-shadow); /* Inset shadow for bonus text */
  border: 1px solid var(--glass-border);
}

.play-now {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.play-now:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
  background: var(--accent-hover);
}

/* Reviews Section */
.reviews {
  padding: 5rem 2rem;
  background: var(--bg-dark);
}

.reviews h1 {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-weight: 700;
}

.review {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.review:hover {
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque on hover */
}

.review h1 {
  color: var(--text-light);
  text-align: left;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  font-weight: 700;
}

.review p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-muted);
}

.summary {
  background: rgba(255, 255, 255, 0.05); /* Lighter transparent for summary */
  backdrop-filter: var(--blur-sm);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  border-left: 4px solid var(--accent-color);
  box-shadow: var(--glass-inset-shadow); /* Inset shadow for summary */
  border: 1px solid var(--glass-border);
}

.summary .rating-numbers {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.summary .rating-stars {
  margin-bottom: 1rem;
}

.summary .welcome-bonus {
  background: rgba(
    255,
    255,
    255,
    0.03
  ); /* Even lighter transparent for bonus text in summary */
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  box-shadow: var(--glass-inset-shadow);
}

/* FAQ Section */
.faq {
  padding: 5rem 2rem;
  background: var(--bg-dark);
}

.faq h1 {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-weight: 700;
}

.question {
  max-width: 800px;
  margin: 0 auto 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.question:hover {
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque on hover */
}

.question h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.question p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Footer */
footer {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Logo Section */
.logo {
  text-align: left;
}

.logo h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.8;
  font-weight: 400;
}

/* Menu Section */
.menu {
  text-align: center;
}

.menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu .nav-element a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: block;
  position: relative;
  font-weight: 400;
}

.menu .nav-element a:hover {
  color: var(--text-light);
  background-color: var(--glass-bg);
  transform: translateX(0.25rem);
  box-shadow: var(--glass-inset-shadow);
}

.menu .nav-element a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent-color);
  transition: height 0.3s ease;
}

.menu .nav-element a:hover::before {
  height: 60%;
}

/* Legal Section */
.legal {
  text-align: right;
}

.legal p {
  color: var(--text-light);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal a {
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.legal a:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque on hover */
  border-color: var(--accent-color);
  box-shadow: var(--glass-shadow);
}

.footer-logo-img {
  height: 45px;
  width: auto;
  max-width: 80px;
  opacity: 0.9;
  transition: all 0.3s ease;
  object-fit: contain;
  filter: brightness(1.2); /* Brighter logos for dark theme */
}

.footer-logo-img:hover {
  opacity: 1;
}

.age-logo {
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  padding: 0.25rem;
  border: 2px solid var(--text-light);
  box-shadow: var(--glass-shadow);
}

.age-logo:hover {
  background: var(--accent-hover);
  border-color: var(--text-light);
  transform: translateY(-3px) scale(1.05) rotate(5deg);
}

/* Rules Pages (Privacy & Terms) */
.rules {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
}

.rules h1 {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.rules h2 {
  color: var(--text-light);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 700;
}

.rules h3 {
  color: var(--text-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.rules p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.rules ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.rules li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Image Contrast Enhancements */
img {
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

/* Ensure all images in content areas have contrasting backgrounds */
main img:not(.offer-img):not(.footer-logo-img) {
  background: rgba(0, 0, 0, 0.2); /* Darker transparent background for images */
  padding: 0.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset-shadow);
}

/* Rating Stars Color */
.orange {
  color: var(--accent-color) !important;
}

/* Mobile Navigation Debug - Ensure visibility */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
  }

  .nav-overlay {
    display: block;
  }

  /* Ensure mobile nav is visible when active */
  .mobile-nav.active {
    display: flex !important;
    right: 0 !important;
  }

  .mobile-nav.active .nav-list {
    display: flex !important;
  }

  .mobile-nav.active .nav-element a {
    color: var(--text-muted) !important;
  }

  .about-us {
    display: none; /* Hide hero section on mobile */
  }

  .offers,
  .reviews,
  .faq {
    padding: 3rem 1rem;
  }

  .offer,
  .review,
  .question {
    padding: 1.5rem;
  }

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

  .legal {
    justify-content: center;
  }

  .rules {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .offers-wrapper {
    grid-template-columns: 1fr;
  }

  .play-now {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .logo {
    text-align: center;
    order: 1;
  }

  .logo h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .menu {
    order: 2;
    text-align: center;
  }

  .menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .menu .nav-element a {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-inset-shadow);
  }

  .menu .nav-element a:hover {
    transform: translateY(-2px);
  }

  .menu .nav-element a::before {
    display: none;
  }

  .legal {
    order: 3;
    text-align: center;
  }

  .legal p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .legal a {
    margin: 0.25rem;
    padding: 0.25rem;
  }

  .footer-logo-img {
    height: 40px;
    max-width: 70px;
  }

  .age-logo {
    height: 45px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-container {
    gap: 2rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .menu ul {
    gap: 0.25rem;
  }

  .menu .nav-element a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .legal a {
    margin: 0.2rem;
  }

  .footer-logo-img {
    height: 35px;
    max-width: 60px;
  }

  .age-logo {
    height: 40px;
  }
}
