@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700;800&family=Roboto:ital,wght@0,100;0,300;0,400;0,900;1,300;1,500;1,700&display=swap');
@import url('./animations.css');

:root{
  font-family: 'Roboto', Arial, Helvetica, sans-serif;

  --primary-background-color: #131314; /*#0A0A0C;*/
  --secondary-background-color: #1E1E1F;
  --generic-background-color: #19191C;
  --second-background-color: #000;
  /* --test-color: #050716; */

  --primary-color: #fff;
  --secondary-color: #252e8a;
  --easter-egg-color: #A62323;
  --menu-primary-color: #9f9f9f;

  --list-decoration-shadow: rgba(255, 255, 255, 0.101);
  --box-shadow-skills: 1px 1px 20px 5px rgba(255, 255, 255, 0.096);
  --box-shadow-card-project: 1px 1px 20px 5px rgba(39, 37, 37, 0.267); 
  
  --default-border-radius: 4px;
  --menu-border-radius: 20px;

}

html{
  scroll-behavior: smooth;
  min-height:100%;
  position:relative;
}

body{
  background-color: var(--primary-background-color);
  color: var(--primary-color);
  padding-bottom: 50px;
}

.wrapper{
  width: 90%;
  margin: 0 auto;
}

.main{
  display: flex;
  align-items: center;
}

.initial-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  overflow: hidden;
  z-index: 4;
  background-color: var(--primary-background-color);
}

.initial-wrapper-content{
  width: 100%;
  height: 300px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 120px;
}

