@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
  background: url(./assets/Group\ 29.jpg) no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-x: hidden;
}

body * {
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

:root {
  --container-gap: 15px;
  --card-border: 2px;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  color: white; /*alterar para white */
}

ion-icon {
  color: #00ff80;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: white;
  gap: 8px;
  text-align: center;
}

a:hover {
  color: #00ff80;
}

.container {
  display: flex;
  flex-wrap: wrap;
  /* border: solid red 2px; */
  width: 80%;
  justify-content: center;
  gap: var(--container-gap);
}

.card {
  border: var(--card-border) solid #00ff00;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  padding-block: 5px;
 /* padding: 10px; posso adicionar o padding no card mas tenho que considerar a conta no calc
 2 *número de cards * tamanho do padding*/
  background-color: #00ff8007;

  overflow: hidden;
}

.text-name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  background: radial-gradient(circle, #00ff80, #11c401c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.text-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  background: radial-gradient(circle, #00ff80, #11c401c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 10px 0 10px 0;
}

.text-bold {
  font-weight: 300;
  font-size: 10px;
}

.text-about {
  text-align: justify;
  font-size: 14px ;
  margin: 15px;
  color: rgba(255, 255, 255, 0.952); /*alterar para white*/
}

.text-button {
  font-size: 180px;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  color: white;
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid black;
  position: relative;
}

.button:hover{
  transform: scale(1.05);
  color: #00ff80;
  border-color: #00ff00;
  transition: all 0.3s ease-in-out;
}

.button ion-icon {
  position: absolute;
  top: 40%;
  left: 10%;
}

.no-absolute-icon {
  position: unset;
}

.no-absolute-icon ion-icon {
  position: unset;
}

.no-copy {
  user-select: none;
  -webkit-user-select: none;    /* Safari */
  -moz-user-select: none;       /* Firefox */
  -ms-user-select: none;        /* IE/Edge */
  -o-user-select: none;         /* Opera */
}

.section {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.photo {
  margin-top: 10px;
  height: 190px;
  width: 180px;
}

#progress-bar {
  margin: 0 auto;
  width: 200px;
  height: 20px;
  border: 3px solid #11bb02bb;
  border-radius: 10px;
  background-color: transparent;
  overflow: hidden;
  padding: 3px;
  margin: 3px auto;
}

#progress {
  height: 100%;
  width: 60%;
  background-color: #00ff80;
  border-radius: 8px 3px 3px 8px;
  animation: loading 3.5s ease-in-out forwards;
}

@keyframes loading {
  from {
    width: 0%;
  }

  to {
    width: 60%;
  }
}

.position {
  width: 0;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;

  border-right: 2px solid #00ff00;
  animation:
    typing 3.7s steps(26) forwards,
    cuorses 0.7s steps(1) infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 20ch;
  }
}

@keyframes cuorses {
  50% {
    border-color: transparent;
  }
}

.to-emerge {
  animation: emerge 4s ease-out 0.2s forwards; ;
}

@keyframes emerge {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.green {
  color: #00ff80;
  font-weight: bold;
}

.profile{
  width: 30%;
}

.about {
  width: 30%;
}

.language {
  width: 30%;
}

.button.language {
  transition: all 0.03s ease-in-out;
  width: 80%;
}

.button.language:hover {
  border-color: black;
}

.contato {
  width: calc(60% + var(--container-gap) + var(--card-border ) * 2);
}

.contato .button {
  width: 40%;
  height: 40px;
  margin: 0;
}

.projetos {
  width: 30%;
}

.projetos .button {
  width: 60%;
  height: 20px;
  justify-content: center;
}

.projetos .button ion-icon {
  font-size: 18px;
  position: relative;
  align-items: center;
  justify-content: center;
  top: -5%;
  left: -3%;
}

.experiencia{
  width: calc(90% + calc(var(--container-gap) * 2) + var(--card-border) * 4); 
  height: 90px;
}

.experiencia ion-icon {
  font-size: 20px;
  justify-content: center;
}

#experience {
  display: inline-block;
  animation: balancar 1s ease-in-out infinite;
}

.icon-experience {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.icon-experience #experience {
  font-size: 25px;
  color: #00ff80;
  animation: balancar 1s ease-in-out infinite;
}

.icon-experience .text-stay {
  font-size: 17px;
  color: white;
}

.icon-experience .text-stay:hover{
  color: #00ff80;
}

.icon-experience .text-width{
  font-size: 17px;
}

@keyframes balancar {
  0% {
    transform: rotate(5deg);
  }

  25% {
    transform: rotate(7deg);
  }

  50% {
    transform: rotate(5deg);
  }

  75% {
    transform: rotate(-7deg);
  }

  100% {
    transform: rotate(8deg);
  }
}

@media (min-width: 900px) and (max-width: 982px) {
  main {
    margin-top: 20px;
  }

  .projetos .button ion-icon {
    font-size: 30px;
  }

  #progress-bar {
    width: 100px;
  }

  .text-adaptavel {
    display: none;
  }
  
}

@media (max-width: 899px) {
  main {
    margin: 20px;
  }

    .projetos .button ion-icon {
    font-size: 30px;
  }

  #progress-bar {
    width: 100px;
  }

  /* .text-adaptavel {
    display: none;
  } */

}

@media screen and (max-width: 768px) {   
  .profile {
    margin-top: 20px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .card {
    width: 90% !important;
  }

  .profile,
  .about,
  .language,
  .contato,
  .projetos,
  .experiencia {
    width: 90% !important;
  }

  .section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button {
    width: 80% !important;
    font-size: 14px;
  }

  .contato .button {
    height: auto;
    flex-direction: row;
    justify-content: center;
  }

  ion-icon {
    font-size: 18px;
  }

  .projetos .button ion-icon {
    font-size: 18px;
  }
  
  .no-absolute-icon {
    position: relative;
  }
  
  .no-absolute-icon ion-icon {
    position: absolute;
    top: 30%;
    left: 5%;
  }

  .text-title,
  .text-name {
    font-size: 18px;
  }

  .text-about,
  .text-stay {
    font-size: 13px;
  }

  .photo {
    width: 120px;
    height: 130px;
  }
}