:root {
  --bg-deep-black: #08080a;
  --bg-darker: #0d0d12;
  --text-main: #e0e0e0;
  --accent-amber: #ffb020;
  --accent-amber-glow: rgba(255, 176, 32, 0.4);
  --accent-red: #cf142b;
  --accent-red-glow: rgba(207, 20, 43, 0.4);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep-black);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect x='10' y='0' width='4' height='8' fill='%23e0e0e0'/><rect x='10' y='16' width='4' height='8' fill='%23e0e0e0'/><rect x='0' y='10' width='8' height='4' fill='%23e0e0e0'/><rect x='16' y='10' width='8' height='4' fill='%23e0e0e0'/><rect x='10' y='10' width='4' height='4' fill='%23cf142b'/></svg>") 12 12, auto;
}

a, button, .screenshot-item.glass, .lightbox-close {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'><rect x='10' y='0' width='4' height='8' fill='%23ffb020'/><rect x='10' y='16' width='4' height='8' fill='%23ffb020'/><rect x='0' y='10' width='8' height='4' fill='%23ffb020'/><rect x='16' y='10' width='8' height='4' fill='%23ffb020'/><rect x='10' y='10' width='4' height='4' fill='%23cf142b'/></svg>") 12 12, pointer !important;
}

/* Cinematic Vignette Overlay */
#vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(8, 8, 10, 0.95) 100%);
  z-index: 10;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Typography */
h1, h2, h3, .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
}

h2.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent-amber);
  text-shadow: 0 0 15px var(--accent-amber-glow);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0) 100%);
  backdrop-filter: blur(2px);
}

.logo {
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-amber);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: url('./hero_bg.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(8,8,10,0.4) 0%, var(--bg-deep-black) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.demo-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  background: rgba(207, 20, 43, 0.1);
  padding: 0.4rem 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(207, 20, 43, 0.2);
  text-shadow: 0 0 5px rgba(207, 20, 43, 0.5);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { opacity: 0.85; box-shadow: 0 0 10px rgba(207, 20, 43, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(207, 20, 43, 0.4); border-color: #ff1c36; color: #ff1c36; }
  100% { opacity: 0.85; box-shadow: 0 0 10px rgba(207, 20, 43, 0.2); }
}

.game-title {
  font-size: 5rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(255, 176, 32, 0.6);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.tagline {
  font-size: 1.2rem;
  color: #bbb;
  margin-bottom: 2.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Buttons */
.cta-btn {
  background: transparent;
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--accent-amber);
  color: var(--bg-deep-black);
  box-shadow: 0 0 25px var(--accent-amber-glow);
}

.social-btn {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0 0.5rem;
  display: inline-block;
  text-decoration: none;
}

.social-btn:hover {
  background: #ff1c36;
  box-shadow: 0 0 15px var(--accent-red-glow);
}

.social-btn.outline {
  background: transparent;
  border: 1px solid var(--text-main);
  color: var(--text-main);
}
.social-btn.outline:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}

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

/* Lore Section */
.lore-section {
  background-color: var(--bg-deep-black);
  position: relative;
  z-index: 2;
}

.lore-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #a0a0a0;
}

.lore-content p {
  margin-bottom: 1.5rem;
}

/* Duality Section */
.duality-split {
  display: flex;
  min-height: 60vh;
}

.duality-pane {
  flex: 1;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease;
}

.duality-pane:hover {
  transform: scale(1.02);
}

.duality-icon {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.duality-svg {
  width: 90px;
  height: 90px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sun-svg circle:nth-of-type(2) {
  filter: drop-shadow(0 0 6px var(--accent-amber));
}

.moon-svg circle:nth-of-type(2) {
  filter: drop-shadow(0 0 8px var(--accent-red));
}

/* Sun spin animation for rays */
.sun-rays {
  transform-origin: 50px 50px;
  animation: sun-spin 25s linear infinite;
}

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

/* Moon float animation for body */
.moon-body {
  transform-origin: 50px 50px;
  animation: moon-float 4s ease-in-out infinite;
}

@keyframes moon-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.above-pane:hover .sun-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px var(--accent-amber-glow));
}

.below-pane:hover .moon-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 20px var(--accent-red-glow));
}

.above-pane {
  background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(255, 176, 32, 0.05) 100%);
  border-right: 1px solid rgba(255, 176, 32, 0.1);
}

.below-pane {
  background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(207, 20, 43, 0.05) 100%);
}

.duality-pane h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.above-pane h3 {
  color: var(--accent-amber);
}

.below-pane h3 {
  color: var(--accent-red);
}

.duality-pane p {
  max-width: 400px;
  color: #999;
}

/* Features */
.features-section {
  background-color: var(--bg-darker);
  position: relative;
  z-index: 2;
}

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

.feature-card.glass {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card.glass:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 176, 32, 0.1);
  border-color: rgba(255, 176, 32, 0.3);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 8px rgba(255, 176, 32, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-card.glass:hover .feature-icon-svg {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 0 12px rgba(255, 176, 32, 0.4));
}

.feature-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #aaa;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: #050506;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

footer p {
  color: #777;
  margin-bottom: 2rem;
}

.footer-cta {
  margin-bottom: 3rem;
}

.copyright {
  font-size: 0.8rem;
  color: #555;
}

/* Animations */
.fade-in {
  animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .game-title { font-size: 3.5rem; }
  .duality-split { flex-direction: column; }
  .above-pane { border-right: none; border-bottom: 1px solid rgba(255, 176, 32, 0.1); }
  nav { flex-direction: column; padding: 1rem; }
  .nav-links { margin-top: 1rem; }
  .nav-links a { margin: 0 1rem; }
}


/* Screenshots Gallery Section */
.screenshots-section {
  background-color: var(--bg-deep-black);
  position: relative;
  z-index: 2;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.screenshot-item.glass {
  background: rgba(20, 20, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-item.glass:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-amber);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px var(--accent-amber-glow);
}

.screenshot-item.glass:hover img {
  transform: scale(1.06);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 35px var(--accent-amber-glow);
  border-radius: 6px;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 2rem;
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  color: #777;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0.4rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--accent-amber);
}

.lang-separator {
  color: #444;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 1rem;
  }
}
