@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Bitcount+Grid+Double:wght@100..900&family=Montserrat:wght@400;500;600&family=Poppins:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');


:root {

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-tertiary: 'Raleway', sans-serif;
    --font-heading: 'Exo 2', sans-serif;

    --fs-hero: clamp(2rem, 7vw, 4rem);
    --fs-title: clamp(1.8rem, 5vw, 3rem);
    --fs-subtitle: clamp(1.2rem, 3.5vw, 1.8rem);
    --fs-text: clamp(1rem, 2.5vw, 1.1rem);
    --fs-cta: clamp(.8rem, 2vw, 1rem);

    --nav-color: rgb(30, 1, 59);
    --active-and-text-color: rgb(113, 64, 163);
    --background-color: rgb(33, 0, 36);
    --border-color: rgba(152, 151, 151, 0.3);
    --wpp-btn-color: rgb(37, 211, 102);
    --wpp-btn-hover-color: rgb(28, 160, 77);
    --html-color: rgba(227, 79, 38, 0.7);
    --css-color: rgba(38, 77, 228, 0.7);
    --js-color: rgba(240, 219, 79, 0.7);
    --java-color: rgba(83, 130, 161, 0.7);
    --mysql-color: rgba(0, 117, 143, 0.7);
    --git-color: rgba(240, 80, 50, 0.7);
    --github-color: rgba(110, 118, 129, 0.7);
    --api-color: rgba(139, 92, 246, 0.7);

}

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

html{
  scroll-behavior: smooth;
}

a{
  color: #fff;
  text-decoration: none;
}

body{
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

h1, h2, h3{
  font-family:var(--font-heading);
  color: #fff;
}

p{
  font-family: var(--font-secondary);
  line-height: 1.7;
  color: #fff;
}

a{
  font-family: var(--font-secondary);
}

.icon-wpp{
  font-size: 1.5rem;
}

/* Classes de animações */

.anim {
    transition: ease 0.3s;
}

.anim-up:hover{
  transform: translateY(-6px);
  color: var(--active-and-text-color);
}

.anim-scale:hover{
  transform: scale(1.06);
}

.anim-shadow:hover{
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
}

.anim-glow:hover {
  box-shadow: 0 0 20px rgba(120,80,255,0.7);
}

.glow-html:hover {
  box-shadow: 0 0 20px var(--html-color);
  color: var(--html-color);
}

.glow-css:hover {
  box-shadow: 0 0 20px var(--css-color);
  color: var(--css-color);
}

.glow-js:hover {
  box-shadow: 0 0 20px var(--js-color);
  color: var(--js-color);
}

.glow-java:hover {
  box-shadow: 0 0 20px var(--java-color);
  color: var(--java-color);
}

.glow-mysql:hover{
  box-shadow: 0 0 20px var(--mysql-color);
  color: var(--mysql-color);
}

.glow-git:hover{
  box-shadow: 0 0 20px var(--git-color);
  color: var(--git-color);
}

.glow-github:hover{
  box-shadow: 0 0 20px var(--github-color);
  color: var(--github-color);
}

.glow-api:hover{
  box-shadow: 0 0 20px var(--api-color);
  color: var(--api-color);
}

.link-anim{
  width: fit-content;
  display: inline-block;
  position: relative;
  text-decoration: none;
}

.link-anim::after{
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: 
    color ease 0.45s,
    transform ease 0.6s;
}

.link-anim:hover{
  color: var(--nav-color);
}

.link-anim:hover::after{
  /*color: var(--active-and-text-color);*/
  transform-origin: center;
  transform: scaleX(1);
}

/* Início do css da navbar */

.navbar{
  font-family: "Exo 2", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  gap: 1.25rem;
  background-color: var(--nav-color);
  z-index: 10000;
  flex-wrap: wrap;     
  row-gap: 0.75rem;    
  min-width: 0;       
}

.nav-link{
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color:var(--active-and-text-color);
}

.nav-link.active{
  color:var(--active-and-text-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;   
  left: 0;
  width: 100%;
  height: 2px;
  background:var(--active-and-text-color);
  transform: scaleX(0);        
  transform-origin: right;     
  transition: transform 0.3s ease;
}

.nav-link.active::after {
  transform: scaleX(1);        
}

/* Termino do css da navbar */

.section{
  display: flex;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--background-color);
  min-height: 100vh;
  justify-content: center;
  overflow-x: hidden;
}

.container{
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-inline: 2rem;
  max-width: 1200px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.3s ease-out;
}

.container.active{
  opacity: 1;
  transform: translateY(0);
}

/* Classes globais */

#hero-section{
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-inline: 2rem;
}

