:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --accent: #1a5fff;
  --accent-glow: rgba(26, 95, 255, 0.4);
  --accent-glow-strong: rgba(26, 95, 255, 0.6);
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --font-main: 'Space Grotesk', sans-serif;
  --nav-height: 70px;
  --max-width: 1200px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}


.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -0.02em;
}

h1, h2, h3 {
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

/* Screen-reader-only utility (SEO / accessibility) */
.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;
}

.text-secondary {
  color: var(--text-secondary);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition-speed) ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease infinite;
  cursor: pointer;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ── Games ── */
#games {
  background-color: var(--bg-secondary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  width: 100%;
}

.game-card {
  background: linear-gradient(145deg, #1a1a2e, #16162a);
  border: 1px solid rgba(26, 95, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  max-width: 480px;
  margin: 0 auto;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.game-card-artwork {
  height: 240px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a1a3e 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-artwork svg {
  width: 64px;
  height: 64px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.6;
}

.game-card-artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(26, 95, 255, 0.1);
  animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { box-shadow: inset 0 0 30px rgba(26, 95, 255, 0.05); }
  50% { box-shadow: inset 0 0 60px rgba(26, 95, 255, 0.12); }
}

.game-card-info {
  padding: 28px;
}

.game-card-info h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.game-card-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(26, 95, 255, 0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── About ── */
#about {
  background-color: var(--bg-primary);
}

.about-content {
  max-width: 720px;
  width: 100%;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.about-callout {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin-top: 40px;
  background: rgba(26, 95, 255, 0.05);
  border-radius: 0 8px 8px 0;
}

.about-callout p {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0;
}

/* ── Contact ── */
#contact {
  background-color: var(--bg-secondary);
}

#contact > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  text-align: center;
}

#contact a.email-link {
  color: var(--accent);
  transition: color var(--transition-speed) ease;
}

#contact a.email-link:hover {
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.social-links a:hover {
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: fill var(--transition-speed) ease;
}

.social-links a:hover svg {
  fill: var(--accent);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 28px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  section {
    padding: 100px 20px 60px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ── Mobile Navigation Drawer ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.2rem;
  }

  .navbar {
    padding: 0 24px;
  }

  .navbar-links.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 40px;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .game-card-artwork {
    height: 180px;
  }

  .game-card-info {
    padding: 20px;
  }

  .about-content {
    padding: 0;
  }

  .about-callout {
    padding: 16px 20px;
  }

  .social-links {
    gap: 20px;
  }

  .social-links a {
    width: 46px;
    height: 46px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
