@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700&family=Josefin+Slab:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Muli:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300;1,400&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;1,300;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

:root {
  --font-primary: "Baloo Da 2", serif;
  --font-secundary: "Josefin Slab", serif;
  --font-action: "Muli", serif;
  --font-tertiary: "Poppins", sans-serif;
  --color: #3c3163;
  --transition-time: 0.5s;
}

html {
  scroll-behavior: smooth;
}

/* --- Menu Hamburguer --- */
.hamburguer {
  width: 2rem;
  height: 2rem;
  position: fixed;
  z-index: 100;
  right: 2rem;
  top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  cursor: pointer;
}

.show-menu .hamburguer {
  right: 16rem;
}

.line {
  width: 100%;
  height: .1rem;
  background-color: #fff;
  box-shadow: 0.1rem 0.1rem 1px #000000;
  transition: transform 1s;
}

.show-menu #line1 {
  transform: rotate(50deg) translate(.3rem, .3rem);
}

.show-menu #line2 {
  opacity: 0%;
  visibility: hidden;
}

.show-menu #line3 {
  transform: rotate(-50deg) translate(.3rem, -.45rem);
}

.hamburguer span {
  position: absolute;
  left: 3rem;
  height: 2rem;
  width: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #a044ff;
  color: #ffffff;
  font-family: var(--font-action);
  opacity: 0;
}

.hamburguer span::before {
  content: "";
  position: absolute;
  border-right: .5rem solid #a044ff;
  border-top: .5rem solid transparent;
  border-left: .5rem solid transparent;
  border-bottom: .5rem solid transparent;
  left: -1rem;
}

.show-menu .hamburguer:hover span {
  opacity: 1;
}

/* --- Header e Banner --- */
header {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.botoes-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8)
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  animation: zoom 25s;
}

