* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.4;
  color: lightgrey;
  background-color: rgb(26, 26, 26);
  width: 100%;
}

#quemSouEu h2,
#Competencias h2,
#Projetos h2,
#Certificados h2 {
  text-align: center;
  font-size: 3.5rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
}

#quemSouEu h2::after,
#Competencias h2::after,
#Projetos h2::after,
#Certificados h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: darkblue;
  margin: 1rem auto;
  border-radius: 2px;
}

/* Cabeçalho */

nav {
  position: fixed;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav img {
  margin-right: auto;
  padding-left: 3rem;
  height: 7rem;
}

nav a:link,
nav a:visited {
  padding: 0.4rem 2rem;
  margin: 0 1rem;
  text-decoration: none;
  font-size: 1.8rem;
  color: lightgrey;
  background-color: transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
}

nav a:hover,
nav a:active {
  background-color: darkblue;
  color: white;
  border-color: darkblue;
  box-shadow: 0 0 15px rgba(0, 0, 139, 0.5);
}

/* Seção geral */

.secao {
  padding: 3rem;
  scroll-margin-top: 16rem;
  margin: 2rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0.4rem;
}

/* Apresentação Inicial */

#apresentacaoInicial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  min-height: 80vh;
  margin: 10rem 0 0 0;
  width: 100%;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 139, 0.15) 0%,
    transparent 100%
  );
}

#apresentacaoInicial .container {
  margin: 0;
}

#apresentacaoInicial .container h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: white;
  overflow: hidden;
  border-right: 0.1em solid darkblue;
  white-space: nowrap;
  margin: 0 0 2rem 0;
  letter-spacing: 0.1em;
  max-width: fit-content;
  animation:
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

#apresentacaoInicial .container h3 {
  font-size: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 3.5s;
}

#imagemAle {
  border: 4px solid rgba(211, 211, 211, 0.1);
  border-radius: 50%;
  width: 40rem;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
}

/* Quem Sou Eu */

#quemSouEu {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 4rem;
  max-width: 1200px;
  margin: 4rem auto;
}

#quemSouEu p {
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: justify;
  color: #e0e0e0;
}

/* Competências */
#Competencias .container {
  text-align: center;
}

.subtitulo-competencia {
  font-size: 2.4rem;
  color: lightgrey;
  margin: 3rem 0 2rem 0;
  width: 100%;
}

.containerCompetencia {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  max-width: 200px;
  margin: 2rem;
  display: inline-block;
}

.containerCompetencia h4 {
  text-align: center;
  padding: 0.5rem;
  margin-top: 1rem;
  color: #e0e0e0;
  font-size: 1.5rem;
}

/* Projetos e Certificados*/

#Projetos .container,
#Certificados .container {
  text-align: center;
}

.containerProjeto,
.containerCertificados {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  width: 40%;
  margin: 2rem;
  display: inline-block;
  vertical-align: top;
  transition: all 0.3s ease;
}

.containerProjeto:hover,
.containerCertificados:hover {
  transform: scale(1.01);
  border-color: darkblue;
  box-shadow: 0 0 20px rgba(0, 0, 139, 0.3);
}

.containerProjeto img,
.containerCertificados img {
  object-fit: cover;
  width: 100%;
  height: 30rem;
  border-radius: 20px;
}

.containerProjeto h4,
.containerCertificados h4 {
  text-align: center;
  padding: 0.5rem;
  margin-top: 0.5rem;
  color: #e0e0e0;
  font-size: 2rem;
}

.skill {
  display: inline-block;
  padding: 1rem;
  margin: 1.5rem 0.5rem 0 0.5rem;
  background-color: rgb(26, 26, 26);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30%;
  color: #e0e0e0;
  font-size: 1.4rem;
}

/* Rodapé */

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

footer {
  position: relative;
  z-index: 999;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0);
  backdrop-filter: blur(10px);
  padding: 3rem 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.footer-info {
  text-align: left;
}

.logo {
  width: 4rem;
  margin: 1rem 1rem 0 0;
}

#redesSociais a {
  text-decoration: none;
  color: white;
}

#redesSociais img {
  filter: brightness(0) invert(1);
}

.footer-nav {
  list-style: none;
  text-align: left;
}

.footer-nav li a {
  display: inline-block;
  margin: 0.5rem;
  text-decoration: none;
}

.footer-nav li a:link,
.footer-nav li a:visited {
  color: #e0e0e0;
}

.footer-nav li a:hover,
.footer-nav li a:active {
  color: grey;
}

#contato p {
  margin: 1rem 0;
  padding: 0.5rem 0;
  font-style: normal;
}

/* Animações */

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: darkblue;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsividade para notebooks pequenos */
@media (max-width: 1400px) {
  #apresentacaoInicial .container h2 {
    font-size: 3rem;
  }
  #imagemAle {
    width: 30rem;
  }
}

/* Responsividade (Mobile e Tablet) */

@media (max-width: 1050px) {
  html {
    font-size: 48%;
  }

  nav {
    position: relative;
    flex-direction: column;
    padding: 1rem;
  }

  nav img {
    margin: 0 auto 1rem auto;
    padding: 0;
    height: 6rem;
  }

  nav a {
    display: none;
  }

  .secao {
    margin: 2rem 0;
    padding: 3rem 1.5rem;
    width: 100%;
  }

  #apresentacaoInicial {
    flex-direction: column-reverse;
    margin-top: 0;
    padding: 4rem 2rem;
    text-align: center;
    height: auto;
    min-height: auto;
  }

  #apresentacaoInicial .container h2 {
    font-size: 2rem;
    text-align: center;
    margin: 0 auto 1rem auto;
    white-space: normal;
    border: none;
    animation: none;
  }

  #imagemAle {
    width: 25rem;
    height: 25rem;
  }

  .containerCompetencia {
    width: 42%;
    margin: 1rem;
    padding: 1rem;
  }

  .containerProjeto,
  .containerCertificados {
    width: 100%;
    display: block;
    margin: 2rem 0;
  }

  footer .container {
    width: 90%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-info,
  .footer-nav {
    text-align: center;
  }

  #redesSociais {
    display: block;
    justify-content: center;
  }

  #redesSociais h4 {
    display: none;
  }
}
