@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
  --header-height: 3.5rem;
  --first-color: #566ddd;
  --second-color: #e71313;
  --second-gradient: linear-gradient(to right, #e71313, #ff4949);
  --title-color: hsl(255, 12%, 12%);
  --text-color: hsl(225, 12%, 24%);
  --text-color-light: hsl(255, 4%, 70%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 100%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: #0c1f32;
  --gray-border: hsl(255, 6%, 90%);
  --black-border: hsl(255, 10%, 20%);
  --body-font: "Montserrat", sans-serif;
  --big-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .75rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--second-color);
  margin-bottom: .5rem;
}

.main {
  overflow: hidden;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--white-color);
  z-index: var(--z-fixed);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.226);
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  width: 100px;
}

.nav__toggle,
.nav__close{
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .4s;
}

@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--white-color);
    width: 80%;
    height: 100%;
    padding: 7.5rem 3.5rem 0;
    border-left: 2px solid var(--gray-border);
    transition: right .4s;
  }
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover{
  color: var(--second-color);
}

.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.show-menu{
  right: 0;
}

.home{
  position: relative;
  background-color: var(--black-color);
}

.home__container{
  position: relative;
  row-gap: 3rem;
  padding-block: 2.5rem 6rem;
}

.home__content{
  row-gap: 2.5rem;
}

.home__data{
  text-align: center;
}

.home__title{
  color: var(--white-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.home__description{
  margin-bottom: 2.5rem;
  color: var(--text-color-light)
}

.home__buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__info{
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.home__info div {
  text-align: center;
}

.home__info-title{
  color: var(--first-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
}

.home__info-description{
  font-size: var(--small-font-size);
  color: var(--white-color);
}

.home__images{
  position: relative;
  justify-self: center;
}

.home__img-1{
  width: 250px;
  margin-left: 3.5rem;
}

.home__img-2{
  width: 150px;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}

.button{
  all: unset;
  cursor: pointer;
  display: inline-flex;
  background: var(--second-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
}

.button:hover{
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, .3);
  color: var(--white-color);
}

.button__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--white-color);
}

.button__link span{
  font-weight: var(--font-semi-bold);
}

.button__link i{
  font-size: 1.5rem;
  transition: transform .4s;
}

.button__link:hover i{
  transform: translateX(.25rem);
}

.about__container{
  row-gap: 8rem;
}

.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: 2rem;
}

.about__list{
  text-align: initial;
  grid-template-columns: repeat(2, 130px);
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about__list-item{
  display: flex;
  column-gap: .5rem;
  color: var(--text-color);
}

.about__list-item i{
  font-size: 1.25;
  color: blue;
}

.about__images{
  position: relative;
  justify-self: center;
}

.about__img-1{
  width: 260px;  
  border: 5px solid var(--body-color);
  position: absolute;
  top: -2rem;           
  left: 2rem;           
}

.about__img-2{
  width: 250px;
  margin-right: 2.5rem;
}

.services{
  position: relative;
}

.services__container{
  position: relative;
  row-gap: 3rem;
}

.services__data{
  text-align: center;
}

.services__description{
  margin-bottom: 2rem;
}

.services__card{
  width: 260px;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 3.5rem;
  transition: border-color .4s;
}

.services__card:hover{
  border-color: var(--second-color);
}

.services__img{
  margin-bottom: 1.5rem;
}

.services__title{
  font-size: var(--h2-font-size);
  color: var(--black-color);
  margin-bottom: .5rem;
}

.services__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  margin-top: .7rem;
  color: rgb(43, 43, 255);
}

.services__link span{
  font-weight: var(--font-semi-bold);
}

.services__link i{
  font-size: 1.5rem;
  transition: transform .4s;
}

.services__link:hover i{
  transform: translateX(.25rem);
}

.services__shape{
  position: absolute;
  width: 100%;
  height: 245px;
  background-color: var(--black-color);
  bottom: 0;
  left: 0;
}

.swiper{
  margin-inline: initial;
  padding-bottom: 4rem;
}

.swiper-button-prev::after,
.swiper-button-next::after{
  content: '';
}

.swiper-button-prev,
.swiper-button-next{
  top: initial;
  bottom: 0;
  width: 32px;
  height: 32px;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, .1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--title-color);
}

