@charset 'utf-8';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --principal: #d5dede;
  --secundario: #0071ff;

  /* cores para linguagens */
  --html: #e34c26;
  --css: #264ed4;
  --js: #f0db4f;
  --bootstrap: #7952b3;
  --php: #8892be;
  --mysql: #00758f;
  --flexbox: #0ea5e9;
  --scss: #cd6799;
  --less: #1d365d;
  --github: #7f2f98;

  /* temas */
  --bg-dark: hsl(0, 0%, 90%);
  --bg: hsl(0 0% 95%);
  --bg-light: hsl(0 0% 100%);
  --text: hsl(0 0% 5%);
  --text-muted: hsl(0, 0%, 30%);
  --bx-shadow: #dfdfdfba;
  --hover-ul: hsla(213, 100%, 18%, 0.257);

  --glow-hover: #00000080;
  transition: 0.7s;
}
body.light {
  --bg-dark: hsl(0 0% 0%);
  --bg: hsl(0 0% 5%);
  --bg-light: hsl(0 0% 10%);
  --text: hsl(0 0% 95%);
  --text-muted: hsl(0 0% 70%);
  --bx-shadow: #0063ddba;
  --hover-ul: hsla(213, 100%, 18%, 0.91);

  --glow-hover: #ffffff80;
  transition: 0.7s;
}
@font-face {
  font-family: "poppins";
  src: url(fontes/Poppins/Poppins-Regular.ttf);
}
@font-face {
  font-family: "lato";
  src: url(fontes/Lato/Lato-Regular.ttf);
}
h2{
  text-align: center;
}
body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: "poppins";
  transition: background-color 0.7s, color 0.7s;
}
header {
  background-color: #002a5e94;
  color: white;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 0px 0px 25px 25px;
  box-shadow: 0px 2px 8px var(--bx-shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}
header .logo {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
  user-select: none;
}
header .logo img {
  width: 50px;
  height: auto;
  background-color: var(--principal);
  border-radius: 50%;
}
header .logo p {
  padding: 0px 5px;
  font-size: 1.3em;
  transition: font-size .3s ease-in-out;
}
header .logo p::before {
  content: "Dev W";
  border-bottom: 0.2em solid var(--text);
  border-bottom-left-radius: 10px;
  width: fit-content;
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header .logo p::after {
  content: "eb";
  border-bottom: 0.2em dotted /*dashed*/ var(--text);
  width: fit-content;
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header nav ul {
  display: flex;
  flex-direction: row;
  border-radius: 10px 10px 25px 10px;
  padding: 5px 20px;
  box-shadow: 1px 1px 5px var(--text-muted);
}
header nav ul:hover{
  /* background-color: #002a5ee8; */
  background-color: var(--hover-ul);
  transition: .2s ease-in-out;
}
nav li:hover{
  color: white;
  scale: 1.05;
  transition: .3s ease-in-out;
}
nav li::after {
  content: " ";
  width: 0px;
  height: 4px;
  background-image: linear-gradient(45deg, var(--principal), var(--secundario));
  position: absolute;
  bottom: 10;
  left: 11;
  transition: width 0.3s;
}
nav li:hover::after {
  width: 40px;
  color: white;
  scale: 1.05;
  transition: .2s ease-in-out;
}
header nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--principal);
}
header nav i {
  display: block;
}
body .tema {
  position: fixed;
  z-index: 99999;
  bottom: 0.5em;
  right: 0.8em;
  background-color: var(--secundario);
  /* color: var(--secundario); */
  font-size: 1.8em;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0px 0px 8px var(--text-muted);
  animation: flutuar 5s infinite;
}
body .tema i {
  font-size: 1.2em;
  color: white;
  padding: 1px 1px;
  margin: 5px;
}


main {
  background-color: transparent;
  /* background-color: var(--bg-dark); */
  padding: 15px;
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}
main h1,
.trabalho {
  font-family: "lato";
  /* font-size: 3.4em; */
  font-size: 7dvw;
  padding: 40px 0px;
}

main h1:nth-child(2),
.trabalho {
  /* background-color: red; */
  text-align: center;
}
main h1 span {
  color: var(--text-muted);
  text-transform: uppercase;
}
main .sobre {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
}
.sobre .resumo p {
  font-size: 1.1em;
  line-height: 1.5em;
  text-align: justify;
}

.resumo span {
  color: var(--secundario);
  font-family: "lato";
}
#eu {
  font-size: 2.3em;
}
@keyframes flutuar {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}
.resumo .flutuar {
  width: 100%;
  margin-top: 30px;
  animation: flutuar 3s infinite ease-in-out;
}
.sobre .flutuar a {
  background-color: var(--secundario);
  color: var(--principal);
  text-decoration: none;
  border-radius: 0px 0px 15px 15px;
  padding: 10px 20px;
  margin-top: 40px;
  animation: flutuar 2s infinite ease-in-out;
}

