/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
    ---principal: rgba(0, 39, 118, 0.605);
    ---primaria: rgba(0, 0, 30, 0.8);
    ---secundaria: rgba(8, 68, 128, 0.647);
    ---texto: rgb(66, 160, 189);
    ---destaque: rgba(14, 69, 197, 0.514);
    ---visitado: rgb(35, 118, 133);
    ---link: #a6d1f2;
}

body {
  font-family: 'Merriweather', serif;
  background-image: url('../img/ideia\(1\).jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(---texto);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho */
header {
  background-color: var(---primaria);
  padding: 20px;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

header h1 {
  margin-bottom: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li a {
  color: var(---link);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(---link);
}

/* Blocos */
.bloco {
  background-color: var(---principal);
  margin: 30px auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  text-align: center;
}

.bloco h2 {
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.bloco h3{
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.bloco p{
    font-family: 'Merriweather', serif;
}

/* Sobre mim */
.sobre-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.sobre-container img {
  width: 250px;
  height: 280px;
  border-radius: 25%;
  border: 3px solid var(---destaque);
  object-fit: cover;
}

.sobre-container p {
  max-width: 500px;
  line-height: 1.6;
  text-align: justify;
}

/* Projetos */
.projetos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.projeto {
  background-color: var(---primaria);
  padding: 20px;
  border-radius: 15px;
  width: 280px;
  transition: transform 0.3s;
  text-align: justify;
}

.projeto a{
  font-family: 'Playfair Display', serif;
  text-align: center;
  color: var(---texto);
}

.projeto:hover {
  transform: scale(1.05);
}

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

/* Links */
a {
  color: var(---link);
}

a:hover {
  color: var(---visitado);
}

/* Rodapé */
footer {
  background-color: var(---primaria);
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
}

/* Responsivo */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  .sobre-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6em;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .bloco {
    padding: 20px;
  }

  .sobre-container img {
    width: 150px;
    height: 150px;
  }
}