/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3.2rem;

  /*========== Colors ==========*/
  --first-color: #3D749F;
  --first-color-alt: #06366A;
  --first-color-offer: #7798e4;
  --first-color-shadow: #B8B9BE;
  --second-color-shadow: #ffffff;
  --border-color: #d1d9e6;
  --title-color: #31344b;
  --text-color: #44476a;
  --text-color-light: #8F8A8A;
  --body-color: #E6E7EE;
  --toggle-color: #ececec;
  --second-toggle-color: #7a7a7a;
  --modal-icon-color: #b1bcce;

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.3rem;
  --p-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-normal: 400;

  /*========== Margines ==========*/
  --mb-0-25: .25rem;
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*========== z index ==========*/

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 968px){
 :root{
    --biggest-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.5rem;
    --p-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*========== BASE ==========*/
*,::before,::after{
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html{
  scroll-behavior: smooth;
}

/*========== Variables Dark theme ==========*/
body.dark-theme{
  --first-color-alt: #fff;
  --first-color-shadow: #1A1A1A;
  --second-color-shadow:  #2b2b2b;
  --first-color-offer: #121216;
  --title-color: #F3F1F1;
  --text-color: #D1C7C8;
  --body-color: #313131;
  --border-color: #3B3B3B;
}

/*========== Button Dark/Light ==========*/

.change-theme{
	position: relative;
	-webkit-appearance:none;
	height: 1.063rem;
	width: 2.188rem;
  box-shadow: inset 6px 6px 12px var(--first-color-shadow),-6px -6px 12px var(--second-color-shadow);
	outline: none;
	cursor: pointer;
	left:6px;
	border-radius: 40px;
}
.change-theme:before,
.change-theme:after{
	content: "";
	position: absolute;
	margin:auto;
	top: 0;
	bottom: 0;
	transition: 0.3s;
}
.change-theme:before{
	height: 15px;
	width: 15px;
	background-color: var(--toggle-color);
  box-shadow: 6px 6px 12p var(--first-color-shadow), inset 0 0 14px var(--second-color-shadow);
	border-radius: 50%;
	left: 2px;
}
.change-theme:after{
	height: 4px;
	width: 4px;
	background-color: var(--second-toggle-color);
	border-radius: 50%;
	right: -12px;
}
.change-theme:checked:before{
	left: 20px;
}
.change-theme:checked:after{
	background-color: var(--first-color);
}

body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-light);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1,h2,h3,ul,p{
  margin: 0;
}

h1,h2,h3{
  font-weight: var(--font-normal);
  color: var(--title-color);
  font-size: var(--h2-font-size);
}

ul{
  padding: 0;
  list-style: none;
}

a{
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}

hr {
  border: solid 1px var(--border-color);
}

/*========== CLASS CSS ==========*/
.section{
  padding: 4rem 0 2rem;
}

.section-title-center, .section-title {
  margin-bottom: var(--mb-3);
}

/*========== LAYOUT ==========*/
.l-main{
  overflow: hidden;
}

.bd-container{
  max-width: 1130px;
  width: calc(100% - 3rem);
  margin-left: var(--mb-3);
  margin-right: var(--mb-3);
}

.bd-grid{
  display: grid;
  gap: 1.5rem;
}

.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  padding: .4rem;
}

/*========== NAV ==========*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .nav__logo{
    border: solid 1px var(--border-color);
    display: flex;
    padding: 0.5rem .2em .5rem .6rem;
    border-radius: .55rem;
    box-shadow: 6px 6px 12px 1px var(--first-color-shadow),-6px -6px 12px 7px var(--second-color-shadow);

}
@media screen and (max-width: 768px){
  .nav__menu{
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
    padding: 2.5rem 0 0;
    text-align: center;
    background-color: var(--body-color);
    transition: .4s;
    box-shadow: 0 0 4px rgba(0,0,0,.1);
    border-radius: 2rem;
    z-index: var(--z-fixed);
  }
}

.nav__item{
  margin-bottom: var(--mb-3);
}

.nav__link, .nav__toggle{
  color: var(--title-color);
  font-weight: var(--font-normal);
}

.nav__logo img, .footer__logo img{
  /* width: 2rem; */
  height: auto;
  margin-right: 0.438rem;
}

.nav__link{
  transition: .3s;  
}

.nav__toggle{
  font-size: 1.3rem;
  cursor: pointer;
}

.toggle-icon{
  padding: .3rem .8rem;
  border-radius: .5rem;
  box-shadow: 9px 9px 16px var(--first-color-shadow),-9px -9px 16px var(--second-color-shadow);
}

/* Show menu */
.show-menu{
  top: calc(var(--header-height) + 1rem);
}

/* Active menu link */
.active-link{
  position: relative;
  color: #CF7C20;
}

