:root {
  /* Color Palette */
  --bg-primary: #0a0a0d;
  --bg-secondary: #141417;
  --bg-card: rgba(255, 255, 255, 0.03);
  
  --accent-primary: #ff8c42;
  --accent-secondary: #ffb88c;
  
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  
  --border-glow: rgba(255, 140, 66, 0.3);
  --shadow-glow: rgba(255, 140, 66, 0.2);

  /* Spacing */
  --space-mobile: 50px;
  --space-tablet: 70px;
  --space-desktop: 100px;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

.section {
  padding: var(--space-mobile) 0;
}

.section-secondary {
  background-color: var(--bg-secondary);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-tablet) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-desktop) 0;
  }
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-primary);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  transition: all 0.3s ease;
}

.nav-toggle-label span:nth-child(1) { top: 0; }
.nav-toggle-label span:nth-child(2) { top: 9px; }
.nav-toggle-label span:nth-child(3) { top: 18px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

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

.nav-link:hover {
  color: var(--text-primary);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .nav-toggle-label {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 30px 20px;
    gap: 25px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
  }
  
  .nav-toggle-input:checked ~ .nav-menu {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }
  
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
  color: var(--bg-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Offset header */
  background-image: linear-gradient(to bottom, rgba(10, 10, 13, 0.7), var(--bg-primary)), url('images/premium-casino-abstract-dark-orange.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease forwards;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.legal-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

/* Responsive Hero */
@media (min-width: 768px) {
  .hero h1 { font-size: 4rem; }
  .hero p { font-size: 1.3rem; }
}

/* Page Hero (Inner Pages) */
.page-hero {
  padding: 180px 0 100px;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(10, 10, 13, 0.8), var(--bg-primary)), url('images/inner-page-dark-neon-bg.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero h1 {
  font-size: 3rem;
  color: var(--accent-primary);
}

/* Game Section */
.game-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-intro {
  margin-bottom: 40px;
  max-width: 700px;
}

.game-intro h2 {
  font-size: 2.5rem;
}

.game-wrapper {
  width: 100%;
  max-width: 1300px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px var(--shadow-glow);
  position: relative;
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (min-width: 1024px) {
  .game-wrapper {
    width: 90%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .game-wrapper {
    width: 95%;
  }
}

/* Cards & Grid System */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px var(--shadow-glow);
  background: rgba(255, 255, 255, 0.05);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 66, 0.1);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* Legal & Text Layout */
.text-center { text-align: center; }
.text-content { max-width: 800px; margin: 0 auto; }
.text-content h2 { margin-top: 40px; margin-bottom: 20px; color: var(--accent-primary); }
.text-content ul { margin-bottom: 20px; padding-left: 20px; }
.text-content li { margin-bottom: 10px; color: var(--text-secondary); position: relative; }
.text-content li::before {
  content: '•';
  color: var(--accent-primary);
  position: absolute;
  left: -20px;
  font-size: 1.2rem;
  line-height: 1;
}

/* Contact Form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--shadow-glow);
}

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

/* Responsible Gaming Specific */
.rg-banner {
  background: linear-gradient(135deg, rgba(255,140,66,0.1), rgba(10,10,13,1));
  border: 1px solid var(--border-glow);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
  text-align: center;
}

.rg-banner h2 {
  color: var(--accent-primary);
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent-primary);
}

.footer-desc {
  max-width: 600px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-nav a {
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

.footer-legal {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-legal p {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.age-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 20px;
}