@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  /* Colors */
  --primary-main: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  
  --secondary-main: #0f172a;
  --secondary-hover: #020617;
  --secondary-light: #1e293b;
  
  --bg-white: #ffffff;
  --bg-light-grey: #f8fafc;
  --bg-dark-section: #0f172a;
  --bg-form-section: #1e293b;
  
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-color-dark: rgba(255, 255, 255, 0.1);
  --error-color: #ef4444;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-fallback: Arial, Helvetica, sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --section-padding-y: 80px;
  --container-max-width: 1140px;
  --grid-gap: 24px;
  
  /* Layout Constants */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary), var(--font-fallback);
  background-color: var(--bg-white);
  color: var(--text-medium);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Classes */
h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-main);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

p.body-large {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-medium);
}

p.body-base {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-medium);
}

p.body-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
}

.badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-white {
  background-color: var(--bg-white);
}

.section-light {
  background-color: var(--bg-light-grey);
}

.section-dark {
  background-color: var(--bg-dark-section);
  color: var(--text-white);
}
.section-dark h2, .section-dark h3 {
  color: var(--text-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

/* Navigation Bar */
header {
  height: var(--header-height);
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-b: 1px solid var(--border-color-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  color: var(--text-white);
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #60a5fa;
  border-bottom-color: var(--primary-main);
}

.nav-contact-btn {
  display: inline-flex;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-contact-btn:hover {
  background-color: var(--text-white);
  color: var(--primary-main);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-white);
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Main content wrapper */
main {
  margin-top: var(--header-height);
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary-main);
  color: var(--text-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--text-white);
  color: var(--text-white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: var(--text-white);
  color: var(--primary-main);
  transform: translateY(-3px);
}

/* Standard Links */
.inline-link {
  color: var(--primary-main);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.inline-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Service Card (Layout Specific) */
.service-card-horizontal {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

/* Hero Banner */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  overflow: hidden;
  text-align: center;
  padding: 100px var(--spacing-md);
  background: radial-gradient(circle at center, var(--secondary-light) 0%, var(--secondary-main) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

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

.hero .tech-badge {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero p {
  margin-bottom: var(--spacing-xl);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Stats Section Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: var(--spacing-xl);
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-lg);
  border-radius: 12px;
  text-align: center;
}

.stat-val {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary-main);
  margin-bottom: var(--spacing-xs);
  line-height: 1;
}

.stat-lbl {
  font-size: 14px;
  color: var(--text-white);
  opacity: 0.8;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.section-dark .form-label {
  color: var(--text-white);
}

.form-input {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  width: 100%;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--text-dark);
}

.form-input:focus {
  border-color: var(--primary-main);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: var(--error-color);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Accordion FAQ */
.faq-accordion {
  border-top: 1px solid var(--border-color-dark);
  margin-top: var(--spacing-xl);
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--border-color-dark);
  padding: var(--spacing-md) 0;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-white);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.faq-item.expanded {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid var(--primary-main);
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
}

.faq-toggle-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.expanded .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  font-size: 15px;
  line-height: 1.6;
  margin-top: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
}

.faq-item.expanded .faq-body {
  max-height: 200px;
  opacity: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-white);
  border-radius: 16px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--text-white);
  transform: scale(1.1);
}

.modal-content-area {
  padding: var(--spacing-xl);
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.modal-title {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.modal-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-medium);
}

/* Game Card in Grid (specifically 2-column) */
.game-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.game-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.game-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.game-card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-main);
}

.game-card-title {
  margin-bottom: var(--spacing-sm);
  font-size: 22px;
  color: var(--text-dark);
}

.game-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-sm);
  margin-top: auto;
}

.rating-score {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

/* Footer Section */
footer {
  background-color: var(--bg-dark-section);
  color: var(--text-white);
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border-color-dark);
  position: relative;
}

.footer-watermark {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-main);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.footer-socials {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s, transform 0.3s;
}

.social-icon-link:hover {
  background: var(--primary-main);
  transform: translateY(-3px);
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid var(--border-color-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Floating Chat */
.floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-main);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background 0.3s, transform 0.3s;
}

.floating-chat-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.floating-chat-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--text-white);
}

/* Page Intro Header (Standard for inner pages) */
.page-intro {
  background: radial-gradient(circle at bottom left, var(--secondary-light) 0%, var(--secondary-main) 100%);
  padding: 80px 0 60px 0;
  color: var(--text-white);
  border-bottom: 1px solid var(--border-color-dark);
}

.page-intro h1 {
  margin-bottom: var(--spacing-sm);
}

.page-intro p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

/* Responsive Breakpoints & Media Queries */

/* Tablet (768px to 1199px) */
@media (max-width: 1199px) {
  h1 {
    font-size: 46px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 22px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  :root {
    --section-padding-y: 60px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.2;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }
  
  /* Navbar hamburger menu */
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--secondary-main);
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-md);
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--border-color-dark);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-contact-btn {
    display: none; /* inside menu we can place a nav link instead or hide */
  }
  
  /* Grids to 1 column */
  .grid-2, .grid-3, .grid-4, .game-reviews-grid, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .hero {
    min-height: 60vh;
    padding: 60px var(--spacing-md);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  /* Inner Pages intro styling */
  .page-intro {
    padding: 60px 0 40px 0;
  }
}
