/* Seção de Projetos */
.secao-projetos {
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
}

.titulo-secao {
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitulo-secao {
  color: #ffffff;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: bold;
}

/* Grid de Projetos */
.grid-projetos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card do Projeto */
.card-projeto {
  background: var(--surface);
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-projeto:hover {
  transform: translateY(-6px);
  border-color: var(--accent-40);
  box-shadow: var(--shadow-md);
}

.card-projeto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card-projeto h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-projeto p {
  color: #999999;
  font-size: 0.9rem;
  line-height: 1.4;
}


/* Área Expandida do Projeto */
.projeto-expandido {
  display: none;
  background: var(--surface);
  border-radius: 15px;
  padding: 2rem;
  animation: expandir 0.3s ease;
}

@keyframes expandir {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-voltar {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.btn-voltar:hover {
  background: var(--accent);
  color: #ffffff;
}

.conteudo-projeto {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.conteudo-projeto img {
  width: 50%;
  border-radius: 15px;
  object-fit: cover;
}

.info-projeto {
  flex: 1;
}

.info-projeto h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-projeto p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tecnologias-projeto {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tecnologias-projeto span {
  background: var(--accent-20);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.botoes-projeto {
  display: flex;
  gap: 1rem;
}

.btn-projeto {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ver {
  background: var(--accent);
  color: #ffffff;
  border: none;
}

.btn-ver:hover {
  background: #4a4cb8;
}

.btn-linkedin {
  background: #0077b5;
  color: #ffffff;
  border: none;
}

.btn-linkedin:hover {
  background: #005885;
}

.btn-github {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-github:hover {
  background: #ffffff;
  color: var(--surface);
}

.btn-projeto-live {
  background: #10b981;
  color: #ffffff;
  border: none;
}

.btn-projeto-live:hover {
  background: #059669;
}

/* Responsivo */
@media (max-width: 900px) {
  .grid-projetos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .conteudo-projeto {
    flex-direction: column;
  }
  
  .conteudo-projeto img {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .grid-projetos {
    grid-template-columns: 1fr;
  }
}


/* Filtros de Projetos */
.filtros-projeto {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: #999999;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtro-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filtro-btn.ativo {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.card-projeto.hidden {
  display: none;
}

/* ===== CARROSSEL DE IMAGENS ===== */
.carrossel-container {
  position: relative;
  width: 50%;
  border-radius: 15px;
  overflow: hidden;
}

.carrossel-imagens {
  position: relative;
  width: 100%;
  height: 400px;
}

.carrossel-imagens .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 15px;
  background: #16181D;
}

.carrossel-imagens .slide.ativo {
  opacity: 1;
  z-index: 1;
}

/* Botões do carrossel */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 2;
  transition: background 0.3s ease;
  border-radius: 5px;
}

.carrossel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carrossel-btn.prev {
  left: 10px;
}

.carrossel-btn.next {
  right: 10px;
}

/* Indicadores do carrossel */
.carrossel-indicadores {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.indicador {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicador:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicador.ativo {
  background: var(--accent);
  width: 30px;
  border-radius: 5px;
}

/* Responsivo do carrossel */
@media (max-width: 900px) {
  .carrossel-container {
    width: 100%;
  }
  
  .carrossel-imagens {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .carrossel-imagens {
    height: 250px;
  }
  
  .carrossel-btn {
    padding: 0.7rem;
    font-size: 1.2rem;
  }
}
