/* ==========================
   Configuração Global
   ========================== */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #802295;
  color: white;
}
a {
  text-decoration: none;
}
/* ==========================
     Navbar
     ========================== */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #fff;
  padding: 20px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #802295;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  gap: 0;
}

.navbar a {
  color: #802295;
  margin: 0 25px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #d222a8;
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: #d222a8;
}

.navbar a:hover::after {
  width: 100%;
}

/* modal*/

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background-color: white;
  padding: 20px;
  width: 50%;
  max-width: 500px;
  margin: 10% auto;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.modal-content h2 {
  color: #1F61A7;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Anton", serif;
  text-align: center;
  margin: 0%;
}

.modal-content h4{
  color: #2f2f2f;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 0%;

}

.modal-content p{
    color: #2f2f2f;

  
  }
.modal-content ul{
    color: #2f2f2f;
    font-family: "Montserrat", sans-serif;
  }

.modal-content a {
  padding: 0.4rem 1.5rem;
  cursor: pointer;
  border-width: 0.1px;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  background-color: #d222a8;
  color: white;
  border: solid white;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  text-decoration: none;
  text-align: center;
  white-space: nowrap; /* Impede que o texto quebre */
  overflow: hidden; /* Garante que o conteúdo não ultrapasse os limites */
  text-overflow: ellipsis; /* Adiciona "..." caso o texto seja muito grande */

}

.close {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2f2f2f;
}

.github-icon {
  width: 40px;
  margin-top: 10px;
}


/* ==========================
     Header
     ========================== */
.header {
  background-image: url("../assets/img/background.png");
  background-size: cover;
  background-position: center;
  padding: 60px 8%;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.profile-picture img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.info {
  text-align: left;
}

h1 {
  font-size: 2.8rem;
  font-weight: 600;
  font-family: "Anton", serif;
  margin: 0;
}

p {
  font-size: 1rem;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.buttons a {
  background-color: #d222a8;
  color: white;
  border: 1.5px solid white;
  padding: 10px 1.5rem;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: all 0.3s ease;
}

.buttons a:hover {
  background-color: #802295;
  transform: translateY(-2px);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.6);
}

.buttons a:last-child {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
}

/* ==========================
     Sobre Mim
     ========================== */
.sobre-mim {
  display: grid;
  grid-template-columns: 2fr 1fr;

  background-color: white;
  color: #2f2f2f;
  padding: 2.5rem 0px 0 0px;
}

.sobre-text {
  align-items: center;

  background-color: white;
  color: #2f2f2f;
  padding: 0px 2.5rem 0px 2.5rem;
}

.sobre-mim h2 {
  color: #1f61a7;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Anton", serif;
  margin: 0;
}

.sobre-paragrafo {
  padding-bottom: 2.5rem;
}

.sobre-mim p {
  text-align: justify;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
}

.sobre-mim img {
  max-width: 70%;
  height: auto;
  display: flex;
  margin-left: auto;
}
.sobre-img {
  display: flex;
  align-items: flex-end;
}

/* ==========================
     Projetos Acadêmicos
     ========================== */
.projetos-academicos {
  padding-left: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.projetos-academicos h2 {
  color: white;
  font-weight: 500;
  font-family: "Anton", serif;
  margin: 0%;
}

.projetos-conteudo {
  display: flex;
  flex-direction: row;
  gap: 6rem;
}

.projetos-conteudo-pessoal {
  display: flex;
  flex-direction: row;
  
}


.card {
  display: flex;
  flex-direction: row;
  padding: 1.5rem;
  align-items: center;
  gap: 3rem;
}

.card img {
  max-height: 200px;
}
.card .conteudo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card p {
  text-align: justify;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.card button {
  padding: 10px 1.5rem;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  background-color: #d222a8;
  color: white;
  border: 1.5px solid white;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.card button:hover {
  background-color: #802295;
  transform: translateY(-2px);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================
     Projetos Pessoais
     ========================== */

.projeto-pessoal {
  background-color: white;
  padding-left: 2.5rem;
  padding-top: 2.5rem;
}

.projeto-pessoal h2 {
  color: #1f61a7;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Anton", serif;
  margin: 0;
}
.projeto-pessoal p{
  color: #2f2f2f;
  margin-bottom: 1rem;
}

.botao-pessoal {
  padding: 10px 1.5rem;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  background-color: #d222a8;
  color: white;
  margin-top: 1rem;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid white;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.botao-pessoal:hover {
  background-color: #802295;
  transform: translateY(-2px);
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.6);
}
/* ==========================
     Elementos Gráficos
     ========================== */
.enfeite-projetos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* Garante centralização */
  gap: 2rem; /* Aumenta o espaçamento entre os enfeites */
}


.enfeite-projetos img {
  max-width: 10rem;
  /* Aumentado para 500px */
  height: auto;
  padding-left: 2rem;
}

/* ==========================
     Experiência Profissional
     ========================== */
.experiencia {
  background-color: white;
  padding: 2.5rem;
  color: #2f2f2f;
}

.experiencia h2 {
  color: #1f61a7;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Anton", serif;
  margin: 0 0 2rem 0;
}

.experiencia-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experiencia-item {
  padding-left: 1.5rem;
  border-left: 4px solid #d222a8;
  padding-bottom: 1.5rem;
}

.experiencia-header h3 {
  color: #1f61a7;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  font-family: "Montserrat", sans-serif;
}

.experiencia-item .empresa {
  color: #d222a8;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.experiencia-item .periodo {
  color: #666;
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.experiencia-item .descricao {
  color: #2f2f2f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.8rem 0;
  text-align: justify;
}

.experiencia-item .competencias {
  color: #666;
  font-size: 0.85rem;
  margin: 0.5rem 0 0 0;
}

/* ==========================
     Certificações
     ========================== */
.certificacoes {
  background-color: #802295;
  padding: 2.5rem;
}

.certificacoes h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: "Anton", serif;
  margin: 0 0 2rem 0;
}

.certificacoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.certificado {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-left: 4px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificado:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.2);
}

.certificado h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-family: "Montserrat", sans-serif;
}

.certificado .empresa {
  color: #ffd4e5;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.3rem 0;
  font-family: "Montserrat", sans-serif;
}

.certificado .data {
  color: #e0e0e0;
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

.certificado .competencia {
  color: #f0f0f0;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

/* ==========================
     Responsividade
     ========================== */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .navbar a {
    margin: 0.8rem 2rem;
    font-size: 0.85rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .profile-picture img {
    max-width: 200px;
  }

  .buttons {
    grid-template-columns: 1fr;
  }

  .sobre-mim {
    grid-template-columns: 1fr;
  }
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card img {
    width: 100%;
    max-width: 200px; /* Tamanho máximo em telas menores */
    height: auto; /* Mantém a proporção */
  }

  .enfeite-projetos img {
    max-width: 5rem;
  }

  .projetos-conteudo {
    gap: 0; /* Remove o espaçamento entre o texto e os enfeites */
  }

  .certificacoes-grid {
    grid-template-columns: 1fr;
  }

  .experiencia-item {
    padding-left: 1rem;
  }
}

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