/* ==========================================================================
   NovoJogo Landing Page - Dark Theme
   ========================================================================== */

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

/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --gold: #ffda33;
  --gold-dark: #c9a800;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --red: #cc3333;
  --blue: #3366cc;
  --purple: #9933cc;
  --green: #33b350;
  --amber: #cc9933;
  --grey: #666680;

  /* Typography */
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Effects */
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: var(--spacing-sm);
}

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

a:hover {
  color: var(--gold-dark);
}

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

ul {
  list-style: none;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.navbar-menu a {
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--gold);
  background: rgba(255, 218, 51, 0.1);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url('../img/hero_banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 26, 0.3) 0%,
    rgba(15, 15, 26, 0.7) 50%,
    rgba(15, 15, 26, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: var(--spacing-md);
}

.badge-alpha {
  display: inline-block;
  background: rgba(255, 218, 51, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: var(--spacing-sm);
  text-shadow:
    0 0 20px rgba(255, 218, 51, 0.5),
    0 0 40px rgba(255, 218, 51, 0.3),
    0 0 60px rgba(255, 218, 51, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.hero-tagline {
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  overflow: hidden;
  font-family: var(--font-heading);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:hover {
  background: var(--gold-dark);
  box-shadow: 0 0 30px rgba(255, 218, 51, 0.4);
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--gold);
}

.cta-btn.secondary:hover {
  background: rgba(255, 218, 51, 0.1);
  box-shadow: 0 0 20px rgba(255, 218, 51, 0.2);
}

/* Ember Particles */
.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  opacity: 0;
  animation: ember-float linear infinite;
  z-index: 2;
}

.ember:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.ember:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 2s; }
.ember:nth-child(3) { left: 40%; animation-duration: 12s; animation-delay: 4s; }
.ember:nth-child(4) { left: 60%; animation-duration: 9s; animation-delay: 1s; }
.ember:nth-child(5) { left: 75%; animation-duration: 11s; animation-delay: 3s; }
.ember:nth-child(6) { left: 90%; animation-duration: 13s; animation-delay: 5s; }

@keyframes ember-float {
  from {
    bottom: -10%;
    opacity: 1;
    transform: translateX(0);
  }
  to {
    bottom: 110%;
    opacity: 0;
    transform: translateX(50px);
  }
}

/* ==========================================================================
   Section Divider
   ========================================================================== */

.section-divider {
  height: 80px;
  background: var(--bg-card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  margin-top: -1px;
}

.section-divider.reverse {
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 100%);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

#features {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 218, 51, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 218, 51, 0.15);
  border-color: rgba(255, 218, 51, 0.3);
}

.feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-content {
  padding: var(--spacing-md);
}

.feature-content h3 {
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.feature-content p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Game Modes Section
   ========================================================================== */

#modes {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg);
}

.modes-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.mode-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 218, 51, 0.1);
  transition: var(--transition);
}

.mode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(255, 218, 51, 0.2);
  border-color: rgba(255, 218, 51, 0.4);
}

.mode-header {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.mode-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mode-card:hover .mode-image {
  transform: scale(1.05);
}

.mode-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.mode-content {
  padding: var(--spacing-md);
}

.mode-content h3 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.mode-content p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.mode-features {
  list-style: none;
}

.mode-features li {
  color: var(--text);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.mode-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* ==========================================================================
   Arsenal Section
   ========================================================================== */

#arsenal {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg-card);
}

.arsenal-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-sm);
}

.weapon-card {
  background: var(--bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  text-align: center;
  border: 1px solid rgba(255, 218, 51, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.weapon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 218, 51, 0.15);
  border-color: rgba(255, 218, 51, 0.3);
}

.weapon-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--spacing-sm);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.weapon-card h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.type-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.type-badge.melee { background: var(--red); color: white; }
.type-badge.bow { background: var(--green); color: white; }
.type-badge.pistol { background: var(--amber); color: white; }
.type-badge.smg { background: var(--blue); color: white; }
.type-badge.shotgun { background: var(--red); color: white; }
.type-badge.sniper { background: var(--purple); color: white; }
.type-badge.rifle { background: var(--green); color: white; }

.weapon-stats {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.weapon-card:hover .weapon-stats,
.weapon-card.touch-active .weapon-stats {
  opacity: 1;
  max-height: 200px;
}

.weapon-stats div {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 218, 51, 0.1);
}

.weapon-stats div:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Characters Section
   ========================================================================== */

#characters {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg);
}

.characters-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-sm);
}

.character-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border-left: 4px solid var(--gold);
  transition: var(--transition);
  position: relative;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 51, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: 0;
}

.character-card:hover::before {
  width: 300%;
  height: 300%;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 218, 51, 0.2);
}

.character-card:nth-child(2) { border-left-color: var(--blue); }
.character-card:nth-child(3) { border-left-color: var(--red); }
.character-card:nth-child(4) { border-left-color: var(--green); }
.character-card:nth-child(5) { border-left-color: var(--purple); }
.character-card:nth-child(6) { border-left-color: var(--amber); }

.character-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.character-content {
  padding: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.character-content h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.character-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Download Section
   ========================================================================== */

#download {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg-card);
  text-align: center;
}

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

.download-content h2 {
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.download-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.download-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.download-btn.windows {
  background: var(--blue);
  color: white;
}

.download-btn.windows:hover {
  background: #2952a8;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(51, 102, 204, 0.3);
}

.download-btn.linux {
  background: var(--amber);
  color: white;
}

.download-btn.linux:hover {
  background: #a87a28;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(204, 153, 51, 0.3);
}

.download-btn.android {
  background: #3ddc84;
  color: #0f0f1a;
}

.download-btn.android:hover {
  background: #2fbd6e;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(61, 220, 132, 0.3);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: #0a0a15;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

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

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .modes-container {
    grid-template-columns: 1fr;
  }

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

  .arsenal-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    transition: left 0.3s ease;
  }

  .nav-open .navbar-menu {
    left: 0;
  }

  .navbar-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-open .navbar-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-open .navbar-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .navbar-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

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

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

  .hero-cta {
    flex-direction: column;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 300px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .arsenal-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .weapon-icon {
    width: 80px;
    height: 80px;
  }

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

  .section-divider {
    height: 40px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .navbar,
  .navbar-toggle,
  .ember,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
