:root {
  --primary-blue: #646cff;
  --secondary-blue: #535bf2;
  --electric-purple: #8b5cf6;
  --vibrant-orange: #ff6b35;
  --neon-pink: #ff1493;
  --cyber-green: #00ff88;
  --deep-space: #0a0a0f;
  --soft-white: #f8fafc;
  --translucent-bg: rgba(100, 108, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--deep-space) 0%, #1a1a2e 50%, var(--deep-space) 100%);
  color: var(--soft-white);
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--translucent-bg);
  z-index: 1000;
}

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

.menu-items {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--soft-white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--primary-blue);
  text-shadow: 0 0 10px var(--primary-blue);
  transform: scale(1.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-shapes {
  position: relative;
  width: 40px;
  height: 40px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.shape-2 {
  width: 15px;
  height: 15px;
  background: var(--vibrant-orange);
  top: 5px;
  right: 0;
  animation-delay: 1s;
}

.shape-3 {
  width: 12px;
  height: 12px;
  background: var(--neon-pink);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-blue), var(--vibrant-orange), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.abstract-shape {
  position: absolute;
  border-radius: 50%;
  animation: morphing 8s ease-in-out infinite;
}

.shape-bg-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-bg-2 {
  width: 200px;
  height: 400px;
  background: radial-gradient(ellipse, var(--vibrant-orange) 0%, transparent 70%);
  top: 50%;
  right: 15%;
  border-radius: 50% 20%;
  animation-delay: 2s;
}

.shape-bg-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--electric-purple) 0%, transparent 70%);
  bottom: 20%;
  left: 60%;
  animation-delay: 4s;
}

.shape-bg-4 {
  width: 150px;
  height: 300px;
  background: radial-gradient(ellipse, var(--cyber-green) 0%, transparent 70%);
  top: 30%;
  left: 40%;
  border-radius: 20% 50%;
  animation-delay: 6s;
}

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

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--soft-white), var(--primary-blue), var(--vibrant-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-button {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(100, 108, 255, 0.4);
}

.button-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:active .button-ripple {
  width: 300px;
  height: 300px;
}

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

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary-blue), var(--vibrant-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features Section */
.features {
  padding: 6rem 0;
  position: relative;
}

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

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--translucent-bg);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary-blue), transparent);
  animation: rotate 6s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(100, 108, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.icon-shape {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  animation: iconMorph 4s ease-in-out infinite;
}

.icon-1 .icon-shape {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
  animation-delay: 0s;
}

.icon-2 .icon-shape {
  background: linear-gradient(45deg, var(--vibrant-orange), var(--neon-pink));
  animation-delay: 1s;
}

.icon-3 .icon-shape {
  background: linear-gradient(45deg, var(--electric-purple), var(--cyber-green));
  animation-delay: 2s;
}

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

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--glass-bg);
}

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

.manifesto-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.manifesto-point {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
  opacity: 0.9;
}

.manifesto-point::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.cartoon-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 1rem;
  background: linear-gradient(45deg, var(--primary-blue), var(--vibrant-orange));
}

.cartoon-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.frame-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--soft-white);
  border-radius: 20px;
  pointer-events: none;
}

/* Games Section */
.games {
  padding: 6rem 0;
}

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

.game-card {
  background: var(--glass-bg);
  border: 1px solid var(--translucent-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(100, 108, 255, 0.3);
}

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

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

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

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

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

.play-button {
  background: linear-gradient(45deg, var(--vibrant-orange), var(--neon-pink));
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.button-morph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.play-button:hover .button-morph {
  width: 200px;
  height: 200px;
}

.game-title {
  padding: 1.5rem;
  font-size: 1.3rem;
  color: var(--soft-white);
  text-align: center;
  font-weight: 600;
}

/* Disclaimer Section */
.disclaimer {
  padding: 4rem 0;
  background: var(--glass-bg);
  text-align: center;
}

.disclaimer h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--vibrant-orange);
}

.disclaimer p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--translucent-bg);
  text-align: center;
}

.copyright {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer p {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--vibrant-orange);
  text-shadow: 0 0 10px var(--vibrant-orange);
}

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

@keyframes morphing {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    border-radius: 50%;
  }
  25% { 
    transform: scale(1.2) rotate(90deg);
    border-radius: 20% 50%;
  }
  50% { 
    transform: scale(0.8) rotate(180deg);
    border-radius: 50% 20%;
  }
  75% { 
    transform: scale(1.1) rotate(270deg);
    border-radius: 30% 70%;
  }
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 20px rgba(100, 108, 255, 0.5); }
  100% { text-shadow: 0 0 40px rgba(255, 107, 53, 0.8); }
}

@keyframes iconMorph {
  0%, 100% { 
    border-radius: 20px;
    transform: rotate(0deg);
  }
  25% { 
    border-radius: 50% 20%;
    transform: rotate(90deg);
  }
  50% { 
    border-radius: 50%;
    transform: rotate(180deg);
  }
  75% { 
    border-radius: 20% 50%;
    transform: rotate(270deg);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .menu-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

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