:root {
  /* Paleta de Cores Modern Dark */
  --bg-dark: #050505;
  --bg-card: #0f0f0f;
  --primary: #8c52ff; /* Roxo vibrante */
  --primary-hover: #6c5ce7;
  --accent: #00f2ff; /* Ciano Neon */
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Fontes */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Efeitos de Fundo --- */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  pointer-events: none;
}

.background-glow {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(140, 82, 255, 0.15) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* --- Tipografia e Utilitários --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.dot {
  color: var(--primary);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.3s;
  font-size: 0.95rem;
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.badge {
  background: rgba(140, 82, 255, 0.2);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(140, 82, 255, 0.3);
}

.glitch-title {
  font-size: 4rem;
  line-height: 1.1;
  margin: 1.5rem 0;
  font-weight: 800;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(140, 82, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--primary-hover);
  box-shadow: 0 6px 25px rgba(140, 82, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Visual (O cartão flutuante) */
.floating-card {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--border-color);
  width: 300px;
  height: 400px;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.icon-float {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(140, 82, 255, 0.5));
}

.code-decoration span {
  display: block;
  font-family: monospace;
  color: var(--accent);
  opacity: 0.7;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

/* --- Games Section --- */
.games-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.game-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: 0.4s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: top;
  position: relative;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-content {
  padding: 1.8rem;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  height: 60px; /* Alinha os botões */
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-outline {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-body);
  font-weight: 600;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-link {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: 0.3s;
}

.icon-link:hover {
  color: #3ddc84; /* Android Green */
}

/* --- About Section --- */
.about-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 1));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.features-list li {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li i {
  color: var(--primary);
}

.stats-container {
  display: flex;
  gap: 2rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: #000;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 2rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.legal-links-row a {
  color: #666;
  text-decoration: none;
  margin-left: 20px;
  transition: 0.3s;
}

.legal-links-row a:hover {
  color: var(--primary);
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-blur-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #161616;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  position: relative;
  z-index: 2001;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 50px rgba(140, 82, 255, 0.2);
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.close-modal:hover {
  color: white;
}

/* Animação de Scroll */
.hidden-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.show-element {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
.hamburger {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-container,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding-top: 100px;
    align-items: flex-start;
  }

  .glitch-title {
    font-size: 2.5rem;
  }

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

  .floating-card {
    display: none; /* Esconde o cartão 3D no mobile para poupar espaço */
  }

  .nav-links {
    display: none; /* Implementar menu mobile JS se necessário, ou usar display flex com classe active */
  }

  .hamburger {
    display: block;
  }

  .footer-top,
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .legal-links-row a {
    margin: 0 10px;
  }
}
/* =========================================
   ESTILOS PARA PÁGINAS LEGAIS (Política e Termos)
   ========================================= */

.legal-header {
  padding: 140px 0 60px; /* Espaço para não ficar atrás da navbar */
  text-align: center;
  background: radial-gradient(
    circle at center top,
    rgba(140, 82, 255, 0.15),
    transparent 70%
  );
  border-bottom: 1px solid var(--border-color);
}

.legal-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: monospace;
  opacity: 0.8;
}

.legal-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 20px;
}

.legal-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.legal-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
}

.legal-content h3 {
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content strong {
  color: var(--text-main);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

.legal-content a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Ajuste Mobile para texto legal */
@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 1.5rem;
  }
}

/* --- Botão Google Play Menor --- */
.btn-small {
  padding: 8px 16px !important; /* Mais compacto */
  font-size: 0.85rem !important;
  height: fit-content;
}

/* --- Estilo do Carrossel de Imagens --- */
.carousel-container {
  position: relative;
  width: 100%;
  height: 300px; /* Altura do carrossel */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  display: none; /* Esconde todas por padrão */
}

.carousel-slide.active {
  display: block;
  animation: fadeEffect 0.5s;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(140, 82, 255, 0.8); /* Cor primária */
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