.avatar-wrapper{
  width: 0px;
  margin: 0 auto;
  background-color: var(--secondary-background-color);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.avatar-wrapper::after{
  content: "";
  display: block;
  padding-bottom: 100%;
}

.avatar-wrapper img{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 200px;
  left: 0px;
}

.title-page-default{  
  display: inline;
  padding-right: 4px;
  color: var(--primary-color);
  border-right: .15em solid var(--primary-color);
  white-space: nowrap;
  font-size: 1.4em;
  text-transform: uppercase;
  font-weight: bold;
  animation: .5s blink-animation infinite;
}

.title-page-default span{
  color: var(--easter-egg-color);
}

.title-page{
  visibility: hidden;
  overflow: hidden;
  margin-top: 30px;
  position: absolute;
  top: 90%;
  left: 30%;
}

.title-page span{
  color: var(--easter-egg-color);
}

.remove-initial-wrapper{
  display: none;
}

.avatar-wrapper-animation{
  animation: wrapper-animation 6s forwards;
}

.avatar-image-animation{
  animation: img-animation 4s forwards 1s;
}

.title-page-animation{
  animation: typing 1.5s steps(10, end) 0.5s forwards,
  blink-animation .5s step-end infinite,
  change-animation .3s steps(100, end) forwards 4s;
}

navbar{
  display: block;
  padding: 20px 0px 0px 10px;
}

.menu-links{
  background-color: var(--secondary-background-color);
  padding: 20px 0px;
  border-radius: var(--menu-border-radius) var(--menu-border-radius) 0px 0px;
  width: 100%;
  position: fixed;
  z-index: 3;
  bottom: -1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.menu-links a{
  text-decoration: none;
  color: var(--menu-primary-color);
  font-weight: normal;
  font-size: 0.9em;
}

.main{
  display: flex;
  flex-direction: column;
}

.initial-content-wrapper{
  min-height: 50vh;
  background-image: url('../assets/images/welcome-background-coding.gif');
  background-size: cover;
  background-position: center;
  padding: 20px;  
}

.introduction-card{
  margin-top: 40px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  color: var(--primary-color);
}

.title-default{
  font-size: 1.6em;
  font-weight: 500;
}

.title-default p{
  color: var(--easter-egg-color);
  font-weight: bold;
  font-size: 1.7em;
  margin: 10px 0px;
}

.text-default{
  font-weight: 200;
  margin-top: 10px;
}

.row-buttons{
  display: flex;
  flex-wrap: wrap;
  height: auto;
  margin-top: 30px;
}

.button{
  text-decoration: none;
  background-color: #fff;
  color: var(--easter-egg-color);
  /* border: 1px solid blue; */
  border-radius: var(--default-border-radius);
  padding: 12px 25px;
  margin: 10px 10px 10px 0px;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.button span{
  position: absolute;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: ripple-effect 1s linear infinite;
}

.button i{
  font-size: 24px;
  margin-right: 5px;
}

.button:hover{
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.about-me{
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-section{
  font-size: 1.4em;
  font-weight: 600;
}

.title-section::after{
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  margin-left: 1px;
  border-radius: var(--default-border-radius);
  background-color: var(--easter-egg-color);
}

.content-about-me{
  display: flex;
  flex-direction: column;
  max-width: 500px;
  align-self: center;
  justify-content: center;
  margin: 0 auto;
}

.content-about-me .button{
  margin: 0;
}

.rounded-wrapper{
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.rounded-wrapper img{
  width: 9rem;
  border-radius: 50%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 1px 1px 1px 10px rgba(0, 0, 0, 0.093);
}

.rounded-wrapper::after{
  content: "";
  display: block;
}

.content-text p{
  font-size: 1.2em;
  word-spacing: 0.1em;
  line-height: 1.3em;
  margin-bottom: 20px;
}

.content-text .button{
  margin-right: 0;
}

.margin-sections{
  margin-top: 50px;
}

.skills{
  display: flex;
  flex-direction: column;
}

.group-skills{
  background-color: var(--secondary-background-color);
  padding: 20px;
  margin: 40px 0px;
  border-radius: var(--default-border-radius);
  box-shadow: var(--box-shadow-skills);
  display: flex;
  flex-direction: column;
  width: 92%;
  max-width: 460px;
  align-self: center;
}

.group-skills p{
  font-size: 1em;
  font-weight: 500;
  width: auto;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--easter-egg-color);
}

.row-skills{
  width: 100%;
  display: flex;
  align-items: start;
  justify-content: space-evenly;
  flex-wrap: wrap;
  font-size: 2.4em;
  padding-top: 20px;
  margin-bottom: 40px;
}

.row-skills i{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px;
}

.row-skills i:hover{
  margin-top: -10px;
}

.row-skills i::after{
  content:attr(data-name);
  font-size: .3em;
  font-weight: 500;
  font-family: 'roboto';
  margin-top: 8px;
  pointer-events: none;
  text-transform: uppercase;
}

.projects, .experiences, .contact{
  background-color: var(--second-background-color);
}

.projects{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

.projects .wrapper{
  margin: 20px;
}

.column-projects{
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  margin-top: 25px;
}

.card-project{
  max-width: 360px;  
  display: flex;
  flex-direction: column;
  margin: 10px;
  background-color: var(--secondary-background-color);
  border-radius: var(--default-border-radius);
  box-shadow: var(--box-shadow-card-project);
}

.content-card{
  padding: 10px 20px;
}

.card-project img{
  max-width: 100%;
  height: 200px;
  border-radius: var(--default-border-radius);
  margin-bottom: 10px;
  object-fit: cover;
}

.card-project h2{
  font-size: 1.2em;
  font-weight: 500;
}

.card-project p{
  font-size: .8em;
  font-style: italic;
  margin-top: 5px;
  color: var(--menu-primary-color);
}

.card-project p ~ p{
  margin: 15px 0px;
  font-style: normal;
  font-size: .9em;
  line-height: 1.4em;
  color: var(--primary-color);
}

.buttons-card-project{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.buttons-card-project .button{
  margin-right: 0;
  padding: 10px 18px;
  font-size: .9em;
  font-weight: 500;
}

.buttons-card-project .button i{
  font-size: 1em;
}

.button-card{
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-color);
}

.button-card i {
  margin-right: 5px;
}

.work-experiences{
  margin-top: 25px;
  padding-left: 15px;
  border-left: 2px solid var(--primary-color);
}

.experience{
  padding-bottom: 30px;
}

.experience h2{
  position: relative;
  font-size: 1.4em;
  font-weight: bold;
}

.experience h2::before{
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--easter-egg-color);
  border-radius: 50%;
  box-shadow: 0px 0px 1px 5px var(--list-decoration-shadow);
  position: absolute;
  left: -23px;
  top: 4px;
}

.experience .company{
  font-weight: light;
  font-size: .8em;
  margin: 8px;
  line-height: 1.4em;
}

.experience .infos-about-experience{
  line-height: 1.4em;
  margin: 10px 0px;
}

.experience .tools{
  font-size: .7em;
  font-weight: light;
}

.experience .tools span{
  font-weight: 500;
  text-transform: uppercase;
}

.contact{
  padding: 20px 0px;
  
}

.contact p{
  margin-top: 20px;
}

.social-medias{
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  margin-top: 30px;
}

.social-media{
  margin-bottom: 10px;
  padding-left: 5px;
  text-decoration: none;
  color: var(--primary-color);
}

.social-media:hover{
  margin-left: 5px;
  border-left: 5px solid var(--easter-egg-color);
}

.social-media i{
  margin-right: 5px;
  align-self: center;
}

@media screen and (min-width: 840px){
  .wrapper{
    width: 80%;
  }

  .content-about-me{
    flex-direction: row;    
    justify-content: space-around;
    align-items: center;
    max-width: 850px;
    padding-bottom: 0px;
  }

  .rounded-wrapper img{
    width: 12rem;
  }

  .content-text{
    width: 45%;
  }

  .group-skills{
    max-width: 780px;
  }

  .group-skills p{
    font-size: 1.4em;
  }

  .row-skills{
    font-size: 3.4em;
    padding-top: 30px;
  }

  .card-project{
    max-width: 220px;
  }

  .card-project img{
    height: 150px;
  }

  .work-experiences{
    max-width: 700px;
    margin-left: 20px;
  }

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

  .social-medias{
    flex-direction: row;
  }

  .social-media{
    margin-bottom: 0px;
    margin-left: 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-media i{
    font-size: 1.4em;
    margin-right: 10px;
  }

  .social-media:hover{
    margin-left: 10px;
    border-left: 0;
    margin-bottom: 20px;
    border-bottom: 5px solid var(--easter-egg-color);
  }

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

@media screen and (min-width: 1070px){
  body{
    padding-bottom: 0px;
  }
  
  .wrapper{
    width: 1000px;
    margin: 0 auto;
  }

  .title-page{
    left: 45%;
  }

  .title-section{
    font-size: 2em;
    margin-left: 60px;
    margin-bottom: 20px;
  }

  navbar{
    display: flex;
    align-items: center;
    justify-content: space-around;
  }

  .menu-links{
    position: relative;
    color: var(--primary-color);
    background-color: transparent;
  }

  .menu-links a{
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1em;
  }

  .initial-content-wrapper{
    min-height: 40vh;
    border-radius: 0px 0px 60px 60px;
  }

  .introduction-card{
    padding: 40px;
    margin-top: 40px;
  }

  .introduction-card .title-default{
    font-size: 2.5em;
  }

  .introduction-card .subtitle-welcome{
    font-size: 1.5em;
  }

  .row-buttons .button{
    font-size: 1.4em;
  }

  .about-me{
    padding: 0px;
    margin-top: 150px;
  }

  .contact, .experiences{
    padding: 80px 0px;
    margin-top: 0px;
  }

  .content-about-me{
    margin-bottom: 100px;
    max-width: 1000px;
  }

  .content-about-me img{
    width: 15em;
  }

  .content-text{
    font-size: 1.2em;
    width: 50%;
  }

  .group-skills{
    max-width: 700px;
  }

  .skills p{
    font-size: 1.6em;
  }

  .card-project{
    max-width: 300px;
    margin: 10px;
  }

  .content-card{
    padding: 10px;
  }

  .work-experiences{
    margin-left: 60px;
  }

  .contact p{
    text-align: center;
    margin-top: 50px;
  }

  .social-medias{
    margin-top: 20px;
  }
}

@media screen and (min-width: 2700px){

  .wrapper{
    width: 2000px;
  }

  .menu-links, .introduction-card{
    font-size: 2em;
  }

  .button i{
    font-size: 1em;
  }

  .content-text{
    font-size: 1.4em;
  }

  .row-skills{
    font-size: 4em;
  }

  .card-project{
    max-width: 450px;
    font-size: 1.5em;
  }

  .experiences, .contact{
    font-size: 1.3em;
  }
}