:root {
  /* Colors */
  --bg-primary: #0b0d11;
  --bg-secondary: #1a1f23;
  --card-bg: rgba(255, 255, 255, 0.05);
  --neon-purple: #bf7af0;
  --electric-blue: #3b82f6;
  --neon-green: #10b981;
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --white-glow: #ffffff;
  
  /* Dimensions & Spacing */
  --sidebar-width: 70px;
  --sidebar-mobile-height: 60px;
  --radius-lg: 20px;
  --radius-md: 12px;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(191, 122, 240, 0.5);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Sidebar (Desktop) */
.sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--sidebar-width);
  background: rgba(26, 31, 35, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 122, 240, 0.2);
  border-radius: 35px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  box-shadow: 0 0 20px rgba(191, 122, 240, 0.1);
  z-index: 1000;
  animation: float 6s ease-in-out infinite;
}

.sidebar-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.sidebar-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--white-glow);
  background: rgba(191, 122, 240, 0.2);
  box-shadow: 0 0 15px rgba(191, 122, 240, 0.5);
  transform: scale(1.1);
}

/* Tooltip */
.sidebar-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 120%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid rgba(191, 122, 240, 0.3);
}

.sidebar-link:hover::after {
  opacity: 1;
  left: 140%;
}

/* Main Content Wrapper */
.main-wrapper {
  padding-left: calc(var(--sidebar-width) + 40px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--electric-blue), var(--neon-green));
  background-size: 200% auto;
  color: var(--white-glow);
  box-shadow: 0 0 15px rgba(191, 122, 240, 0.4);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.6);
  color: var(--white-glow);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 13, 17, 0.3) 0%, var(--bg-primary) 100%);
  z-index: 0;
}

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

/* Game Section */
.game-section {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, var(--bg-primary) 70%);
}

.game-container {
  width: 100%;
  max-width: 900px; /* 30% smaller feel relative to ultra-wide containers */
  margin: 2rem auto;
  position: relative;
}

.game-frame-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 20px rgba(0,0,0,0.5);
  transition: var(--transition);
}

.game-frame-wrapper:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 40px rgba(191, 122, 240, 0.4);
}

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

.game-image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

/* Features Section */
.features-section {
  padding: 5rem 2rem;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(191, 122, 240, 0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(10, 13, 17, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.3);
  overflow: hidden;
}

.feature-icon-wrapper img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--electric-blue));
}

.feature-card h3 {
  color: var(--white-glow);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Interior Pages Content */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card h2 {
  color: var(--electric-blue);
  margin-top: 2rem;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-card li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(191, 122, 240, 0.2);
}

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

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--white-glow);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

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

.footer-links a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.legal-badges {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.legal-badges span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-secondary);
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  .game-container { max-width: 90%; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: var(--sidebar-mobile-height);
    flex-direction: row;
    justify-content: space-around;
    padding: 0 10px;
    border-radius: 20px;
    animation: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(191, 122, 240, 0.2);
  }
  
  .sidebar-link::after {
    display: none; /* Hide tooltips on mobile */
  }

  .main-wrapper {
    padding-left: 0;
    padding-bottom: calc(var(--sidebar-mobile-height) + 40px);
  }

  .hero {
    min-height: 80vh;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
  }
}