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

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

  /*========== 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%);
  --title-color: hsl(228, 57%, 28%);
  --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;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", 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;
}

/* 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;

  &:hover {
    font-size: 1rem;
  }
}
/*========== 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%);
}
/*========== 
    Color changes in some parts of 
    the website, in dark theme 
==========*/
.dark-theme .home__search,
.dark-theme .swiper-button-next,
.dark-theme .swiper-button-prev {
  border: 3px solid var(--border-color);
}
.dark-theme .nav__menu,
.dark-theme .home__img,
.dark-theme .popular__card:hover,
.dark-theme .value__img,
.dark-theme .accordion__open,
.dark-theme .accordion-open .value__accordion-icon,
.dark-theme .accordion-open .value__accordion-arrow,
.dark-theme .contact__img,
.dark-theme .contact__card-box:hover,
.dark-theme .scrollup {
  box-shadow: none;
}
.dark-theme .value__orbe,
.dark-theme .contact__orbe,
.dark-theme .value__accordion-icon,
.dark-theme .value__accordion-arrow,
.dark-theme .contact__card i,
.dark-theme .contact__card-button,
.dark-theme .subscribe__container {
  background-color: var(--container-color);
}
.dark-theme .subscribe__container {
  border: 6px solid var(--border-color);
}
.dark-theme .subscribe__description {
  color: var(--text-color);
}
.dark-theme .home__orbe {
  background: linear-gradient(
    180deg,
    hsl(0, 0%, 16%) 93%,
    hsl(0, 0%, 31%) 100%
  );
}

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

.grid {
  display: grid;
}

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

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

.section__title span {
  color: var(--second-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--second-color);
}

.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;
  transition: 0.3s;
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;

  i {
    font-size: 1rem;
  }

  &:hover {
    color: var(--first-color);
  }
}

.nav__list {
  display: flex;
}

