/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500&display=swap");

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(228, 66%, 53%);
  --first-color-alt: hsl(228, 66%, 47%);
  --first-color-light: hsl(228, 62%, 59%);
  --first-color-lighten: hsl(228, 100%, 97%);
  --second-color: hsl(25, 83%, 53%);
  --second-color-alt: hsl(25, 83%, 47%);
  --second-color-light: hsl(25, 62%, 59%);
  --title-color: hsl(226, 4%, 15%);
  --text-color: hsl(228, 15%, 50%);
  --text-color-light: hsl(228, 12%, 75%);
  --border-color: hsl(228, 99%, 98%);
  --body-color: #fff;
  --container-color: #fff;
  --boxshadow: hsl(226, 4%, 15%);
  --alter-shadow: hsla(228, 66%, 45%, 0.3);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --josefin-sans: "Josefin Sans", sans-serif;
  --biggest-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;
  --smaller-font-size: 0.75rem;

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

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

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.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);
  transition: 0.3s; /* For animation dark mode */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

input,
button {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

/*=============== THEME ===============*/
.change-theme {
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

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

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color: hsl(228, 66%, 62%);
  --second-color: hsl(25, 57%, 54%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 70%);
  --border-color: hsl(228, 16%, 14%);
  --body-color: hsl(228, 12%, 8%);
  --container-color: hsl(228, 16%, 12%);
  --boxshadow: hsla(0, 0%, 100%, 0.5);
  --alter-shadow: hsla(0, 0%, 0%, 0.3);
}

.dark-theme .accordion-open .questions__item-title,
.dark-theme .accordion-open .questions__description,
.dark-theme .accordion-open .questions__icon {
  color: black;
  font-weight: 600;
}

.dark-theme .questions__item {
  box-shadow: 0 0 10px 4px hsla(228, 66%, 45%, 0.3);
}

.dark-theme .onetap__group,
.dark-theme .prices__group {
  box-shadow: 0 0 10px 4px hsla(228, 66%, 45%, 0.3);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
}

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

.main {
  overflow: hidden; /* For the animations ScrollReveal*/
}

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

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

.nav__logo {
  color: #fff;
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.nav__logo i {
  font-size: 1rem;
}

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

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    bottom: 2rem;
    background-color: var(--container-color);
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
    width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 1.3rem 3rem;
    border-radius: 1.25rem;
    transition: 0.4s;
  }

  .nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__link {
    color: var(--text-color);
    display: flex;
    padding: 0.5rem;
    border-radius: 50%;
  }

  .nav__link i {
    font-size: 1.25rem;
  }

  .nav__link span {
    display: none;
  }
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(228, 4%, 15%, 0.1);
}

.scroll-header .nav__logo {
  color: var(--first-color);
}

.scroll-header .change-theme {
  color: var(--title-color);
}

/* Active link */
.active-link {
  background: linear-gradient(101deg, hsl(228, 66%, 53%), hsl(228, 66%, 47%));
  color: #fff;
  box-shadow: 0 4px 8px hsla(228, 66%, 45%, 0.25);
  position: relative;
}