.active-link::before{
  content: '';
  position: absolute;
  bottom: -.75rem;
  left: 45%;
  width: 5px;
  height: 5px;
  background-color: #CF7C20;
  border-radius: 50%;
}

/* Change background header */
.scroll-header{
  box-shadow: 3px 3px 6px var(--first-color-shadow), -3px -3px 6px var(--second-color-shadow);
}

/* Scroll top */
.scrolltop{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .3rem;
  background: var(--first-color-alt);
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  visibility: hidden;
}

.scrolltop:hover{
  background-color: var(--first-color);
}

.scrolltop__icon{
  font-size: var(--h3-font-size);
  color: var(--body-color);
}

.show-scroll{
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home__container{
  row-gap: .5rem;
   
}

.home__img{
  width: 280px;
  justify-self: center;
  transform: rotateY(180deg);
}

.home__title{
  margin-bottom: var(--mb-3);
  font-size: var(--biggest-font-size);
}

.home__data img {
  margin-top: 2rem;
  margin-bottom: var(--mb-3);
}

.home__description{
  margin-bottom: var(--mb-6);
  font-size: var(--h3-font-size);
  color: var(--title-color);
}

/*========== BUTTONS ==========*/
.button{
  display: inline-block;
  border: solid 1px var(--border-color);
  background-color: var(--body-color);
  color:var(--title-color);
  padding: .6rem 2rem;
  border-radius: .55rem;
  font-weight: var(--font-normal);
  transition: .3s;
  box-shadow: 3px 3px 6px var(--first-color-shadow),-3px -3px 6px var(--second-color-shadow);
}

.button:hover{
  cursor: pointer;
  color: #CF7C20;
  background-color: var(--body-color);
  border-color: var(--border-color);
  box-shadow: inset 2px 2px 5px var(--first-color-shadow), inset -3px -3px 7px var(--second-color-shadow);
}

.button-link{
  background: none;
  padding: 0;
  color: var(--first-color);
}

.button-link:hover{
  background-color: transparent;
  color: #CF7C20;
}

.button__icon{
  margin-right: .5rem;
}
/*========== ABOUT ==========*/
.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: var(--mb-2);
  font-size: var(--p-font-size);
  color: var(--title-color);
}

.about__img img{
  border: solid 1px var(--border-color);
  border-radius: 55% 45% 59% 41% / 43% 51% 49% 57% ;
  padding: .6rem;
  background-color: var(--body-color);
  box-shadow: 3px 3px 6px var(--first-color-shadow),-3px -3px 6px var(--second-color-shadow);
}

.about__button {
  margin-top: var(--mb-3);
}
/*========== SERVICES ==========*/
.services, .works, .contact{
  text-align: center;
}

.services__container{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 2.5rem 4rem;
  background-color: var(--body-color);
  border: solid 1px var(--border-color);
  border-radius: .55rem;
  box-shadow: 3px 3px 6px var(--first-color-shadow),-3px -3px 6px var(--second-color-shadow);
  gap: unset;
}

.services__data{
  text-align: center;
}

.services__img{
  width: 100px;
  box-shadow: inset 2px 2px 5px var(--first-color-shadow),inset -3px -3px 7px var(--second-color-shadow);
  border-color: var(--border-color);
  text-align: center;
  border-radius: 50%;
  margin-bottom: var(--mb-2);
  padding: 1.4rem;
}

.services__title{
  font-size: var(--p-font-size);
  margin-bottom: var(--mb-2);
}

.services__button{
  cursor: pointer;
}

/* .services__modal{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
} */

/* .services__modal-content{
  position: relative;
  background-color: var(--body-color);
  padding: 1.5rem;
  border-radius: .5rem;
} */

/* .services__modal-services{
  row-gap: 1rem;
} */
/* 
.services__modal-service{
  display: flex;
  align-items: baseline;
  line-height: 2rem;
  text-align: initial;
} */

/* .services__modal-title{
  font-size: var(--h3-font-size);
  font-weight: var(--font-normal);
  margin-bottom: var(--mb-2);
  text-align: initial;
  color: var(--title-color);
  margin-top: 0;
} */

/* .services__modal-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: var(--h3-font-size);
  cursor: pointer;
} */

/* .services__modal-icon{
  color: var(--first-color);
  margin-right: var(--mb-0-25);
} */

/* .services__modal-icon::before{
  border: 1px solid var(--modal-icon-color);
  transition: all .2s ease;
  border-radius: 50%;
  width: 15px;
  height: 15px;
} */

/* Active Modal */
.active-modal{
  opacity: 1;
  visibility: visible;
}

/*========== WORKS ==========*/
.works__container{
  grid-template-columns: repeat(2,1fr);
  padding-bottom: 2rem;
}

