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

/* Variables */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --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 */
  --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: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .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: .875rem;
    --smaller-font-size: .813rem;
  }
  
}


/* Dark/light 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%);
  --text-color-light: hsl(228, 16%, 14%);
  --border-color: hsl(228, 12%, 8%);
  --body-color: hsl(228, 12%, 8%);
  --container-color: hsl(228, 16%, 14%);
}


.dark-theme .home-description{
  color: hsl(228, 8%, 70%);;
}


.dark-theme .subscribe-content,
.dark-theme .home-image-backround,
.dark-theme .value-backround,
.dark-theme .contact-backround,
.dark-theme #icon,
.dark-theme #arrow,
.dark-theme #box-icon,
.dark-theme .box-bottom button{
  background-color: var(--container-color);
}

.dark-theme .home-search-input::placeholder{
  color: hsl(228, 8%, 70%);;
}

.dark-theme .home-value-description{
  color: hsl(228, 8%, 70%);
}

/* Base */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: scroll;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .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;
}


/* Reusable CSS classes */
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.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;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: 0.4s; 
}

.header-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
} 


.nav-logo{
  color: #fff;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.nav-item span{
  font-weight: var(--font-medium);
}

.nav-logo i{
  font-size: 1rem;
}

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

.right-header .bx{
  margin-right: 2rem;
}


@media screen and (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    background-color: var(--container-color);
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
    width: 90%;
    max-width: 376px;
    height: 70px;
    margin: 0 auto;
    padding: 1.30rem 1rem;
    border-radius: 1rem;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: 0.4s;
  }
  
  .nav-list {
    display: flex; 
    justify-content: space-evenly;
    align-items: center;
    color: var(--text-color);
    width: 100%; 
  }

  .nav-link{
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
  }

  .nav-link:hover{
    background-color: var(--first-color);
    color: #fff;
  }

  .nav-link i{
    font-size: 1.25rem;
  }

  .nav-link span{
      display: none;
  }
}

/* Home section*/
.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-bottom: 1.25rem;
}

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

.home-search{
  position: relative;
  background-color: var(--body-color);
  padding: .35rem .35rem .35rem .75rem;
  height: 3rem;
  max-width: 412px;
  display: flex;
  align-items: center;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.home-search i{
  font-size: 1.25rem;
  color: var(--first-color);
}



.home-search input{
  width: 80%;
  background-color: transparent;
  color: var(--text-color);
  margin-left: 1rem;
  font-size: var(--font-medium);
}

.home-search input::placeholder{
  color: var(--text-color-light);
}

.search-button{
  background: var(--first-color);
  color: #fff;
  height: 100%;
  width:25%;
  position: absolute;
  top: 0;
  right: 0;
  font-size: var(--normal-font-size);
  border-radius: 2rem;
  cursor: pointer;
}

.home-value{
  display: flex;
  column-gap: 2.5rem;
}

.home-value-number{
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
}

.home-value-number span{
  color: var(--second-color);
}

.home-value-description{
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.home-images{
  position: relative;
  display: flex;
  justify-content: center;
}


.home-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(228deg, 66%, 25%, 0.25);
}


.home-image-backround{
  width: 266px;
  height: 316px;
  background-color: hsl(228, 24%, 97%);
  border-radius: 135px 135px 0px 0px;
}

#modes-button{
  cursor: pointer;
}

#subscribe-button{
  background: linear-gradient(101deg, 
              hsl(228, 66%, 53%),
              hsl(228, 66%, 47%));
  color: #fff;
  padding: 8px 12px;
  border-radius: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  box-shadow: 0 4px 8px hsla(228, 68%, 45%, 0.25);
  transition: 0.3s;
  cursor: pointer;
}

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

/* Header scroll effect */
.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 #subscribe-button{
  display: none;
}

.scroll-header .header-container{
  padding-top: 0;
  height: 60px;
}

@media screen and (min-width: 1024px){
  .scroll-header #subscribe-button{
    display: inline;
  }
}

/* Logos section */
.logos-box{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  gap: 5rem 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;          
  padding-top: 1.5rem;
}

.logos-box img{
  width: 100%;
  max-width: 200px;
  opacity: 0.2;
  transition: 0.3s;
}

.logos-box img:hover{
  opacity: 0.6;
}


/* Popular */
.popular-container{
  padding: 1rem 0 0rem;
}

.popular__card{
  background-color: var(--container-color);
  padding: 0.5rem 0.5rem 1.5rem;
  border-radius: 1rem;
  margin: 0 auto;
}

.popular__card img{
  display: block;
  margin: 0 auto;
  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;
}

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

