/*
Theme Name: Bamix Games
Theme URI: https://bamix.games
Author: Bamix Games Studio
Author URI: https://bamix.games
Description: Custom dark neon theme for Bamix Games indie studio
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bamix-games
Tags: gaming, dark, custom, full-width, responsive
*/

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
  --bg-primary: #06060f;
  --bg-secondary: #0d0d1e;
  --bg-card: #10102a;
  --bg-card-hover: #16163a;
  --accent-cyan: #00e5ff;
  --accent-pink: #ff2d78;
  --accent-yellow: #ffe600;
  --accent-purple: #9b5de5;
  --text-primary: #eeeef8;
  --text-secondary: #9090b8;
  --text-muted: #5a5a80;
  --border: rgba(0, 229, 255, 0.12);
  --border-hover: rgba(0, 229, 255, 0.35);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.4);
  --glow-pink: 0 0 20px rgba(255, 45, 120, 0.4);
  --glow-yellow: 0 0 20px rgba(255, 230, 0, 0.4);
  --font-display: 'Orbitron', monospace;
  --font-heading: 'Exo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-secondary); line-height: 1.75; }
a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-pink); }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ==========================================
   NOISE TEXTURE OVERLAY
   ========================================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
  box-sizing: border-box;
  width: 100%;
}
/* WordPress admin bar compensation */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

#site-header.scrolled {
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 229, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* .site-logo base — moved to logo block below */

/* Logo — custom-logo-link is now INSIDE .site-logo div */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo a,
.site-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  line-height: 0 !important;
  text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
  height: 42px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent-cyan);
}

/* Nav Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
  transition: width var(--transition);
}

.primary-nav a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.primary-nav a:hover::after {
  width: calc(100% - 32px);
}

.primary-nav .has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  list-style: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.primary-nav .has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 4px);
}

.primary-nav .sub-menu a {
  display: block;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 220px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Grid lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Gradient blobs */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(155, 93, 229, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 229, 255, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(255, 45, 120, 0.06) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero h1 .line-accent {
  display: block;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 60%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 44px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  transform: translateY(-2px);
  box-shadow: var(--glow-pink);
}

/* Hero floating elements */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-20px); }
}

.hero-hexagon {
  width: 620px;
  height: 620px;
  opacity: 0.15;
  animation: spin 30s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================
   GAMES SECTION
   ========================================== */
.games-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--accent-cyan);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Game Cards */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  group: true;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.03), rgba(155,93,229,0.03));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
  pointer-events: none;
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), var(--glow-cyan);
  background: var(--bg-card-hover);
}

.game-card:hover::before { opacity: 1; }

.game-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.game-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

.game-card-body {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 45, 120, 0.1);
  border: 1px solid rgba(255, 45, 120, 0.2);
  color: var(--accent-pink);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.store-badges {
  display: flex;
  gap: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}

.store-badge:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.game-card:hover .card-arrow {
  background: var(--accent-cyan);
  color: #000;
  transform: rotate(45deg);
}

/* ==========================================
   ABOUT / STUDIO SECTION
   ========================================== */
.about-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; font-size: clamp(1.8rem, 3.5vw, 3rem); }

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.stat-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  transition: all var(--transition);
}

.stat-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.about-card-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transform: rotate(4deg) translate(12px, 12px);
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
  opacity: 0.2;
}

.about-card-main {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.about-card-main .studio-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  display: block;
}

.about-card-main h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-card-main p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.06);
  border-radius: 100px;
  padding: 12px 28px;
  margin-top: 28px;
  transition: all var(--transition);
}

.contact-email:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: var(--glow-cyan);
}

/* ==========================================
   FOOTER
   ========================================== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img,
.footer-logo .custom-logo,
.footer-logo figure img {
  height: 32px !important;
  width: auto !important;
}

.footer-nav {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition);
}

.footer-nav a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ==========================================
   GAME PAGE (individual game)
   ========================================== */
.game-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.game-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.game-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 93, 229, 0.2) 0%, transparent 70%),
    var(--bg-primary);
}

.game-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb span { color: var(--text-primary); }

.game-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.game-screenshots {
  padding: 80px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.screenshot-item:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
  box-shadow: var(--glow-cyan);
}

/* ==========================================
   GENERIC PAGE
   ========================================== */
.page-content {
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 760px;
  margin: 0 auto;
}

.page-content h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 40px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-content h2 {
  font-family: var(--font-heading);
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-content ul, .page-content ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-content li { margin-bottom: 8px; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 80px 0 0;
    background: rgba(6, 6, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    z-index: 999;
  }
  .primary-nav.open li { width: 100%; }
  .primary-nav.open a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
  }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 16px;
  }
  .nav-toggle { display: flex; }
  .games-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
