@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Sixtyfour+Convergence&display=swap");

/* styles */
@import url("header.css");
@import url("switch.css");
@import url("rain.css");
@import url("achievements.css");
@import url("home.css");
@import url("services.css");
@import url("projects.css");
@import url("skills.css");
@import url("apprenticeship.css");
@import url("contact.css");
@import url("footer.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Merriweather", serif;
}

:root {
  --silver: rgb(82, 82, 82);
  --green: rgb(0, 255, 0);
  --yellow: rgb(255, 255, 0);
  --purple: rgb(160, 32, 240);
  --orange: rgb(255, 165, 0);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--scroolbarcolor);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 5rem;
  overflow-x: hidden;
}

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 100px;
  padding-bottom: 2rem;
}

/* Loading */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
}

.spinner {
  border: 6px solid #e0e0e0;
  animation: bordertoprgb 2s linear infinite, spin 1s linear infinite;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

@keyframes bordertoprgb {
  0% {
    border-top: 6px solid var(--silver);
  }

  25% {
    border-top: 6px solid var(--green);
  }

  50% {
    border-top: 6px solid var(--yellow);
  }

  75% {
    border-top: 6px solid var(--purple);
  }

  100% {
    border-top: 6px solid var(--orange);
  }
}

@keyframes colorrgb {
  0% {
    color: var(--silver);
  }

  25% {
    color: var(--green);
  }

  50% {
    color: var(--yellow);
  }

  75% {
    color: var(--purple);
  }

  100% {
    color: var(--orange);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#loader-text {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bolder;
  animation: colorrgb 2s linear infinite;
  opacity: 0.8;
}

/* responsividade */
@media screen and (max-width: 1450px) {
  html {
    font-size: 55%;
  }

  .servicos-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .projetos-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1350px) {
  .inicio {
    flex-direction: column-reverse;
    margin: 5rem 4rem;
  }

  .inicio .inicio-container h3 {
    font-size: 2.5rem;
  }

  .inicio-container h1 {
    font-size: 5rem;
  }

  .inicio-img img {
    width: 70vw;
  }

  #openmenu {
    display: block;
  }

  #navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 100vh;
    padding: 3%;
    background: var(--bg-degrade);
    display: none;
    flex-direction: column;
    align-items: center;
  }

  #navbar.active {
    display: block;
  }

  #navbar a {
    display: block;
    font-size: 2rem;
    margin: 0.5rem;
  }

  #navbar a:hover,
  #navbar a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--main-color);
  }

  .navmob {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 20px;
  }
}

@media screen and (max-width: 1100px) {
  .inicio {
    gap: 4rem;
  }
}

@media screen and (max-width: 1000px) {
  section {
    padding: 10rem 3% 2rem;
  }

  .servicos {
    padding-bottom: 7rem;
  }

  .projetos {
    padding-bottom: 7rem;
  }

  .header {
    padding: 2rem 3%;
  }

  .heading {
    text-align: center;
    font-size: 45px;
  }

  .heading span {
    font-size: 40px;
  }

  .footer {
    padding: 2rem 3%;
  }

  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
}

@media screen and (max-width: 900px) {
  #navbar {
    flex-direction: column;
  }

  .servicos-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .projetos-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .skills .container {
    margin: 0;
    padding: 0;
  }

  .skills .container {
    margin-top: 5px;
    width: 100%;
  }

  .aprendizado .timeline {
    margin-top: 2rem;
  }

  .aprendizado .timeline::after {
    left: 31px;
  }

  .aprendizado .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
  }

  .aprendizado .container::after {
    font-size: 2.2rem;
  }

  .aprendizado .container::before {
    left: 61px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--main-color) transparent transparent;
  }

  .aprendizado .left::after {
    left: 15px;
  }

  .aprendizado .left::before {
    width: 0%;
  }

  .aprendizado .right::after {
    left: 15px;
  }

  .aprendizado .right {
    left: 0%;
  }

  .servicos-imgloading {
    width: 50%;
    left: 35%;
  }

  .loading {
    width: 60%;
  }

  .projetos-box {
    height: 480px;
  }

  .projetos-box:hover {
    background-color: rgba(60, 0, 155, 0.4);
    color: var(--text-color);
  }

  .boxachievements {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .boxachievements>h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .achievements>img {
    width: 80px;
  }

  .achievements:hover>img {
    width: 80px;
  }

  .inicio-container .blurmain {
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    animation: colorborder 5s ease infinite;
  }

  .inicio-container p {
    font-size: 1.8rem;
    font-weight: 500;
  }

  .boxgalaxybrain .card {
    width: 350px;
  }

  .boxgalaxybrain .info {
    width: 350px;
  }

  .title::after {
    width: 320px;
  }

  .boxpairextraordinaire .card {
    width: 350px;
  }

  .boxpairextraordinaire .info {
    width: 350px;
  }

  .boxpairextraordinaire .info p {
    margin-top: 0px;
    font-size: 1rem;
  }

  .boxpullshark .card {
    width: 350px;
  }

  .boxpullshark .info {
    width: 350px;
  }

  .boxquickdraw .card {
    width: 350px;
  }

  .boxquickdraw .info {
    width: 350px;
  }

  .boxquickdraw .info p {
    margin-top: 0px;
    font-size: 1rem;
  }

  .boxyolo .card {
    width: 350px;
  }

  .boxyolo .info {
    width: 350px;
  }

  .boxyolo .info p {
    margin-top: 0px;
    font-size: 1rem;
  }

}