/* ==========================================================================
   AI WAZIR GAMES - STUDIO STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #080c10;
  --bg-secondary: #0f151c;
  --bg-card: rgba(18, 25, 34, 0.75);
  --bg-card-hover: rgba(26, 36, 49, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 230, 118, 0.3);

  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.4);
  --accent-cyan: #00e5ff;
  --accent-gold: #ffb300;
  --accent-red: #ff3d00;

  --text-primary: #f0f4f8;
  --text-secondary: #9aa8b8;
  --text-muted: #627282;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 230, 118, 0.25);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 230, 118, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(0, 229, 255, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 179, 0, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--accent-green-glow);
}

.brand-logo span span {
  color: var(--accent-green);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.nav-btn {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-green) !important;
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: var(--accent-green);
  color: #000 !important;
  box-shadow: var(--shadow-glow);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-green);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-text h1 .gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-green);
  color: #050b08;
  font-weight: 800;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-green-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.5);
  background: #00ff84;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: var(--transition-smooth);
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--border-glow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero-card-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(18, 25, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.hero-card-floating .icon-mini {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.hero-card-floating .floating-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-card-floating .floating-info p {
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin: 0;
}

/* ==========================================================================
   FEATURED STATS STRIP
   ========================================================================== */

.stats-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 21, 28, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff, var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   GAMES CATALOG SECTION
   ========================================================================== */

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head .sub-title {
  color: var(--accent-green);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.games-section {
  padding: 6rem 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 230, 118, 0.15);
}

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

.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-banner img {
  transform: scale(1.05);
}

.game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.game-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.game-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.game-title-meta h3 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.game-genre {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.game-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.game-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-store {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #fff;
  color: #0a0e14;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-store:hover {
  background: var(--accent-green);
  box-shadow: 0 4px 18px var(--accent-green-glow);
}

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

.coming-soon-card {
  border-style: dashed;
  background: rgba(18, 25, 34, 0.35);
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}

.coming-soon-card .pulse-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px var(--accent-green-glow);
}

/* ==========================================================================
   TERMS & LEGAL PAGE STYLING
   ========================================================================== */

.legal-page {
  padding: 4rem 0 6rem;
}

.legal-header {
  text-align: center;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.legal-header .meta-tag {
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
}

.legal-body section {
  margin-bottom: 2.5rem;
}

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

.legal-body h2 .sec-num {
  color: var(--accent-green);
  font-size: 1.1rem;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-box {
  background: rgba(0, 230, 118, 0.06);
  border-left: 4px solid var(--accent-green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.legal-box p {
  margin: 0;
  color: #e0f2e9;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background: #05080c;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-green);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-card {
    transform: none;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-card-floating {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.6rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .legal-body {
    padding: 1.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
