/* style.css */
:root {
  --cor-fundo: #1a2426; /* Fundo principal: escuro chique */
  --cor-destaque: #a67951; /* Destaque quente */
  --cor-clara: #f2dfce; /* Contraste suave */
  --cor-secundaria: #733917; /* Acentos e detalhes */
  --cor-texto: #f2f2f2; /* Textos claros */
  --cor-card: #111b21; /* Cor de fundo dos cards (Dev e Fotografia) */
}

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

body {
  background-color: var(--cor-fundo);
  font-family: "Inter", sans-serif;
  color: var(--cor-texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background-color: var(--cor-fundo);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--cor-secundaria);
}

header h1 {
  font-size: 1.8rem;
  color: var(--cor-clara);
}

/* NOVO: Estilo para o link no nome */
header h1 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

header h1 a:hover {
  color: var(--cor-destaque);
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.container {
  display: flex;
  flex: 1;
  padding: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.texto {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.texto h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--cor-clara);
}

.texto p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--cor-texto);
}

.botoes {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Estilos de Botões Genéricos */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 10px auto;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: var(--cor-texto);
}

/* Estilo para botões de portfólio específicos */
.btn-dev {
  background-color: var(--cor-destaque);
}

.btn-dev:hover {
  background-color: var(--cor-secundaria);
  color: var(--cor-clara);
}

.btn-foto {
  background-color: transparent;
  border: 2px solid var(--cor-clara);
}

.btn-foto:hover {
  background-color: var(--cor-clara);
  color: var(--cor-fundo);
}

/* Estilo para a grade de projetos */
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Estilo para os cards de projeto individuais */
.projeto-card,
.projeto-foto-card {
  background-color: var(--cor-card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  /* NOVO: Estilos para hover e cursor */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projeto-card h3 {
  color: var(--cor-destaque);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.projeto-card p {
  font-size: 1rem;
  color: var(--cor-texto);
  margin-bottom: 15px;
}

.tecnologias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tecnologias span {
  background-color: var(--cor-secundaria);
  color: var(--cor-clara);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

.botoes-projeto {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-projeto {
  flex-grow: 1;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: var(--cor-fundo);
  background-color: var(--cor-destaque);
  transition: transform 0.2s ease;
}

.btn-projeto:hover {
  transform: translateY(-3px);
}

.btn-secundario {
  background-color: transparent;
  border: 2px solid var(--cor-destaque);
  color: var(--cor-destaque);
}

.btn-secundario:hover {
  background-color: var(--cor-destaque);
  color: var(--cor-fundo);
}

/* Botão de contato dentro das seções de portfólio */
.btn-contato-portfolio {
  background-color: var(--cor-destaque);
  color: var(--cor-fundo);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  display: inline-block;
}

.btn-contato-portfolio:hover {
  background-color: var(--cor-secundaria);
  color: var(--cor-clara);
  transform: scale(1.05);
}

/* ===== IMAGEM ===== */
.imagem {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.imagem img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ===== SEÇÕES DE PORTFÓLIO ===== */
.portfolio-section,
.galeria-section {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.container-portfolio {
  max-width: 800px;
  width: 100%;
  padding: 40px;
  background-color: #2b303b;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.titulo-portfolio {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--cor-clara);
}

.portfolio-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  margin-top: 10px;
}

.btn-voltar {
  display: inline-block;
  color: var(--cor-destaque);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}

.btn-voltar:hover {
  transform: translateX(-5px);
}

/* Estilo para a capa dos álbuns de fotografia */
.capa-album {
  width: 100%;
  height: 400px; /* Altura fixa para garantir uniformidade */
  object-fit: cover; /* Recorta a imagem para preencher o espaço */
  border-radius: 8px;
  margin-bottom: 15px;
}

/* NOVO: Efeito de hover e cursor para os cards de fotografia */
.projeto-foto-card:hover {
  transform: scale(1.03); /* Animação de crescimento */
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Sombra mais destacada */
}

/* ===== GALERIA DE FOTOGRAFIA ===== */
.container-galeria {
  max-width: 1000px;
  width: 100%;
  padding: 20px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

.btn-voltar-galeria {
  color: var(--cor-destaque);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-voltar-galeria:hover {
  transform: translateX(-5px);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  border-top: 2px solid var(--cor-secundaria);
  font-size: 1rem;
}

.footer-content p {
  margin-bottom: 10px;
  font-weight: bold;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--cor-texto);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--cor-destaque);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVO: Telas até 768px (mobile e tablets) ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .texto {
    max-width: 100%;
  }

  .imagem {
    max-width: 100%;
  }

  .imagem img {
    width: 90%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
  }

  .texto h2 {
    font-size: 1.6rem;
  }

  .texto p {
    font-size: 1rem;
  }

  .botoes {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 80%;
    padding: 12px;
    font-size: 1rem;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
  }

  header h1 {
    font-size: 1.5rem;
  }

  /* Ajuste para o footer em telas menores */
  footer {
    font-size: 0.8rem;
    padding: 15px 10px;
  }

  .projetos-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .projeto-card {
    width: 100%;
    margin: 0 auto;
  }

  .botoes-projeto {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .btn-projeto {
    width: 100%;
    margin-bottom: 10px;
  }
}
