/* ============================================
   COLOR SYSTEM
   ============================================ */
:root {
  /* Backgrounds - Dark to Light */
  --bg-primary: #0a0e14;        /* Deepest - main background */
  --bg-secondary: #1a1f2e;      /* Cards, sections */
  --bg-tertiary: #252b3a;       /* Elevated elements */
  --bg-header: #151a25;         /* Header/footer */
  
  /* Navy Accents */
  --navy-dark: #0a2540;
  --navy-medium: #1a3a5c;
  --navy-light: #5b8db8;
  --navy-lighter: #7ba3c7;
  
  /* Neutral Grays */
  --gray-dark: #2a2f3a;
  --gray-medium: #3a3f4a;
  --gray-light: #6a6f7a;
  
  /* Accent Color - Warm Gold (complements navy) */
  --accent-primary: #d4af37;
  --accent-light: #e6c85a;
  --accent-dark: #b8941f;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #b0b0b0;
  
  /* Borders */
  --border-dark: rgba(255, 255, 255, .08);
  --border-medium: rgba(255, 255, 255, .12);
  --border-light: rgba(255, 255, 255, .2);
}

/* ============================================
   GENERAL STYLES
   ============================================ */
body,
html {
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, var(--bg-primary) 0%, #0f1419 100%);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.25rem 0;
  line-height: 1.7;
}

/* ============================================
   HEADER & FOOTER
   ============================================ */
header,
footer {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  padding: 1rem 2rem;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  backdrop-filter: blur(10px);
}

header {
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

footer {
  bottom: 0;
  text-align: center;
  border-top: 1px solid var(--border-dark);
  border-bottom: none;
  padding: 1rem 2rem;
}

footer p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: .9rem;
  letter-spacing: 0.02em;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: 80px;
  transition: opacity .3s ease;
}

.logo img:hover {
  opacity: .9;
}

.company-name {
  margin-left: .5rem;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: .5rem 0;
  transition: color .3s ease;
  letter-spacing: 0.01em;
}

.nav-menu a:hover {
  color: var(--accent-primary);
}

.nav-menu a.active {
  color: var(--accent-primary);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-primary);
  border-radius: 1px;
}

/* ============================================
   HEADER BUTTONS
   ============================================ */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color .3s;
}

.social-links a:hover {
  color: var(--accent-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.support-btn {
  position: relative;
  padding: .75rem 2rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  border: 1px solid var(--accent-light);
  border-radius: 6px;
  transition: all .25s ease;
  letter-spacing: 0.01em;
}

.support-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 6px 16px rgba(212, 175, 55, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: translateY(-1px);
  color: var(--bg-primary);
}

.support-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.careers-btn {
  position: relative;
  padding: .75rem 2rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  background: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  border: 1px solid var(--accent-light);
  border-radius: 6px;
  transition: all .25s ease;
  letter-spacing: 0.01em;
}

.careers-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 6px 16px rgba(212, 175, 55, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: translateY(-1px);
  color: var(--bg-primary);
}

.careers-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  margin-top: 140px;
  margin-bottom: 80px;
}

/* Main content with max-width for content pages */
main.content-page {
  max-width: 1200px;
  padding: 3rem 2rem;
  margin-right: auto;
  margin-left: auto;
}

/* ============================================
   GAME SECTION (Index Page)
   ============================================ */
.game-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  border: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Hide YouTube branding and UI elements */
.video-background iframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.game-content {
  position: relative;
  top: 50%;
  z-index: 1;
  box-sizing: border-box;
  max-width: 32%;
  padding: 3rem 2rem;
  margin: 0 auto;
  text-align: center;
  background: rgba(26, 31, 46, .85);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.game-logo {
  max-width: clamp(80px, 20vw, 300px);
  height: auto;
  margin-bottom: 1rem;
}

.game-content p {
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-links a img {
  height: 50px;
  transition: transform .3s;
}

.store-links a img:hover {
  transform: scale(1.05);
}

/* Mobile download links for game section */
.mobile-download-links {
  display: none;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-hero {
  padding: 4rem 3rem;
  margin-bottom: 4rem;
  text-align: center;
  background: var(--bg-secondary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
}

.about-hero h1 {
  margin: 0 0 1.5rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.about-hero .subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-content {
  display: grid;
  gap: 2.5rem;
}

.about-section {
  padding: 2.5rem;
  background: var(--bg-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  border-left-color: var(--accent-light);
}

.about-section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--accent-primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-section p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.stats-grid {
  display: grid;
  margin: 2rem 0;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  border-color: var(--accent-primary);
}

.stat-number {
  display: block;
  margin-bottom: .75rem;
  color: var(--accent-primary);
  font-size: 2.75rem;
  font-weight: 800;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.games-list {
  display: grid;
  margin: 1rem 0;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.game-item {
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
  border-color: var(--accent-primary);
}

.game-item h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.hiring-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-primary);
}

.hiring-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .1));
  animation: shimmer 4s infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Removed unused pulse animations for cleaner, more professional design */

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ============================================
   MOBILE STYLES
   ============================================ */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .header-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
  }

  .support-btn,
  .careers-btn {
    padding: .5rem .8rem;
    margin: 0;
    font-size: .9rem;
  }

  .social-links {
    margin: .5rem 0;
    font-size: 1.2rem;
  }

  header {
    padding: .5rem 1rem;
  }

  .company-name {
    margin-left: .3rem;
    font-size: 1.2rem;
  }

  main {
    padding: 1.5rem;
    margin-top: 200px;
  }

  .game-section {
    height: auto;
  }

  .video-background {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 50vh;
  }

  .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    aspect-ratio: 16 / 9;
  }

  .game-content {
    display: none;
  }

  .mobile-download-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-top: 4rem;
    text-align: center;
  }

  .mobile-download-links .game-logo-mobile {
    width: auto;
    height: 50px;
  }

  .mobile-download-links .store-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .mobile-download-links .store-links a img {
    height: 40px;
  }

  .about-hero {
    padding: 2rem 1rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-hero .subtitle {
    font-size: 1.1rem;
  }

  .about-section {
    padding: 1.5rem;
  }

  .stats-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   VERY SMALL SCREENS
   ============================================ */
@media screen and (max-width: 480px) {
  .support-btn,
  .careers-btn {
    padding: .5rem .8rem;
    font-size: .9rem;
  }

  .company-name {
    font-size: 1rem;
  }

  .mobile-download-links .game-logo-mobile {
    height: 35px;
    margin-right: .5rem;
  }

  .mobile-download-links .store-links a img {
    height: 35px;
  }

  .about-hero h1 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .games-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DESKTOP SPECIFIC
   ============================================ */
@media screen and (min-width: 769px) {
  .mobile-download-links {
    display: none;
  }
}

