/*======= GOOGLE FONTS ======*/
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

/*========= VARIABELS CSS =========*/
:root{
  --header-height: 3.5rem;
  --border-section: 56px 56px 0 0;

  /*======= COLORS ========*/
  --first-color: hsl(12, 32%, 22%);
  --first-color-alt: hsl(12, 42%, 12%);
  --first-color-light: hsl(12, 24%, 32%);
  --second-color: hsl(39, 62%, 65%);
  --title-color: hsl(12, 12%, 16%);
  --text-color: hsl(12, 12%, 32%);
  --text-color-light: hsl(12, 8%, 48%);
  --white-color: #fff;
  --magic-boxes: #202122;
  --nav-bar: #FEA700;
  --steps-class: #0355a9;

  /*======== Font and typography ==========*/
  --body-font: "Roboto", sans-serif;
  --biggest-font-size: 2.75rem;
  --big-font-size: 1.75rem;
  --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-regular:400;
  --font-medium:500;
  --font-semi-bold:600;
  --font-bold:900;

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

/*========Responsive typography=========*/
@media screen and (min-width: 1024px){
  :root{
    --biggest-font-size: 4.5rem;
    --big-font-size: 3rem;
    --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;
  line-height: 25px;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white);
}

.cursor-dot,
.cursor-outline{
  display: none;
}

.cursor-outline{
  width: 30px;
  height: 30px;
  border: 2px solid hsla(0, 0%, 100%, 0.5);
}

ul{
  list-style: none;
}

a{
  text-decoration: none;
}

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

h1, h2{
  font-family: 'Roboto Flex';
  font-weight: 900;
}

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

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

.section{
  padding-block: 4.5rem 3.5rem;
}
.home__section{
  padding-block: 2.5rem 0rem;
}

.section__title{
  color: var(--black);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  line-height: 120%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.main{
  overflow: hidden;
}

/*=========HEADER&NAV=========*/

.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bar);
  z-index: var(--z-fixed);
  transition: background .4s, box-shadow .4s;
}

.header-actions i, .nav__phone i{
  font-size: 25px;
  color: black;
}
.header-actions {
  position: relative;
  display: flex;
  align-items: center;
}

.header__border{
  width: 100%;
  height: 2px;
  background-image: linear-gradient(90deg,var(--text-color-light) 50%, transparent 50%);
  background-size: 24px;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: opacity .3s;
}

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

.nav__logo{
  color: var(--white-color);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--h3-font-size);
}

.nav__logo img{
  width: 100px;
}


/*======================================*
Sub menu of languages
*======================================*/
.sub-menu-wrap {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.5s;
  z-index: 10;
}

@media only screen and (max-width: 600px) {
  .sub-menu-wrap {
    width: 181px;
    right: -50%; /* Adjust this value as needed */
  }
}


.sub-menu-wrap.open-menu{
  max-height: 400px;
}

.sub-menu {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  margin-top: 14px;
}

.user-info{
  align-items: center;
}

.sub-menu p{
  padding: 10px; 
  align-items: center;
}

.sub-menu-link:hover p{
  font-weight: 600;
}

.header-actions i{
  font-size: 25px;
}

.header-actions button{
  background: none;
  border: none;
  font: inherit;
}
.header-actions button:hover{
  cursor: pointer;
}

.language-code {
  text-transform: uppercase;
  color: black;
  margin-left: 5px;
}

.header-actions{
  display: flex;
}

/* NAVIGATION FOR MOBILE DEVICES */
@media screen and (max-width: 1023px){
  .nav__menu{
    position: fixed;
    bottom: 0;
    background: var(--nav-bar);
    border-radius: 56px 56px 0 0;
    box-shadow: 0 -2px 12px hsla(12, 32%, 12%, .3);
    width: 100%;
    padding: 1.25rem 4rem;
  }
}

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

.nav__link{
  color: var(--white-color);
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: .25rem;
  transition: color .3s;
}

.nav__link i{
  background: linear-gradient(180deg, hsl(0, 0%, 93%) 0%, hsl(58,100%, 50%) 100%);
  color: transparent;
  -webkit-background-clip: text;
  font-size: 1.5rem;
}

.nav__link:hover{
  color: var(--magic-boxes);
}

/*============ Change Background header =============*/
.scroll-header{
  box-shadow: 0 2px 8px hsla(12, 32%, 12%, .5);
}

.scroll-header .header__border{
  opacity: 0;
}
/* Active link */
.active-link{
  color: var(--magic-boxes);
}

/*================== HOME ==================*/
.home{
  background: var(--steps-class);
}

.home__container{
  padding-top: 2rem;
  row-gap: 2rem;
}

