/* =============================================
   NAWIX GAMES — style.css
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --bg:           #0d0d0d;
  --bg-surface:   #141414;
  --bg-card:      #1a1a2e;
  --bg-footer:    #111111;
  --accent:       #7c3aed;
  --accent-hover: #a855f7;
  --accent-glow:  rgba(124, 58, 237, 0.45);
  --accent-light: rgba(124, 58, 237, 0.12);
  --text:         #f1f1f1;
  --text-muted:   #9ca3af;
  --white:        #ffffff;
  --border:       rgba(255, 255, 255, 0.07);
  --font-head:    'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --nav-h:        66px;
  --section-pad:  100px;
  --transition:   0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-heading h2 span {
  color: var(--accent);
}

.section-heading p {
  max-width: 560px;
  margin: 12px auto 0;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(124, 58, 237, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
    var(--bg);
  animation: heroGlow 8s ease-in-out infinite alternate;
  z-index: 0;
}

/* Dot grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
}

@keyframes heroGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1;   transform: scale(1.03); }
  100% { opacity: 0.8; transform: scale(1.01); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero > .container > .hero-content > p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-image-wrap {
  position: absolute;
  left: 28%;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 82%;
  max-width: 1080px;
  z-index: 1;
  opacity: 0.92;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(124,58,237,0.35));
}

/* CTA Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =============================================
   GAMES SECTION
   ============================================= */
.games {
  background: var(--bg-surface);
  position: relative;
}

.games::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  justify-content: center;
  gap: 28px;
}

/* Game Card */
.game-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.4);
}

.game-icon {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.game-card p {
  font-size: 0.93rem;
  margin-bottom: 20px;
  flex: 1;
}

.game-card .btn-group {
  justify-content: center;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transition: all var(--transition);
}

.btn-store:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-store svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background: var(--bg);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.about-text h2 span {
  color: var(--accent);
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background: var(--bg-surface);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  background: var(--accent-light);
  transition: all var(--transition);
  margin-bottom: 36px;
}

.contact-email:hover {
  background: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.contact-email svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  letter-spacing: 0.4px;
}

.contact-store-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.contact-store-btn svg {
  width: 18px;
  height: 18px;
}

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

.footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer a {
  color: var(--accent);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--accent-hover);
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  margin: 0 8px;
}

/* =============================================
   DOCUMENT PAGES (privacy.html / tos.html)
   ============================================= */
.doc-page {
  padding: 80px 0 100px;
}

.doc-content {
  max-width: 800px;
  margin: 0 auto;
}

.doc-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.doc-content .doc-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-content h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 24px 0 8px;
}

.doc-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.doc-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.doc-content ul li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.doc-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.doc-content a:hover {
  color: var(--accent-hover);
}

.doc-content .highlight-box {
  background: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.doc-content .highlight-box p {
  margin: 0;
  color: var(--text);
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px;
  }


  .hero-image-wrap {
    left: 18%;
    width: 88%;
    max-width: none;
    opacity: 0.35;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  :root {
    --section-pad: 56px;
    --nav-h:       60px;
  }

  .nav-logo img {
    height: 40px;
  }

  /* Hamburger menu */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 400px;
    padding: 20px 0 28px;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  .hero-image-wrap {
    display: none;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-content {
    text-align: center;
  }

  .btn-group {
    justify-content: center;
  }


  /* Contact */
  .contact-email {
    font-size: 1rem;
    padding: 12px 20px;
  }
}