.hero-content{
  display: flex;
  flex-direction: column;
  
  color: #fff;
}

.introducao{
  font-size: var(--fs-text);
  font-family: "Exo 2", sans-serif;
  margin: 0;
}

.title{
font-family: "Exo 2", sans-serif;
font-size: var(--fs-hero);
margin: 0;
}

.typing-container {
  font-family: "Oswald", sans-serif;
  font-size: var(--fs-title);
  color: var(--active-and-text-color);
  display: inline-flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--active-and-text-color);
  margin-left: 2px;
   animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Termino do css da hero */

#about-section{
 background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.5)
  ),
   url(imagens/fundo\ section2novo.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Exo 2", sans-serif;
  color: #fff;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-block: 10%;
}

.about-container{
  margin: 40px;
  display: flex;
  align-items:flex-start;
  gap: 20px;
  padding: 20px;
  background-color: transparent;
  border: 2px solid var(--border-color);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  max-width: 60%;
}

.about-container{
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.about-container.active{
  opacity: 1;
  transform: translateY(0);
}

.about-layout{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.wpp-btn{
  margin-top: 2rem;
  display: flex;
  width: 80%;
  height: 40px;
  border-radius: 20px;
  background-color: var(--wpp-btn-color);
  transition: ease 0.3s;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--fs-cta);
}

.wpp-btn:hover{
  background-color: var(--wpp-btn-hover-color);
  transform: scale(1.09);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.sub-title{
  font-size: var(--fs-subtitle);
  position: relative;
  margin-bottom: 12px;
  color:var(--active-and-text-color);
}

.sub-title::after{
  content: "";
  position: absolute;
  bottom: -5px;   
  left: 0;
  width: 100%;
  height: 2px;
  background:var(--active-and-text-color);
}

.about-text p{
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 60ch;
  overflow-wrap: break-word;
}

.about-image{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.about-image img{
  width: 100%;
  height: 320px;   
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.85;
}

@media(max-width: 1024px){
  .about-container{
    max-width: 80%;
  }
}

@media (max-width: 900px){
  .about-layout{
    grid-template-columns: 1fr;
  }
  .about-image img{
    height: 220px;
  }

  .about-container{
    max-width: 60%; 
  }
}

@media(max-width: 768px){
  .about-container{
    max-width: 80%;
  }
  
}


/* Termino do css da section about */

#competence-section{
  padding-block: 10%;
}

#competences-container{
  justify-content: center;
  align-items: center;
}

.grid-2{
  display: grid;
  grid-template-columns: minmax(360px, 52ch) max-content;
  column-gap: 2.5rem;
  align-items: center;
  justify-content: start; 
}

.grid-2 > .grid-4{
  justify-self: center; 
}

.text{
  height: 100%;
  font-size: var(--fs-text);
  display: flex;
  flex-direction: column;
  align-content: center;
}

.text h2{
  font-size: var(--fs-subtitle);
}

.text p{
  max-width: 70ch;
  margin-bottom: 1rem;
}

.grid-4{
  justify-items: center;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(4, 8rem);
  gap: 1rem;
  width: fit-content;
  align-content: start;
}

.card-stack{
  font-size: var(--fs-text);
  font-family: var(--font-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  text-align: center;
  width: 8rem;
  height: 8rem;
  background-color: rgba(214, 214, 225, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  padding: 2rem;
  box-sizing: border-box;
}

.icon{
  font-size: 2rem;
}
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
}

@media(max-width: 900px){

  #competences-container{
    padding-block: 10%;
  }

  .grid-2{
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .grid-4{
    grid-template-columns: repeat(4, .8fr);
  }
}

@media(max-width: 768px){

  #competences-container{
    padding-block: 10%;
  }

  .grid-2{
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .grid-4{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Termino do css da section competencias*/

#certificates-container{
  text-align: center;
  margin-inline: auto;
  padding-block: 6rem;
  gap: 2rem;
}

.sub-deco{
  color: var(--active-and-text-color);
  font-size: var(--fs-title);
  position: relative;
  padding-bottom: .5rem;
}

.sub-deco::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  height: 2px;
  width: 40%;
  background-color: var(--active-and-text-color);
  border-radius: 20px;
  transform: translateX(-50%);
}

.grid-4-certificates {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.card{
  position: relative;
  box-sizing: border-box;
  padding: 4rem;
  width: 100%;
  max-width: 20rem;
  padding: .2rem;
  background-color: rgba(214, 214, 225, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  text-align: center;
}

.img-wrapper{
  height: 12rem;
}

.thumb-img{
  width: 100%;
  height: 100%;
  object-fit: cover;         
  border-radius: 12px;
  display: block;
}

.card-text{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.card-text h3 {
  margin-block: 0.8rem 1.2rem; /* cima / baixo */
  line-height: 1.3;
}

.card-text a{
  margin-top: auto;
  padding-bottom: 4px;
}

@media(max-width: 900px){
  .grid-4-certificates{
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    justify-items: center;
  }
}

@media(max-width: 768px){

  #certificates-container{
    padding-block: 10%;
  }

  .grid-4-certificates{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px){
  .grid-4-certificates{
    grid-template-columns: 1fr;
    row-gap: 2rem;
    justify-items: center;
  }
}

/* Termino do css da section de certificados */

#projects-section{
  background: linear-gradient(
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.3)
  ), url(imagens/fundo\ section2.jpeg);
  backdrop-filter: blur(20px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
 padding-block: 5%;
}

#projects{
  grid-template-columns: repeat(4, 1fr);
  justify-items: start;
}

#contact-section {
  padding-top: 40px;
  height: 100vh;
  background-color: rgb(33, 0, 36);
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
}

#projects-container{
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  padding-top: 0;
}

#projects-container h2{
  justify-content: start;
  font-size: var(--fs-title);
  position: relative;
  padding-bottom: 1rem;
}

