
/* ==============================================
   # VARIÁVEIS E RESET
   ============================================== */
   :root {
    --primary-color: #00aaff;
    --secondary-color: #0077aa;
    --dark-color: #0a0a23;
    --light-color: #ffffff;
    --text-color: #111;
    --text-light: #e0e0e0;
    --bg-light: #f9f9f9;
    --hero-color: #e6f4ff;
  }
  
  * {
    margin: 0;
    padding: 0%;
    box-sizing:border-box;
   
  }
  
.h3{
   font-size:20pt; color:rgb(1, 1, 1); text-align: justify;
}
.str{
  color: #847310;
}

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* ==============================================
     # LAYOUT GLOBAL
     ============================================== */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
   /*display: flex;*/
  justify-content:flex-start;
  align-items:flex-start;
  }
  .prescontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
   /*display: flex;*/
  justify-content:flex-start;
  align-items:flex-start;
  }
  .header-controls {
    display:flex;
    flex-direction: row; /* Organiza os itens em uma linha (padrão) */
    align-items:center; /* Alinha os itens verticalmente ao centro */
    justify-content:space-between; /* Distribui o espaço entre os itens */
    /* Ou flex-direction: row-reverse; se quiser a foto primeiro no HTML e ela aparecer à direita */
 /* Empurra para a direita */
  }
  .tog-dark {
     display: flex;
     align-items: start;
      font-size: 2.0rem;
      background: none;
      border: none;
      color:var(--primary-color) ;
      cursor: pointer;
  }

  .flex {
    display: flex;
    justify-content:flex-end;
    align-items:normal;
  }
  
  .grid {
    display: grid;
    gap: 2rem;
  }
  
  .section {
    padding: 80px 20px;
  }
  
  .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
  }
  
  /* ==============================================
     # COMPONENTES
     ============================================== */
  /* Botões */
  .btn {
    display: inline-block;
    padding: 10px 100px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
 .btn:hover{
  background-color: var(--secondary-color);
 }
  .butt {
  display: block; /* Ocupa a largura disponível, útil para centralizar */
  text-decoration: none; /* Remove sublinhado do link */
  background-color: #2274e0; /* Cor de fundo (azul, por exemplo) */
  color: white; /* Cor do texto */
  padding: 10px; /* Espaçamento interno geral */
  border-radius: 25px; /* Cantos levemente arredondados */
  text-align: center; /* Centraliza o conteúdo (texto e imagem) */
  font-family: Arial, sans-serif; /* Fonte legível */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Transição para hover */

  /* --- Propriedades para o formato retangular do botão --- */
  width: 400px; /* Largura fixa do botão */
  height: 180px; /* Altura fixa do botão */
  overflow: hidden; /* Garante que nada saia dos limites do botão */
  position: relative; /* Necessário para posicionar o H1 e a imagem dentro */
  margin: 20px auto; /* Centraliza o botão na página */
}

.butt h1 {
  font-size: 1.5em; /* Tamanho do título */
  margin: 0; /* Remove margens padrão do h1 */
  position: absolute; /* Posiciona o h1 sobre a imagem */
  top: 10px; /* Distância do topo do botão */
  left: 0; /* Alinhado à esquerda */
  right: 0; /* Alinhado à direita */
  background-color: rgba(0, 0, 0, 0.6); /* Fundo semi-transparente para o texto */
  padding: 5px 0; /* Espaçamento interno do texto */
  color: white; /* Cor do texto */
  z-index: 2; /* Garante que o texto fique acima da imagem */
}

.butt img {
  /* --- Propriedades para ajustar a imagem dentro do botão --- */
  width: 100%; /* Imagem ocupa 100% da largura do botão */
  height: 100%; /* Imagem ocupa 100% da altura do botão */
  object-fit: cover; /* Recorta a imagem para preencher o espaço sem distorcer, mantendo a proporção */
  display: block; /* Remove espaço extra abaixo da imagem */
  position: absolute; /* Posiciona a imagem para preencher o botão */
  top: 0;
  left: 0;
  z-index: 1; /* Garante que a imagem fique abaixo do texto */
}

.butt:hover {
  background-color: #1bf856; /* Cor mais escura ao passar o mouse */
  transform: translateY(-2px); /* Efeito de "levantar" */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Sombra mais forte */
}

.butt:active {
  background-color: #004085; /* Cor ao clicar */
  transform: translateY(0); /* Volta à posição original */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra menor */
}
  
  .btn-filtro {
    background-color: #eee;
    color: #333;
    border: none;
    margin: 0 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .btn-filtro:hover{background-color: var(--secondary-color);}
  .btn-filtro.ativo {
    background-color: var(--secondary-color);
    color: white;
  }


  /* Cards */
  .card {
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
  }
  
  .card p {
    padding: 0 1rem 1rem;
    font-size: 1rem;
    color: #555;
  }
  
  /* Formulários */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  input, textarea {
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
  }
  
  /* ==============================================
     # SEÇÕES ESPECÍFICAS
     ============================================== */
  /* Header */
  header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position:relative;
    top: 0;
    z-index: 1000;
  }
.main-content{
  position: relative;
  top: 96px;
}
  /* Seu estilo de cabeçalho existente */
#main-header {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: fixed; /* O cabeçalho deve ser fixo para o efeito */
    width: 100%;
    top: 0; /* Começa no topo */
    left: 0;
    z-index: 1000; /* Garante que fique acima de outros elementos */
    transition: top 0.3s ease-in-out; /* Adiciona uma transição suave */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adiciona uma sombra sutil */
}

