body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
}

header {
  background: #222;
  color: white;
  padding: 20px 0;
  font-size: 24px;
}

section {
  background: white;
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.container-perfil {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.foto-perfil img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 15px;
}

.container-destaque {
  perspective: 1000px;
  width: 100%;
  max-width: 600px;
  height: 160px;
  margin: 0 auto 20px;
  cursor: pointer;
}

.grade-projetos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.container-cartao {
  perspective: 1000px;
  height: 150px;
  cursor: pointer;
}

.cartao {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.cartao.virado {
  transform: rotateY(180deg);
}

.frente,
.verso {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.frente {
  background: #dfe6ee;
  color: #333;
}

.verso {
  background: #dfe6ee;
  transform: rotateY(180deg);
  text-align: center;
}

.frente h4 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.frente p {
  margin: 0;
  font-size: 1rem;
}

.descricao-projeto {
  font-size: 0.95rem;
  line-height: 1.4;
}

.verso a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  background: #dfe6ee;
  border-radius: 4px;
  transition: all 0.3s;
  display: inline-block;
  margin-top: 10px;
}

a:hover {
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.imagem-projeto {
  margin-top: 30px;
}

.imagem-projeto img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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