/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Orbitron:wght@400;700&display=swap');

:root {
  --bg-dark: #050510;
  --bg-darker: #020205;
  --bg-card: rgba(10, 10, 26, 0.6);
  /* Glassmorphism base */

  --text-main: #ffffff;
  --text-muted: #9494a8;

  /* Simplified Brand Colors - Adjusted for "Clean" look */
  --accent-cyan: #00f3ff;
  --accent-cyan-dim: rgba(0, 243, 255, 0.08);

  --font-body: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;

  --spacing-section: 8rem;
  --max-width: 1200px;
}

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

body {
  background-color: transparent;
  /* Changed from var(--bg-dark) to prevent masking */
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* --- NEW BACKGROUND SYSTEM --- */
/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #000;
  display: flex;
  flex-direction: column;
  /* Match Header */
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}

.splash-logo-placeholder {
  width: 80%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  /* Match .studio-logo aspect ratio */
  margin-bottom: 2rem;
  /* Match .studio-logo margin */
  display: flex;
  align-items: center;
  justify-content: center;
}

#splash-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Changed from -1 to 0 to sit on the canvas */
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-dark);
}

/* 1. Subtle Moving Grid */
.bg-grid {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.25) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(400px) rotateX(60deg);
  animation: grid-move 10s linear infinite;
  opacity: 0.5;
  /* Increased to 0.5 for definitive visibility */
}

/* 2. Deep Radial Gradient (Vignette) */
.bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%,
      rgba(5, 5, 20, 0) 0%,
      rgba(5, 5, 20, 0.5) 40%,
      rgba(0, 0, 0, 0.9) 90%);
  pointer-events: none;
}

/* 3. Floating Particles (Dust) */
.particle {
  position: absolute;
  background: var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  /* Hidden by default until animation starts */
  box-shadow: 0 0 5px var(--accent-cyan);
  animation: float-up linear infinite;
}

/* --- END BACKGROUND --- */

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

@keyframes grid-move {
  0% {
    transform: perspective(400px) rotateX(60deg) translateY(0px) translateX(0px);
  }

  100% {
    transform: perspective(400px) rotateX(60deg) translateY(-200px) translateX(-200px);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
    /* Make them visible quicker and brighter */
  }

  80% {
    opacity: 0.8;
    /* Keep them visible longer */
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-entry {
  opacity: 0;
  /* Hidden initially */
  animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-gradient {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.neon-border {
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  border: 1px solid rgba(0, 243, 255, 0.3);
}

/* Header / Hero */
header {
  position: relative;
  z-index: 2;
  /* Layer above background */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  /* Removed old overflow hidden to let bg shine through */
}

main {
  position: relative;
  z-index: 2;
  /* Layer above background */
}

/* Removed old .hero-bg-glow (replaced by global system) */

.studio-logo {
  max-width: 600px;
  width: 80%;
  filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.15));
  /* Cleaner shadow */
  margin-bottom: 2rem;
  animation: float 6s ease-in-out infinite;
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 4px;
  /* More spacing = More premium */
  color: var(--text-main);
  text-transform: uppercase;
  opacity: 0.9;
}

/* Sections */
section {
  position: relative;
  z-index: 2;
  /* Layer above background */
  padding: var(--spacing-section) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  /* Smaller line */
  height: 2px;
  background: var(--accent-cyan);
  margin: 1.5rem auto 0;
  box-shadow: 0 0 10px var(--accent-cyan);
  opacity: 0.7;
}

/* Game Section */
.game-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.game-logo {
  max-width: 380px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.05);
  /* Softer shadow */
  transition: transform 0.3s ease;
}

.game-logo:hover {
  transform: scale(1.02);
}

.game-desc {
  max-width: 700px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  /* Thinner text looks cleaner */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.screenshot-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
  backdrop-filter: blur(5px);
}

.screenshot-card img {
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.screenshot-card:hover img {
  opacity: 1;
}

/* Connect Section */
.connect-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-card {
  background: var(--bg-card);
  /* Glass effect */
  backdrop-filter: blur(10px);
  padding: 2.5rem 3.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  min-width: 200px;
  transition: all 0.4s ease;
}

.social-card i {
  font-size: 2.2rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.social-card span {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.social-card:hover {
  background: rgba(0, 243, 255, 0.03);
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.social-card:hover i,
.social-card:hover span {
  color: var(--accent-cyan);
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  /* Layer above background */
  text-align: center;
  padding: 4rem 1rem;
  margin-top: 6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

footer a:hover {
  color: var(--accent-cyan);
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes grid-move {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(60px);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .connect-grid {
    flex-direction: column;
  }
}

:root {
  --spacing-section: 5rem;
}




/* --- NEW BACKGROUND SYSTEM --- */
/* Splash Screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #050510;
  /* Match body bg */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}

#splash-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* CALIBRATED SCALING */
  transform: scale(1.28);
  transform-origin: center;
  mix-blend-mode: lighten;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.studio-logo {
  max-width: 600px;
  width: 80%;
  filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.15));
  margin-bottom: 2rem;
  /* Animation handles floating */
  animation: float 6s ease-in-out infinite;
}

/* Pause animation initially to prevent jump */
.studio-logo.paused {
  animation-play-state: paused;
}