/* Classe para esconder o cabeçalho */
#main-header.hidden {
    top: -100px; /* Ou qualquer valor que o tire completamente da tela */
}
  
  .logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration:solid;
    padding-left: 0cm
    
    
  }
  
  .nav {
    display: flex;
      justify-content:flex-end;
    
  }

  .nav-links {
            list-style: none;
            display: flex;
            gap: 1.5rem;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-links a:hover {
            color: var(--primary-color);
        }
        
        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        .nav-links.active {
         
          
          background:var(--secondary-color);
          transition: width 0.3s ease;
        
    }
        
  /* Hero */
  .hero {
     background: linear-gradient(135deg, #e6f4ff 0%, #24a3f8 100%);
    text-align: center;
    padding: 100px 20px;
  }
  
  .hero h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
  }
  
  /* Sobre */
  /* Estrutura existente */
.sobre-section {
  background: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
}
.hero-content{
  display: flex;

}

.sobre-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.pres {position: relative;
}
.textpres{
 
  font-size: 2.4rem;
  position:absolute; 
  top: 265px;
  left: 132px;
  color:rgb(255, 255, 255); 
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px;
  width:300px;
  transition: opacity 0.3s ease;
  border-radius: 45%;
}
.textpres:hover{
color: #000;
box-shadow: #000;
}
.ppp-overlay {
  
  position: absolute;
  top: 0;
  left: 100px;
  width: 100%;
  height: 100%;
  background: rgba(0, 21, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}
.pres-overlay {
  position: absolute;
  top: 0;
  left: -100px;
  width: 100%;
  height: 100%;
  background: rgba(255, 251, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}


.foto-perfil-container {
  position: relative;
  width: 600px;
  height: 600px;
}

.foto-perfil-link {
  display: block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.foto-perfil {
  width: 80%;
  height: 455px;;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 50%;
  border: 10px solid #091f36;
}

.foto-perfil-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 170, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}


.overlay-text {
  color: white;
  font-weight: 600px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.sobre-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}
.foto-servico-link {
  display: block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.foto-servico {
  width: 80%;
  height: 455px;;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 50%;
  border: 10px solid #091f36;
}
/* Efeitos Hover */
.foto-perfil-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 170, 255, 0.2);
}

.foto-perfil-link:hover .foto-perfil {
  transform: scale(1.05);
}

.foto-perfil-link:hover .foto-perfil-overlay {
  opacity: 1;
}

.foto-servico-link:hover .pres-overlay {
  opacity: 1;
}
.foto-servico-link:hover .ppp-overlay {
  opacity: 1;
}
.foto-perfil-link:hover .overlay-text {
  transform: translateY(0);
}
.foto-servico-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 170, 255, 0.2);
}

