:root {
  /* Cores modo claro */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-alt: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #1d4ed8;
  --border-color: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  /* Cores modo escuro */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-alt: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --accent-primary: #60a5fa;
  --accent-secondary: #3b82f6;
  --border-color: #475569;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 160px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Mostrar logo clara no tema claro */
.light-logo {
    opacity: 1;
}

.dark-logo {
    opacity: 0;
    position: absolute;
}

/* Mostrar logo escura no tema escuro */
[data-theme="dark"] .light-logo {
    opacity: 0;
}

[data-theme="dark"] .dark-logo {
    opacity: 1;
}

/* Responsividade para a logo */
@media (max-width: 768px) {
    .logo-img {
        height: 80px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }
}

/* Remover o estilo do h2 antigo */
.nav-logo h2 {
    display: none;
}
.nav-logo h2 {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-subtitle img {
  display: block;
  margin: 0 auto;
}
  text-align: center;
}

.hero-subtitle img {
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.feature-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Seções de Conteúdo */
.content-section {
  padding: 5rem 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.content-section.alt-bg {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Seção de Contato */
.contact-section {
  padding: 5rem 0;
  background: var(--bg-alt);
  text-align: center;
}

.contact-content {
  margin-top: 2rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-item a:hover {
  color: var(--accent-primary);
}

/* Estilos do Formulário de Contato */
.contact-content .major {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.contact-content form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
}

.contact-content form:hover {
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.field input,
.field textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field input:hover,
.field textarea:hover {
    border-color: var(--accent-secondary);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.actions {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.actions li {
    margin: 0;
}

.actions input[type="submit"] {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.actions input[type="submit"]:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.actions input[type="submit"]:active {
    transform: translateY(0);
}

/* Responsividade do formulário */
@media (max-width: 768px) {
    .contact-content form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-content .major {
        font-size: 1.5rem;
    }
    
    .actions input[type="submit"] {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-content form {
        padding: 1rem;
    }
    
    .field input,
    .field textarea {
        padding: 0.625rem 0.75rem;
    }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Botão flutuante para voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Toast Notifications */
.bootstrap-growl {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
}

.bootstrap-growl.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-left: 4px solid #28a745;
}

.bootstrap-growl .close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
}

.bootstrap-growl .close:hover {
    opacity: 1;
}

/* Adicionar após as regras existentes de responsividade */
@media (max-width: 768px) {
    .hero-subtitle img {
        width: 80px;
        height: auto;
        margin-top: 2rem; /* Adiciona margem superior de 2rem para mobile */
    }
}

@media (max-width: 480px) {
    .hero-subtitle img {
        width: 60px;
        height: auto;
    }
}