.popular__title{
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

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

.popular__card:hover{
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.slide-buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.swiper-button-prev,
.swiper-button-next{
  display: flex;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover{
  background-color: var(--first-color);
  color: white;
}

/* Value */

.value-container{
  row-gap: 3rem;
}

.test-info{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.test-info2{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value__images{
  position: relative;
  display: flex;
  justify-content: center;
}

.value-backround{
  width: 266px;
  height: 316px;
  background-color: hsl(228, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
}

.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(228deg, 66%, 25%, 0.25); 
}


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

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

.value__accordion-item{
  background-color: var(--body-color);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem 0.7543m;
}


.value__accordion-item header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  cursor: pointer;
}

#icon{
  background-color: var(--first-color-lighten);
  padding: 5px;
  border-radius: 0.25rem;
  font-size: 18px;
  color: var(--first-color);
  transition: .3s;
  margin-left: .5rem;
}

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

#arrow{
  background-color: var(--first-color-lighten);
  color: var(--first-color);
  padding: .25rem;
  font-size: 10px;
  border-radius: 2px; 
  margin-right: .5rem;
}

.arrow-up{
  rotate: 180deg;
}

.value__accordion-title{
  text-align: center;
}

.value__acordion-description{
  font-size: var(--small-font-size);
  overflow: hidden;
  height: 0;
  transition: all .25s ease;
  text-align: center;
}

.value__acordion-description-extended{
  padding: 0 3rem;
  margin-bottom: .25rem;
  height: 100px;
}

.accordion-open{
  box-shadow: 0 12px 32px hsla(228, 66%, 45%, .1);
}

/* Contact */
.contact-container{
  row-gap: 3.5rem;
}

.contact-backround{
  width: 266px;
  height: 316px;
  background-color: hsl(228, 24%, 97%);
  border-radius: 135px 135px 16px 16px;
}

.contact-image{
  position: relative;
  display: flex;
  justify-content: center;
}

.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(228deg, 66%, 25%, 0.25);
}

.contact__subtitle{
  color: var(--second-color);
}

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

.contact-boxes{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  gap: 1.25rem .75rem;
}

.box-item{
  border: 2px solid var(--border-color);
}

.box-content{
  padding: .5rem;
}

.box-top{
  display: flex;
}


#box-icon{
  background-color: var(--first-color-lighten);
  border-radius: 0.25rem;
  font-size: 18px;
  color: var(--first-color);
  transition: .3s;
  padding: auto;
  margin-bottom: 2rem;
  padding: 8px;
  height: 35px;
}

.info{
  margin-left: .5rem;
}

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

.box-bottom{
  display: flex;
  justify-content: center;
}

.box-content button{
  background-color: var(--first-color-lighten);
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  width: 100%;
  height: 50px;
  border-radius: .5rem;
  cursor: pointer;
}

.box-content button:hover{
   background-color: var(--first-color);
   color: #fff;
}

.box-item:hover{
  box-shadow: 0 8px 24px hsla(228, 66%, 45%, .1);
}


@media screen and (max-width: 380px) {
  .contact-boxes {
    grid-template-columns: 1fr;
  }
}

/* Subscribe */
.subscribe{
  max-width: 600px;
  margin: auto;
}
.subscribe-content{
  background-color: var(--first-color);
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: .2s;
  margin-left: 3rem;
  margin-right: 3rem;
}

.subscribe-content h2{
  color: #fff;
  font-size: var(--h2-font-size);
  text-align: center;
}

.subscribe-content p{
  color:hsl(228, 90%, 92%);
  font-size: var(--small-font-size);
  text-align: center;
}

.subscribe-content button{
  border: 2px solid #fff;
  background-color: var(--first-color-light);
  font-size: var(--small-font-size);
  width: 150px;
  height: 60px;
  border-radius: .5rem;
  cursor: pointer;
  color: #fff;
  margin-top: 2rem;
}

.subscribe-content button:hover{
  background-color: var(--first-color);
}

.subscribe-content:hover{
  -webkit-box-shadow: 7px 9px 5px 0px rgba(143,143,143,0.4);
  -moz-box-shadow: 7px 9px 5px 0px rgba(143,143,143,0.4);
   box-shadow: 7px 9px 5px 0px rgba(143,143,143,0.4);
}


/* Footer */
.top-footer .logo{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.top-footer .logo h3,
.top-footer .logo #logo{
    font-size: var(--h3-font-size);
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}


.footer{
  margin-bottom: 6rem;
}

.footer-details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: start;
  gap: 3rem 1rem;
  margin-top: 2.5rem;
}

.links{
  margin-top: .75rem;
}

.item4 .links{
  display: flex;
  gap: 1rem;
}

.links p{
  margin-bottom: .75rem;
}

.links i{
  font-size: 1.2rem;
}

.links p:hover,
.links i:hover{
  color: var(--first-color);
  cursor: pointer;
}