.pontos{
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0px;
}
.pontos span{
  width: 7px;
  height: 7px;
  border-radius: 50px;
  background-color: #0071ff;
  display: inline-block;
}
.resumo .flutuar a {
  display: block; /* allow width to apply */
  width: 100%; /* fill the parent (.resumo) */
  box-sizing: border-box; /* include padding in width */
  text-align: center; /* center the label */
  padding: 10px 1px; /* slightly larger tap target */
  font-size: 1.05em;
  border-radius: 0px 0px 15px 15px;
}
.sobre i {
  padding: 10px;
}
main .sobre .imagem {
  padding-left: 20px;
}
main .sobre .imagem img {
  width: auto;
  height: 370px;
  border-radius: 50%;
  background-color: var(--text-muted);
  
}
main .sobre .resumo .social{
  display: flex;
  flex-direction: row;
  background-color: transparent;
  justify-content: space-evenly;
  align-items: center;
}
.social{
  margin: 10px 0px -10px 0px;
}
.social a{
  border-radius: 10px;
  font-size: 1.3rem;
}
.social a:hover{
  scale: 1.1;
  box-shadow: 0 0 15px var(--glow-hover);

  transition: .2s ease-in-out;
}
.social .mail{
  color: #EA4335;
  border: 1px solid #EA4335; 
}
.social .whatsapp{
  color: rgb(15, 195, 15);
  border: 1px solid rgb(15, 195, 15);
}
.social .github{
  color:  var(--github);
  border: 1px solid  var(--github);
}
.social .linked{
  color: rgb(0, 136, 255);
  border: 1px solid rgb(0, 136, 255);
}
.ferramentas ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
li {
  list-style: none;
  padding: 1px 10px;
}
.ferramentas li {
  text-align: center;
  list-style: none;
  padding: 1px 10px;
  margin: 7px;
  border-radius: 5px;
  background-color: var(--text);
  border: 2px solid var(--bg);
  color: var(--bg);
  width: 100px;
}
.ferramentas li:hover {
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid var(--text);
  background-color: transparent;
  box-shadow: 0px 0px 5px var(--secundario);
  scale: 1.1;
  transition: 0.3s ease-in-out;
}
.ferramentas i {
  padding-top: 5px;
  font-size: 2em;
}

/*----------------------- SECÇÃO PROJECTOS ------------------------*/

main section.projectos{
  /* background-color: var(--bg); */
  border-radius: 25px;
  margin: 15px 1px;
  padding: 10px;
}
.projectos .card{
  background-color:var(--bg-light);
  padding: 15px 1px;
  margin: 9px 1px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  border-radius: 9px;

}

.cards {
  background-color: var(--bg-dark);
  margin: 7px;
  border-radius: 9px;
  flex: 1 0 300px;
  
  animation: rolagem linear;
  animation-timeline: view();
  animation-range: entry 0% cover 10%;
  transition: 0.3s ease;
}
.cards:hover{
  /* scale: 1.05; */
  transform: translateY(-5px);
  transition: .2s ease-in-out;
  cursor: grab;
}
/* .card .cards:nth-child(4){
  flex: 0 1 300px;
} */
.cards img{
  width: 100%;
  height: auto;
  border-radius: 9px 9px 0px 0px;
}
.cards .descricao{
  text-align: center;
  font-size: 0.9em;
  padding: 1px 1px;
}
.descricao ul{
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  height: 60px;
  gap: 5px;
  padding: 0;
  margin: 0;
}
.descricao li{
  list-style: none;
  position: relative;
  padding-left: 12px;
  border-radius: 10px;
  color: #000;
}
.descricao li:nth-child(1) {
  background-color: var(--html);
}
.descricao li:nth-child(2) {
  background-color: var(--css);
  color: white;
}
.descricao li:nth-child(3) {
  background-color: var(--js);
}
.descricao li:nth-child(4) {
  background-color: var(--bootstrap);
  color: white;
}
.descricao li:nth-child(5) {
  background-color: var(--php);
}
.descricao li:nth-child(6) {
  background-color: var(--mysql);
  color: white;
}
.descricao li:nth-child(7) {
  background-color: var(--flexbox);
}
.descricao li:nth-child(8) {
  background-color: var(--less);
  color: white;
}
.descricao p{
  line-height: 1.3;
}
.cards .botao{
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 10px 1px;
}
.botao a{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: var(--text);
  padding: 1px;
  border-radius: 9px;
  width: 100px;
  text-align: center;
  color: var(--bg-light);
}
.botao a:hover{
  cursor: pointer;
  background-color: var(--text-muted);
  color: var(--bg-dark);

  transition: .2s ease-out;
}
.botao i{
  padding-right: 10px;
  font-size: 1.2rem;
}


