:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --accent-blue: #00D4FF;
  --accent-purple: #7B2FFF;
  --accent-pink: #FF2D78;
  --accent-green: #00FF88;
  --gradient-main: linear-gradient(135deg, #7B2FFF, #00D4FF);
  --gradient-hover: linear-gradient(135deg, #00D4FF, #FF2D78);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 70px;
  --container-max: 1200px;
  --border-radius: 16px;
  --transition-speed: 0.3s;
}

/* 1. Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* 3. Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.grid {
  display: grid;
  gap: 30px;
}

/* 4. Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: background-color var(--transition-speed), backdrop-filter var(--transition-speed);
}

.navbar.scrolled {
  background-color: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-accent {
  color: var(--accent-blue);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 5. Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 6. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(123, 47, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: #0a0a0f;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* 7. Game Cards */
.game-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(123, 47, 255, 0.15);
}

.game-card-featured {
  grid-column: 1 / -1;
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.08), rgba(0, 212, 255, 0.04));
  box-shadow: 0 10px 40px rgba(123, 47, 255, 0.15);
}

.game-card-featured:hover {
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 20px 60px rgba(123, 47, 255, 0.25);
}

@media (min-width: 900px) {
  .game-card-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  
  .game-card-featured .game-card-image {
    height: 100%;
    min-height: 320px;
  }
}

.game-card-image {
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.game-card-banner img {
  object-fit: cover;
  object-position: center;
}

.game-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-weight: 700;
  z-index: 2;
}

.tag-featured {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  box-shadow: 0 0 15px rgba(123, 47, 255, 0.5);
}

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

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

.game-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.game-card-subtitle {
  color: var(--accent-blue);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.5;
}

.game-card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.game-card-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.platform-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.game-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.actions-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.actions-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-store svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-appstore:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-playstore:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.25);
}

/* 8. Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* 9. Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 12px auto 0;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-main);
  margin: 16px auto;
  border-radius: 2px;
}

/* Glassmorphism Utility */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
}

/* About Teaser (Home page) */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-teaser-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-teaser-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Footer extras */
.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* 10. About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition-speed);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* 11. Contact Section */
.contact-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 24px;
  color: #fff;
}

.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--accent-blue);
  font-family: var(--font-heading);
  margin-bottom: 32px;
  transition: color var(--transition-speed);
}

.contact-email:hover {
  text-decoration: underline;
  color: var(--accent-purple);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  width: 100%;
}

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

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

/* 12. Privacy Policy */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.privacy-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.privacy-content h3 {
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.privacy-content p, .privacy-content li {
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 12px;
}

.privacy-content a {
  color: var(--accent-blue);
  transition: text-decoration var(--transition-speed);
}

.privacy-content a:hover {
  text-decoration: underline;
}

.privacy-content ul {
  padding-left: 20px;
  list-style: disc;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-glass);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.privacy-content th {
  background: rgba(123, 47, 255, 0.1);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.privacy-content td {
  border-bottom: 1px solid var(--border-glass);
  padding: 12px;
  color: var(--text-secondary);
}

.privacy-content tr:last-child td {
  border-bottom: none;
}

/* 13. Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.footer-socials a:hover {
  color: var(--accent-blue);
}

/* 14. Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* 15. Glow effects */
.glow-blue {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.glow-purple {
  box-shadow: 0 0 30px rgba(123, 47, 255, 0.3);
}

/* 16. Page-specific */
.page-hero {
  min-height: 40vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
}

.page-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

/* 17. Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* 18. Responsive breakpoints */
@media (max-width: 1024px) {
  .about-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-teaser-grid {
    grid-template-columns: 1fr;
  }
  
  .about-teaser-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-card {
    padding: 32px 24px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
