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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #58a8a0;
  --second-color: #c39177;
  --first-gradient: linear-gradient(90deg, #2b7c74, #58a8a0);
  --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: hsl(255, 20%, 10%);
  --gray-border: hsl(255, 6%, 90%);
  --black-border: hsl(255, 10%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@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: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  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;
}

html {
  font-size: 100%;
}

@media only screen and (min-width: 1980px) {
  html {
    font-size: 110%;
  }
}

@media only screen and (min-width: 2560px) {
  html {
    font-size: 120%;
  }
}

@media only screen and (min-width: 3840px) {
  html {
    font-size: 140%;
  }
}

.description2 strong {
  color: var(--first-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 70rem;
  padding-inline: 1.5rem;
}

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

.section {
  padding-block: 2rem 1rem;
}

.section__title,
.section__subtitle {
  text-align: center;
  text-transform: uppercase;
}

.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: 0.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: background-color 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}

.nav__logo img {
  width: 7.5rem;
  height: 4.5rem;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
  transition: transform 0.4s;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__list .nav__link.button {
    padding: 1rem;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
}

.nav__link {
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.bg-header {
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, 0.1);
}

.bg-header .nav__logo img {
  filter: invert(1);
}

.bg-header .nav__toggle {
  color: var(--title-color);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
  background: 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 {
  color: var(--text-color-light);
  margin-bottom: 2.5rem;
}

.home__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.home__info {
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}

.home__info-title {
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 0.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: 15.625rem;
  margin-left: 3.5rem;
}

.home__img-2 {
  width: 9.375rem;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}

.home__lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: right;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  background: var(--first-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow 0.4s;
}

.button:hover {
  box-shadow: 0 8px 32px hsla(18, 95%, 55%, 0.3);
  color: var(--white-color);
}

.button__link {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
}

.button__link span {
  font-weight: var(--font-semi-bold);
}

.button__link i {
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.button__link:hover i {
  transform: translateX(0.25rem);
}

/*=============== DESCRIPTION 1 & 2 ===============*/

.description1__container,
.description2__container {
  row-gap: 3rem;
}

.description2__container {
  margin-bottom: 2rem;
}

.description2__container .description2__images {
  order: 2;
}

.description1__data,
.description2__data {
  text-align: center;
}

.description1__description,
.description2__description {
  margin-bottom: 2rem;
}

.description1__images,
.description2__images {
  position: relative;
  justify-self: center;
}

.description1__img-2,
.description2__img-2 {
  width: 15.625rem;
}

/*=============== SECTION SPECIAL ===============*/
.section-special {
  padding-block: 4rem;
  background-color: var(--second-color);
}

.section-special .section-special-title {
  color: var(--white-color);
  text-align: center;
  text-transform: uppercase;
  max-width: 56.25rem;
  margin: 0 auto;
}

/*=============== SERVICES ===============*/
.services {
  position: relative;
}

.services__container {
  position: relative;
  row-gap: 3rem;
}

.services__data {
  text-align: center;
}

.services__description {
  margin-bottom: 2rem;
}

.services__card {
  width: 16.25rem;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 3.5rem;
  transition: border-color 0.4s;
}

.services__card:hover {
  border-color: var(--first-color);
}

.services__icon {
  width: 5.625rem;
  height: 5.625rem;
  background-color: var(--second-color);
  color: var(--white-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.services__icon img {
  width: 3.75rem;
  height: 3.75rem;
}

.services__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.5rem;
}

.services__shape {
  position: absolute;
  width: 100%;
  height: 15.3125rem;
  bottom: 0;
  left: 0;
  background-color: var(--black-color);
}

.services__description {
  font-size: var(--small-font-size);
}

/* Swiper class */
.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: 2rem;
  height: 2rem;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, 0.1);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 1.5rem;
}

.swiper-button-prev {
  left: calc(50% - 3rem);
}

.swiper-button-next {
  right: calc(50% - 3rem);
}

/*=============== RESULT ===============*/
.result__button {
  margin-top: 2rem;
  text-align: center;
}

.result__container {
  row-gap: 2rem;
}

.result__item {
  position: relative;
  overflow: hidden;
}

.result__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s;
}

.result__item:hover .result__img {
  transform: scale(1.05);
}

/*=============== ABOUT ===============*/

.about {
  background-color: var(--second-color);
  color: var(--title-color);
}
.about .section__subtitle {
  color: var(--title-color);
}
.about__container {
  row-gap: 2rem;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: 2rem;
}

.about__list {
  text-align: initial;
  display: grid;
  grid-template-columns: repeat(2, 8.125rem);
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about__list-item {
  display: flex;
  column-gap: 0.5rem;
  color: var(--title-color);
}

.about__list-item i {
  font-size: 1.25rem;
  color: var(--white-color);
}

.about__images {
  position: relative;
  justify-self: center;
}

.about__img-1 {
  width: 12.5rem;
  border: 5px solid var(--body-color);
  position: absolute;
  top: -5rem;
  left: -6rem;
}

.about__img-2 {
  width: 15.625rem;
}

/*=============== TESTIMONIALS ===============*/
.testimonials {
  position: relative;
}

.testimonials__container {
  max-width: 70rem;
  margin: 0 auto;
  position: relative;
  row-gap: 3rem;
}

.testimonials__card {
  width: 100%;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 3.5rem;
  transition: border-color 0.4s;
}

.testimonials__card:hover {
  border-color: var(--first-color);
}

.testimonials__shape {
  position: absolute;
  width: 100%;
  height: 15.3125rem;
  bottom: 0;
  left: 0;
  background-color: var(--black-color);
}

.testimonials__description {
  font-size: var(--small-font-size);
}

/*=============== MAPS ===============*/
.maps {
  background-color: var(--text-color-light);
}

.maps__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 46.25%;
  height: 0;
  overflow: hidden;
}

.maps__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*=============== FOOTER ===============*/
.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__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
}

.footer__logo img {
  width: 5rem;
  height: 3.125rem;
}

.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__list {
  display: grid;
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--text-color-light);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}
.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}