#projects-container h2::after{
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--active-and-text-color);
  border-radius: 20px;
}

@media(max-width:768px){
  #projects{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:480px){
  #projects{
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }
}
/* Termino do css da section do projects */

#contact-container{
  align-items: center;
  justify-content: center;
}

#contact-text{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-text > #btn-contact{
  align-self: center;
}

#title-contact{
  font-size: var(--fs-subtitle);
  position: relative;
  color: var(--active-and-text-color);
  padding-bottom: 1rem;
}

#title-contact::after{
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--active-and-text-color);
}

#btn-contact{
  width: 90%;
  height: 3rem;
}

#contact-img{
  width: 200%;
  max-width: none;
  transform: translateX(-25%);
}

@media (max-width: 1024px) {
  #contact-img {
    width: 160%;
    transform: translateX(-20%);
  }

  #contact-grid{
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
  }

}

@media(max-width: 768px){
  #contact-grid{
    grid-template-columns: 1fr;
    width: 60%;
  }

  #contact-img{
    width: 120%;
    transform: translateX(-10%);
  }
}

@media(max-width: 600px){
  #contact-img{
    width: 200%;
    transform: translateX(-27%);
  }
}

@media(max-width:426px){
  #contact-grid{
    width: 100%;
  }

  #contact-img{
    width: 200%;
    transform: translateX(-27%);
  }
}

/* Termino do css da section de contato */