:root {
  --background-color: #050505;
  --bg-card: #111111;
  --text-primary: #ffffff;
  --text-secondary: #e8e8e8;
  --borders: #333333;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
}

.start {
  text-align: center;
  margin-top: 50px;
}

.start h1 {
  font-size: 50px;
  color: var(--text-primary);
  font-family: "Playwrite AR Guides", cursive;
  margin-bottom: 1px;
}

.start p {
  margin-top: 0;
}

.barra nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 20px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--borders);
  margin-left: 2vw;
}

.nav-cards {
  display: flex;
  gap: 15px;
}

.nav-cards a {
  color: var(--text-primary);
  border: 1px solid var(--borders);
  background-color: var(--bg-card);
  border-radius: 5px;
  padding: 6px 12px;
  text-decoration: none;
}

.nav-cards a:hover {
  background-color: var(--text-primary);
  color: var(--background-color);
}

.left-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.left-nav .logo-text {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-left: 0px;
}

.about-me {
  margin-top: 50px;
  margin-left: 5vw;
}

.knowledge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 50px;
  margin-left: 5vw;
}

.knowledge-cards {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 15px;
  flex-wrap: wrap;
}

.knowledge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  width: 100px;
  background-color: var(--bg-card);
  border: 1px solid var(--borders);
  border-radius: 10px;
}

.knowledge-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0px;
}

.knowledge-card p {
  margin: 0;
  font-size: 20px;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 50px;
  margin-left: 5vw;
}

.projects-cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 15px;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 15px;
  width: 700px;
  background-color: var(--bg-card);
  border: 1px solid var(--borders);
  border-radius: 10px;
}

.project-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.project-card h4 {
  margin: 0;
  font-size: 20px;
}

.project-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 50px;
  margin-left: 5vw;
}
.contact-button {
  margin-top: 0px;
  color: var(--text-primary);
  border: 1px solid var(--borders);
  background-color: var(--bg-card);
  border-radius: 5px;
  padding: 6px 12px;
  text-decoration: none;
}

.contact-button:hover {
  background-color: var(--text-primary);
  color: var(--background-color);
}

.contact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.contact h2 {
  margin: 0;
  font-size: 20px;
}

.footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid var(--borders);
}


@media (max-width: 700px) {
  .barra nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 5%;
  }

  .left-nav {
    justify-content: center;
    gap: 8px;
  }

  .logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .left-nav .logo-text {
    font-size: 17px;
  }

  .nav-cards {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-cards a {
    padding: 9px 12px;
    font-size: 14px;
  }

  .start {
    margin: 35px 5% 0;
  }

  .start h1 {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .about-me,
  .knowledge,
  .projects,
  .contact {
    margin-left: 5%;
    margin-right: 5%;
  }

  .about-me {
    width: 90%;
    margin-top: 40px;
  }

  .knowledge,
  .projects,
  .contact {
    width: 90%;
    margin-top: 40px;
  }

  .about-me p,
  .contact p {
    font-size: 15px;
    line-height: 1.7;
  }

  .knowledge-cards {
    gap: 10px;
    width: 100%;
  }

  .knowledge-card {
    width: 115px;
    padding: 12px;
  }

  .knowledge-logo {
    width: 75px;
    height: 75px;
  }

  .knowledge-card p {
    font-size: 17px;
    text-align: center;
  }

  .projects-cards {
    width: 100%;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 14px;
  }

  .project-logo {
    width: 70px;
    height: 70px;
  }

  .project-card h4 {
    font-size: 18px;
  }

  .project-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .project-info {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact h2 {
    font-size: 20px;
  }

  .contact-button {
    padding: 10px 15px;
  }

  .footer {
    margin-top: 40px;
    padding: 20px 15px;
  }
}

@media (max-width: 400px) {
  .barra {
    padding-left: 12px;
    padding-right: 12px;
  }

  .left-nav .logo-text {
    font-size: 15px;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .nav-cards {
    gap: 6px;
  }

  .nav-cards a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .start {
    margin-top: 30px;
  }

  .start h1 {
    font-size: 29px;
  }

  .about-me,
  .knowledge,
  .projects,
  .contact {
    width: 90%;
    margin-top: 35px;
  }

  .knowledge-cards {
    gap: 10px;
  }

  .knowledge-card {
    width: calc(50% - 5px);
    padding: 10px;
  }

  .knowledge-logo {
    width: 65px;
    height: 65px;
  }

  .knowledge-card p {
    font-size: 15px;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .project-logo {
    width: 60px;
    height: 60px;
  }

  .project-card h4 {
    font-size: 17px;
  }

  .project-card p {
    font-size: 14px;
  }

  .contact-button {
    max-width: 100%;
  }
}