@media screen and (max-width: 1024px) {
  .nav__menu {
    position: fixed;
    bottom: 2rem;
    background-color: var(--container-color);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    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);
    padding: 8px 12px;
    border-radius: 50%;
  }
  .nav__item 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(--first-color);
}
/* Active link */
.active-link {
  color: #fff;
  background: linear-gradient(101deg, hsl(228, 66%, 53%), hsl(228, 66%, 47%));
  box-shadow: 0 4px 8px hsla(228, 66%, 45%, 0.25);
}
/*=============== HOME ===============*/
.home {
  background: linear-gradient(170deg, hsl(0, 0%, 22%) 0%, hsl(0, 0%, 6%) 30%);
  padding-bottom: 0;
}
.home__container {
  padding-top: 4rem;
  row-gap: 3.5rem;
}
.home__title,
.home__value-number {
  color: #fff;
}
.home__title {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-top: 1.25rem;
}
.home__description {
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

.home__search {
  background-color: var(--body-color);
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  border: 3px solid var(--text-color-light);
  margin-bottom: 2rem;
}
.home__search i {
  font-size: 1.25rem;
  color: var(--first-color);
}
.home__search input {
  width: 90%;
  background-color: var(--body-color);
  color: var(--text-color);
  margin: 0 0.5rem;
}
.home__search-input::placeholder {
  color: var(--text-color-light);
}

.home__value {
  display: flex;
  column-gap: 2.5rem;
}
.home__value-number span {
  color: var(--second-color);
}
.home__value-description {
  display: flex;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.home__images {
  position: relative;
  display: flex;
  justify-content: center;
}
.home__orbe {
  width: 265px;
  height: 284px;
  background: linear-gradient(
    180deg,
    hsl(0, 0%, 16%) 93%,
    hsl(0, 0%, 67%) 100%
  );
  border-radius: 135px 135px 0 0;
  transition: 0.3s;
}

.home__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  display: inline-flex;
  align-items: flex-end;
  bottom: -1.5rem;
  box-shadow: 0 16px 32px hsl(228, 66%, 25%, 0.25);
}

/*=============== BUTTON ===============*/
.button {
  background: linear-gradient(101deg, hsl(228, 66%, 53%), hsl(228, 66%, 53%));
  display: inline-block;
  color: #fff;
  padding: 0.5rem 1.5rem;
  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.3s;
  cursor: pointer;

  &:hover {
    box-shadow: 0 8px 12px hsla(228, 66%, 45%, 0.25);
  }
}
.nav__button {
  display: none;
}

/*=============== LOGOS ===============*/
.logo__container {
  padding-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  justify-items: center;
}
.logo__img {
  height: 60px;
  opacity: 0.6;
  /* transition: 0.3s; */

  &:hover {
    opacity: 0.9;
  }
}
/*=============== POPULAR ===============*/
.popular__container {
  padding: 1rem 0 5rem;
}
.popular__card {
  width: calc(100% - 1rem);
  background-color: var(--container-color);
  padding: 1rem;
  margin: 1px 1px 1px 1px;
  margin-top: 1rem;
  transition: 0.4s;
  border-radius: 1rem;

  &:hover {
    box-shadow: 0 8px 32px hsla(0, 0%, 10%, 0.1);
  }
}
.popular__img {
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.popular__data {
  padding: 0 1rem 0 0.5rem;
}
.popular__price {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: 0.25rem;

  & span {
    color: var(--second-color);
  }
}
.popular__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}
.popular__description {
  font-size: var(--smaller-font-size);
}
/* Swiper class */
.swiper {
  overflow: initial;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
}
.swiper-button-next,
.swiper-button-prev {
  top: initial;
  bottom: 0;
  width: initial;
  height: initial;
  border: 2px solid var(--text-color-light);
  padding: 6px;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--first-color);

  &:hover {
    border-color: var(--text-color);
  }
}
.swiper-button-next {
  right: calc(50% - 3rem);
}
.swiper-button-prev {
  left: calc(50% - 3rem);
}
/*=============== VALUE ===============*/
.value__container {
  row-gap: 3rem;
}
.value__images {
  position: relative;
  display: flex;
  justify-content: center;
}
.value__orbe {
  width: 266px;
  height: 316px;
  background: hsl(224, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
  transition: 0.3s;
}
.value__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, 0.25);
}
.value__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}
.value__accordion {
  display: grid;
  row-gap: 1.5rem;
}
.value__accordion-item {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  padding: 1rem 0.75rem;
  border-radius: 0.5rem;
}
.value__accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.value__accordion-icon {
  background-color: var(--first-color-lighten);
  padding: 5px;
  border-radius: 0.25rem;
  font-size: 18px;
  color: var(--first-color);
  margin-right: 0.75rem;
  transition: 0.3s;
}
.value__accordion-title {
  font-size: var(--small-font-size);
}
.value__accordion-arrow {
  display: inline-flex;
  margin-left: auto;
  font-size: 10px;
  color: var(--first-color);
  background-color: var(--first-color-lighten);
  padding: 0.25rem;
  border-radius: 2px;
  transform: 0.3s;
}
.value__accordion-arrow i {
  transition: 0.3s;
}
.value__accordion-description {
  font-size: var(--smaller-font-size);
  padding: 1.25rem 2rem 0 2.75rem;
}
.value__accordion-content {
  overflow: hidden;
  height: 0;
  transition: all 0.25s ease;
}
/*Rotate icon and add shadows*/
.accordion-open {
  box-shadow: 0 12px 32px hsla(228, 66%, 45%, 0.1);
}
.accordion-open .value__accordion-arrow i {
  transform: rotate(180deg);
}
/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
}
.contact__images {
  position: relative;
  display: flex;
  justify-content: center;
}
.contact__orbe {
  width: 266px;
  height: 316px;
  background: hsl(224, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
  transition: 0.3s;
}
.contact__img {
  position: absolute;
  width: 250px;
  height: 300px;
  overflow: hidden;
  border-radius: 125px 125px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px hsla(228, 66%, 25%, 0.25);
}
.contact__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 0.75rem;
}
.contact__card-box {
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  padding: 1.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: 0.3s;

  &:hover {
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.1);
  }
}
.contact__card-info {
  display: flex;
  align-items: flex-start;
  column-gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact__card i {
  background-color: var(--first-color-lighten);
  padding: 6px;
  border-radius: 6px;
  font-size: 1.25rem;
  color: var(--first-color);
}
.contact__card-title {
  font-size: var(--normal-font-size);
}
.contact__card-description {
  font-size: var(--smaller-font-size);
}
.contact__card-button {
  font-size: var(--small-font-size);
  padding: 14px 0;
  width: 100%;
  border-radius: 0.25rem;
  background: var(--first-color-lighten);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  box-shadow: none;

  &:hover {
    background: var(--first-color);
    color: var(--first-color-lighten);
  }
}
/*=============== SUBSCRIBE ===============*/
.subscribe {
  padding: 2.5rem 0;
}
.subscribe__container {
  padding: 3rem 2rem;
  background: var(--first-color);
  border: 6px solid var(--first-color-light);
  border-radius: 1.5rem;
  text-align: center;
}
.subscribe__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
  color: var(--first-color-lighten);
}
.subscribe__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 2rem;
}
.subscribe__button {
  background: var(--first-color-light);
  font-size: var(--small-font-size);
  border: 2px solid var(--first-color-lighten);
  width: fit-content;
  margin: 0 auto;

  &:hover {
    background: var(--first-color);
  }
}
/*=============== FOOTER ===============*/
.footer__container {
  row-gap: 2.5rem;
}
.footer__logo {
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  margin-bottom: 0.75rem;

  & i {
    font-size: 1.25rem;
  }
}
.footer__description,
.footer__link {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}
.footer__content,
.footer__links {
  display: grid;
}
.footer__content {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem 4rem;
}
.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}
.footer__links {
  row-gap: 0.5rem;
}
.footer__link {
  color: var(--text-color);
  transition: 0.3s;

  &:hover {
    color: var(--title-color);
  }
}
.footer__social {
  display: flex;
  column-gap: 1rem;
}
.footer__social-link {
  color: var(--text-color);
  font-size: 1.25rem;
  transition: 0.3s;

  &:hover {
    color: var(--title-color);
  }
}

