/* ===============================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   BASE
================================ */
body {
  font-family: 'Inter', sans-serif;
  color: #1A1A1A;
  background: #ffffff;
  line-height: 1.7;
  padding-top: 80px; /* navbar height approx */
}

/* ===============================
   NAVBAR
================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: #e5e5e5;
  padding: 18px 40px;
  border-bottom: 1px solid #eee;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.t1 { color: #E53935; }
.t2 { color: #1C1C1C; }

/* ===== DESKTOP NAV ===== */
.nav-links {
  list-style: none;
  display: flex;               /* ✅ desktop visible */
  gap: 30px;
  z-index: 2000;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #1A1A1A;
}

/* ===============================
   HAMBURGER (MOBILE)
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #1C1C1C;
  margin: 4px 0;
}

/* ===============================
   HERO
================================ */
.hero {
  background: #F6F8FB;
  padding: 140px 20px;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero span {
  color: #E53935;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: #5F6368;
  font-size: 18px;
}

.btn-primary {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 38px;
  background: #1C1C1C;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

/* ===============================
   SECTIONS
================================ */
.section {
  padding: 100px 20px;
}

.bg-light {
  background: #F6F8FB;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.center-text {
  max-width: 720px;
  margin: auto;
  text-align: center;
  color: #5F6368;
}

/* ===============================
   STATS
================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-top: 50px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  color: #1C1C1C;
}

.stat-box span {
  font-family: 'Montserrat', sans-serif;
  color: #5F6368;
}

/* ===============================
   GAMES GRID
================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.game-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  padding: 24px;
}

/* ===============================
   IMAGE FIX (NEVER CUT)
================================ */
.game-card img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  background: #f4f6f8;
  padding: 12px;
  display: block;
}

.project-hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #f4f6f8;
  padding: 16px;
  display: block;
  margin: 30px auto 0;
}

.game-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.game-card p {
  color: #5F6368;
}

.game-card a {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  font-weight: 600;
  color: #E53935;
}

/* ===============================
   PLATFORM CTA
================================ */
.platform-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}

.platform-cta a {
  width: 220px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #1C1C1C;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;

  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.platform-cta a:hover {
  background: #000000;
  transform: translateY(-2px);
}

/* ===============================
   FOOTER
================================ */
.footer {
  background: #1C1C1C;
  color: #cccccc;
  padding: 70px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer strong {
  color: #ffffff;
}

.footer a {
  color: #cccccc;
  text-decoration: none;
}

/* ===============================
   RESPONSIVE (MOBILE)
================================ */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 34px;
  }

  .hamburger {
    display: flex;
  }

  /* ===== MOBILE NAV ===== */
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;

    background: #ffffff;
    flex-direction: column;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid #eee;

    display: none;            /* ✅ hidden by default */
  }

  .nav-links.show {
    display: flex;            /* ✅ JS controlled */
  }

  .game-card img {
    max-height: 200px;
  }

  .project-hero-img {
    max-height: 300px;
  }

  .platform-cta {
    flex-direction: column;
    gap: 16px;
  }

  .platform-cta a {
    width: 100%;
    max-width: 280px;
  }
}
