:root {
  --bg-dark: #09090B;
  --bg-card: #18181B;
  --primary: #8B5CF6;
  --primary-glow: rgba(139, 92, 246, 0.6);
  --secondary: #06B6D4;
  --secondary-glow: rgba(6, 182, 212, 0.6);
  --heading: #FFFFFF;
  --text: #B4B4C5;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .logo {
  font-family: 'Outfit', sans-serif;
  color: var(--heading);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Background Effects */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-dark);
}

.glow-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.02) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.logo-sub {
  color: var(--heading);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
  text-shadow: 0 0 8px var(--secondary-glow);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--heading);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* Utilities */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 8rem 2rem 1rem;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.float-item {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 10s infinite ease-in-out alternate;
}

.float-1 {
  width: 150px;
  height: 150px;
  background: var(--primary);
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.float-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

.float-3 {
  width: 100px;
  height: 100px;
  background: #FF00FF;
  top: 40%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -50px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Games Section */
.games-section {
  padding: 2rem 0 6rem;
  position: relative;
}

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

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
}

.game-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 3rem;
  scrollbar-width: none;
}

.game-carousel::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 320px;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.card-image {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-card) 5%, transparent 50%);
}

.card-content {
  padding: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, var(--bg-card) 70%, transparent);
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text);
  display: none;
}

.game-card:hover .card-content p {
  display: block;
}

.play-btn {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.play-btn:hover {
  color: var(--heading);
  text-shadow: 0 0 10px var(--secondary-glow);
}

.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(24, 24, 27, 0.8);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--heading);
  box-shadow: 0 0 25px var(--primary-glow);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Zig-Zag Showcase Section */
.showcase-section {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.5), transparent);
}

.zig-zag-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.zig-zag-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zig-zag-row.show {
  opacity: 1;
  transform: translateY(0);
}

.zig-zag-row.reverse {
  flex-direction: row-reverse;
}

.zig-zag-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.zig-zag-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}

.zig-zag-image:hover img {
  transform: scale(1.05);
}

.zig-zag-text {
  flex: 1;
}

.zig-zag-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.zig-zag-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, rgba(24, 24, 27, 0.5));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  color: var(--text);
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.link-group h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--heading);
}

.link-group a {
  display: block;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow);
}

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

/* Animated CTA Section */
.animated-cta {
  position: relative;
  padding: 6rem 2rem;
  margin: 4rem auto;
  max-width: 1000px;
  text-align: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(162, 57, 255, 0.15);
}

.cta-background {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), var(--secondary), transparent 30%);
  animation: rotate-bg 8s linear infinite;
  z-index: 0;
  opacity: 0.4;
}

.animated-cta::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 20px;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-icon {
  font-size: 4rem;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 20px var(--primary-glow);
}

.cta-title {
  font-size: 3rem;
  margin: 0;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 600px;
}

.pulse-btn {
  animation: pulse-glow 2s infinite;
  margin-top: 1rem;
  font-size: 1.2rem;
  padding: 1rem 3rem;
}

@keyframes rotate-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(162, 57, 255, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(162, 57, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(162, 57, 255, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
  }
  .hero-title {
    font-size: 3rem;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .zig-zag-row, .zig-zag-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .zig-zag-image {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .game-card {
    flex: 0 0 260px;
  }
  .card-image {
    height: 340px;
  }
  .btn-large {
    padding: 0.8rem 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}