.foto-servico-link:hover .foto-servico {
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
  .sobre-content {
    flex-direction: column;
    text-align: center;
  }
  
  .sobre-text {
    text-align: center;
    padding: 0 20px;
  }
  
  .foto-perfil-container {
    width: 250px;
    height: 250px;
  }
  .foto-perfil{
    width: auto;
    height: auto;
  }
  .foto-servico{
    width: auto;
    height: auto;
  }
  .hero-content{
    display:contents;
    justify-items: center;
   }
  .perfilpequeno{
    margin-top: 100px;
    justify-items: center;
  
  }
   .butt {
  width: 280px;
}

}

  * Estilos para a página de contato */
  .contato-section {
    padding: 80px 0;
  }
  
  .contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  
  .contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-input,
  .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
  }
  
  .form-textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .form-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
  }
  
  .btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
  }
  
  .contato-info {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .info-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
  }
  
  .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .info-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--primary-color);
  }
  
  .info-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .info-link:hover {
    color: var(--primary-color);
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
  }
  
  .social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
  }
  
  .social-link svg {
    width: 20px;
    height: 20px;
  }



  /* Projetos */
  .grid-projetos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .grid-serviço{
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
.grid-serviço {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 35px;
  margin-top: 10px;
}
  .projeto-serviço {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--dark-color);
    color: white;
    margin-top: 50px;
   height: 200px;
  }
  
  /* Estilos específicos para a página de projetos */
.projetos-section {
  padding: 80px 0;
  background: var(--secondary-color);
}