.swiper-button-prev{
  left: calc(50% - 3rem);
}

.swiper-button-next{
  right: calc(50% - 3rem);
}

.projects{
  background-color: var(--black-color);
}

.projects .section__title{
  color: var(--white-color);
}

.projects__container{
  padding-block: 1.5rem 3rem;
}

.projects__card{
  background-color: var(--container-color);
  border: 2px solid transparent;
  background-clip: content-box;
  transition: border-color .4s;
}

.projects__card:hover{
  border-color: var(--second-color);
}

.projects__data{
  padding: 1.5rem 1rem 3rem;
}

.projects__title{
  font-size: var(--h2-font-size);
  margin-block: .5rem;
}

.projects__date{
  display: block;
  font-weight: var(--font-medium);
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.customers{
  text-align: center;
  margin-inline: 1.5rem;
}

.customers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding-inline: 1rem;
}

.customer__logo {
  padding: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 80px;
}

.customer__logo:hover {
  transform: translateY(-4px);
}

.customer__logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.contact__container{
  row-gap: 3.5rem;
  padding-block: 1.5rem 3rem;
}

.contact__data{
  display: grid;
  row-gap: 2rem;
}

.contact__subtitle{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: .5rem;
}

.contact__description{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__icon{
  font-size: 1.25rem;
}

.contact__inputs{
  display: grid;
  row-gap: 2rem;
  margin-bottom: 1rem;
}

.contact__content{
  position: relative;
  height: 3rem;
  border-bottom: 1px solid var(--text-color-light);
}

.contact__input{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 1rem 0;
  background: none;
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-family: "Montserrat", sans-serif;
  border: none;
  outline: none;
  z-index: 1;
}

.contact__label{
  position: absolute;
  top: .75rem;
  width: 100%;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  transition: .3s;
}

.contact__area{
  height: 7rem;
}

.contact__area textarea{
  resize: none;
}

.contact__input:focus + .contact__label{
  top: -.75rem;
  left: 0;
  font-size: var(--small-font-size);
  z-index: 10;
}

.contact__input:not(:placeholder-shown).contact__input:not(:focus) + .contact__label{
  top: -.75rem;
  font-size: var(--small-font-size);
  z-index: 10;
}

.contact__message{
  margin-bottom: 2rem;
  font-size: var(--normal-font-size);
  color: rgb(38, 38, 255);
  font-weight: var(--font-semi-bold);
}

.footer__logo{
  width: 100px;
}

.footer{
  background-color: var(--black-color);
  color: var(--text-color-light);
  padding-block: 3.5rem 2rem;
}

.footer__container{
  row-gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--black-border);
}

.footer__description{
  margin-block: 1rem;
}

.footer__email,
.footer__info{
  font-style: normal;
}

.footer__content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 3rem;
}