.footer-copyright{
  margin-top: 2.5rem;
  text-align: center;
}

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

.terms{
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Active link */
.active-link{
  background-color: var(--first-color);
  color: #fff;
  transition: .2s;
}


/* Scroll up */
.scroll-up{
  position: fixed;
  bottom: 115px; 
  right: 20px; 
  z-index: 999; 
  box-shadow: 0 8px 24px hsla(226, 74%, 5%, 0.1);
  border-radius: 50%;
}

.scroll-up i{
  font-size: 25px;
  background-color: var(--first-color);
  color: #fff;
  border-radius: 50%;
}

.scroll-up i{
  padding: 5px;
}

.scroll-up-disappear{
  display: none;
}


/* Breakpoints */
/* For small devices */

@media screen and (max-width:365px) {
  .container{
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  .home-image-backround{
    width: 220px;
    height: 264px;
  }

  .home-img{
    width: 206px;
    height: 250px;
  }

  .home-search input{
    margin-left: .5rem;
  }

  .home-title{
    font-size: 2rem;
  }

  .search-button{
    border-radius: 0;
    width: 20%;
    font-size: 10px;
  }

  .home-search{
    border-radius: 0;
  }

  .home-search-input::placeholder{
    font-size: 13px;
  }

  .home-value{
    column-gap: 1.5rem;
  }

  .home-value-number{
    font-size: var(--h2-font-size);
  }
  
  .value-backround,
  .contact-backround{
    width: 220px;
    height: 270px;
  }

  .value-img,
  .contact-img{
    width: 200px;
    height: 250px;
  }
  
  .subscribe-content{
    padding: 20px;
  }

  .slide-buttons{
    margin-top: 0;
  }

  .scroll-header #modes-button{
     right: 25rem;
  }
}

/* For medium devices */


@media screen and (min-width: 767px){
  .home-container{
    grid-template-columns: 1fr 1fr;
    padding-top: 2rem;
  }

  .home-search{
    margin-bottom: 1rem;
  }

  .home-images{
    top: 7rem;
    left: 3rem;
  }

  .home-img{
    bottom: 7rem;
  }
  .home-data{
    padding-bottom: 2rem;
  }

  .logos-box{
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

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

  .test{
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .test2{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    order: 1;
  }

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

  .subscribe-content{
    margin-left: 6rem;
    margin-right: 6rem;
  }

  .footer-details{
    grid-template-columns: 140px 140px 140px;
    justify-content: flex-end;
  }

  .top-footer{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
  }
  

  .testNou{
    display: flex;
    justify-content: space-between;
    gap: 4rem;
  }  
}

@media screen and (min-width:845px){
  .home-images{
    top: 5.6rem;
    left: 4rem;
  }

  .home-img{
    bottom: 5.5rem;
  }

}

/* For large devices */
@media screen and (min-width:1024px){
  .nav-list{
    display: flex;
    justify-content: center;
    gap: 2rem;
    top: 1rem;
    left: 28rem;
  }

  .nav-item span{
    color: #fff;
  }

  .nav-item i{
    display: none;
  }

  .scroll-header .nav-item span{
    color: var(--text-color);
    font-weight: var(--font-medium);
  }

  .nav-item span.active-link2 {
    color: var(--first-color);
  }
  
  .container{
    margin: 0 auto;
  }
  .home-images{
    top: 7.6rem;
    left: 4.5rem;
  }

  .home-image-backround{
    width: 350px;
    height: 412px;
    border-radius: 256px 256px 0 0;
    background-color: #fff;
  }

  .home-img{
    width:330px;
    height: 390px;
    border-radius: 236px 236px 12px 12px;
    bottom: 7.5rem;
  }

  .footer.section{
    margin-bottom: 0;
  }

  .footer-copyright{
    margin-top: 5rem;
  }
}

@media screen and (max-width: 1023px){
  #modes-button{
    margin-right: 1rem;
  }

  .scroll-header #modes-button{
     position: absolute;
     right: 1.4rem;
     top: 1.3rem;
  }
}



.future-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.large-photo img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.small-photos {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.small-photo {
  width: 30%;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: transform 0.3s;
}

.small-photo:hover {
  transform: scale(1.05);
}

.future-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.future-description h2 {
  margin-bottom: 1rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.future-description p {
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  text-align: justify;
}



.characteristics {
  margin-top: 4rem;
}

.characteristics__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
}

.characteristics__card img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.characteristics__card p {
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.swiper-button-prev,
.swiper-button-next {
  background-color: var(--first-color);
  color: #fff;
  padding: 0.5rem;
  border-radius: 50%;
}

@media screen and (max-width: 767px) {
  .future-container {
    grid-template-columns: 1fr;
  }

  .future-images {
    margin-bottom: 2rem;
  }
}
