/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08080e;
  --bg-card:   #12121c;
  --bg-raised: #1a1a28;
  --border:    #2a2a3d;
  --text:      #e8e8f0;
  --muted:     #8888a0;
  --accent:    #ff3c00;
  --accent-hi: #ff6a3d;
  --glow:      rgba(255, 60, 0, 0.35);
  --radius:    12px;
  --nav-h:     84px;
  --font:      'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--muted); }
.lead { font-size: 1.15rem; color: #b0b0c8; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin-inline: auto; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, 92vw);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 52px;
}

.hero-logo {
  width: min(240px, 55vw);
  height: auto;
  margin-bottom: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .3s;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-hi);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 20px; font-size: .85rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,60,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(100,60,255,.08) 0%, transparent 50%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,60,0,.15);
  border: 1px solid rgba(255,60,0,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-hi);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero .lead { margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label { font-size: .85rem; color: var(--muted); }

/* ── Cards & Grid ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,60,0,.4);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.card-icon {
  width: 48px; height: 48px;
  background: rgba(255,60,0,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 8px; color: #fff; }

/* ── Game Cards ───────────────────────────────────────────── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.game-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 50%);
}

.thumb-snake  { background: linear-gradient(135deg, #1a0a00 0%, #3d1500 50%, #ff3c00 100%); }
.thumb-puzzle { background: linear-gradient(135deg, #0a0a2a 0%, #1a1a6a 50%, #6060ff 100%); }
.thumb-racing { background: linear-gradient(135deg, #0a1a0a 0%, #0a4a1a 50%, #00cc66 100%); }
.thumb-rpg    { background: linear-gradient(135deg, #1a0a1a 0%, #4a0a4a 50%, #cc00cc 100%); }
.thumb-casual { background: linear-gradient(135deg, #1a1a0a 0%, #4a4a0a 50%, #cccc00 100%); }
.thumb-steam { background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #66c0f4 100%); }

.game-info { padding: 20px; }
.game-info h3 { color: #fff; margin-bottom: 6px; }
.game-info p { font-size: .9rem; margin-bottom: 14px; }
.game-info .btn { margin-right: 8px; margin-top: 4px; }

.game-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.tag {
  padding: 3px 10px;
  background: var(--bg-raised);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag.live { color: #4ade80; border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.tag.soon { color: #facc15; border-color: rgba(250,204,21,.3); background: rgba(250,204,21,.08); }

/* ── About Page ───────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,60,0,.1) 0%, transparent 70%);
}

.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 600px; margin-inline: auto; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,60,0,.2) 0%, transparent 60%);
}

.about-visual img {
  width: min(75%, 320px);
  height: auto;
  position: relative;
  z-index: 1;
}

.timeline { list-style: none; }

.timeline li {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 15px; top: 32px; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline li:last-child::before { display: none; }

.timeline-year {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.timeline-body h4 { color: #fff; margin-bottom: 4px; }

.team-card { text-align: center; }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 14px;
}

.team-card h4 { color: #fff; margin-bottom: 4px; }
.team-card .role { font-size: .85rem; color: var(--accent-hi); margin-bottom: 8px; }

/* ── Portfolio Filters ────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255,60,0,.15);
  border-color: var(--accent);
  color: #fff;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { color: #fff; margin-bottom: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(255,60,0,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 { color: #fff; font-size: .9rem; margin-bottom: 2px; }
.contact-item p { font-size: .9rem; }

.social-links { display: flex; gap: 12px; margin-top: 28px; }

.social-link {
  width: 42px; height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: .2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255,60,0,.1);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success {
  display: none;
  padding: 16px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 8px;
  color: #4ade80;
  text-align: center;
  margin-top: 16px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(255,60,0,.15) 0%, rgba(100,60,255,.1) 100%);
  border: 1px solid rgba(255,60,0,.25);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}

.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 28px; max-width: 500px; margin-inline: auto; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { margin-top: 12px; font-size: .9rem; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--muted);
}

/* ── Game Detail Page ─────────────────────────────────────── */
.game-hero {
  padding: calc(var(--nav-h) + 40px) 0 60px;
  position: relative;
}

.game-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.game-hero-visual {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
}

.game-hero-visual .game-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
}

.screenshot-feature {
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-feature img {
  width: 100%;
  height: auto;
  display: block;
}
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.feature-list li::before { content: '▸'; color: var(--accent); flex-shrink: 0; }

.screenshot-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshot-placeholder {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 9/16;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ── Utilities ────────────────────────────────────────────── */
.bg-dark { background: var(--bg-card); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4, .footer-grid, .about-split,
  .contact-grid, .game-hero-inner, .grid-2 { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,14,.97);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle { display: block; }

  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px; }
}