.footer__social-link i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}

.footer__info a,
.footer__email a {
  color: var(--second-color);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(255, 5%, 75%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(255, 5%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(255, 5%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, 0.15);
  padding: 6px;
  display: inline-flex;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@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: 12.5rem;
    margin-left: 1.5rem;
  }

  .description1__img-2,
  .description2__img-2 {
    width: 9.375rem;
  }

  .about__list {
    grid-template-columns: repeat(1, 12.5rem);
  }

  .about__img-2 {
    width: 9.375rem;
    margin-right: 0;
  }

  .footer__content {
    grid-template-columns: repeat(1, max-content);
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container,
  .description1__container,
  .description2__container,
  .services__container,
  .about__container,
  .testimonials__container {
    grid-template-columns: 22.5rem;
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

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

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .bg-header .nav__link {
    color: var(--text-color);
  }

  .bg-header .active-link,
  .bg-header .nav__link:hover {
    color: var(--first-color);
  }

  .bg-header .button,
  .bg-header .button:hover {
    color: var(--white-color);
  }

  .home__container {
    grid-template-columns: 29.6875rem 34.375rem;
    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: 5.5rem;
  }

  .home__info-description {
    font-size: var(--normal-font-size);
  }

  .home__img-1 {
    width: 34.375rem;
    margin-left: 0;
  }

  .home__img-2 {
    width: 21.875rem;
    border-width: 10px;
    left: -7rem;
    bottom: -8rem;
  }

  .home__lines {
    object-position: center;
  }

  .description1__container,
  .description2__container {
    grid-template-columns: repeat(2, 30rem);
    column-gap: 9rem;
  }

  .description2__container {
    margin-bottom: 0;
  }

  .description2__container .description2__images {
    order: 0;
  }

  .description1__img-2,
  .description2__img-2 {
    width: 29.375rem;
  }

  .description1__data,
  .description1__data :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .description2__data,
  .description2__data :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .services__container {
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .services__data {
    display: grid;
    justify-content: center;
    align-items: center;
  }

  .services__data :is(.section__title, .section__subtitle),
  .services__description {
    text-align: center;
  }

  .services__data .services__title {
    margin-bottom: 0;
  }

  .services__card {
    width: 21.75rem;
    border-width: 3px;
    padding: 3.5rem 2rem 6rem;
  }

  .services__shape {
    height: 20.625rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    bottom: 3rem;
  }

  .result__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .about.section {
    padding-block: 2rem;
  }
  .about__container {
    grid-template-columns: repeat(2, 30rem);
    align-items: center;
    column-gap: 9rem;
  }
  .about__images {
    order: -1;
  }

  .about__img-2 {
    width: 29.375rem;
  }

  .about__data,
  .about__data :is(.section__title, .section__subtitle) {
    text-align: initial;
  }

  .about__list {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 3.5rem;
  }

  .testimonials__container {
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }

  .testimonials__data {
    display: grid;
    grid-template-columns: 25.9375rem 23.125rem max-content;
    justify-content: space-between;
    align-items: center;
  }

  .testimonials__data :is(.section__title, .section__subtitle),
  .testimonials__description {
    text-align: initial;
  }

  .testimonials__data .testimonials__title {
    margin-bottom: 0;
  }

  .testimonials__card {
    width: 31.25rem;
    border-width: 3px;
  }

  .testimonials__shape {
    height: 20.625rem;
  }

  .footer {
    padding-block: 4.5rem 3rem;
  }

  .footer__container {
    padding-bottom: 3rem;
  }

  .footer__content {
    column-gap: 7rem;
  }

  .footer__description,
  .footer__title {
    margin-block: 1.5rem;
  }

  .footer__social,
  .footer__list {
    row-gap: 1em;
  }

  .scrollup {
    right: 3rem;
  }
}
