@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 4rem;
}

:root {
  --light-grey: #686868;
  --grey: #4f4f4f;
  --light-red: hsl(2, 79%, 53%);
  --red: hsl(358, 82%, 39%);
  --dark-theme: hsl(219, 18%, 15%);
}

body {
  font-size: 16px;
  font-family: "Ubuntu", sans-serif;
}

.navbar {
  width: 100%;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  background-color: hsl(0, 0%, 100%);
  z-index: 200;
}

.navbar nav {
  width: 61.25rem;
}

.navbar nav div {
  transform: translate(0, -2px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-right: 4rem;
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav ul {
  display: inline-flex;
  gap: 4rem;
}

.navbar nav ul li a {
  color: #686868;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
}

.navbar nav ul li a:hover {
  color: var(--red);
}

.cover {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.cover .img-wrapper {
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.8);
}

.cover .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  animation: zoom 25s;
}

@keyframes zoom {
  0% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.cover .banner {
  position: absolute;
  top: 25%;
  left: 15%;
  z-index: 100;
}

.cover .banner h1 {
  color: #fff;
  font-size: 3.5rem;
  text-shadow: 0.3rem 0.4rem 2px hsla(0, 0%, 0%, 0.4);
  margin-bottom: 2rem;
  line-height: 4.2rem;
  animation: moveRotate 1s 0.5s forwards;
  opacity: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.cover .banner p {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0.2rem 0.2rem 2px hsla(0, 0%, 0%, 0.4);
  margin-bottom: 2rem;
  animation: moveRotate 1s 0.7s forwards;
  opacity: 0;
}

.cover .banner button {
  background: #e52d27;
  background: -webkit-linear-gradient(to right, #b31217, #e52d27);
  background: linear-gradient(to right, #b31217, #e52d27);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  animation: moveRotate 1s 0.9 forwards;
  opacity: 0;
  border-radius: 5px;
}

@keyframes moveRotate {
  0% {
    transform: translateY(10rem) rotateY(-30deg);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.default-header {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.default-header h1 {
  color: var(--light-grey);
  font-size: 3rem;
  border-bottom: solid 3px var(--light-red);
  padding-bottom: 1.5rem;
}

.quemSomos .text-wrapper {
  display: flex;
  padding-bottom: 4.5rem;
}

.quemSomos .team {
  padding-left: 0.5rem;
  padding-top: 3.5rem;
  display: grid;
  grid-column: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-row: auto;
  grid-template-areas:
    "team-img1 team-img2 team-img3 team-img4 team-img5 team-img6"
    "team-img7 team-img8 team-img9 team-img10 team-img11 team-img12"
    "team-img13 team-img14 team-img15 team-img16 team-img17 team-img18"
    ". team-img19 team-img20 team-img21 team-img22 .";
  gap: 0.5rem;
  width: 45%;
}

.quemSomos .team div {
  width: auto;
  height: 6rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 50%;
}

.quemSomos .text-wrapper .text-container {
  padding-top: 5rem;
  padding-left: 8rem;
  width: 40rem;
}

.quemSomos .text-wrapper .text-container p {
  font-size: 1.3rem;
  color: var(--grey);
  line-height: 1.8rem;
}

.quemSomos .text-wrapper p:nth-child(2) {
  padding-top: 0.5rem;
}

.serviços {
  background: var(--dark-theme);
}

.serviços h1 {
  color: #fff;
}

.serviços .grid-wrapper {
  padding-top: 5.5rem;
  margin: 0 auto;
  width: 95%;
  display: grid;
  grid-column: 1fr;
  grid-row: auto;
  gap: 3.5rem;
  grid-template-areas: "serv-img1 serv-img2 serv-img3 serv-img4";
  padding-bottom: 3rem;
}

.grid-wrapper div {
  width: auto;
  height: 21.125rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 5px;
}

.serviços #serv-grid-img {
  position: relative;
  overflow: hidden;
}

.serv-grid-img1 {
  background-image: url(../images/1.jpg);
  grid-area: serv-img1;
}

.serv-grid-img2 {
  background-image: url(../images/2.jpg);
  grid-area: serv-img2;
}

.serv-grid-img3 {
  background-image: url(../images/3.jpg);
  grid-area: serv-img3;
}

.serv-grid-img4 {
  background-image: url(../images/4.jpg);
  grid-area: serv-img4;
}

.serviços .background-effect {
  background-color: hsl(0, 0%, 0%);
  opacity: 0;
}

.serviços .grid-wrapper .card-text {
  margin-left: 0.5rem;
  height: auto;
  position: absolute;
  bottom: 0;
  z-index: 100;
  visibility: hidden;
}

.card-text h1 {
  color: var(--light-red);
  font-weight: 900;
  font-size: 1.5rem;
  padding-bottom: 0.7rem;
}

.card-text p {
  color: #fff;
  padding-bottom: 0.7rem;
  font-weight: 700;
}

.card-text button {
  text-transform: uppercase;
  background: #e52d27;
  background: -webkit-linear-gradient(to right, #b31217, #e52d27);
  background: linear-gradient(to right, #b31217, #e52d27);
  padding: 0.5rem 1.1rem;
  color: #fff;
  border: none;
  margin-bottom: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

.serv-grid-img1:hover .card-text {
  visibility: visible;
  animation: moveUp 1s;
}
.serv-grid-img2:hover .card-text {
  visibility: visible;
  animation: moveUp 1s;
}
.serv-grid-img3:hover .card-text {
  visibility: visible;
  animation: moveUp 1s;
}
.serv-grid-img4:hover .card-text {
  visibility: visible;
  animation: moveUp 1s;
}

@keyframes moveUp {
  0% {
    transform: translateY(10rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.projetos header {
  height: 110px;
  width: 100%;
  background: var(--red);
  display: flex;
  justify-content: center;
  align-items: center;
}

.projetos header div {
  margin: 0 7rem;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
}

.projetos header div p {
  display: inline-block;
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
}

.projetos header div p:nth-child(2) {
  padding-top: 1rem;
  font-size: 1rem;
  white-space: nowrap;
  text-transform: uppercase;
}

.portfolio .text-wrapper {
  display: flex;
  padding-bottom: 3rem;
}

.portfolio .text-wrapper .text-container {
  padding-top: 4rem;
  padding-left: 6rem;
  width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio .text-wrapper .text-container h2 {
  color: #686868;
  font-size: 1.7rem;
  border-bottom: solid 3px var(--light-red);
  padding-bottom: 1.5rem;
  font-weight: 600;
}

.portfolio .text-wrapper .text-container p {
  padding-top: 2rem;
  font-size: 1.3rem;
  color: var(--grey);
  line-height: 1.8rem;
  height: 20rem;
}

.portfolio .text-wrapper .img-container {
  padding-left: 4.5rem;
  padding-top: 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio .text-wrapper .img-container img {
  width: 570px;
  height: 400px;
}

.portfolio .text-wrapper .img-container ul {
  display: flex;
  justify-content: center;
}

.portfolio .text-wrapper .img-container div {
  display: flex;
  justify-content: center;
}

.portfolio .text-wrapper .img-container div ul {
  display: inline-flex;
  margin: 0 auto;
  gap: 0.7rem;
}

.portfolio .text-wrapper .img-container div div {
  margin-top: 1rem;
  background-color: var(--light-red);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.portfolio .text-wrapper .arrow {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.arrow img {
  cursor: pointer;
}

.portfolio .text-wrapper #port-text1 {
  display: block;
}
.portfolio .text-wrapper #port-header1 {
  display: block;
}
.portfolio .text-wrapper #ball-1 {
  background-color: #b31217;
}

.contato {
  display: flex;
  padding-bottom: 2rem;
}

.contato .contato-container {
  margin: 0 auto;
  max-width: 400px;
}
.contato .localização {
  margin: 0 auto;
}
.contato .localização .img-wrapper {
  padding-top: 2rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contato .localização .img-wrapper img {
  max-width: 400px;
}

.contato .contato-container .icons {
  display: grid;
  padding-top: 2rem;
  font-size: 2.5rem;
  row-gap: 2rem;
  grid-template-columns: 1fr 7fr;
  grid-template-rows: auto;
}

.icons div h2 {
  padding-top: 0.3rem;
  font-size: 1.8rem;
}

.icons div p {
  padding-top: 0.5rem;
  font-size: 1.1rem;
}

footer {
  background-color: var(--dark-theme);
  display: flex;
  color: #fff;
  margin-top: 1rem;
}

footer .footer-container {
  display: flex;
  margin: 1.2rem 8rem;
  width: 100%;
  gap: 2.2rem;
}

footer h2 {
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
}

footer .footer-container .footer-contato p {
  line-height: 1.3rem;
}

footer .footer-container .menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

footer .footer-container .menu ul a{
  text-decoration: none;
  color: inherit;
}

footer .footer-container .menu ul a:hover{
  color: var(--red);
}

footer .footer-container .follow {
  margin-left: auto;
}

footer .footer-container .follow .icon-container {
  display: flex;
  gap: 1rem;
  font-size: 1.6rem;
  padding: 0.5rem 0;
}

footer .footer-container .follow .icon-container a:hover {
  color: var(--red);
}

footer .footer-container .follow a {
  color: inherit;
}

footer .footer-container .follow p {
  font-size: 0.8rem;
  line-height: 1.2rem;
}