.footer__title{
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.footer__links,
.footer__list{
  display: grid;
  row-gap: .5rem;
}

.footer__link{
  color: var(--text-color-light);
  transition: color .4s;
}

.footer__link:hover{
  color: var(--second-color);
}

.footer__social{
  display: flex;
  column-gap: 1rem;
}

.footer__social-link{
  font-size: 1.5rem;
  color: rgba(255, 0, 0, 0.807);
  transition: transform .4s;
}

.footer__social-link:hover{
  transform: translateY(-.25rem);
}

.footer__copy{
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}

@media screen and (max-width: 340px){
  .container{
    margin-inline: 1rem;
  }

  .section__title{
    font-size: 1.25rem;
  }

  .home__title{
    font-size: 1.75rem;
  }

  .home__buttons{
    flex-direction: column;
  }

  .home__img-1{
    width: 200px;
    margin-left: 1.25rem;
  }

  .about__list{
    grid-template-columns: repeat(1, 200px);
  }

  .about__img-1{
    width: 150px;
    left: 4rem;
  }

  .about__img-2{
     width: 200px;
     margin-right: 0;
  }

  .footer__content{
    grid-template-columns: repeat(1, max-content);
  }
}

@media screen and (min-width: 540px){
  .home__container,
  .about__container,
  .services__container
  /*.projects__container*/{
    grid-template-columns: 360px;
    justify-content: center;
  }

  .projects__container{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-content: center;
  }

  .customers__grid {
    grid-template-columns: repeat(4, 1fr);
    padding-inline: 1.5rem;
  }

  .customer__logo {
    max-width: 90px;
    padding: 0.6rem;
  }

  .footer__content{
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px){
  .nav__menu{
    width: 50%;
  }

  .projects__container{
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .customers__grid {
    grid-template-columns: repeat(5, 1fr);
    padding-inline: 2rem;
  }

  .customer__logo {
    max-width: 100px;
    padding: 0.65rem;
  }

  .footer__container{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .contact__container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .nav__logo{
    width: 150px;
  }

  .customers__grid {
    grid-template-columns: repeat(7, 1fr);
    padding-inline: 3rem;
  }

  .customer__logo {
    max-width: 120px;
    padding: 0.7rem;
  }

  .contact__box .section__title,
  .contact__box .section__subtitle{
    text-align: initial;
  }
}

@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close{
    display: none;
  }

  .nav__menu{
    width: initial;
  }

  .nav__list{
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .home__container{
    grid-template-columns: 475px 550px;
    column-gap: 6rem;
    align-items: flex-start;
    padding-top: 5.5rem;
  }

  .home__content{
    row-gap: 4.5rem;
  }

  .home__data{
    text-align: initial;
  }

  .home__description{
    margin-bottom: 3rem;
  }

  .home__buttons{
    justify-content: initial;
    column-gap: 3rem;
  }

  .home__info{
    justify-content: initial;
    column-gap: 2.5rem;
  }

  .home__info-description{
    font-size: var(--normal-font-size);
  }

  .home__img-1{
    width: 550px;
    margin-left: 0;
  }

  .home__img-2{
    width: 350px;
    border-width: 10px;
    left: -7rem;
    bottom: -8rem;
  }

  .about__container{
    grid-template-columns: repeat(2, 480px);
    column-gap: 9rem;
    padding-block: 9rem 2rem;
  }

  .about__images{
    order: -1;
  }

  .about__img-1{
    width: 900px;
    border-width: 10px;
    top: -3rem;
    left: 4.5rem;
  }

  .about__img-2{
    width: 470px;
  }

  .about__data,
  .about__data :is(.section__title, .section__subtitle){
    text-align: initial;
  }

  .about__list{
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3.5rem;
  }

  .services__container{
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .services__data{
    display: grid;
    grid-template-columns: 415px 370px max-content;
    justify-content: space-between;
    align-items: center;
  }

  .services__data :is(.section__title, .section__subtitle),
  .services__description{
    text-align: initial;
  }

  .services__data .section__title{
    margin-bottom: 0;
  }

  .services__swiper{
    max-width: 1100px;
  }

  .services__card{
    width: 348px;
    border-width: 3px;
    padding: 3.5rem 2rem 6rem;
  }

  .services__shape{
    height: 330px;
  }

  .swiper-button-next,
  .swiper-button-prev{
    bottom: 3rem;
  }

  .projects__container{
    grid-template-columns: repeat(4, 1fr);
    column-gap: 0.7rem;
    padding-block: 5rem 4rem;
  }

  .projects__card{
    border-width: 3px;
  }

  .projects__data{
    padding: 1.5rem 1rem 2rem;
  }

  .footer{
    padding-block: 4.5rem 3rem;
  }

  .footer__container{
    padding-bottom: 6rem;
  }

  .footer__content{
    column-gap: 7rem;
  }

  .footer__description{
    margin-block: 1.5rem;
  }

  .footer__title{
    margin-bottom: 1.5rem;
  }

  .footer__links,
  .footer__list{
    row-gap: 1rem;
  }

  .scrollup{
    right: 3rem;
  }
}