@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
  /* Color System */
  --void-black: #040404;
  --neon-teal: #00ffe0;
  --galactic-purple: #7b2cbf;
  --solar-orange: #ff3d00;
  --plasma-green: #00ff9f;
  
  /* Cosmic Glow Gradient */
  --cosmic-gradient: linear-gradient(135deg, var(--neon-teal), var(--galactic-purple), var(--solar-orange), var(--plasma-green));
  
  /* Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sizing */
  --sidebar-collapsed: 70px;
  --sidebar-expanded: 240px;
  --section-padding: clamp(50px, 7vw, 110px);
  --max-width: 1300px;
}

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

body {
  background-color: var(--void-black);
  color: #ffffff;
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Canvas */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

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

/* Utilities */
.text-gradient {
  background: var(--cosmic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-collapsed);
  background: rgba(4, 4, 4, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar:hover {
  width: var(--sidebar-expanded);
}

.sidebar-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo-icon {
  font-size: 28px;
  color: var(--neon-teal);
  min-width: 30px;
  text-align: center;
}

.sidebar-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 15px;
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--cosmic-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #a0a0a0;
  transition: all 0.3s;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--neon-teal);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: center;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(0, 255, 224, 0.05);
}

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

.nav-item i {
  font-size: 24px;
  min-width: 30px;
  text-align: center;
  transition: color 0.3s;
}

.nav-item:hover i, .nav-item.active i {
  color: var(--neon-teal);
  text-shadow: 0 0 10px var(--neon-teal);
}

.nav-item span {
  margin-left: 15px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar:hover .nav-item span {
  opacity: 1;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cosmic-gradient);
  border: none;
  color: #fff;
  font-size: 24px;
  z-index: 1001;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.4);
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-collapsed);
  width: calc(100% - var(--sidebar-collapsed));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1px solid var(--neon-teal);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--cosmic-gradient);
  z-index: -1;
  transition: width 0.4s ease;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.4);
  border-color: transparent;
}

.btn-primary {
  background: var(--cosmic-gradient);
  border: none;
  box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-primary::before {
  background: rgba(255,255,255,0.2);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/photo-1462331940025-496dfbfc7564.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--void-black));
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 255, 224, 0.1);
  border: 1px solid var(--neon-teal);
  color: var(--neon-teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0, 255, 224, 0.3);
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ccc;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-legal {
  margin-top: 50px;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #aaa;
  border-left: 3px solid var(--solar-orange);
}

.hero-legal strong {
  color: #fff;
  display: block;
  margin-bottom: 5px;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--neon-teal);
  box-shadow: inset 0 0 20px rgba(0, 255, 224, 0.1);
}

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

.card p {
  color: #aaa;
}

/* Game Card */
.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  group: hover;
}

.game-img-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.game-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

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

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

.game-info {
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-top: 1px solid var(--glass-border);
}

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

.game-info p {
  font-size: 0.9rem;
  color: #aaa;
}

/* Game Player Iframe */
.game-player-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(123, 44, 191, 0.3);
  border: 1px solid var(--glass-border);
}

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

/* Page Headers */
.page-header {
  padding: 120px 20px 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(123,44,191,0.1), transparent);
  border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 15px;
}

/* Content Blocks for Legal/About pages */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin: 40px 0 20px;
  color: var(--neon-teal);
}

.content-block h3 {
  margin: 25px 0 15px;
  font-size: 1.2rem;
  color: #fff;
}

.content-block p {
  margin-bottom: 15px;
  color: #b0b0b0;
}

.content-block ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: #b0b0b0;
}

.content-block li {
  margin-bottom: 10px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-info .info-icon {
  font-size: 24px;
  color: var(--solar-orange);
  margin-right: 20px;
  background: rgba(255, 61, 0, 0.1);
  padding: 15px;
  border-radius: 12px;
}

.contact-info h4 {
  margin-bottom: 5px;
}

.contact-info p {
  color: #aaa;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-teal);
  box-shadow: 0 0 15px rgba(0, 255, 224, 0.2);
}

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

/* FAQ Accordion */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  text-align: left;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.2);
  color: #aaa;
}

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

.faq-item.active .faq-question {
  color: var(--neon-teal);
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background: #020202;
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 30px;
  margin-top: auto;
}

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

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #aaa;
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-18 {
  border-color: #ff3d00;
  color: #ff3d00;
}

.badge-play {
  border-color: #00ff9f;
  color: #00ff9f;
}

.footer-links h4 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  color: #fff;
}

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

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

.footer-links a {
  color: #888;
}

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

.footer-notice {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-notice h4 {
  color: var(--solar-orange);
  margin-bottom: 10px;
}

.footer-notice p {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: #666;
  font-size: 0.9rem;
}

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

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 224, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 255, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 224, 0); }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .sidebar-logo-text, .nav-item span {
    opacity: 1;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}