:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121215;
  --bg-tertiary: #1a1a20;
  --accent-red: #ff3333;
  --accent-orange: #ff6b00;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --font-main: 'Rajdhani', sans-serif;
  --font-heading: 'Teko', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 51, 51, 0.2);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo img {
  background-color: white;
  border-radius: 20%;
}



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

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(rgba(10,10,12,0.7), rgba(10,10,12,0.9)), url('images/dead_sector.png') center/cover;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-title {
  font-size: 6rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255,51,51,0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-red);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-red);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  box-shadow: 0 0 20px rgba(255,51,51,0.5);
}

/* Game Sections */
.game-section {
  padding: 60px 2rem;
  display: flex;
  align-items: center;
}

.game-section:nth-child(even) {
  background: var(--bg-secondary);
}

.game-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.game-section.reverse .game-container {
  grid-template-columns: 1fr 1fr;
}

.game-image {
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.game-image:hover {
  transform: scale(1.02) translateY(-10px);
  box-shadow: 0 30px 60px rgba(255,51,51,0.2);
  border-color: rgba(255,51,51,0.5);
}

.game-info {
  padding: 2rem;
}

.game-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.game-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  background: var(--bg-tertiary);
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Advanced Staggered Scroll Animations */
.hero-title, .hero-subtitle, .hero .btn,
.game-title, .game-desc, .game-container .btn,
.game-image {
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeftFade {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideRightFade {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Hero Animations */
.hero.is-visible .hero-title {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero.is-visible .hero-subtitle {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero.is-visible .btn {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Game Section Text Animations */
.game-section.is-visible .game-title {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.game-section.is-visible .game-desc {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.game-section.is-visible .btn {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Image Animations (Alternate sides) */
.game-section.is-visible .game-image {
  animation: slideLeftFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.game-section.reverse.is-visible .game-image {
  animation: slideRightFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Enhanced Hover Effect */
.game-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, filter 0.5s ease !important;
}
.game-image:hover {
  transform: scale(1.03) translateY(-10px) !important;
  box-shadow: 0 30px 60px rgba(255, 51, 51, 0.3) !important;
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
  .game-container {
    gap: 2rem;
  }
}

@media (max-width: 968px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    gap: 1.5rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 1rem;
  }

  .game-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .game-container > div:not(.game-info) {
    order: -1;
  }

  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .game-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .game-title {
    font-size: 2.8rem;
  }
  
  .game-desc {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
  }
  
  .game-section {
    padding: 40px 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .game-title {
    font-size: 2.2rem;
  }
  
  .game-desc {
    font-size: 1rem;
  }

  .logo {
    font-size: 2rem;
  }
  
  .logo img {
    height: 28px !important;
  }
}