@media screen and (max-width: 1023px){
  .background__image{
    position: relative;
    background-image: url('../images/homepage.webp');
    background-size: cover;
    background-position: center;
    color: white;
    }

  .home__title,.home__description{
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }

  .home__container{
    align-items: center;
  }

  .card-overlay {
    background: rgba(0, 0, 0, 0.4);
    margin-inline: 0;
    height: 100vh;
    width: 100%;
  }
}


.home__data{
  text-align: center;
}

.home__subtitle{
  font-size: var(--normal-font-size);
  color: var(--second-color);
  font-weight: var(--font-medium);
  margin-bottom: .75rem;
}

.home__title,.home__description{
  color: var(--white-color);
}

.home__title{
  text-align: center;
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  line-height: 120%;
  margin: 0 auto 2rem;
  position: relative;
}

.home__title img{
  width: 80px;
  position: absolute;
  right: -1rem;
  bottom: -1.25rem;
}

.home__description{
  margin-bottom: 2rem;
}

.home__img{
  width: 320px;
  justify-content: center;
  border-radius: 56px 0 56px;
  display: none;
}

/* BUTTON */
.button{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--nav-bar);
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  box-shadow: 0 8px 32px hsla(39, 62%, 65%, .25);
  transition: box-shadow .3s;
}

button i{
  font-size: 1.5rem;
  transition: transform .3s;
}

.button:hover{
  box-shadow: 0 8px 32px hsla(39, 62%, 65%, .3);
}

.button:hover i{
  transform: translateX(.25rem);
}

/* Products */
.products{
  background-color: var(--magic-boxes);

}

.products__bg{
  background-color: var(--magic-boxes);
  border-radius: var(--border-section);
}

.products__container{
  row-gap: 3.5rem;
}

.products__button{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--magic-boxes);
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
  box-shadow: 0 8px 24px hsla(12, 32%, 12%, .5);
  margin-bottom: 2rem;
  transition: box-shadow .3s, transform .3s;
}

.products__button i{
  font-size: 1.5rem;
}

.products__button:hover{
  box-shadow: 0 8px 24px hsla(12, 32%, 12%, .6);
  transform: translateY(.35rem);
}

.products__data,
.products__card{
  text-align: center;
  color: var(--white-color);
}

.products__content{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  justify-content: center;
  gap: 3.5rem 4.5rem;
}

.products__img{
  filter: drop-shadow(0 4px 16px hsl(12, 32%, 16%));
  margin-bottom: 1.5rem;
  transition: transform .4s;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; 
  min-width: 150px; 
  min-height: 150px;
}

.products__bg .grid{
  display: block;
}

.products__img:hover{
  transform: translateY(-.35rem);
}

.products__name,
.products__price{
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  line-height: 120%;
}

/*About*/
.about{
  background-color: var(--magic-boxes);
}

.about__bg{
  background-color: var(--white-color);
  border-radius: var(--border-section);
}

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

.about__data{
  text-align: center;
}

.about__img{
  width: 320px;
  border-radius: 1rem;
  justify-content: center;
  justify-self: center;
}

/*=============Steps==============*/
.steps{
  background-color: var(--white-color);
  position: relative;
}

.steps__bg{
  background-color: var(--steps-class);
  border-radius: var(--border-section);
}

.steps__container{
  padding-top: 2rem;
}

.steps .section__title,
.steps__description{
  color: var(--white-color);
}

.steps__content{
  display: grid;
  row-gap: 4rem;
  position: relative;
}

.steps__card{
  width: 250px;
  z-index: 10;
}