.footer__info,
.footer__privacy {
  display: flex;
}
.footer__info {
  margin-top: 5.5rem;
  padding-bottom: 6rem;
  flex-direction: column;
  text-align: center;
  row-gap: 1.5rem;
}
.footer__copy,
.footer__privacy a {
  font-size: var(--smaller-font-size);
  font-family: var(--font-medium);
  color: var(--text-color);
}
.footer__privacy {
  justify-content: center;
  column-gap: 1.25rem;
}
/*=============== SCROLL BAR ===============*/

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

  &: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: 380px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .section {
    padding: 3.5rem 0 1rem;
  }
  .home {
    padding-bottom: 0;
  }
  .contact__card {
    grid-template-columns: repeat(1, 180px);
    justify-content: center;
  }
}
/* For medium devices */
@media screen and (min-width: 576px) {
  .section__title {
    font-size: 1.5rem;
  }
  .home__title {
    font-size: 2.25rem;
  }
  .nav__menu {
    width: 350px;
  }
  .home__search {
    width: 412px;
  }
  .logo__container {
    grid-template-columns: repeat(2, 180px);
    justify-content: center;
  }
  .contact__card {
    grid-template-columns: repeat(2, 190px);
    justify-content: center;
  }
  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .section__title {
    font-size: 1.75rem;
  }
  .home__title {
    font-size: 3rem;
  }
  .home__container {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2rem;
  }
  .home__orbe {
    align-self: flex-end;
  }
  .home__data {
    padding-bottom: 2rem;
  }
  .logo__container {
    grid-template-columns: repeat(4, 150px);
    justify-content: center;
  }
  .value__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .contact__images {
    order: 1;
  }
  .subscribe__container {
    padding: 3rem 13rem;
  }
  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 2rem;
  }
  .footer__content {
    grid-template-columns: repeat(4, max-content);
    gap: 2rem;
  }
  .footer__info {
    /* padding-bottom: 0; */
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 1rem;
  }
}
/* For large devices */
@media screen and (min-width: 1023px) {
  .section__title {
    font-size: 2.75rem;
  }
  .section__subtitle {
    font-size: var(--normal-font-size);
  }
  .nav {
    height: calc(var(--header-height) + .5rem);
  }
  .nav__list {
    display: flex;
    align-items: center;
    column-gap: 2rem;
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 0.5rem;
    color: var(--text-color-light);
    box-shadow: none;

    i {
      display: none;
    }
  }
  .nav__button {
    display: inline-block;
  }
  .active-link {
    box-shadow: none;
    background: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }
  .home {
    padding-bottom: 0;
  }
  .value__container, .contact__container {
    align-items: flex-start;
  }
  .footer__container {
    gap: 6rem;
  }
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .swiper {
    overflow: auto;
  }
  .home__container {
    column-gap: 5rem;
  }
  .home__orbe {
    width: 504px;
    height: 611px;
    border-radius: 256px 256px 0 0;
  }
  .home__img {
    width: 472px;
    height: 634px;
    border-radius: 236px 236px 12px 12px;
    bottom: -2.5rem;
  }
  .value__container {
    column-gap: 5rem;
  }
  .value__orbe, .contact__orbe {
    width: 501px;
    height: 641px;
    border-radius: 258px 258px 16px 16px;
  }
  .value__img, .contact__img{
    width: 461px;
    height: 601px;
    border-radius: 238px 238px 12px 12px;
    /* bottom: -1.5rem; */

    img {
      max-width: initial;
    }
  }
  .contact__container {
    column-gap: 5rem;
  }
  .popular__container {
    padding: 1rem 1rem 5rem;
}
.scrollup {
  bottom: 3rem;
}
}
/* For 2K & 4K resolutions */