.works__content{
  display: grid;
}

.works__gallery-content button {
  border-radius: 2rem;
}

.works__gallery-content .button {
  font-size: var(--small-font-size);
  border-radius: 2rem;
}

.works__content .works__filter-buttons{
  display: grid;
  justify-content: center;
}
.works__content .works__categories{
  display: flex;
  max-width: 720px;
  width: 100%;
  justify-content: space-between;
}
.works__categories span{
  padding: 4px 23px;
  margin: 0 .6rem;
  font-weight: var(--font-normal);
  cursor: pointer;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.works__gallery{
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.875rem;
}
.works__gallery .works__gallery-container{
  width: calc(100% / 3);
  padding: 13px;
  position: relative;
}
.works__gallery .works__gallery-img{
  box-shadow: 3px 3px 6px var(--first-color-shadow),-3px -3px 6px var(--second-color-shadow);
  border-radius: .55rem;
  border: solid 1px var(--border-color);
}

.works__gallery .works__gallery-img span{
  width: 75%;
}
.works__gallery .works__gallery-img img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.works__gallery .works__gallery-img:hover img{
  transform: scale(1.1);
}
.works__gallery .works__gallery-container.hide{
  display: none;
}
.works__gallery .works__gallery-container.show{
  animation: animate 0.4s ease;
}
@keyframes animate {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}
.works__gallery-content {
  transition: .5s ease;
  position: relative;
  padding: .5rem 0;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  color: var(--title-color);
  bottom: 100%;
  left: 32%;
  margin-left: -3.75rem;
  background-color: var(--body-color);
  text-align: center;
  border-radius: 6px;
  padding: 1px;
  box-shadow: inset 2px 2px 5px var(--first-color-shadow), inset -3px -3px 7px var(--second-color-shadow);

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
/*========== OFFER DISCOUNT ==========*/
.offer__container{
  box-shadow: 3px 3px 6px var(--first-color-shadow),-3px -3px 6px var(--second-color-shadow);
  padding: 0 7rem;
  border-radius: .55rem;
  border: solid 1px var(--border-color);
}

.offer__content {
  margin: 2rem 0;
}

.offer__description{
  text-align: center;
  margin-bottom: var(--mb-4);
  font-size: var(--p-font-size);
  color: var(--title-color);
}

.offer__img{
  width: 280px;
  justify-self: center;
}

/*========== CONTACT ==========*/
.contact__img img{
  transform: rotateY(180deg);
}

.contact__input{
  outline: none;
  border: none;
  height: 3rem;
  background: none;
  border-radius: .55rem;
  box-shadow: inset 2px 2px 5px var(--first-color-shadow),inset -3px -3px 7px var(--second-color-shadow);
  padding: 0 1rem;
  margin: var(--mb-2) 0;
  font-family: var(--body-font);
  font-size: inherit;
  color: var(--text-color);
}

.contact__content .email{
  width: 100%;
}

.contact__content .message{
  width: 100%;
  height: 10rem;
  padding: 1rem;
  resize: none;
}

.contact__form button {
  font-family: var(--body-font);
  font-size: inherit;
  float: left;
  outline: none;
}

.contact__content .error{
  color: red;
  display: block;
  text-align: initial;
  font-weight: var(--font-normal);
  font-size: .75rem;
  display: none;
  margin-top: -0.9375rem;
}


/*========== FOOTER ==========*/
.footer__logo img {
  height: 1.7rem;
}
.footer__container{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo{
  color: var(--title-color);
  /* display: flex; */
}

a.footer__copy-logo {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

footer.footer.section {
  padding-top: 4rem;
} 

.footer__container.bd-container.bd-grid {
  padding-bottom: 4rem;
}

.footer__title{
  margin-bottom: var(--mb-1);
}

.footer__content ul {
  display: inline-flex;
  gap: 1.5rem;
}

.footer__logo, .footer__title{
  font-size: var(--p-font-size);
}

.footer__link{
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--text-color);
}

.footer__link:hover{
  box-shadow: inset 2px 2px 5px var(--first-color-shadow), inset -3px -3px 7px var(--second-color-shadow);
  padding: .1rem 5rem .1rem .3rem;
  border-radius: .50rem;
}

.footer__social{
  font-size: 1.2rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
  padding: .5rem;
  border-radius: 25%;
  border-color: var(--body-color);
  box-shadow: 9px 9px 16px var(--first-color-shadow),-9px -9px 16px var(--second-color-shadow);
}

.footer__social:hover{
  box-shadow: inset 2px 2px 5px var(--first-color-shadow), inset -3px -3px 7px var(--second-color-shadow);
}

.footer__content .footer__social:hover .tooltiptext{
  width: max-content;
  font-size: var(--normal-font-size);
  color: var(--title-color);
  bottom: 82%;
  background-color: var(--body-color);
  padding: 6px;
  left: 0;
  margin-left: -4.625rem;
}
.footer__copy{
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-top: 1rem;
}
/*========== MEDIA QUERIES ==========*/

/* For full-screen images on small screens */
@media screen and (min-width: 320px) {
  .home__container {
      padding: 5rem 0 0;
  }
}
@media screen and (max-width: 511px){
  .home__img,
  .about__img
  {
    width: 100%;
  }

  .home__data {
    text-align: center;
  }

  .services__data {
    margin-bottom: var(--mb-4);
  }

  .works__content {
    display: inherit;
  }

  .works__categories span {
    padding: 4px 10px;
  }

  .works__gallery .works__gallery-container {
    width: calc(100% / 1);  
  }

  .works__gallery-content .button {
    padding: .4rem 1rem;
  }

  .works__gallery-content-text{
    text-align: center;
  }

  .offer__content {
    text-align: center;
  }

  .contact__content .fname, .contact__content .lname {
    width: 100%;
  }

  .contact__form .bd-grid {
    gap: 0;
}

  .contact__form button {
    float: inherit;
  }

  .footer__container {
    text-align: center;
  }

  a.footer__logo {
    justify-content: center;
  }

  .footer__content {
    margin-bottom: var(--mb-2);
  }

  .footer__copy {
    margin-top: var(--mb-4);
  }

}
@media screen and (min-width: 512px){
  .home__data {
    text-align: center;
  }

  .works__gallery .works__gallery-container {
    width: calc(100% / 2);
  }

  .works__gallery-content-text {
    padding: 16px 3px;
}

.offer__content {
  text-align: center;
}

input.contact__input.fname, input.contact__input.lname {
  width: 100%;
}

.contact__form button {
  float: inherit;
}

.contact__form .bd-grid {
  gap: 0;
}

}
@media screen and (min-width: 671px) {
  .offer__container {
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }
}
@media screen and (min-width: 576px){
  .home__data {
    text-align: center;
  }

  .home__container,
  .about__container,
  .contact__container,
  .contact__name{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
  }

  /* .home__container{
    padding: 5rem 0 0;
  } */

  .home__img{
    order: 1;
  }

  .about__data,
  .offer__description{
    text-align: initial;
  }

  .home__img,
  .about__img
  {
    width: 100%;
  }
  
  .about__img{
    order: -1;
  }

  .contact__form .bd-grid {
    gap: 1.5rem;
}

.offer__content {
  text-align: inherit;
}

.contact__form button {
  float: left;
}
}
@media screen and (min-width: 756px){
  .works__gallery .works__gallery-container {
  width: calc(100% / 3);
}

.works__gallery-content-text {
  padding: 10px 2px;
}
}
@media screen and (max-width: 768px) {
  .offer__container {
      padding: 2rem 4rem;
      text-align: center;
      display: inline-flex;
      flex-direction: column-reverse;
      align-items: center;
  }

  .offer__content {
    margin: 0 0 2rem 0;
  }

  .offer__title {
    margin-bottom: var(--mb-1);
  }

  .offer__description {
    text-align: center;
  }
}
@media screen and (min-width: 768px){
  body{
    margin: 0;
  }

  .section{
    padding-top: 7rem;
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

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

  .nav__item{
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }

  .home__container{
    padding: 10rem 7rem 3rem 7rem;
  }

  .about__container{
    padding: 0 2rem;
  }

  .works__container{
    grid-template-columns: repeat(3,224px);
    justify-content: center;
  }

  .works__gallery-content-text {
    text-align: center;
}

  .works__gallery .works__gallery-img span {
    width: 100%;
}

.tooltip .tooltiptext{
  left: 0%;
  margin-left: 0;
}
  .offer{
    background: none;
  }

  /* .offer__content {
    margin: 2rem 0;
} */

  /* .footer__logo img {
    height: auto;
  } */
}
@media screen and (min-width: 968px){
  .bd-container{
    margin-left: auto;
    margin-right: auto;
  }

  .about__img, .contact__img{
    width: 100%;
  }

  .offer__img{
    width: 440px;
  }

  .about__container{
    column-gap: 5rem;
  }

}

/* @media screen and (max-width: 960px) {
  .services__container {
      padding: 2rem 0;
  }
} */
@media screen and (min-width: 769px) {
  .nav__toggle {
      display: none;
  }
}

@media screen and (max-width: 928px) {
  .services__container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
}

@media screen and (max-width: 1104px) and (min-width: 529px) {
  .services__container {
    padding: 2.5rem 0;
}
}

@media screen and (min-width: 756px) and (max-width: 999px){
.footer__social .tooltiptext{
  display: none;
}
}