@keyframes zoom {
  0% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.banner {
  position: absolute;
  top: 30%;
  left: 15%;
}

.banner h1 {
  color: #ffffff;
  font-size: 3rem;
  font-family: var(--font-primary);
  font-weight: 200;
  text-shadow: 0.2rem 0.3rem 2px rgba(0, 0, 0, .4);
  line-height: 3.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: moveBanner 1s 0.5s forwards;
}

@keyframes moveBanner {
  0% {
    transform: translateY(10rem) rotateY(-30deg);
  }

  100% {
    transform: translateY(0) rotateY(0);
    opacity: 1;
  }
}

.banner p {
  font-family: var(--font-secundary);
  color: #fff;
  font-size: 2rem;
  text-shadow: .2rem .2rem rgba(0, 0, 0, .4);
  margin-bottom: 2rem;
  opacity: 0;
  animation: moveBanner 1s 0.7s forwards;
}

.banner button {
  font-family: var(--font-action);
  color: #fff;
  letter-spacing: .1rem;
  text-transform: uppercase;
  background: #641d97;
  background: -webkit-linear-gradient(to left #a044ff, #6a3093);
  background: linear-gradient(to right, #a044ff, #6a3093);
  padding: 1rem 3rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  animation: moveBanner 1s 0.9s forwards;
}

.banner button:hover {
  color: #000000;
}

.typed-text {
  font-weight: normal;
  color: rgb(#6a3093);
}

.cursor {
  display: inline-block;
  width: block;
  background-color: transparent;
  margin-left: 0.1rem;
  animation: blink 1s infinite;
}

.cursor.typing {
  animation: none;
  color: transparent;
}

/* --- Sidebar --- */
.sidebar {
  width: 20rem;
  height: 100vh;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: -20rem;
  transition: all 1s;
  z-index: 80;
}

.show-menu .sidebar {
  right: 0;
}

.menu-item {
  text-align: center;
  margin-bottom: .5rem;
}

.menu-link {
  font-family: var(--font-action);
  font-size: 2rem;
  color: #555;
  transition: color 1s;
}

.menu-link:hover {
  color: #6a3093;
}

.menu {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.social-media {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.social-media i {
  background-color: #6a3093;
  color: rgba(255, 255, 255, 1);
  height: 2.5rem;
  width: 2.5rem;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.social-media i:hover {
  background-color: #a044ff;
}

/* --- Conhecimentos --- */
.sessao-conhecimentos {
  background-color: #f5f5f5;
}

.sessao-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sessao-header h1 {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: #4b4b4b;
  border-bottom: solid 3px #6a3093;
  margin-bottom: 1.5rem;
}

.conhecimentos {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  /* CORREÇÃO: Usar auto permite que o texto cresça sem atropelar */
  grid-template-rows: repeat(6, auto);
  row-gap: 1.5rem;
}

.conhecimento:nth-child(1) {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
}

.conhecimento:nth-child(2) {
  grid-column: 3 / 6;
  grid-row: 3 / 5;
}

.conhecimento:nth-child(3) {
  grid-column: 4 / 7;
  grid-row: 5 / -1;
}

.conhecimento:nth-child(4) {
  grid-column: 11 / 14;
  grid-row: 1 / 3;
}

.conhecimento:nth-child(5) {
  grid-column: 12 / 15;
  grid-row: 3 / 5;
}

.conhecimento:nth-child(6) {
  grid-column: 11 / 14;
  grid-row: 5 / -1;
}

.conhecimento-header {
  display: flex;
  align-items: center;
  color: #4b4b4b;
}

.conhecimentos-header i {
  font-size: 2.5rem;
}

.conhecimento-header h3 {
  font-family: var(--font-secundary);
  font-size: 2rem;
  padding-left: 1rem;
}

.conhecimento-text {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.conhecimentos-img-wrapper {
  grid-column: 7 / 11;
  grid-row: 2 / 6;
  width: 100%;
}

.conhecimentos-img-wrapper img {
  object-fit: cover;
  width: 100%;
}

/* --- Cards / Projetos --- */
a {
  color: inherit;
}

.cards-wrapper {
  position: static;
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 4rem;
  padding: 4rem;
  margin: 0 auto;
  width: max-content;
}

.card {
  font-family: 'Heebo';
  --bg-filter-opacity: 0.5;
  background-image: linear-gradient(rgba(0, 0, 0, var(--bg-filter-opacity)), rgba(0, 0, 0, var(--bg-filter-opacity))), var(--bg-img);
  height: 20em;
  width: 15em;
  font-size: 1.5em;
  color: white;
  border-radius: 1em;
  padding: 1em;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 5em -1em black;
  transition: all, var(--transition-time);
  position: relative;
  overflow: hidden;
  border: 10px solid #ccc;
  text-decoration: none;
}

.card:hover {
  transform: rotate(0);
}

.card h1 {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.2em;
}

.card p {
  font-size: 0.75em;
  font-family: var(--font-primary);
  margin-top: 0.5em;
  line-height: 2em;
}

.card .tags {
  display: flex;
}

.card .tags .tag {
  font-size: 0.75em;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all, var(--transition-time);
}

.card:hover .tags .tag {
  background: var(--color);
  color: white;
}

.card .date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75em;
  padding: 1em;
  line-height: 1em;
  opacity: .8;
}

.card:before,
.card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all, var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card:before {
  background: #ddd;
  width: 250%;
  height: 250%;
}

.card:after {
  background: white;
  width: 200%;
  height: 200%;
}

.card:hover {
  color: var(--color);
}

.card:hover:before,
.card:hover:after {
  transform: scale(1);
}

.card-grid-space .num {
  font-size: 3em;
  margin-bottom: 1.2rem;
  margin-left: 1rem;
}

.info {
  font-size: 1.2em;
  display: flex;
  padding: 1em 3em;
  height: 3em;
}

.info img {
  height: 3em;
  margin-right: 0.5em;
}

.info h1 {
  font-size: 1em;
  font-weight: normal;
}

/* --- Contato (CSS Corrigido) --- */
.sessao-contato {
  width: 100%;
  height: 100vh;
  background-color: #272727;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contato-wrapper {
  width: 60%;
  height: 30rem;
  display: flex;
  box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.5);
}

.contato-left {
  width: 35%;
  background: linear-gradient(rgba(15, 15, 15, 0.6), rgba(22, 22, 22, 0.9)),
    url(imagens/contato.jpg);
  background-size: cover;
}

.contato-right {
  width: 65%;
  background-color: #eee;
  padding: 1rem 3rem 3rem 3rem;
}

.sessao-contato h1 {
  width: 100%;
  text-align: center;
  font-family: var(--font-primary);
  color: #272727;
  font-size: 3rem;
  font-weight: lighter;
}

.sessao-contato form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
}

/* Botões Sociais */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
  width: 100%;
  /* Responsivo */
  max-width: 400px;
  /* Largura máxima */
  margin: 0 auto;
}

.social-button {
  background: var(--base-gray-400, #292c34);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  /* Preenche o container .links */
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-button:hover {
  transform: scale(1.03);
  background: #3a3e47;
}

/* Logos e Setas */
.linkedin-logo,
.instagram-logo,
.github-logo,
.envelope-simple,
.arrow-up-right,
.arrow-up-right2,
.arrow-up-right3,
.arrow-up-right4 {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  overflow: visible;
}

.arrow-up-right,
.arrow-up-right2,
.arrow-up-right3,
.arrow-up-right4 {
  width: 20px;
  height: 20px;
}

/* Estilo unificado para o Texto dos botões */
.social-button .linkedin {
  color: var(--color-white-solid, #ffffff);
  text-align: left;
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 140%;
  font-weight: 600;
  position: relative;
  flex: 1;
  /* Faz o texto ocupar o espaço disponível */
  margin-top: 0;
}


/* --- Footer --- */
footer {
  width: 100%;
  height: 7rem;
  background-color: #17181b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  width: 60%;
  display: flex;
  justify-content: space-between;
}

.footer-content p {
  font-family: var(--font-secundary);
  color: #a7a7a7;
  font-size: 1.2rem;
}

.social-list a {
  margin: 0 2rem;
  color: #a7a7a7;
  font-size: 1.3rem;
}

.social-list ul {
  display: flex;
}

#link-topo {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  width: 3rem;
  height: 3rem;
  background: #6a3093;
  background: -webkit-linear-gradient(to right, #a044ff, #6a3093);
  background: linear-gradient(to left, #a044ff, #6a3093);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: .3rem;
  box-shadow: 0 0.1rem 0.6rem #00000009;
}


/* =============================================
   INÍCIO - CÓDIGO DE RESPONSIVIDADE (MEDIA QUERIES)
   ============================================= */

/* Ajuste para Cards */
@media screen and (max-width: 1285px) {
  .cards-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- NOVO: Ponto de Quebra para Tablets/Notebooks pequenos (1200px) --- */
@media screen and (max-width: 1200px) {

  /* Conhecimentos: Transforma em lista vertical para não quebrar layout */
  .conhecimentos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
  }

  /* Remove posicionamento de grid fixo */
  .conhecimento:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    width: 80%;
    max-width: 600px;
    margin: 0;
  }

  .conhecimentos-img-wrapper {
    display: none;
    /* Esconde a imagem central */
  }

  .conhecimento-header {
    justify-content: center;
    /* Centraliza ícones e titulos */
  }

  .conhecimento-text {
    text-align: center;
  }
}


/* --- Mobile Padrão (900px) --- */
@media screen and (max-width: 900px) {

  /* Banner */
  .banner {
    left: 10%;
    width: 80%;
  }

  .banner h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .banner p {
    font-size: 1.5rem;
  }

  /* Cards */
  .cards-wrapper {
    grid-template-columns: 1fr;
  }

  .info {
    justify-content: center;
  }

  .card-grid-space .num {
    margin-left: 0;
    text-align: center;
  }

  /* Contato */
  .contato-wrapper {
    width: 90%;
    height: auto;
    flex-direction: column;
  }

  .contato-left {
    display: none;
  }

  .contato-right {
    width: 100%;
    padding: 2rem;
  }

  .sessao-contato h1 {
    font-size: 2.5rem;
  }

  /* Footer */
  .footer-content {
    width: 90%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-content p {
    text-align: center;
    font-size: 1rem;
  }

  .social-list a {
    margin: 0 1rem;
  }
}

/* --- Mobile Pequeno (500px) --- */
@media screen and (max-width: 500px) {
  .cards-wrapper {
    padding: 4rem 2rem;
  }

  .card {
    max-width: calc(100vw - 4rem);
  }
}

/* --- Mobile Muito Pequeno (450px) --- */
@media screen and (max-width: 450px) {
  .info {
    display: block;
    text-align: center;
  }

  .info h1 {
    margin: 0;
  }

  .banner h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .banner p {
    font-size: 1.2rem;
  }

  .banner button {
    padding: 0.8rem 1.5rem;
  }
}