/* ======== HOME ======= */
.home {
  background: linear-gradient(rgba(4, 9, 30, 0.9), rgba(4, 9, 30, 0.5)),
    url(../images/wallpaper.jpg);
  padding-bottom: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.home__container {
  row-gap: 3.5rem;
  padding: 6rem 0;
}

.home__title {
  color: #fff;
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-bottom: 1.25rem;
}

.home__description {
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

/*=============== BUTTON ===============*/
.home__button {
  display: inline-block;
  background-image: linear-gradient(to right, var(--first-color) 0%, #8486f3 51%, var(--first-color) 100%);
  color: #fff;
  padding: 14px 28px;
  background-size: 200% auto;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(228, 66%, 45%, 0.25);
  transition: 0.5s;
  cursor: pointer;
}

.home__button:hover {
  background-position: right center;
}

.button:hover {
  box-shadow: 0 4px 12px hsla(228, 66%, 45%, 0.25);
}

/*=============== INTRO ===============*/
.intro__img {
  margin-bottom: 1.5rem;
  border: 2px solid var(--title-color);
  box-shadow: 0 0 50px var(--boxshadow);
}

.intro__title {
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--josefin-sans);
  letter-spacing: 0.8px;
}

.intro__description {
  color: var(--text-color);
  font-family: var(--Poppins);
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

/*=============== ABOUT ===============*/
/* Swiper class */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
}

.swiper-button-next,
.swiper-button-prev {
  top: initial;
  bottom: 0;
  width: initial;
  height: initial;
  background-color: var(--container-color);
  border: 2px solid var(--text-color-light);
  padding: 6px;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  transition: .5s;
}

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

.swiper-button-prev:hover,
.swiper-button-next:hover {
  border: 2px solid #8486f3;
}

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

.about__container,
.screenshots__container {
  padding: 1rem 0 5rem;
}

.about__card {
  width: 290px;
  background-color: var(--container-color);
  padding: 0.5rem 0.5rem 1.5rem;
  border-radius: 1rem;
  margin: 0 auto;
  transition: 0.4s;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 16px var(--alter-shadow);
}

.about__img {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.about__title,
.screenshots__title {
  text-align: center;
  font-family: var(--josefin-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__subtitle {
  font-family: var(--josefin-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about__description {
  display: grid;
  row-gap: 0.75rem;
}

.about__details-description {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--text-color);
  font-family: var(--Poppins);
  font-size: 14px;
}

.about__card:hover {
  box-shadow: 0 0px 10px hsla(228, 66%, 45%, 0.4);
}

.about__button {
  background-color: var(--title-color);
  text-align: center;
  padding: 10px 0;
  border-radius: 4px;
  font-size: 13px;
  transition: 0.3s;
  color: var(--body-color);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 20px var(--boxshadow);
  transition: 0.3s ease-in-out;
}

.about__button:hover .about__button-icon {
  -webkit-transform: translateX(0.25rem);
  transform: translateX(0.25rem);
  display: inline-flex;
  transition: 0.3s ease-in-out;
}

.about__modal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  padding: 0 1rem;
  z-index: var(--z-modal);
  transition: 0.3s;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
}

.about__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 2rem;
  border-radius: 0.5rem;
}

.abouts__modal-abouts {
  row-gap: 1rem;
}

.abouts__modal-about {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.about__modal-close {
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  position: absolute;
  top: 0.75rem;
  right: 1rem;
}

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

.bxs-check-square {
  color: var(--first-color);
}

.about__subtitle-section,
.screenshots__subtitle {
  color: var(--text-color);
  font-size: 13px;
  text-align: center;
  margin: 1rem 0;
}

/*=========== Screenshots ============*/
.screenshots__card {
  width: 320px;
  background-color: var(--container-color);
  padding: 0.5rem;
  border-radius: 1rem;
  margin: 0 auto;
  transition: 0.4s;
  border: 2px solid var(--border-color);
  box-shadow: 0 12px 16px var(--alter-shadow);
}

.screenshots__card:hover {
  box-shadow: 0 0px 10px hsla(228, 66%, 45%, 0.4);
}

.screenshots__img {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*=========== Questions ============*/
.questions__container {
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.questions__title {
  text-align: center;
  font-family: var(--josefin-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

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

.questions__icon {
  font-size: 1rem;
  color: var(--title-color);
}

.questions__description {
  font-size: var(--smaller-font-size);
  padding: 0 1.25rem 1.25rem 2.25rem;
}

.questions__item {
  box-shadow: 0 0px 25px var(--alter-shadow);
}

.questions__item:hover {
  box-shadow: 0 0px 10px hsla(228, 66%, 45%, 0.3);
}

.questions__header {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.75rem;
  cursor: pointer;
}

.questions__item-title {
  font-size: 13px;
  font-weight: 500;
}

.questions__item,
.questions__header,
.questions__item-title,
.questions__icon,
.questions__description,
.questions__content {
  transition: 0.3s;
}

.questions__content {
  overflow: hidden;
  height: 0;
}

/*Rotate icon, change color of titles and background*/
.accordion-open .questions__header,
.accordion-open .questions__content {
  background-color: var(--title-color);
}

.accordion-open .questions__item-title,
.accordion-open .questions__description,
.accordion-open .questions__icon {
  color: #fff;
}

.accordion-open .questions__icon {
  transform: rotate(45deg);
}

/*=============== ONETAP AND PRICES ===============*/
.onetap__title,
.prices__title {
  text-align: center;
  font-family: var(--josefin-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.onetap__subtitle,
.prices__subtitle {
  color: var(--text-color);
  font-size: 13px;
  text-align: center;
  margin: 0.75rem 0 1rem;
}

.onetap__group,
.prices__group {
  box-shadow: 0 0 25px var(--alter-shadow);
  padding: 1.5rem;
}

.onetap__content-title,
.prices__content-title {
  font-family: var(--josefin-sans);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.onetap__content-description,
.prices__content-description {
  display: grid;
  row-gap: 0.75rem;
  font-size: 13px;
}

.onetap__description,
.prices__description {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
}

.onetap__redirect,
.prices__redirect {
  text-align: center;
  padding: 10px 0;
  background-color: var(--title-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--body-color);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 20px var(--boxshadow);
  transition: 0.3s ease-in-out;
}

/*=============== FOOTER ===============*/
.footer__info {
  padding-bottom: 6rem;
  text-align: center;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

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

.scrollup:hover {
  transform: translateY(-0.25rem);
  color: var(--first-color);
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-right: 1.25rem;
    margin-left: 1.25rem;
  }

  .hide-for-desktop {
    display: none;
  }

  .hide-for-mobile {
    display: block;
  }
}

@media screen and (max-width: 320px) {
  .about__card,
  .screenshots__card {
    width: 270px;
  }

  .nav__menu {
    padding: 1.3rem 1.8rem;
  }

  .screenshots__title {
    line-height: 1.5;
  }

  .hide-for-desktop {
    display: none;
  }

  .hide-for-mobile {
    display: block;
  }
}

/* For Medium Devices */
@media screen and (max-width: 576px) {
  .hide-for-desktop {
    display: none;
  }

  .hide-for-mobile {
    display: block;
  }
}

@media screen and (min-width: 577px) {
  .hide-for-desktop {
    display: block;
  }

  .hide-for-mobile {
    display: none;
  }

  .nav__menu {
    width: 342px;
  }

  .home__alter-title,
  .home__description {
    text-align: center;
  }

  .home__button {
    width: 30%;
    text-align: center;
  }

  .home__buy-wrapper {
    display: flex;
    justify-content: center;
  }

  .home__alter-title {
    font-family: var(--josefin-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #fff;
  }

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

@media screen and (min-width: 767px) {
  .home__description,
  .intro__description {
    padding: 0 6rem;
  }

  .home__alter-title {
    font-size: 1.8rem;
  }

  .intro__container {
    display: flex;
    column-gap: 3rem;
    align-items: center;
  }

  .intro__data {
    order: 1;
  }

  .intro__title {
    text-align: initial;
  }

  .intro__description {
    padding: 0;
    text-align: initial;
  }
}

@media screen and (min-width: 1023px) {
  .section {
    padding: 7.5rem 0 1rem;
  }

  .home__alter-title {
    font-size: 2.25rem;
  }

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

  .nav__menu {
    width: initial;
    margin-left: auto;
    margin-right: auto;
  }

  .nav__list {
    display: flex;
    column-gap: 3rem;
  }

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

  .nav__link i {
    display: none;
  }

  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }

  .change-theme {
    color: var(--text-color-light);
  }

  .scroll-header .nav__link,
  .scroll-header .change-theme {
    color: var(--text-color);
  }

  .scroll-header .active-link {
    color: var(--first-color);
  }

  .intro__title,
  .about__title,
  .screenshots__title,
  .questions__title,
  .prices__title,
  .onetap__title {
    font-size: 1.8rem;
  }

  .onetap__content-title,
  .prices__content-title {
    font-size: 1.1rem;
  }

  .active-link::after {
    content: "";
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--first-color-light);
  }
}

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

  .home__container {
    margin: 8rem auto;
  }
}

/* For 2K & 4K resolutions */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.5;
  }
}

@media screen and (min-width: 3840px) {
  body {
    zoom: 2.5;
  }
}
