:root {
  --frog-green: #6bd12f;
  --frog-green-dark: #4ea61f;
  --bg-dark: #0f1113;
  --bg-light: #1a1d21;
  --text: #e8f0e8;
  --text-dim: #aab3aa;
  --accent: #d1ff7a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--frog-green);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 19, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #222;
  z-index: 1001;
}

nav {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  color: var(--frog-green);
}

.logo img {
  max-height: 40px;
  height: auto;
}

.nav-links {
  display: flex;
  z-index: auto;
  border-left: 0;
}

.nav-links a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
  z-index: 1002;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--frog-green);
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;

    border-left: 1px solid #222;
    background: var(--bg-dark);
    flex-direction: column;
    padding-top: 5rem;

    /* Hidden state */
    transform: translateX(100%);
    transition: transform 0.20s ease;
    
    z-index: 1001;
  }
  
  .nav-links a {
    margin: 0;
    padding: 1rem 1.5rem;
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;

  z-index: 999;
}

.backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

section {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 1rem;
}

h1, h2 {
  margin-bottom: 1rem;
}

.hero {
  text-align: center;
  padding: 6rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--frog-green);
}

.hero p {
  color: var(--text-dim);
  margin: 1rem 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--frog-green);
  color: black;
  font-weight: bold;
  border-radius: 6px;
}

.btn:hover {
  background: var(--frog-green-dark);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.game-card {
  position: relative;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: flex-end;

  border: 1px solid #222;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 20%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.01) 100%
  );
}

.game-card {
  transition: transform 0.8s ease, box-shadow 0.8s ease, background-size 0.5s ease;
  background-size: 100%;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  background-size: 110%;
}

.game-content {
  position: relative;
  padding: 1rem;
  z-index: 1;
}

.game-content h3 {
  margin-bottom: 0.3rem;
}

.game-content p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.release-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  backdrop-filter: blur(4px);
}

.release-badge.released {
  background: var(--frog-green);
  color: black;
}

.release-badge.upcoming {
  background: #444;

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #222;
  color: var(--text-dim);
  font-size: 0.85rem;
}

html {
  scroll-behavior: smooth;
}