.projetos-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projeto-card {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.projeto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.projeto-meta {
  flex: 1;
}

.projeto-titulo {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.projeto-categoria {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.btn-detalhes {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}

.btn-detalhes:hover {
  background: rgba(0, 170, 255, 0.1);
}

.btn-icon {
  transition: transform 0.3s;
}

.btn-detalhes[aria-expanded="true"] .btn-icon {
  transform: rotate(180deg);
}

.projeto-conteudo {
  display: block; /* Mantém sempre block */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

[aria-expanded="true"] + .projeto-conteudo,
.projeto-conteudo:not([hidden]) {
  max-height: 2000px; /* Valor maior que o conteúdo */
}

.projeto-card.active .projeto-conteudo,
.projeto-conteudo[hidden="false"] {
  padding: 0 20px 20px;
  max-height: 2000px; /* Ajuste conforme necessário */
}

.projeto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 20px 0;
}

.projeto-imagem {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.projeto-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-titulo {
  font-size: 1.1rem;
  color: var(--dark-color);
}

.projeto-tech h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.tech-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tech-lista li {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.projeto-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.btn-link:hover {
  background: var(--secondary-color);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-ghost:hover {
  background: rgba(0, 170, 255, 0.1);
}

.projeto-detalhes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.projeto-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  min-width: 100px;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
}

.feature-lista {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.feature-lista li {
  margin-bottom: 8px;
}

/* Dark Mode */
body.dark-mode .projeto-card {
  background: #1e1e1e;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

body.dark-mode .projeto-categoria,
body.dark-mode .tech-lista li {
  background: #333;
  color: #dddddd;
}

body.dark-mode .projeto-detalhes {
  border-top-color: #333;
}

body.dark-mode .stat-item {
  background: #252525;
}

/* Estilos específicos para a página de galeria */
.galeria-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}
.body.dark-mode .galeria-section{
  background: #252525;
}

.filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.btn-filtro {
  padding: 10px 24px;
  border: none;
  border-radius: 30px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-filtro:hover {
  background: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-2px);
}

.btn-filtro.ativo {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}




.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover {
  transform: translateY(-5px);
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

.galeria-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.galeria-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}


/* Dark Mode */
body.dark-mode .projeto-card {
  background: #1e1e1e;
}

body.dark-mode .card-title {
  color: var(--text-light);
}

body.dark-mode .card-desc {
  color: #bbb;
}

body.dark-mode .section-title {
  color: #00aaff;
}

body.dark-mode .tag {
  background: #333;
  color: #ddd;
}


/* Lightbox Overrides */
.lb-data .lb-caption {
  font-size: 1rem;
  line-height: 1.4;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.9;
}

/* Dark Mode */
body.dark-mode .galeria-item {
  border: 1px solid #333;
}



/* Responsividade */
@media (max-width: 768px) {
  .grid-projetos {
    grid-template-columns: 1fr;
  }
  .grid-serviço{
    grid-template-columns: 1fr;
  }
  .filtros {
    margin-bottom: 30px;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .grid-galeria {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .grid-galeria {
    grid-template-columns: 1fr;
  }
   .grid-serviço{
    grid-template-columns: 1fr;
  }
  .galeria-overlay {
    transform: translateY(0);
    background: rgba(0,0,0,0.7);
  }
}

  /* ==============================================
     # COMPONENTES DE UI
     ============================================== */
  /* Botão Voltar ao Topo */
  #voltar-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
  }
  
  #voltar-topo:hover {
    background-color: var(--secondary-color);
  }
  
  /* Preloader */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
  }
  
  .loader {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    animation: pulse 1.5s infinite;
  }
  
  /* Animações */
  .animado {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-in-out;
  }
  
  .animado.visivel {
    opacity: 1;
    transform: translateY(0);
  }
  
  @keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
  }
  
  /* ==============================================
     # TEMA ESCURO
     ============================================== */
  body.dark-mode {
    background-color: #121212;
    color: var(--text-light);
  }
  
  body.dark-mode #main-header,
  body.dark-mode footer {
    background-color: #1f1f1f;
  }
  
  body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d2b3d 100%);
  }
  
  body.dark-mode .sobre,
  body.dark-mode .contato {
    background-color: #1e1e1e;
    color: #ddd;
  }
  
  body.dark-mode #voltar-topo {
    background-color: #444;
  }
  

  .menu-toggle {
     
      margin-left: auto;
      font-size: 2.0rem;
      background: none;
      border: none;
      color:var(--primary-color) ;
      cursor: pointer;
    }
     
      
       
  /* ==============================================
     # RESPONSIVIDADE
     ============================================== */
  @media (max-width: 768px) {
    /* Menu Mobile */
    .menu-toggle {
     
      margin-left: auto;
      font-size: 2.0rem;
      background: none;
      border: none;
      color:var(--primary-color) ;
      cursor: pointer;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: var(--dark-color);
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      padding: 1rem 0;
      text-align: center;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    /* Layout */
    .sobre-content,
    .sobre-section .conteudo {
      flex-direction: column;
      text-align: center;
    }
  
    /* Tipografia */
    body {
      font-size: 16px;
    }
  
    .hero h2 {
      font-size: 2rem;
    }
  
    .container {
      padding: 0 15px;
    }
    .h3{
   font-size: 15px; color:rgb(0, 0, 0); text-align: justify;
}
  }
  
  @media (max-width: 600px) {
    .grid-projetos {
      grid-template-columns: 1fr;
    }
  
    .hero {
      padding: 60px 15px;
    }
  
    .btn {
      width: 100%;
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    input, textarea, button {
      padding: 12px;
    }
  }

  /* Responsividade */
@media (max-width: 768px) {
  .contato-content {
    grid-template-columns: 1fr;
  }
}


/* Responsividade */
@media (max-width: 768px) {
  .projeto-grid {
    grid-template-columns: 1fr;
  }
  
  .projeto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .btn-detalhes {
    align-self: flex-end;
  }
  .h3{
   font-size: 15px; color:rgb(0, 0, 0); text-align: justify;
}
}

@media (max-width: 480px) {
  .projeto-links {
    flex-direction: column;
  }
  
  .projeto-stats {
    flex-wrap: wrap;
  }
  .h3{
   font-size: 10px; color:rgb(0, 0, 0); text-align: justify;
}
}

/* Layout dos Projetos */
.grid-projetos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 35px;
  margin-top: 30px;
}

.card {
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,170,255,0.15);
}

.card-img-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.tech-tag {
  background: rgba(2, 36, 54, 0.9);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.card-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-card {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration:none;
  transition: color 0.3s;
}

.btn-link:hover {
  color: var(--secondary-color);
  text-decoration:underline;
}

/* Responsividade */
@media (max-width: 768px) {
  .grid-projetos {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 30px auto;
  }
  
  .card-img-container {
    height: 300px;
  }
  .h3{
   font-size: 18pt; color:rgb(3, 3, 3); text-align: justify;
}
}

/* Dark Mode */
body.dark-mode .card {
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .card-content h3 {
  color: var(--text-light);
}

body.dark-mode .card-content p {
  color: #bbb;
}

.card.destaque {
  border: 2px solid var(--primary-color);
  position: relative;
}

.card.destaque::before {
  content: "Destaque";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  z-index: 2;
}










.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 12px;
  color: #777;
}

.field input {
  display: block;
  min-width: 250px;
  line-height: 1.5;
  font-size: 14px;
}



