* {
  margin: 0;
  padding: 0;
  font-family: 'Ubuntu Mono', monospace;
  font-style: normal;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0.6rem;
  padding: 0.6rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: linear-gradient(
    to bottom left,
    #ada09442,
    #e4d3b9,
    #75716b
  );
}

/* Navbar */
.nav-container {
  max-width: 75rem;
  padding: 0.5rem 2.5rem;
  margin: auto;
  background-color: #fbf6f0;
  border-bottom: 0.5rem solid #c1b299;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  max-width: 6.25rem;
  height: 5rem;
  display: block;
  padding: 0.5rem 0;
}
.nav-logo img:hover {
  transform: translateY(-3px);
}
.Navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0;
}

.Navbar ul li a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  color: #1e1e1e;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.Navbar ul li a:hover {
  color: #6f7274;
  transform: translateY(-3px);
}

.Navbar ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.125rem;
  width: 0;
  height: 0.125rem;
  background-color: #6f7274;
  transition: width 0.3s ease;
}

.Navbar ul li a:hover::after {
  width: 100%;
}

/* Seções principais - estilo geral */
.section-container {
  border-bottom: 0.5rem solid #c1b299;
  border-right: 0.5rem solid #c1b299;
  max-width: 75rem;
  margin: 2rem auto;
  padding: 2.5rem;
  background-image: linear-gradient(to bottom, #fcf7f1, #fbf9f7c3);
  min-height: 18.75rem;
  border-radius: 0.75rem;
}

/* ===== ABOUT ===== */
#about {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.info {
  height: fit-content;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: column;
  align-items: center;
}
.info-text {
  flex: 1 1 18.75rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.title {
  height: fit-content;
}
.paragraph {
  margin-top: 1.5rem;
  width: 35.5rem;
  height: 13rem;
  align-items: center;
  justify-content: center;
  display: flex;
}
.bold {
  font-weight: 800;
  font-style: oblique;
}
.title-span {
  font-size: 3.5rem;
  font-weight: 600;
}
.info-text h1 {
  color: #1e1e1e;
  font-size: 2.5rem;
  font-weight: 800;
}
.info-text h2 {
  font-weight: 400;
  font-size: x-large;
}
.info-text p {
  word-spacing: 0.5rem;
  line-height: 1.8rem;
  color: #555;
  font-size: 1.5rem;
}
.image-div {
  width: 30rem;
}
.image {
  max-width: 100%;
  min-height: 6.25rem;
  border: 0.0625rem solid #c3b8b8;
  border-radius: 10rem;
}

.info-buttons {
  height: 5rem;
  width: 20rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0.5rem;
}

.btn1,
.btn2 {
  /* height: 2.8rem;
  width: 5.9rem;
  padding: 0.5rem;
  border: solid #ddd 0.0625rem;
  border-radius: 0.75rem; */
  display: inline-flex; /* ou inline-block */
  align-items: center;
  justify-content: center;
  height: 2.8rem;
  width: 7.5rem;
  padding: 0.5rem;
  border: solid #ddd 0.0625rem;
  border-radius: 0.75rem;
  text-decoration: none; /* remove o sublinhado do link */
  font-weight: 500;
  font-size: 0.95rem;
  color: #1e1e1e; /* cor do texto */
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn1 {
  background-color: #c1b299;
}
.btn2 {
  background-color: #fafafa;
}

.btn1:hover,
.btn2:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== EXPERIENCE ===== */
#experience {
  /* vazio, mas mantido */
}
.skill-sub {
  line-height: 1.2rem;
}
.experience-container {
  display: grid;
  grid-auto-flow: column;
  justify-items: center;
  gap: 1.5rem;
  margin: 1rem;
}

.experience-container .item {
  background-color: #fafafa;
  border: 0.0625rem solid #ddd;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.experience-container .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.item-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1e1e1e;
}

.enterprise {
  font-weight: 400;
  color: #555;
  font-size: 0.95rem;
  display: block;
  margin-top: 0.2rem;
}

.item-period {
  font-size: 0.85rem;
  color: #777;
  margin: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 0.0625rem dashed #e0e0e0;
  padding-bottom: 0.5rem;
}

.item-description p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.5rem 0 1rem 0;
  color: #333;
}

.item-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background-color: #e9ecef;
  padding: 0.2rem 0.8rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2c3e50;
}

