:root {
  /* Colors */
  --bg-primary: #05070d;
  --bg-secondary: #0b1220;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  
  /* Neon Accents */
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-cyan: #06b6d4;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
}

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

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

/* =========================================
   CINEMATIC BACKGROUND SYSTEM
   ========================================= */
.cinematic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-primary);
  perspective: 1000px;
}

.bg-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
}

.bg-city {
  background-image: url('images/photo-1519501025264-65ba15a82390-city-bg-city.png');
  opacity: 0.3;
  mix-blend-mode: luminosity;
  animation: subtlePan 30s ease-in-out infinite alternate;
}

.bg-neon {
  background-image: url('images/photo-1550684848-fac1c5b4e853-neon-bg-neon.png');
  opacity: 0.15;
  mix-blend-mode: screen;
}

.bg-gradient {
  background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-primary) 80%);
}

.light-streak {
  position: absolute;
  width: 2px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
  animation: lightStreakAnim 4s infinite linear;
}

.streak-1 { top: -10%; left: 20%; animation-delay: 0s; }
.streak-2 { top: -10%; left: 70%; background: linear-gradient(to bottom, transparent, var(--neon-pink), transparent); animation-delay: 2s; filter: drop-shadow(0 0 10px var(--neon-pink)); }

@keyframes subtlePan {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -1%); }
}

@keyframes lightStreakAnim {
  0% { transform: translateY(-200px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(120vh); opacity: 0; }
}

/* =========================================
   LAYOUT STRUCTURE
   ========================================= */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-content {
  flex-grow: 1;
  margin-left: 120px; /* Space for sidebar */
  padding: 40px;
  max-width: 1400px;
}

/* =========================================
   ADVANCED CURVED FLOATING SIDEBAR
   ========================================= */
.sidebar-wrapper {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.curved-sidebar {
  width: 80px;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  background: rgba(11, 18, 32, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 40px;
  box-shadow: 
    0 0 30px rgba(0,0,0,0.8),
    inset 0 0 20px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Sidebar glowing edge effect */
.curved-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent 40%, transparent 60%, var(--neon-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-window {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.nav-track {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 30px 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elastic bounce */
}

/* 3D Floating Icons */
.nav-item {
  width: 50px;
  height: 50px;
  perspective: 500px;
}

.nav-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  animation: float 4s ease-in-out infinite;
}

/* Stagger floating animations */
.nav-item:nth-child(2) a { animation-delay: 0.5s; }
.nav-item:nth-child(3) a { animation-delay: 1s; }
.nav-item:nth-child(4) a { animation-delay: 1.5s; }
.nav-item:nth-child(5) a { animation-delay: 2s; }
.nav-item:nth-child(6) a { animation-delay: 2.5s; }

/* Hover effect: Zoom, Glow, 3D Tilt */
.nav-item a:hover, .nav-item a.active {
  color: #fff;
  background: var(--bg-secondary);
  border-color: var(--neon-blue);
  box-shadow: 
    0 0 15px var(--neon-blue),
    inset 0 0 10px rgba(59, 130, 246, 0.5);
  transform: scale(1.25) translateZ(30px) rotateX(10deg) rotateY(-10deg);
  z-index: 10;
  animation: none; /* stop floating on hover */
}

.nav-item a:hover .icon {
  text-shadow: 0 0 10px #fff, 0 0 20px var(--neon-blue);
}

.tooltip {
  position: absolute;
  left: 70px;
  background: var(--bg-secondary);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.nav-item a:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation Controls (Arrows) */
.nav-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.nav-control:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

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

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid var(--neon-pink);
  border-radius: 30px;
  color: var(--neon-pink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
  animation: pulsePink 2s infinite alternate;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero h1 span.neon-text {
  background: linear-gradient(to right, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero h1 span.neon-text::after {
  content: 'Neon Night.';
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: none;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px var(--neon-blue);
  opacity: 0.7;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  border: none;
  border-radius: 30px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(139, 92, 246, 0.4);
  cursor: pointer;
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn-neon:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0,0,0,0.6), 0 0 30px rgba(139, 92, 246, 0.7);
}

.btn-neon:hover::before {
  left: 150%;
}

/* =========================================
   GAME SECTION
   ========================================= */
.game-section {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.game-container {
  width: 100%;
  max-width: 950px;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 10px;
  position: relative;
  z-index: 10;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.8),
    0 0 40px rgba(59, 130, 246, 0.2);
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-purple), transparent);
  z-index: -1;
  border-radius: 22px;
  animation: borderGlow 4s linear infinite;
  background-size: 200% 200%;
}

.game-frame {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

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

@keyframes borderGlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes pulsePink {
  0% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.2); }
  100% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* =========================================
   INNER PAGES (Content formatting)
   ========================================= */
.page-header {
  text-align: center;
  padding: 80px 0 40px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.content-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto 80px;
}

.content-box h2 {
  color: var(--neon-cyan);
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

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

.content-box ul {
  margin: 0 0 20px 20px;
  color: var(--text-secondary);
}

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

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-group input, .form-group textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  font-family: var(--font-main);
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  border-top: 1px solid var(--card-border);
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(10px);
  padding: 60px 40px 30px;
  margin-left: 120px;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-group h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 10px;
}

.link-group a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: var(--neon-cyan);
}

.legal-disclaimer {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
  .game-container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
    padding-top: 100px;
  }
  
  footer {
    margin-left: 0;
    padding: 40px 20px 20px;
  }
  
  /* Transform Sidebar to Bottom Bar or Top Bar for mobile */
  .sidebar-wrapper {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    width: 90%;
    max-width: 400px;
  }
  
  .curved-sidebar {
    width: 100%;
    height: 70px;
    min-height: auto;
    flex-direction: row;
    padding: 0 20px;
    border-radius: 35px;
  }
  
  .curved-sidebar::before {
    border-radius: 35px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent 40%, transparent 60%, var(--neon-purple));
  }
  
  .nav-window {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  }
  
  .nav-track {
    flex-direction: row;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 15px;
  }
  
  .nav-item {
    width: 45px; height: 45px;
  }
  
  .nav-control {
    display: none; /* Hide arrows on mobile, rely on swipe or just show all */
  }
  
  .tooltip {
    display: none;
  }
  
  .game-container {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
}