/* Estilos base */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

:root {
  --primary: #58a6ff;
  --secondary: #bc8cff;
  --success: #3fb950;
  --danger: #f85149;
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --border: #30363d;
}

/* Reset e Estilos Globais */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
}

/* Fundo com partículas */
.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%);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Cabeçalho */
.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;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Navegação */
.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;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.9;
}

.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-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-button {
  background: none;
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-button:hover {
  background: rgba(88, 166, 255, 0.1);
  color: var(--primary);
}

/* Botão de Idioma - Versão Corrigida */
.language-toggle-container {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.language-toggle {
  position: relative;
  display: flex;
  align-items: center;
  width: 100px;
  height: 36px;
  background-color: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  border-color: var(--primary);
}

.toggle-option {
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.toggle-option.active {
  color: var(--text-primary);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 44px;
  height: 28px;
  background-color: var(--primary);
  border-radius: 14px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.language-toggle.en .toggle-slider {
  transform: translateX(48px);
}

/* Seção de Contato */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

#contact-form {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  padding: 2rem;
  height: fit-content;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.cta-button {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  text-align: center;
}

.cta-button.primary {
  background-color: var(--primary);
  color: white;
  border: none;
  width: 100%;
}

.cta-button.primary:hover {
  background-color: #4091e2;
  transform: translateY(-2px);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* Cards de Informação */
.contact-info {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(1, 4, 9, 0.5);
  border-color: var(--primary);
}

.info-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Rodapé */
.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;
  color: var(--primary);
}

.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;
  color: var(--primary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  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;
  transition: background 0.2s;
}

#newsletter-form button:hover {
  background: #4091e2;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 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 #contact-form,
body.light-mode .info-card {
  background-color: rgba(255, 255, 255, 0.9);
}

body.light-mode .language-toggle {
  background-color: var(--bg-dark);
}

/* Responsividade */
@media (max-width: 992px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .gradient-text {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .gradient-text {
    font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .contact-section {
    padding: 1rem 0 2rem;
    gap: 2rem;
  }
  
  #contact-form, .info-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .gradient-text {
    font-size: 1.8rem;
  }
  
  .language-toggle {
    width: 80px;
    height: 32px;
  }
  
  .toggle-slider {
    width: 36px;
    height: 24px;
  }
  
  .language-toggle.en .toggle-slider {
    transform: translateX(40px);
  }
  
  .toggle-option {
    font-size: 0.8rem;
  }
}