/*======================================configs gerais================================================*/
@font-face {
  font-family: "Another Tag";
  src: url(../fonts/aAnotherTag.ttf) format("truetype");
}

@font-face {
  font-family: "Gameshow";
  src: url(../fonts/Gameshow.ttf) format("truetype");
}

@font-face {
  font-family: "Made Tommy";
  src: url(../fonts/MADE\ TOMMY\ Regular_PERSONAL\ USE.otf) format("opentype");
}

@font-face {
  font-family: "Secret";
  src: url(../fonts/SECRETODEMOREGULAR.TTF) format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5em;

  /* Ativa o "imã" de scroll na vertical */
  scroll-snap-type: y mandatory;
}

body {
  min-height: 100vh;
  background-color: var(--offWhite);
}

:root {
  --offBlack: #161a1c;
  --offWhite: #f2f2f2;
  --gray: #424242;
  --blue: #0064cf;
  --purple: #5d4ad8;
  --orange: #ff8554;
  --pink: #f5c3c6;
  --black: #000;
  --white: #fff;

  --fontTitulo: "Secret", cursive;
  --fontText: "Made Tommy", sans-serif;
  --fontDestaque: "Gameshow", sans-serif;

  --cardSkill: clamp(40px, 20vw, 60px);
  --cardProjeto: clamp(350px, 40vw, 700px);
}

.hidden {
  display: none;
}

body {
  background-color: var(--offWhite);
}

h1,
h2 {
  font-family: var(--fontTitulo);
}

p {
  font-family: var(--fontText);
}


/*=============================================header====================================================*/
.header {
  background-color: var(--black);
  color: var(--white);
  justify-content: space-between;
  padding: 0 5%;
  height: 3.5em;

  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

.navigation,
.header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.navigation {
  gap: 1.5em;
  z-index: 2;
}

.navigation>a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--fontDestaque);
  font-size: 1.8rem;
  position: relative;
  transition: .4s;
}

.navigation>a:hover {
  background-color: var(--gray);
  padding: 1px 3px;
  border-radius: 10px 0px;
}

.navigation>a:hover::before {
  content: "";
  height: 2px;
  width: 70%;
  background-color: #fff;
  transition: .8s;
  position: absolute;
  bottom: 0;
  transition: .4s;
}


.logo img {
  filter: invert(1);
  width: 6em;
}

.btnHeader {
  background-color: transparent;
  border: none;
  cursor: pointer;

  display: none;
}

.iconBranco {
  font-size: 1.1rem;
  color: var(--white);
}

/*=============================================main====================================================*/
main section,
.footer {
  padding: 5em 1em;

  /* Configurações do Scroll Snap */
  scroll-snap-align: start;
  /* Trava o topo da seção no topo da tela */
  scroll-snap-stop: always;
  /* Obriga o scroll a parar em todas as seções, sem pular nenhuma */

  min-height: 100vh;
}

main h1 {
  text-shadow: 3px 3px 3px #00000073;
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 1.5rem;
}

/*home*/
.home {
  background-image: linear-gradient(45deg, #6752ee, #2a2163);
  background-size: 200%;
  animation: infinite 10s bgMoviment cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

@keyframes bgMoviment {
  0% {
    background-position: bottom left;
  }

  50% {
    background-position: top right;
  }
}

.imgPerfil {
  filter: drop-shadow(15px 15px 6px #00000073);
  width: clamp(280px, 40vw, 400px);
}

.homeText {
  width: clamp(100px, 50vw, 700px);
}

.socialMidias {
  margin-bottom: 2em;
}

.socialMidias ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 2em;
  font-size: clamp(30px, 3vw, 40px);
}

.socialMidias a {
  color: #fff;
  text-shadow: 3px 3px 3px #00000073;
}

.socialMidias a:hover {
  text-shadow: 0px 0px 10px #ffffff9a;
  transition: .4s;
  font-size: 110%;
}

.homeText p {
  text-align: justify;
  text-shadow: 2px 2px 1px #00000050;
  font-size: 1.2rem;
}

/*sobre*/
.sobre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.sobreText {
  width: clamp(300px, 50vw, 900px);
}

.sobreText h1 {
  text-align: center;
}

.sobreText p {
  text-shadow: 1px 1px 1px #0000004f;
  font-size: 1.2rem;
  text-align: justify;
}

.imgSobre {
  min-width: 200px;
  width: 20%;
}

/*skills*/
/*skills*/
.skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--offWhite);
  position: relative;
}