/* ----------------------------servicos------------------------- */

.item-servico {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  border-color: yellow;
  padding: 20px 5px;
}
.item {
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--bg-light);
  border: 1px solid var(--bg);
  box-shadow: 0 0 5px var(--text-muted);

  animation: rolagem linear;
  animation-timeline: view();
  animation-range: entry 0% cover 20%;
}

@keyframes rolagem {
  from {
    opacity: 0;
    scale: .5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.item:hover{
  transform: translateY(-5px);
  transition: 0.3s ease;
}
.item i {
  /* color: var(--secundario); */
  font-size: 2.3rem;
  padding: 10px;
}
.item h3{
  font-family: "lato";
  margin-bottom: 15px;
}
.item p{
  margin-bottom: 10px;
  color: var(--text-muted);
}
.item .button {
  font-family: "lato";
  padding: 10px;
  border-radius: 7px;
  background-color: var(--secundario);
  color: var(--principal);
}
.item .button:hover{
  cursor: pointer;
  background-color: var(--text-muted);
  color: var(--bg-light);

  animation: .3s ease;
}


/*----------------------------- RODAPÉ --------------------------- */
.rodape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.rodape .itens{
  background-color: var(--bg);
  padding: 12px;
  color: var(--text);
  border: 1px solid rgba(126, 126, 126, 0.152);
}
.rodape .itens ul{
  line-height: 2;
}
.rodape .itens h3{
  padding-left: 10px;
  border-bottom: 4px solid var(--secundario);
}
.rodape .itens i {
  padding-right: 5px;
}
.rodape .itens ul li a{
  text-decoration: none;
  color: var(--text);
}
.rodape .itens:nth-child(1) ul li a:hover{
  margin: 1px 3px 1px 10px;
  padding: 2px 10px;
  box-shadow: 0px 0px 8px var(--glow-hover);
  border-radius: 10px;

  transition: .2s ease-in-out;
}
.rodape .itens:nth-child(2) ul li:nth-child(1) a{
  color:  #1877F2;
}
.rodape .itens:nth-child(2) ul li:nth-child(2) a{
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}
.rodape .itens:nth-child(2) ul li:nth-child(3) a{
  color: rgb(0, 136, 255);
}
.rodape .itens:nth-child(2) ul li:nth-child(4) a{
  color:  var(--github);
}
.rodape .itens:nth-child(2) ul li:nth-child(5) a{
  color:  rgb(15, 195, 15);
}
.direitos {
  text-align: center;
  margin: 15px 1px 5px 1px;
  background-color: var(--bg-dark);
  color: var(--text);
  width: 100%;
  transition: 0.7s;
  /* position: fixed;
  top: 0;
  left: 0;
  z-index: 9; */
  /* display: flex;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-light);
  color: var(--text);
  font-size: 1.1em;
  width: 100%;
  border: 1px solid black;
  box-shadow: 0px -8px 8px var(--text-muted);
  padding: 10px;
  font-weight: 300; */
}

/* media para telefone */
@media screen and (max-width: 660px) {
  header i {
    font-size: 1.6em;
    padding: 0px 10px;
  }
  header nav P {
    display: none;
  }
  header nav ul{
    padding: 10px 0;
  }
  nav li::after {
  content: "";
  }
  main .sobre{
    display: flex;
    flex-direction: column-reverse;
  }
  nav li:hover::after {
    width: 0;
  }
  nav i:hover{
    color: #fff;
    scale: 1.09;
    transition: .1s ease-in-out;
  }
  main .sobre .imagem {
  padding-left: 0px;
}
  main .sobre .imagem img {
    width: auto;
    height: 300px;
    border-radius: 0%;
    background: none;
  }
    .sobre .resumo p:nth-child(1){
    text-align: left;
  }
  .sobre .resumo p:nth-child(1) #eu{
    font-size: 2em;
  }
  main .trabalho{
    text-align: center;
  }
}
@media screen and (max-width: 520px){
  header .logo p {
    font-size: 1em;
    transition: font-size .3s ease-in-out;
  }
}