.steps__circle{
  width: 150px;
  height: 150px;
  background-color: var(--magic-boxes);
  border-radius: 50%;
  box-shadow: 0 8px 32px hsla(12, 32%, 8%, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.steps__img{
  width: 120px;
  filter: drop-shadow(0 4px 16px hsl(12, 32%, 16%));
  transition: transform .3s;
}

.steps__img:hover{
  transform: translateY(-.35rem);
}

.steps__subcircle{
  width: 50px;
  height: 50px;
  background-color: var(--nav-bar);
  position: absolute;
  top: -.75rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--magic-boxes);
  outline: 10px solid var(--magic-boxes);
}

.steps__card-move,
.steps__card-move .steps__circle{
  margin-left: auto;
}

.steps__card-move .steps__description{
  text-align: right;
}

.steps__border{
  position: absolute;
  left: 3rem;
  right: 0;
  top: 7.5rem;
  margin: 0 auto;
  z-index: -1;
}

.steps__bg-img{
  position: absolute;
  top: 14rem;
  left: 0;
  width: 100%;
  height: 70%;
  object-fit: cover;
  object-position: -132px;
  opacity: .15;
}

/*Frequently asked questions*/
.faq{
  background-color: var(--steps-class);
}

.faq__bg{
  background-color: var(--white-color);
  border-radius: var(--border-section);
}

.faq__container{
  row-gap: 3rem;
}

.faq__data{
  text-align: center;
}

.faq__name{
  font-weight: var(--font-medium);
}

.faq__img{
  width: 320px;
  border-radius: 1rem;
  justify-self: center;
}

/* FOOTER */
.footer{
  background-color: var(--white-color);
  position: relative;
}

.footer__bg{
  background-color: var(--magic-boxes);
  border-radius: var(--border-section);
}

.footer__container{
  padding-block: 4rem 7rem;
  row-gap: 4.5rem;
  position: relative;
}

.footer__copy a{
  color: white;
}

.footer__data{
  text-align: center;
  row-gap: 4.5rem;
}

.footer__logo,
.footer__title,
.footer__input,
.footer__description,
.footer__social-link{
  color: var(--white-color);
}

.footer__logo{
  display: inline-flex;
  text-align: center;
  column-gap: .5rem;
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer__logo img{
  width: 65px;
}

.footer__title{
  font-size: var(--big-font-size);
  font-weight: var(--font-regular);
  line-height: 120%;
}

.footer__form{
  row-gap: 1rem;
}

.footer__input,
.footer__button{
  border: none;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.footer__input{
  width: 100%;
  background: transparent;
  border: 2px solid var(--text-color-light);
  padding: 1.15rem 1.5rem;
  border-radius: 4rem;
}

.footer__button{
  padding-block: 1.25rem;
  justify-content: center;
  cursor: pointer;
}

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

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

.footer__pivacy:hover{
  text-decoration: underline;
}

.footer__content{
  row-gap: 2rem;
  padding-bottom: 30px;
}

.footer__social{
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__social-link{
  font-size: 1.25rem;
  transition: color .3s;
}

.footer__social-link:hover{
  color: var(--second-color);
}

.footer__copy{
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  text-align: center;
}

.footer__bg-img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: -172px;
  opacity: .15;
}


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

.value__accordion-item{
  background-color: var(--body-color);
  border: 2px solid hsl(228, 99%, 98%);
  border-radius: .5rem;
  padding: 1rem .75rem;
}

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

.value__accordion-icon{
  background-color: var(--first-color-lighten);
  padding: 5px;
  border-radius: .25rem;
  font-size: 18px;
  color: var(--first-color);
  margin-right: .75rem;
  transition: .3s;
}

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

.value__accordion-arrow{
  display: inline-flex;
  background-color: var(--first-color-lighten);
  padding: .25rem;
  color: var(--first-color);
  border-radius: 2px;
  font-size: 10px;
  margin-left: auto;
  transition: .3s;
}

.value__accordion-arrow i{
  transition: .4s;
}

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

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

/*Rotate icon and add shadows*/
.accordion-open{
  box-shadow: 0 12px 32px hsla(228, 66%, 45%, .1); 
}

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

.accordion-open .value__accordion-arrow{
   box-shadow: 0 2px 4px hsla(228, 66%, 45%, .1);
}

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

/*===========SCROLL BAR===========*/
::-webkit-scrollbar{
  width: 0.6rem;
  background-color: hsl(12, 8%, 65%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(12, 8%, 45%);
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(12, 8%, 35%);
}

/*========== BREAKPOINTS =============*/
@media screen and (max-width: 300px){
  .container{
    margin-inline: 1rem;
  }

  .nav__menu{
    padding-inline: 3rem;
  }

  .home__title{
    width: 220px;
    text-align: center;
  }

  .home__title img{
    bottom: 2.5rem;
  }

  .products__content{
    grid-template-columns: 1fr;
  }

  .steps__content{
    row-gap: 3rem;
  }

  .steps__card{
    width: initial;
  }

  .steps__border{
    left: 0;
    top: 5.5rem;
  }
}

@media screen and (min-width: 450px){
  .steps__content{
    grid-template-columns: 325px;
    justify-content: center;
  }

}

@media screen and (min-width: 576px){
  .nav__menu{
    width: 376px;
  }

  .home__container,
  .product__container,
  .about__container,
  .faq__container,
  .footer__container{
    grid-template-columns: 400px;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1023px){
  body{
    cursor: none;
  }
  .section{
    padding-block: 7.5rem 5.5rem;
    --border-section: 104px 104px 0 0;
  }
  .nav__phone{
    display: none;
  }
  .home__title{
    text-align: initial;
  }

  .cursor-dot{
    width: 5px;
    height: 5px;
    background-color: white;
  }
  
  .cursor-dot,
  .cursor-outline{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 101;
    pointer-events: none;
  }

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

  .nav__logo img{
    width: 110px;
  }

  .nav__menu{
    width: initial;
  }

  .nav__list{
    column-gap: 4.5rem;
  }

  .nav__list{
    column-gap: 4.5rem;
  }

  .nav__link{
    font-size: var(--normal-font-size);
  }

  .nav__link i{
    display: none;
  }

  .products__bg .grid{
    display: grid;
  }

  .home__container{
    grid-template-columns: max-content 440px;
    align-items: center;
    padding-top: 3rem;
  }

  .home__img{
    order: -1;
    width: 450px;
    display: block;
  }

  .home__data{
    text-align: initial;
  }

  .home__title img{
    width: 120px;
  }

  .home__description{
    margin-bottom: 3rem;
  }

  .products__container{
    grid-template-columns: 418px 535px;
    align-items: center;
  }

  .products{
    background-image: var(--steps-class);

  }

  .products_data{
    text-align: initial;
  }

  .products__content{
    grid-template-columns: repeat(3, 150px);
  }

  .products__name,
  .products__price{
    font-size: var(--h3-font-size);
  }

  .about__container{
    grid-template-columns: max-content 465px;
    align-items: center;
  }

  .about__img{
    order: -1;
    width: 450px;
  }

  .about__data,
  .about__data .section__title{
    text-align: initial;
  }

  .steps__content{
    grid-template-columns: repeat(3, max-content);
    column-gap: 6.5rem;
    padding-top: 3rem;
  }

  .steps__card{
    width: 272px;
  }

  .steps__card-move{
    display: flex;
    flex-direction: column;
    margin-top: 7rem;
    width: 272px;
  }

  .steps__card-move .steps__circle{
    margin-left: initial;
  }

  .steps__card-move .steps__description{
    order: -1;
    text-align: initial;
    margin-bottom: 3rem;
  }

  .steps__circle{
    width: 260px;
    height: 260px;
  }


  .steps__img{
    width: 165px;
  }

  .steps__subcircle{
    width: 85px;
    height: 85px;
    top: -1.25rem;
    outline: 15px solid var(--magic-boxes);
  }

  .steps__border{
    transform: rotate(85deg);
    width: 200px;
    left: 0;
    top: 2rem;
  }

  .steps__bg-img{
    top: 0;
    height: 100%;
    object-position: initial;
  }

  .faq__container{
    grid-template-columns: 510px max-content;
    align-items: center;
  }

  .faq__img{
    width: 450px;
  }

  .faq__data,
  .faq__data .section__title{
    text-align: initial;
  }

  .faq__data .section__title{
    margin-bottom: 3rem;
  }

  .footer__container{
    grid-template-columns: initial;
    justify-content: initial;
    row-gap: 6rem;
    padding-block: 6rem 3rem;
  }

  .footer__data{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
    text-align: initial;
  }

  .footer__logo{
    margin-bottom: 1.5rem;
  }

  .footer__logo img{
    width: 110px;
  }

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

  .footer__form{
    width: 360px;
    row-gap: 1.5rem;
  }

  .footer__content{
    row-gap: 4rem;
  }

  .footer__social{
    column-gap: 3rem;
  }

  .footer__social-link{
    font-size: 1.5rem;
  }

  .footer__bg-img{
    object-position: top;
  }
}

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

@media screen and (min-width: 1248px){
  .home__container{
    column-gap: 4.5rem;
  }

  .home__img{
    width: 550px;
    height: 600px;
    object-fit: cover;
  }

  .products__container{
    column-gap: 3.5rem;
  }

  .about__container{
    column-gap: 6.5rem;
  }

  .about__img{
    width: 550px;
  }

  .faq__container{
    column-gap: 2rem;
  }

  .faq__img{
    width: 550px;
  }
}

/* Homepage */

@media screen and (min-width: 1024px) {
  .home__container {
    display: grid;
    grid-template-columns: 54% 50%;
    align-items: center;
    min-height: 100vh;
    padding: 0;
  }

  .home__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 56px 56px 0;
    grid-column: 1;
    grid-row: 1;
  }

  .home__data {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 2rem;
    max-width: 490px;
  }

  .background__image {
    background-image: none;
  }

  .card-overlay {
    background: none;
    margin-inline: 0;
    height: auto;
    width: auto;
  }

  .home__section {
    padding-left: 0;
  }

  .home__container {
    max-width: 100%;
    margin-inline: 0;
  }

  /* Add space between buttons */
  .home__data a {
    margin-right: 1rem;
  }
}