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

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

  /*========== Colors ==========*/
  --first-color: hsl(18, 95%, 55%);
  --first-color-alt: hsl(18, 95%, 51%);
  --first-color-light: hsl(18, 95%, 85%);
  --first-color-lighten: hsl(18, 95%, 95%);
  --second-color: hsl(42, 98%, 52%);
  --first-gradient: linear-gradient(90deg, #046561, #0a8a85);
  --first-gradient-lighten: linear-gradient(90deg, #7a9695, #9ab8b7);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 70%);
  --text-color-light: hsl(228, 8%, 60%);
  --body-color: #1B1839;
  --container-color: hsl(228, 40%, 20%);
  --white-color: #fff;
  --black-color: hsl(228, 20%, 10%);
  --gray-border: hsl(228, 6%, 90%);
  --black-border: hsl(228, 10%, 20%);
  --border-color: hsl(228, 99%, 98%);

  /*========== Font and typography ==========*/
  --body-font: "Montserrat", sans-serif;
  --title-font: "Syne", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

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

@media screen and (min-width: 1150px) {
  :root {
    --biggest-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: .813rem;
  }
}

/*=============== 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);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
  text-align: center;
}

.main {
  overflow: hidden;
}

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

/* Blur header */
.blur-header {
  background-color: hsla(0, 0%, 10%, .6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  /* For Safari */
}

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

.nav__logo span {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

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

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

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--black-color);
    width: 80%;
    height: 100vh;
    padding: 7.5rem 3.5rem 0;
    border-left: 2px solid var(--black-border);
    transition: right .4s;
  }


}

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

.nav__link {
  position: relative;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.nav__link::after {
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0%;
  bottom: -.5rem;
  transition: width .4s;
}

.nav__link:hover::after {
  width: 70%;

}

.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%, .1);

}

.bg-header .nav__logo span,
.bg-header .nav__toogle,
.bg-header .nav__link {
  color: var(--title-color);
}
 */

/* ACTIVE LINK */
.active-link::after {
  width: 60%;
}


.background-clip {
  position: absolute;
  right: 0%;
  bottom: 0%;
  z-index: -1;
}

@media (min-aspect-ratio:16/9) {
  .background-clip {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio:16/9) {
  .background-clip {
    width: auto;
    height: 100%;
  }
}


/* Dark overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  /* Adjust darkness here */
  z-index: -1;
}

/*=============== HOME ===============*/
.bg__background_img {
  position: relative;
  background-image: url('../img/img3.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}

.home {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  /* Move title down */
  padding-bottom: 8rem;
}

.home__container {
  width: 100%;
}

.home__data {
  text-align: center;
  font-size: 3rem;
}

.home__title {
  font-size: 1.5rem;
  color: var(--white-color);
  line-height: 1.4;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

/*=============== SERVICES ===============*/
.services {
  background-color: var(--body-color);
}

.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__section-title {
  font-size: var(--h1-font-size);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .4s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-.5rem);
  border-color: var(--first-color);
}

.service-card__image-wrapper {
  height: 200px;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content {
  padding: 1.5rem;
}

.service-card__title {
  font-size: var(--h2-font-size);
  margin-bottom: .75rem;
  color: var(--white-color);
}

.service-card__text {
  font-size: var(--small-font-size);
  line-height: 1.6;
}

/*=============== VALUE (FAQ) ===============*/
.value {
  background-color: var(--white-color);
  text-align: center;
  font-size: 3rem;
  padding-bottom: 10px;
}

.value__container {
  display: grid;
  row-gap: 3rem;
}

.value__accordion {
  display: grid;
  row-gap: 1.5rem;
}

.value__accordion-item {
  background-color: #1D1636;
  border: none;
  border-radius: 1.25rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 700px;
  justify-self: center;
  box-shadow: 0 8px 24px hsla(228, 66%, 45%, .1);
  transition: .4s;
}

.value__accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.value__accordion-icon {
  background-color: transparent;
  padding: 0;
  color: #FFB400;
  font-size: 1.5rem;
  margin-right: .75rem;
}

.value__accordion-title {
  font-size: var(--small-font-size);
  color: #fff;
  flex-grow: 1;
}

.value__accordion-arrow {
  display: inline-flex;
  background-color: transparent;
  padding: 0;
  color: #FFB400;
  border-radius: .25rem;
  font-size: 1rem;
  transition: transform .4s;
}

.value__accordion-content {
  overflow: hidden;
  height: 0;
  transition: all .25s ease;
}

.value__accordion-description {
  font-size: var(--smaller-font-size);
  padding: 1.25rem 2.5rem 0 2.75rem;
}

.accordion-open .value__accordion-content {
  height: max-content;
  padding-bottom: 1.25rem;
}

.faq {
  color: #FFB400 !important;
}

.accordion-open .value__accordion-arrow {
  transform: rotate(-180deg);
}

/*=============== SUBSCRIBE ===============*/
.subscribe {
  background-color: var(--white-color);
}

.subscribe__container {
  background: linear-gradient(170deg, #2b3b8c 0%, #161e3d 100%);
  padding: 4rem 2rem;
  border-radius: 3rem;
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.subscribe__title {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.subscribe__description {
  color: var(--white-color);
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.subscribe__button.button {
  display: inline-block;
  background: #006D5B;
  color: var(--white-color);
  padding: 1rem 2.5rem;
  font-weight: var(--font-bold);
  border-radius: .5rem;
  transition: .3s;
}

.subscribe__button.button:hover {
  box-shadow: 0 8px 24px hsla(170, 100%, 18%, .3);
  transform: translateY(-2px);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: #1B1839;
  padding-block: 5rem 1rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer__description {
  font-size: var(--small-font-size);
  color: hsl(228, 8%, 70%);
  margin-bottom: 2rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3rem 4rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  color: #fff;
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  row-gap: .5rem;
}

.footer__link {
  color: hsl(228, 8%, 70%);
  transition: color .4s;
}

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

.footer__socail {
  display: flex;
  column-gap: 1rem;
}

.footer__socail-link {
  font-size: 1.25rem;
  color: #fff;
  transition: color .4s;
}

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

.footer__info {
  margin-top: 5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}

.footer__copy,
.footer__privacy {
  font-size: var(--smaller-font-size);
  color: hsl(228, 8%, 70%);
}

.footer__privacy {
  display: flex;
  column-gap: 1.25rem;
}

.footer__privacy a {
  color: hsl(228, 8%, 70%);
  transition: color .4s;
}

.footer__privacy a:hover {
  color: #fff;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: #25D366;
  box-shadow: 0 8px 12px hsla(228, 66%, 45%, .1);
  display: inline-flex;
  padding: .35rem;
  border-radius: 1rem;
  color: var(--title-color);
  font-size: 3rem;
  z-index: var(--z-tooltip);
  transition: .3s;
}

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

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 768px) {

  .bg__background_img {
    height: 40vh;
  }

  .home__title {
    text-align: center;
    padding-top: 100px;
    /* font-size: var(--h1-font-size); */
  }

}

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

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

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

  .nav__toogle,
  .nav__close {
    display: none;
  }

  .nav__menu {
    width: initial;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 3rem;
    margin-right: 10rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

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