.skillsHeader {
  text-align: center;
  margin-bottom: 3em;
}

.skillsHeader h1 {
  color: var(--offBlack);
}

.skillsHeader p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.skillsGrid {
  display: grid;
  /* Cria colunas responsivas que se adaptam sozinhas ao tamanho da tela */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2em;
  width: 100%;
}

.skillCard {
  background-color: var(--white);
  padding: 2.5em 1em;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  border-bottom: 4px solid transparent; /* Preparando a borda colorida */
  
  /* Animação com efeito elástico "bouncy" para ficar artístico */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.skillCard i {
  font-size: 4.5rem;
  color: var(--gray);
  transition: all 0.4s ease;
}

.skillCard h3 {
  font-family: var(--fontDestaque);
  font-size: 1.5rem;
  color: var(--gray);
  letter-spacing: 2px;
  transition: color 0.4s ease;
}

/* EFEITOS DE HOVER (Quando passa o mouse) */
.skillCard:hover {
  transform: translateY(-10px);
  /* Usa a variável de cor definida lá no HTML */
  border-bottom: 4px solid var(--brand-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skillCard:hover i {
  color: var(--brand-color);
  transform: scale(1.1); /* Ícone cresce levemente */
  text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.skillCard:hover h3 {
  color: var(--offBlack);
}

/*================== Ajuste global de harmonia ==================*/
/* Adicione esta classe para evitar que o site estique infinitamente no PC */
.limitador {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/*projetos*/
.projetos {
  background-color: var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centraliza verticalmente na tela */
}

.projetos h1 {
  color: var(--offWhite);
  text-align: center;
  margin-bottom: 1em;
}

/* Novo layout de grid para os cards */
.projetosGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5em;
  padding: 1em;
}

.cardProjeto {
  background-color: var(--offWhite);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cardProjeto:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.3);
}

.imgWrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.imgCard {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cardProjeto:hover .imgCard {
  transform: scale(1.05);
}

.projetosContent {
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Faz o conteúdo ocupar o espaço restante */
}

.projetosContent h2 {
  font-family: var(--fontDestaque);
  font-size: 2.5rem;
  color: var(--offBlack);
  margin-bottom: 0.5rem;
}

.projetosContent p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
  /* Empurra os botões pro final do card */
}

.tecList {
  display: flex;
  gap: 1em;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.btnContainer {
  display: flex;
  gap: 1em;
}

.btnCard {
  flex: 1;
  /* Faz os botões terem o mesmo tamanho */
  text-align: center;
  padding: 0.8em 0;
  border-radius: 6px;
  font-family: var(--fontText);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  border: 2px solid var(--offBlack);
  color: var(--offBlack);
  transition: all 0.3s ease;
}

.btnCard.solid {
  background-color: var(--offBlack);
  color: var(--white);
}

.btnCard:hover {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/*contato*/
.footer {
  background-image: linear-gradient(to top, var(--offBlack) 60%, var(--blue));
  padding: 4em 1em 2em 1em;
  color: var(--offWhite);
  text-align: center;
}

.footerTop {
  margin-bottom: 4em;
}

.footerTop h1 {
  font-size: clamp(35px, 5vw, 60px);
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.footerTop p {
  font-size: 1.1rem;
  margin-bottom: 2em;
  opacity: 0.8;
}

.btnContato {
  display: inline-block;
  background-color: var(--orange);
  color: var(--white);
  padding: 1em 2em;
  border-radius: 30px;
  font-family: var(--fontText);
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btnContato i {
  margin-right: 8px;
}

.btnContato:hover {
  background-color: #ff6a2e;
  /* Tom mais escuro de laranja */
  transform: scale(1.05);
}

.footerBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
}

.contatoList {
  list-style: none;
  display: flex;
  gap: 1.5em;
  font-size: 2rem;
}

.contatoList a {
  color: var(--offWhite);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contatoList a:hover {
  opacity: 1;
  transform: translateY(-5px);
  color: var(--orange);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.6;
}