/* ===== TECH ===== */
#tech-section {
  min-height: fit-content;
}
.tech-container {
  display: grid;
  grid-auto-flow: column;
  justify-items: stretch;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  background-color: #fafafa;
  border: 0.0625rem solid #ddd;
  border-radius: 0.75rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.tech-tag-container {
  border: solid;
  display: flex;
  margin-top: 1.8rem;
  line-height: 2.2rem;
  grid-template-columns: repeat(auto-fit);
}
.tech-item-title {
  padding-bottom: 1.5rem;
  border-bottom: 0.0625rem dashed #e0e0e0;
}
.tech-item .item-header {
  width: 10rem;
  padding: 1.5rem;
  border-right: 0.0925rem dashed #e0e0e0;
  line-height: 1.5rem;
}

.tech-item-tags {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  width: 15rem;
  flex-direction: row;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.tech-container .tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.tech-item .tag {
  margin: 0.6rem;
  padding: 0.3rem;
  background-color: #e9ecef;
  border-radius: 1.25rem;
  font-weight: 500;
  color: #2c3e50;
}
.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* ===== PROJECTS ===== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}

.project-item {
  background-color: #fafafa;
  border: 0.0625rem solid #e0e0e0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.6rem 1.25rem rgba(0, 0, 0, 0.06);
}

.project-thumbnail {
  height: 11.25rem;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8686;
  font-size: 0.9rem;
  border-bottom: 0.6rem solid #e0e0e0;
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  margin: 0 0 0.25rem 0;
}

.project-links {
  margin-bottom: 0.75rem;
}

.project-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 1rem;
}

.project-links a:hover {
  text-decoration: underline;
}

.project-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-stack .tag {
  background-color: #e9ecef;
  padding: 0.2rem 0.8rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2c3e50;
}

/* ===== CONTACTS ===== */
#contacts {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  background-color: #f6f3ee;
}
.contact-container {
  width: 100%;
  height: fit-content;
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #eee8e2;
}
.contact-item {
  width: 20rem;
  background-color: #ffffff;
  padding: 3rem 1rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid #e0e0e0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.contact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.2);
}
.contact-item h3 {
  color: #1e293b;
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.contact-item a {
  color: #1e61a4;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  word-break: break-word;
}
.contact-item a:hover {
  color: #0f3b66;
  text-decoration: underline;
}
#contacts h1 {
  color: #0f172a;
  margin-bottom: 0.25rem;
}

/* ===== FOOTER ===== */
.footer-credits {
  width: 100%;
  height: 5rem;
  align-items: center;
  justify-content: center;
  display: flex;
  color: #fafafa;
  background-color: #1e1e1e;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
  .info {
    display: grid;
    grid-auto-flow: row;
    justify-items: center;
    gap: 1.5rem;
  }
  .tech-container {
    display: flex;
    flex-wrap: wrap;
  }
  .contact-container {
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .nav-logo img {
    max-width: 4rem;
    height: auto;
  }
  .Navbar ul {
    gap: 1.5rem;
    justify-content: center;
  }
  .Navbar ul li a {
    font-size: 0.95rem;
  }
  /*section de about*/
  .info {
    display: flex;
    flex-direction: column;
  }
  .info-text {
    padding: 1.25rem;
    grid-column: auto;
    width: fit-content;
  }
  .paragraph {
    margin: 0.93rem;
     width: 100%;
    max-width: 100%;
    height: auto;
    padding: 1.8rem;
  }
  /*section de experiencia*/
  .experience-container {
    grid-auto-flow: row;
    justify-items: center;
  }
  /*section de tecnologias*/
  .tech-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    grid-auto-flow: row;
    justify-items: center;
  }
  .contact-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: center;
    gap: 1.5rem;
  }
  .projects-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }
}
@media (max-width: 425px) {
  .nav-container {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .nav-logo img {
    max-width: 4rem;
    height: auto;
  }
  .Navbar ul {
    gap: 1.5rem;
    justify-content: center;
  }
  .Navbar ul li a {
    font-size: 0.95rem;
  }
  .section-container {
    padding: 1.25rem;
    margin: 1rem auto;
    min-height: auto;
  }
  .info {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    width: 100%;
  }
  .info-text {
    align-items: center;
  }
  .image-div {
    width: 100%;
    max-width: 15rem;
  }
  .tech-item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  .projects-container {
    display: flex;
    flex-direction: column;
  }
  .contact-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
  }
}

@media (max-width: 375px) {
  .nav-container {
    flex-wrap: wrap;
  }
  .Navbar ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 1rem;
  }

  .experience-container {
    grid-auto-flow: row;
    gap: 1.5rem;
  }
  .item {
    padding: 0;
    border: solid 0.25rem;
    width: 100%;
  }
  .skills-container {
    grid-auto-flow: row;
    gap: 1.5rem;
  }
  .hard-skills {
  }
  /*projects*/
  .projects-container {
    display: flex;
    flex-direction: column;
  }
  .project-item {
  }
  /*contacts*/
  .contact-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.5rem;
  }
  .contact-item {
    width: 10rem;
  }
}
