:root {
  --primary: #58a6ff;
  --secondary: #bc8cff;
  --success: #3fb950;
  --danger: #f85149;
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border: #30363d;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Particles Background */
.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* Header Styles */
.dynamic-header {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
  font-weight: 800;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 2rem;
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Navigation */
.smart-nav {
  background-color: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a i {
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Botão de Idioma Minimalista */
.language-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.language-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 80px;
  height: 32px;
  background-color: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.toggle-option {
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 6px 0;
}

.toggle-option.active {
  color: var(--text-primary);
  font-weight: 700;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 26px;
  background-color: var(--primary);
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

.language-toggle.en .toggle-slider {
  transform: translateX(38px);
}

body.light-mode .language-toggle {
  background-color: var(--bg-dark);
}

body.light-mode .toggle-option.active {
  color: var(--text-primary);
}

.language-toggle:active .toggle-slider {
  transform: translateX(calc(38px * var(--is-en, 0))) scale(0.95);
}

.language-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Restante do seu CSS existente... */
.icon-button:hover {
  background: rgba(88, 166, 255, 0.1);
  color: var(--primary);
}

.search-bar {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  display: flex;
}

.search-bar.active {
  height: 60px;
  padding: 0.5rem 0;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button.primary {
  background-color: var(--primary);
  color: white;
}

.cta-button.secondary {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.cta-button:hover {
  transform: translateY(-2px);
}

.code-window {
  background: var(--bg-darker);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.window-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(1, 4, 9, 0.3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.title {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.code-content {
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1rem auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(1, 4, 9, 0.5);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Activity Section */
.activity-section {
  padding: 4rem 0;
}

.activity-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button.active {
  background: var(--primary);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Footer */
.smart-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-links h3, .footer-newsletter h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

#newsletter-form {
  display: flex;
  gap: 0.5rem;
}

#newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(1, 4, 9, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
}

#newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom i {
  color: var(--danger);
}

/* Estilos para o tema claro */
body.light-mode {
  --bg-dark: #f6f8fa;
  --bg-darker: #ffffff;
  --text-primary: #24292e;
  --text-secondary: #586069;
  --border: #e1e4e8;
  --primary: #0366d6;
  --secondary: #6f42c1;
}

body.light-mode .particles-background {
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
}

body.light-mode .smart-nav {
  background-color: rgba(246, 248, 250, 0.8);
}

body.light-mode .gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

body.light-mode .stat-box,
body.light-mode .feature-card,
body.light-mode .code-window {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .header-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .stat-box {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }

  /* Ajustes para o botão de idioma em mobile */
  .language-toggle {
    width: 70px;
    height: 28px;
  }
  
  .toggle-slider {
    width: 32px;
    height: 24px;
  }
  
  .language-toggle.en .toggle-slider {
    transform: translateX(32px);
  }
  
  .toggle-option {
    font-size: 0.65rem;
  }
}