:root {
  --bg-primary: #0b0a16;
  --bg-secondary: #15132b;
  --bg-surface: #1e1b3a;
  --accent-gold: #f7c948;
  --accent-violet: #c084fc;
  --accent-orange: #ff9f43;
  --text-primary: #ffffff;
  --text-secondary: #b8b6d6;
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --section-spacing: 110px;
}

@media (max-width: 992px) {
  :root {
    --section-spacing: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 50px;
  }
}

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

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

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

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
}

ul {
  list-style: none;
}

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

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

.text-center {
  text-align: center;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(247, 201, 72, 0.3);
}

.btn-primary:hover {
  color: var(--bg-primary);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(247, 201, 72, 0.6);
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 10, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 201, 72, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(11, 10, 22, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo span {
  background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--accent-gold);
  transition: all 0.3s;
  border-radius: 3px;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(11, 10, 22, 0.3), var(--bg-primary)), url('images/arabian-palace-hero-bg.jpg') center/cover no-repeat;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, rgba(11, 10, 22, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  background: linear-gradient(135deg, #ffffff, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.4rem;
  color: #e2e1ef;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.floating-lanterns {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: url('images/floating-lanterns-overlay.png') center/cover;
  opacity: 0.6;
  animation: floatLanterns 20s linear infinite alternate;
}

@keyframes floatLanterns {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.05); }
}

/* PAGE HERO (Inner Pages) */
.page-hero {
  height: 40vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(11, 10, 22, 0.6), var(--bg-primary)), url('images/inner-page-header-bg.jpg') center/cover no-repeat;
  padding-top: 80px;
  margin-bottom: 50px;
}

.page-hero h1 {
  font-size: 3rem;
  z-index: 2;
  position: relative;
}

/* MAIN GAME SECTION */
.featured-game-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(247, 201, 72, 0.1);
  border-bottom: 1px solid rgba(247, 201, 72, 0.1);
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-primary));
  box-shadow: 0 0 30px rgba(247, 201, 72, 0.2), inset 0 0 15px rgba(192, 132, 252, 0.1);
  border: 2px solid rgba(247, 201, 72, 0.4);
  position: relative;
  overflow: hidden;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, rgba(247, 201, 72, 0.3), transparent 30%);
  animation: rotateGlow 6s linear infinite;
  z-index: 0;
}

@keyframes rotateGlow {
  100% { transform: rotate(360deg); }
}

.game-frame-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
}

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

/* POPULAR GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.game-card {
  background-color: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(192, 132, 252, 0.2);
  border-color: rgba(247, 201, 72, 0.5);
}

.game-img-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.game-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-img-box img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 10, 22, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-info {
  padding: 20px;
  text-align: center;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
}

.game-info h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

/* VIP REWARDS SECTION */
.vip-section {
  background: url('images/desert-stars-bg.jpg') center/cover fixed;
  position: relative;
}

.vip-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 10, 22, 0.85);
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.vip-card {
  background: rgba(30, 27, 58, 0.6);
  backdrop-filter: blur(5px);
  padding: 40px 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(247, 201, 72, 0.2);
  transition: all 0.3s ease;
}

.vip-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 27, 58, 0.9);
  box-shadow: 0 10px 25px rgba(247, 201, 72, 0.15);
}

.vip-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

/* STORY SECTION */
.story-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.story-content {
  flex: 1;
}

.story-content h2 {
  text-align: left;
}

.story-image {
  flex: 1;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(192, 132, 252, 0.3);
  border: 2px solid rgba(192, 132, 252, 0.4);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-surface);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  border-top: 4px solid var(--accent-violet);
}

.stars {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.player-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

/* RESPONSIBLE GAMING BANNER */
.rg-banner {
  background-color: var(--bg-secondary);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
}

.rg-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  background: #ff4757;
  color: #fff;
  width: 60px; height: 60px;
  line-height: 60px;
  border-radius: 50%;
}

/* INNER PAGES CONTENT */
.content-wrapper {
  background: var(--bg-surface);
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 50px;
}

.content-wrapper h2 {
  text-align: left;
  font-size: 2rem;
  margin-top: 30px;
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-gold);
}

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

/* FOOTER */
footer {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--accent-gold);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--accent-gold);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ANIMATIONS (FADE IN) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .vip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .story-section { flex-direction: column; text-align: center; }
  .story-content h2 { text-align: center; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .game-container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  
  .games-grid, .vip-grid, .testimonials-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .game-container {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .game-frame-wrapper {
    border-radius: 0;
  }
  
  .content-wrapper {
    padding: 30px 20px;
  }
}