/* ============================================
   WOMBAT TECH — Black Theme
   ============================================ */

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

:root {
  --black: #000000;
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --bg-card: #111111;
  --bg-surface: #181818;
  --border: #1e1e1e;
  --border-hover: #2a2a2a;
  --teal: #00d4e8;
  --teal-dark: #00a8ba;
  --teal-glow: #00f0ff;
  --teal-dim: rgba(0, 212, 232, 0.08);
  --teal-border: rgba(0, 212, 232, 0.12);
  --white: #e4e4e7;
  --white-bright: #f4f4f5;
  --gray-100: #a1a1aa;
  --gray-200: #71717a;
  --gray-400: #52525b;
  --gray-600: #3f3f46;
  --gold: #fbbf24;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-py: 80px;
  --max-w: 1080px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--teal-glow); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Section Title --- */
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--white-bright);
  letter-spacing: -0.02em;
}

.section__title span { color: var(--teal); }

.section__subtitle {
  text-align: center;
  color: var(--gray-100);
  font-size: 0.95rem;
  max-width: 520px;
  margin: -32px auto 48px;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
}

.btn--primary { background: var(--teal); color: var(--black); }
.btn--primary:hover {
  background: var(--teal-glow); color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 232, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal-border);
}
.btn--ghost:hover {
  background: var(--teal-dim);
  border-color: var(--teal);
}

.btn--lg { padding: 14px 36px; font-size: 1rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.nav.scrolled { background: rgba(0, 0, 0, 0.92); }

.nav__container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo-img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; }
.nav__logo-text {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--white-bright); letter-spacing: 0.02em;
}
.nav__logo-accent { color: var(--teal); }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; transition: all 0.3s var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__menu {
  list-style: none; position: fixed; top: 0; right: -100%;
  width: 260px; height: 100vh; background: var(--bg-card);
  padding: 80px 28px 28px;
  display: flex; flex-direction: column; gap: 4px;
  transition: right 0.35s var(--ease);
  border-left: 1px solid var(--border);
}
.nav__menu.open { right: 0; }

.nav__link {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 500;
  color: var(--gray-100); padding: 12px 0; display: block;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--teal); }

.nav__link--cta {
  color: var(--black); background: var(--teal);
  padding: 10px 20px; border-radius: 8px;
  text-align: center; margin-top: 8px;
}
.nav__link--cta:hover { background: var(--teal-glow); color: var(--black); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 40px;
  overflow: hidden; background: var(--black);
}

.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 212, 232, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.03) 0%, transparent 40%);
  z-index: 0;
  animation: heroBgShift 12s ease-in-out infinite alternate;
}

.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 212, 232, 0.15), transparent),
    radial-gradient(2px 2px at 80% 15%, rgba(251, 191, 36, 0.12), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(0, 212, 232, 0.1), transparent),
    radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(251, 191, 36, 0.08), transparent);
  animation: heroParticles 8s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes heroParticles {
  0% { opacity: 0.4; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-15px); }
}

.hero__content { position: relative; z-index: 1; animation: fadeInUp 1s var(--ease) both; }

.hero__logo {
  width: auto; height: auto;
  max-width: 320px;
  margin: 0 auto 32px;
  animation: float 6s ease-in-out infinite;
}

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

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--gray-100);
  font-weight: 300;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  animation: fadeInUp 1.2s var(--ease) 0.3s both;
}

.hero__cta {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: 1rem; padding: 14px 40px;
  background: var(--teal); color: var(--black); border-radius: 8px;
  transition: all 0.25s var(--ease);
}

.hero__cta:hover {
  background: var(--teal-glow); color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 212, 232, 0.3);
}

.hero__scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--gray-400); font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite; z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   GAMES
   ============================================ */
.games { padding: var(--section-py) 0; background: var(--bg-raised); }

.games__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.game-card {
  background: var(--bg-card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.game-card--featured { border-color: var(--teal-border); }
.game-card--featured:hover { box-shadow: 0 16px 48px rgba(0, 212, 232, 0.08); border-color: rgba(0, 212, 232, 0.25); }

.game-card__image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }

.game-card__poster {
  width: 100%; height: 100%; background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease);
}
.game-card:hover .game-card__poster { transform: scale(1.04); }

