/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  line-height: 1.6;
  color: #e0e6ed;
  overflow-x: hidden;
}

/* Cosmic Background */
.cosmic-bg {
  background: linear-gradient(135deg, #0f0f23 0%, #1a0b2e 25%, #16213e 50%, #0f3460 75%, #1a0b2e 100%);
  min-height: 100vh;
  position: relative;
}

.cosmic-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 119, 198, 0.2);
}

.navbar {
  padding: 1rem 0;
}

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

.logo {
  position: relative;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(120, 219, 255, 0.8);
  letter-spacing: 3px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(120, 219, 255, 0.3) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #e0e6ed;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7877c6, #ff77c6);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #7ddbff;
  text-shadow: 0 0 10px rgba(125, 219, 255, 0.5);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #7ddbff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(120, 219, 255, 0.6);
  animation: glow 3s ease-in-out infinite alternate;
  line-height: 1.1;
}

@keyframes glow {
  0% { text-shadow: 0 0 20px rgba(120, 219, 255, 0.6), 0 0 30px rgba(120, 219, 255, 0.4); }
  100% { text-shadow: 0 0 30px rgba(120, 219, 255, 0.8), 0 0 40px rgba(120, 219, 255, 0.6); }
}

.hero-description {
  font-size: 1.2rem;
  color: #c9d1d9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #7877c6, #ff77c6);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(120, 119, 198, 0.4);
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, #7ddbff, transparent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px rgba(120, 219, 255, 0.5);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: rgba(15, 15, 35, 0.3);
}

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

.feature-card {
  background: rgba(26, 11, 46, 0.6);
  border: 1px solid rgba(120, 119, 198, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(120, 219, 255, 0.6);
  box-shadow: 0 15px 35px rgba(120, 119, 198, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(120, 219, 255, 0.6));
}

.feature-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: #7ddbff;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #c9d1d9;
  line-height: 1.6;
}

/* Games Section */
.games {
  padding: 100px 0;
}

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

.game-card {
  background: rgba(26, 11, 46, 0.6);
  border: 1px solid rgba(120, 119, 198, 0.3);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: rgba(120, 219, 255, 0.6);
  box-shadow: 0 20px 40px rgba(120, 119, 198, 0.3);
}

.game-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.game-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: #7ddbff;
  text-align: center;
  padding: 1rem;
  margin-bottom: 0;
}

.game-button {
  display: block;
  background: linear-gradient(135deg, #7877c6, #ff77c6);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 12px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 0 1rem 1rem;
  border-radius: 8px;
}

.game-button:hover {
  background: linear-gradient(135deg, #9d9ce6, #ff97d6);
  transform: translateY(-2px);
}

/* About Section */
.animated-about-img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 0 40px 10px #7f5cff88, 0 4px 32px #000a;
  animation: floatY 3.5s ease-in-out infinite;
  transition: box-shadow 0.3s;
  background: linear-gradient(135deg, #7f5cff33 0%, #00cfff33 100%);
}

.animated-about-img:hover {
  box-shadow: 0 0 60px 20px #7f5cffcc, 0 8px 40px #000c;
}

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

.about {
  padding: 100px 0;
  background: rgba(15, 15, 35, 0.3);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #c9d1d9;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.cosmic-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ddbff, #7877c6, #1a0b2e);
  margin: 0 auto;
  animation: rotate 20s linear infinite;
  box-shadow: 
    0 0 50px rgba(120, 219, 255, 0.4),
    inset 0 0 50px rgba(120, 119, 198, 0.2);
}

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

/* Disclaimer */
.disclaimer {
  padding: 50px 0;
  background: rgba(26, 11, 46, 0.4);
  border-top: 1px solid rgba(120, 119, 198, 0.3);
  border-bottom: 1px solid rgba(120, 119, 198, 0.3);
}

.disclaimer h3 {
  font-family: 'Orbitron', monospace;
  color: #7ddbff;
  text-align: center;
  margin-bottom: 1rem;
}

.disclaimer p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #c9d1d9;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: rgba(15, 15, 35, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: #7ddbff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff77c6;
}

/* Game Page Styles */
.game-page {
  min-height: 100vh;
  padding-top: 100px;
}

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

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  color: #7ddbff;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(120, 219, 255, 0.5);
}

.game-frame {
  width: 100%;
  height: 70vh;
  border: 2px solid rgba(120, 119, 198, 0.3);
  border-radius: 15px;
  background: rgba(26, 11, 46, 0.6);
  margin-bottom: 2rem;
}

.lg-object {
  width: 100%;
  height: 100%;
  border-radius: 13px;
}

.back-button {
  display: inline-block;
  background: linear-gradient(135deg, #7877c6, #ff77c6);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(120, 119, 198, 0.4);
}

/* Content Pages */
.content-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 60px;
}

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

.content-page h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  color: #7ddbff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(120, 219, 255, 0.5);
}

.content-page h2 {
  font-family: 'Orbitron', monospace;
  color: #ff77c6;
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.content-page p {
  color: #c9d1d9;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-page ul {
  color: #c9d1d9;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(15, 15, 35, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(120, 119, 198, 0.3);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cosmic-orb {
    width: 200px;
    height: 200px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .game-frame {
    height: 50vh;
  }
}