:root {
  --bg-color: #0c0a09;
  --sec-color: #1a120f;
  --purple: #a855f7;
  --red: #ef4444;
  --dark-red: #b91c1c;
  --dark-purple: #7e22ce;
  --emerald: #1abc9c;
  --text-pri: #f5e9d6;
  --text-sec: #cbbfa8;
  --sidebar-collapsed: 80px;
  --sidebar-expanded: 230px;
  --font-head: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --z-sidebar: 1000;
  --z-header: 900;
  --z-particles: 0;
  --z-content: 10;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--red);
  text-shadow: 0 0 10px var(--red);
}

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

/* Fluid Typography */
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1rem; }
p { font-size: clamp(1rem, 1.2vw, 1.125rem); margin-bottom: 1rem; color: var(--text-sec); }

/* Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-collapsed);
  background: rgba(26, 18, 15, 0.85);
  backdrop-filter: blur(15px);
  border-right: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 5px 0 20px rgba(0,0,0,0.7);
  z-index: var(--z-sidebar);
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar:hover {
  width: var(--sidebar-expanded);
  border-right: 1px solid var(--purple);
  box-shadow: 5px 0 30px rgba(168, 85, 247, 0.2);
}

.logo-area {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  min-width: var(--sidebar-expanded);
}

.logo-icon {
  color: var(--purple);
  font-size: 1.8rem;
  min-width: 30px;
  text-shadow: 0 0 10px var(--purple);
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--purple);
  margin-left: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.sidebar:hover .logo-text {
  opacity: 1;
}

.nav-links {
  flex: 1;
  list-style: none;
  padding-top: 2rem;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: var(--text-sec);
  min-width: var(--sidebar-expanded);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-pri);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
}

.nav-link:hover::before, .nav-link.active::before {
  transform: scaleY(1);
}

.nav-link i {
  font-size: 1.4rem;
  min-width: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-link:hover i, .nav-link.active i {
  color: var(--red);
  text-shadow: 0 0 15px var(--red);
}

.nav-text {
  margin-left: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 1px;
}

.sidebar:hover .nav-text {
  opacity: 1;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-collapsed);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-collapsed));
  transition: margin-left 0.3s ease, width 0.3s ease;
  position: relative;
}

/* Mobile Header */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(12, 10, 9, 0.95);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-header);
}

.mobile-logo {
  font-family: var(--font-head);
  color: var(--purple);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--purple);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  background-image: linear-gradient(to bottom, rgba(12,10,9,0.3), rgba(12,10,9,1)), url('images/photo-1518709268805-4e9042af9f23.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  max-width: 1000px;
}

.hero-disclaimer {
  display: inline-block;
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid var(--dark-red);
  color: #ff9d93;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
  backdrop-filter: blur(5px);
}

.hero-title {
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 2px 2px 4px #000;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--text-pri);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto 3rem;
  text-shadow: 1px 1px 2px #000;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(45deg, var(--dark-purple), var(--red));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  padding: 15px 40px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--purple);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::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: left 0.5s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 10px var(--purple);
  color: #fff;
}

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

/* Sections Global */
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 4rem);
  position: relative;
}

.section-bg-alt {
  background: var(--sec-color);
  position: relative;
}

.section-bg-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

/* Cards & Glassmorphism */
.glass-card {
  background: rgba(26, 18, 15, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--purple);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Featured Game Section */
.featured-game-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.game-image-wrap {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
}

.game-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-image-wrap:hover img {
  transform: scale(1.05);
}

.game-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-color), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.game-info h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(126, 34, 206, 0.2);
  border: 1px solid var(--dark-purple);
  color: #e0d4f5;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-icon {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px var(--red);
}

/* Game Iframe Page */
.game-play-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border: 2px solid var(--purple);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.4), inset 0 0 20px var(--dark-red);
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--purple);
  font-family: var(--font-head);
  letter-spacing: 1px;
}

.form-control {
  background: rgba(12, 10, 9, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--text-pri);
  padding: 12px 15px;
  border-radius: 5px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

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

/* FAQ Accordion */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background: rgba(26, 18, 15, 0.8);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  color: var(--purple);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(168, 85, 247, 0.1);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(12, 10, 9, 0.5);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--bg-color);
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.05), transparent 70%);
  pointer-events: none;
}

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

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: var(--text-pri);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.global-disclaimer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(26, 18, 15, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
}

.global-disclaimer p {
  font-size: 0.9rem;
  color: var(--text-sec);
  margin-bottom: 0;
}

.global-disclaimer strong {
  color: var(--purple);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--dark-red);
  border-radius: 50%;
  color: var(--dark-red);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(185, 28, 28, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
  color: var(--text-sec);
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-game-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-expanded);
  }
  
  .sidebar.mobile-active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: 60px; /* Space for mobile header */
  }
  
  .mobile-header {
    display: flex;
  }
  
  .logo-area {
    display: none; /* Hide desktop logo area on mobile */
  }

  .nav-text {
    opacity: 1;
  }
}