.game-card__poster--dw1943 {
  background: linear-gradient(135deg, rgba(8,8,15,0.65) 0%, rgba(18,18,31,0.60) 40%, rgba(26,26,48,0.65) 100%), url('../img/bg_dw1943.webp') center/cover no-repeat;
}
.game-card__poster--dw1943::after {
  content: 'DOPE WARS 1943'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700; color: rgba(251, 191, 36, 0.8); letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.game-card__poster--wildwest {
  background: linear-gradient(135deg, rgba(26,15,5,0.82) 0%, rgba(45,26,10,0.78) 40%, rgba(61,37,16,0.82) 100%), url('../img/bg_wildwest.webp') center/cover no-repeat;
}
.game-card__poster--wildwest::after {
  content: 'WILD WEST 1875'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700; color: rgba(217, 160, 80, 0.8); letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.game-card__poster--cureall {
  background: linear-gradient(135deg, rgba(10,21,16,0.82) 0%, rgba(18,32,24,0.78) 40%, rgba(26,48,32,0.82) 100%), url('../img/bg_cureall.webp') center/cover no-repeat;
}
.game-card__poster--cureall::after {
  content: 'CURE-ALL 1885'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700; color: rgba(100, 200, 120, 0.8); letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.game-card__poster--ffd {
  background: linear-gradient(135deg, rgba(26,10,30,0.82) 0%, rgba(45,10,42,0.78) 40%, rgba(69,10,32,0.82) 100%), url('../img/bg_ffd.webp') center/cover no-repeat;
}
.game-card__poster--ffd::after {
  content: 'FIVE FINGER DISCOUNT 1983'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700; color: rgba(255, 105, 180, 0.8); letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.game-card__badge {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-heading); font-size: 0.65rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; z-index: 2;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.game-card__badge--soon { background: var(--teal); color: var(--black); }
.game-card__badge--dev { background: var(--gray-400); color: var(--white); }

.game-card__info { padding: 18px; }

.game-card__title {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  margin-bottom: 2px; color: var(--white-bright);
}

.game-card__genre { font-size: 0.75rem; color: var(--teal); margin-bottom: 10px; font-weight: 500; }

.game-card__desc {
  font-size: 0.85rem; color: var(--gray-100); line-height: 1.6; margin-bottom: 14px;
}

.game-card__actions { display: flex; gap: 10px; }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: var(--section-py) 0; background: var(--black); }

.about__content { max-width: 780px; margin: 0 auto; }

.about__lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--gray-100); margin-bottom: 14px; line-height: 1.7;
}

.about__text p { color: var(--gray-200); margin-bottom: 14px; line-height: 1.7; font-size: 0.93rem; }
.about__text strong { color: var(--teal); font-weight: 600; }

.about__values { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }

.about__value {
  background: var(--bg-card); padding: 22px; border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}
.about__value:hover { border-color: var(--border-hover); }

.about__value-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-dim); color: var(--teal);
  border-radius: 8px; font-size: 1.1rem; margin-bottom: 10px;
}

.about__value h4 {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  margin-bottom: 4px; color: var(--white-bright);
}

.about__value p { font-size: 0.82rem; color: var(--gray-200); line-height: 1.5; margin-bottom: 0; }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: var(--section-py) 0; background: var(--bg-raised); text-align: center; }
.contact__content { max-width: 480px; margin: 0 auto; }
.contact__text { color: var(--gray-100); margin-bottom: 24px; font-size: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 28px 0; background: var(--black); border-top: 1px solid var(--border); }

.footer__content {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}

.footer__brand { display: flex; align-items: center; gap: 8px; }
.footer__logo { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; }
.footer__name { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--white); }
.footer__name-accent { color: var(--teal); }
.footer__copy { font-size: 0.75rem; color: var(--gray-400); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   TABLET (640px+)
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .games__grid { grid-template-columns: repeat(2, 1fr); }

  .game-card--featured {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .game-card--featured .game-card__image { aspect-ratio: auto; min-height: 240px; }
  .game-card--featured .game-card__info {
    display: flex; flex-direction: column; justify-content: center; padding: 28px;
  }

  .about__values { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   DESKTOP (900px+)
   ============================================ */
@media (min-width: 900px) {
  :root { --section-py: 100px; }

  .nav__toggle { display: none; }
  .nav__menu {
    position: static; width: auto; height: auto; background: transparent;
    padding: 0; flex-direction: row; align-items: center; gap: 4px; border: none;
  }
  .nav__link { padding: 8px 16px; font-size: 0.88rem; }
  .nav__link--cta { margin-top: 0; padding: 8px 20px; }

  .hero__logo { max-width: 420px; }

  .game-card--featured .game-card__info { padding: 36px; }
  .game-card__title { font-size: 1.3rem; }

  .footer__content { flex-direction: row; justify-content: space-between; }
}
