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

html {
  scroll-behavior: smooth;
}

body {
  margin: 5rem 0 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #333333;
  background-image: url(/assets/bg.svg);
  background-repeat: no-repeat;
  background-position: 50%, 50%;
  background-size: cover;
}

h1,
h2,
h3 {
  color: #864ee1;
  line-height: 1.5;
}

h1 {
  font-weight: 700;
  font-size: 40px;
}

h2 {
  font-weight: 500;
  font-size: 24px;
}

h3 {
  font-weight: 500;
  font-size: 18px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background: linear-gradient(270deg, #ffb9b9 0.08%, #d3cbff 101.45%);
  color: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border-radius: 3rem;
  font-weight: 500;
}

.button:hover {
  border: 2px solid #d3cbff;
  margin: -2px;
  background: #fff;
  transition: 0s;
}

.button__header {
  display: none;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

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

/*=============== HEADER ===============*/
.header {
  width: 100%;
  background: rgba(255, 255, 255, 0.21);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4.9px);
  -webkit-backdrop-filter: blur(4.9px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: 0.5s;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 0.25rem;
  z-index: 10;
  opacity: 0.8;
  transition: 0.4s;
}

/*=============== NAV ===============*/
.nav {
  height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  width: 180px;
  margin-top: 0.5rem;
  background-color: transparent;
}

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

.home_img {
  border: 1px solid #dddde3;
  box-shadow: 0px 0px 24px 2px rgba(122, 96, 246, 0.2);
}

.home__description {
  margin-bottom: 1rem;
}

.home_video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*=============== FEATURE ===============*/
#feature {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  background-color: #fefefe;
  margin-top: -16%;
  padding-top: 16%;
}

.feature__section {
  display: flex;
  align-content: center;
  justify-content: space-around;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 5%;
  flex-wrap: wrap;
}

.feature__img {
  width: 160px;
}

.feature__flex {
  width: 30%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.feature__data,
.section__title-center,
.feature__description {
  text-align: center !important;
  justify-content: center;
  margin-top: 8px;
}

.feature__img {
  margin-bottom: 8px;
}

#footer_space {
  margin-bottom: 5%;
}

/*=============== FOOTER ===============*/
.footer_links {
  display: flex;
  justify-content: center;
  background-color: mistyrose;
}

.legals {
  display: flex;
  width: 30%;
  justify-content: space-around;
  padding: 24px 0px;
}

.legal_link {
  color: black;
  font-weight: 400;
}

.legal_link:focus,
.legal_link:active,
.legal_link:hover {
  color: #864ee1;
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 576px) {
  .svg__img {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0 1rem;
  }

  .services__img {
    width: 100px;
  }

  .app__buttons {
    grid-template-columns: max-content;
  }
  .container.home_video {
    margin: 0 !important;
  }
  .feature__section {
    padding-left: 0;
    padding-right: 0;
  }
  .feature__flex {
    width: 50%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .legals {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .svg__img {
    width: 100%;
  }

  .section__title-center {
    text-align: initial;
  }

  .home__container,
  .feature__container,
  .security__container,
  .services__container,
  .app__container,
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home__img {
    order: 1;
    max-width: 60vw;
  }

  .home__container,
  .feature__container,
  .security__container,
  .app__container,
  .contact__container {
    align-items: center;
  }

  .feature__data,
  .security__data,
  .app__data,
  .contact__description {
    text-align: initial;
  }

  .feature__img,
  .app__img {
    order: -1;
  }
  .legals {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

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

    &__list {
      flex-direction: row;
      column-gap: 2.5rem;
    }
    &__toggle {
      display: none;
    }
  }

  .change-theme {
    position: initial;
  }

  .home__container {
    padding: 6rem 0 2rem;
  }

  .app__buttons {
    justify-content: initial;
  }
  .legals {
    flex-direction: row;
    text-align: center;
  }
}

/* For large devices */
@media screen and (min-width: 968px) {
  .button__header {
    display: block;
  }

  .svg__img {
    width: 470px;
  }

  .feature__container,
  .security__container,
  .app__container,
  .contact__container {
    column-gap: 6rem;
  }

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

  .contact__container {
    grid-template-columns: 3fr 1.5fr 1.25fr;
  }

  .footer {
    &__container {
      grid-template-columns: repeat(5, 1fr);
    }
    &__social {
      align-items: flex-start;

      &-link {
        font-size: 1.45rem;
      }
    }
  }
}

@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__img {
    width: 350px;
  }

  .home__description {
    padding-right: 5rem;
  }
}
