body {
  background-color: #02040a;
  color: #f8fafc;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #0a1122 0%, #02040a 100%);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 90%);
  opacity: 0.5;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.stars-1 {
  width: 1px;
  height: 1px;
  box-shadow:
    450px 300px #fff,
    100px 500px #fff,
    800px 100px #fff,
    300px 800px #fff,
    1200px 400px #fff,
    1500px 900px #fff,
    200px 100px #fff,
    900px 600px #fff;
  animation: twinkle 4s infinite ease-in-out;
}
.stars-2 {
  width: 2px;
  height: 2px;
  box-shadow:
    250px 100px #fff,
    500px 700px #fff,
    1100px 200px #fff,
    1400px 600px #fff,
    50px 350px #fff,
    700px 950px #fff;
  animation: twinkle 6s infinite ease-in-out;
  opacity: 0.5;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.nebula {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 30s infinite alternate ease-in-out;
}

@keyframes drift {
  from {
    transform: translate(-10%, -10%);
  }
  to {
    transform: translate(10%, 10%);
  }
}

body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.01),
      rgba(0, 255, 0, 0.005),
      rgba(0, 255, 0, 0.01)
    );
  z-index: 100;
  background-size:
    100% 4px,
    3px 100%;
  pointer-events: none;
}

/* PREMIUM HUD LOADING SCREEN STYLES */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s;
  overflow: hidden;
}

#preloader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 204, 0.05),
    transparent
  );
  animation: scanSweep 4s linear infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

.loader-content {
  width: 100%;
  max-width: 320px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(0, 255, 204, 0.05);
  margin-top: 30px;
  position: relative;
  border: 1px solid rgba(0, 255, 204, 0.1);
  padding: 1px;
}

.progress-bar {
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  width: 0%;
  background-color: #00ffcc;
  background-image: linear-gradient(
    90deg,
    transparent 75%,
    rgba(0, 0, 0, 0.4) 75%
  );
  background-size: 8px 100%;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
  transition: width 0.2s ease;
}

.loader-log {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #00ffcc;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  height: 1.2em;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.glass-hud {
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 204, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.cyber-border {
  position: relative;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.gradient-text {
  background: linear-gradient(90deg, #00ffcc, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textShine 4s linear infinite;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

.page-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-link.active,
.mobile-nav-link.active {
  color: #00ffcc !important;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.tab-btn.active {
  background-color: #00ffcc;
  color: #02040a;
  border-color: #00ffcc;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #02040a;
}
::-webkit-scrollbar-thumb {
  background: #02040a;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #004d3d;
}

.legal-content h3 {
  color: #00ffcc;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  display: none;
}
.testimonial-card.active {
  display: block;
  animation: fadeInScale 0.5s forwards;
}

.expertise-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.expertise-card:hover {
  transform: translateY(-10px);
  background: rgba(17, 24, 39, 0.95);
  box-shadow: 0 20px 40px -10px rgba(0, 255, 204, 0.15);
}

#featured-game-container,
#about-hero-visual {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  background: transparent;
}

.tech-badge {
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  font-family: "JetBrains Mono", monospace;
  color: #64748b;
}

/* Astronaut float animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}