html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(230, 229, 229);
  text-align: center;
  color: #d17b9a;
  margin: 0;
  padding: 0;
}

#text {
  height: 35px;
  font-family: "Work Sans", sans-serif;
  text-align: center;
  margin-top: 150px;
  font-size: 30px;
}

/* The navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  background-color: #d17b9a;
  position: fixed;
  top: 0;
  width: 100%;
  height: 40px;
  font-family: "Work Sans", sans-serif;
  color: rgb(230, 229, 229);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px;
  border-radius: 5px;
  transition: background 0.3s;
}

.navbar a:hover {
  background-color: #c86b8f;
}

.container {
  margin-left: -20px;
  margin-top: -100px;
}

#detail {
  font-size: 50px;
  font-family: "Work Sans", sans-serif;
  margin-bottom: -100px;
}

#description {
  font-size: 15px;
  font-family: "Work Sans", sans-serif;
  width: 600px;
  margin: 0 auto;
  text-align: center;
  color: black;
  margin-top: 10px;
}

#img {
  margin-top: 100px;
}

/* Cards e projetos */

.projects {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 100px;
}

.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  font-family: "Work Sans", sans-serif;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 280px; /* Ajuste o valor para garantir que o card caiba */
  max-width: 280px; /* Defina um valor fixo, se necessário */
  min-width: 250px; /* Defina um tamanho mínimo */
  height: 400px;
  box-sizing: border-box;
  padding: 16px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 10px; /* Ajuste as margens para garantir que o card não ultrapasse */
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 22px;
  color: #d17b9a;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-btn {
  display: inline-block;
  background-color: #d17b9a;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  align-self: flex-start;
  margin: 0 auto;
}

.card-btn:hover {
  background-color: #c86b8f;
}

/* Outros elementos */

#title2 {
  font-size: 30px;
  font-family: "Work Sans", sans-serif;
  margin-top: 100px;
  color: #d17b9a;
  margin-bottom: -20px;
  text-align: center;
}

#detail2 {
  font-size: 50px;
  font-family: "Work Sans", sans-serif;
  color: #d17b9a;
  text-align: center;
  margin-top: -20px;
}

.lang1 {
  font-size: 20px;
  font-family: "Work Sans", sans-serif;
  color: #000000;
  text-align: center;
  margin-top: -20px;
  text-decoration: underline;
}

#skills {
  font-family: "Work Sans", sans-serif;
  margin-top: 100px;
  color: #d17b9a;
  text-align: center;
}

#detail3 {
  font-size: 50px;
  font-family: "Work Sans", sans-serif;
  color: #d17b9a;
  text-align: center;
  margin-top: -40px;
}

.icon {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin: 10px;
  transition: transform 0.3s ease;
}

.iconsocial {
  display: inline-block;
  width: 50px;
  height: 50px;
  margin: 5px;
  margin-top: 40px;
}

.iconsocial:hover {
  transform: translateY(-5px);
}

.buttonfix a {
  display: inline-block;
  background-color: #d17b9a;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  align-self: flex-start;
  margin: 0 auto;
  font-family: work sans;
  text-decoration: none;
  margin-top: 10px;
}

.buttonfix a:hover {
  background-color: #c86b8f;
}

#detail4 {
  font-size: 50px;
  font-family: "Work Sans", sans-serif;
  color: #d17b9a;
  text-align: center;
  margin-top: -40px;
}

#title3 {
  font-family: "Work Sans", sans-serif;
  margin-top: 100px;
  color: #d17b9a;
  text-align: center;
}

#soon {
  font-family: "Work Sans", sans-serif;
  color: #020101;
  text-align: center;
  font-size: 15px;
}

.blog {
  height: 200px;
}

@media (max-width: 768px) {
  html {
    width: 100%;
  }

  body {
    width: 100%;
  }

  .itens-nav {
    display: none;
  }

  #text {
    padding: 30px;
  }

  #description {
    width: 90%;
  }

  .container {
    margin-left: 0;
    margin-top: 0;
  }
  
}