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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --hue: 152;
  --first-color: hsl(var(--hue), 24%, 32%);
  --first-color-alt: hsl(var(--hue), 24%, 28%);
  --first-color-light: hsl(var(--hue), 24%, 66%);
  --first-color-lighten: hsl(var(--hue), 24%, 92%);
  --title-color: hsl(var(--hue), 4%, 15%);
  --text-color: hsl(var(--hue), 4%, 35%);
  --text-color-light: hsl(var(--hue), 4%, 55%);
  --body-color: hsl(var(--hue), 0%, 100%);
  --container-color: #FFF;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --big-font-size: 2rem;
  --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;

  /*========== Margenes Bottom ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

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

  /*========== Hover overlay ==========*/
  --img-transition: 0.3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --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;
}

html{
  scroll-behavior: smooth;
}

body,
button,
input,
textarea{
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body{
  margin: var(--header-height) 0 0 0;
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*For animation dark mode*/
}

/*loader*/
/* .loader-bg{
	position: fixed;
	z-index: 999999;
	background: #fff;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
} */

.loader-bg{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: grid;
  place-items: center;
  z-index: 1000;
}

.center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center span{
  position: absolute;
  width: 20px;
  height: 20px;
  background: #262626;
  animation: animate 4s infinite ease-in-out;
}

.center span:nth-child(1){
  background: #00b54b;
  left: -24px;
  top: -24px;
  animation-delay: .2s;
}

.center span:nth-child(2){
  background: #065fa7;
  left: 0;
  top: -24px;
  animation-delay: .4s;
}

.center span:nth-child(3){
  background: #065fa7;
  left: -24px;
  top: 0;
  animation-delay: .8s;
}

.center span:nth-child(4){
  background: #00b54b;
  left: 0;
  top: 0;
  animation-delay: .6s;
}

@keyframes animate{
  0%{
    transform: rotateY(0deg);
  }

  20%{
    transform: rotateY(360deg);
  }

  40%{
    transform: rotateX(180deg);
  }

  60%{
    transform: rotateX(0deg);
  }

  80%{
    transform: rotateX(360deg);
  }

    00%{
    transform: rotateY(180deg);
  }
}

button{
  cursor: pointer;
  border: none;
  outline: none;
}

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;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
body.dark-theme{
  --first-color-dark: hsl(var(--hue), 8%, 20%);
  --title-color: hsl(var(--hue), 4%, 95%);
  --text-color: hsl(var(--hue), 4%, 75%);
  --body-color: hsl(var(--hue), 8%, 12%);
  --container-color: hsl(var(--hue), 8%, 16%);
}

/*========== Button Dark/Light ==========*/
.change-theme{
  color: var(--title-color);
  font-size: 1.15rem;
  cursor: pointer;
}

.nav__btns{
  display: inline-flex;
  align-items: center;
  column-gap: 1rem;
}

/*========== 
Color changes in some parts of 
the website, in dark theme 
==========*/

.dark-theme .steps__bg,
.dark-theme .questions{
  background-color: var(--first-color-dark);
}

.dark-theme .product__circle,
.dark-theme .footer__subscribe{
  background-color: var(--container-color);
}

.dark-theme .scroll-header{
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 4%, .3);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section{
  padding: 5.5rem 0 1rem;
}

.section__title,
.section__title-center{
  font-size: 1.75rem;
  margin-bottom: var(--mb-2);
  line-height: 140%;
}

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

.container{
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid{
  display: grid;
}

/*=============== HEADER ===============*/
.header{
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .4s; /*For animation dark mode*/
}

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

.nav__logo,
.nav__toggle,
.nav__close{
  color: var(--title-color);
}

/* .nav__logo{
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: .3s;
}

.nav__logo-icon{
  font-size: 1.15rem;
  color: var(--first-color);
}

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

.nav__logo{
  width: 110px;
}
.nav__toggle{
  display: inline-flex;
  font-size: 1.25rem;
  cursor: pointer;
}

@media screen and (max-width: 767px){
  .nav__menu{
    position: fixed;
    background-color: var(--container-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -2px 0 4px hsla(var(--hue), 24%, 15%, .1);
    padding: 4rem 0 0 3rem;
    border-radius: 1rem 0 0 1rem;
    transition: .3s;
    z-index: var(--z-fixed);
  }
}

.nav__close{
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  cursor: pointer;
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__link{
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: .3s;
}

.nav__link:hover{
  color: #065fa7;
}

/* Show menu */
.show-menu{
  right: 0;
}

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

/* Active link */
.active-link{
  position: relative;
  color: #065fa7;
}

.active-link::after{
  content: '';
  position: absolute;
  bottom: -.5rem;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: #00b54b;
}

/*=============== BUTTONS ===============*/
.button{
    display: inline-block;
    background-color: #00b54b;
    color: #FFF;
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
  }
  
  .button:hover{
    background-color: var(--first-color-alt);
  }
  
  .button__icon{
    transition: .3s;
  }
  
  .button:hover .button__icon{
    transform: translateX(.25rem);
  }
  
  .button--flex{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
  }
  
  .button--link{
    color: var(--first-color);
    font-weight: var(--font-medium);
  }
  
  .button--link:hover .button__icon{
    transform: translateX(.25rem);
  }


/*============== BLOG =================*/
.blog__container{
    padding-bottom: 2rem;
    /* position: relative; */
  }
  
  .blog_title{
    position: relative;
    text-align: center;
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
  }
  
  /* .blog_title:before{
    content: '';
    position: absolute;
    top: 7px;
    left: 9%;
    width: 4px;
    height: 28px;
    background-color: #00b54b;
  } */
  
  .blog__content{
    row-gap: 3rem;
  }
  
  .blog__image{
    border-radius: .5rem;
    position: relative
  }
  
  .blog__button{
    display: inline-flex;
    background-color: #fff;
    padding: 1.15rem;
    border-radius: .5rem 0 .5rem 0;
    font-size: 2rem;
    color: var(--title-color);
    position: absolute !important;
    right: 0;
    bottom: 0;
  }
  
  .blog__button i{
    transform: rotate(-30deg);
    transition: .4s;
  }
  
  .blog__button:hover i{
    transform: rotate(-30deg) translateX(.25rem);
  }
  
  .blog__title{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: .75rem;
  }
  
  .blog__description{
    margin-bottom: 1.5rem;
    font-weight: 300;
  }
  
  .blog__footer,
  .blog__reaction{
    display: flex;
    align-items: center;
  }
  
  .blog__footer{
    column-gap: 1.5rem;
  }
  
  .blog__reaction{
    column-gap: .25rem
  }
  
  .blog__reaction i{
    font-size: 1.25rem;
  }
  
  .blog__reaction span{
    font-size: var(--small-font-size)
  }


/*=============== FOOTER ===============*/
.footer__container{
    row-gap: 3rem;
  }
  
  .footer__logo{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--title-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: var(--mb-2-5);
    transition: .3s;
  }
  
  .footer__logo-icon{
    font-size: 1.15rem;
    color: var(--first-color);
  }
  
  .footer__logo:hover{
    color: var(--first-color);
  }
  
  .footer__title{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1-5);
  }
  
  .footer__subscribe{
    background-color: var(--first-color-lighten);
    padding: .75rem;
    display: flex;
    justify-content: space-between;
    border-radius: .5rem;
  }
  
  .footer__input{
    width: 70%;
    padding: 0 .5rem;
    background: none;
    color: var(--text-color);
    border: none;
    outline: none;
  }
  
  .footer__button{
    padding: 1rem;
  }
  
  .footer__data{
    display: grid;
    row-gap: .75rem;
  }
  
  .footer__information{
    font-size: var(--small-font-size);
  }
  
  .footer__social{
    display: inline-flex;
    column-gap: .75rem;
  }
  
  .footer__social-link{
    font-size: 1rem;
    color: var(--text-color);
    transition: .3s;
  }
  
  .footer__social-link:hover{
    transform: translateY(-.25rem);
  }
  
  .footer__cards{
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
  }
  .footer__card{
    width: 35px;
  }
  
  .footer_contact_link{
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
  }

  .footer__copy{
    text-align: center;
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin: 5rem 0 1rem;
  }
  
  /*=============== SCROLL UP ===============*/
  .scrollup{
    position: fixed;
    background-color: #00b54b;
    right: 1rem;
    bottom: -30%;
    display: inline-flex;
    padding: .5rem;
    border-radius: .25rem;
    z-index: var(--z-tooltip);
    opacity: .8;
    transition: .4s;
  }
  
  .scrollup__icon{
    font-size: 1rem;
    color: #FFF;
  }
  
  .scrollup:hover{
    background-color: var(--first-color-alt);
    opacity: 1;
  }
  
  /* Show Scroll Up*/
  .show-scroll{
    bottom: 3rem;
  }
  
  /*=============== SCROLL BAR ===============*/
  ::-webkit-scrollbar{
    width: .6rem;
    background: hsl(var(--hue), 4%, 53%);
  }
  
  ::-webkit-scrollbar-thumb{
    background: hsl(var(--hue), 4%, 29%);
    border-radius: .5rem;
  }

@media screen and (max-width: 320px){
    .container{
      margin-left: var(--mb-1);
      margin-right: var(--mb-1);
    }
  
    .home__img{
      width: 180px;
    }
    .home__title{
      font-size: var(--h1-font-size);
    }
  
    .steps__bg{
      padding: 2rem 1rem;
    }
    .steps__card{
      padding: 1.5rem;
    }
  
    .product__container{
      grid-template-columns: .6fr;
      justify-content: center;
    }
  
    .story__square,
    .story__img,
    .testimonial__square,
    .testimonial__img {
      width: 180px;
    }
  
    .story__square,
    .testimonial__square {
      height: 180px;
    }
}
  
@media screen and (max-width: 320px) {
    .bd-container {
      margin-left: 1rem;
      margin-right: 1rem;
    }
  
    .experience__content {
      padding: 0;
    }
}
  
  /* For medium devices */
@media screen and (min-width: 576px){
    
    .steps__container{
      grid-template-columns: repeat(2, 1fr);
    }
  
    .blog__content{
      grid-template-columns: 450px;
      justify-content: center;
    }
  
    .footer__subscribe{
      width: 400px;
    }
}
  
@media screen and (min-width: 767px){
  
    body{
      margin: 0;
    }
  
    .nav{
      height: calc(var(--header-height) + 1.5rem);
      column-gap: 3rem;
    }
  
    .nav__logo{
      width: 160px
    }
    .nav__toggle,
    .nav__close{
      display: none;
    }
    .nav__list{
      flex-direction: row;
      column-gap: 3rem;
    }
    .nav__menu{
      margin-left: auto;
    }
    
    .footer__container{
      grid-template-columns: repeat(2, 1fr);
    }
  
    .footer__container{
      column-gap: 3rem;
    }
    .footer__subscribe{
      width: initial;
    }
}
  
  /* For large devices */
@media screen and (min-width: 992px){
    .container{
      margin-left: auto;
      margin-right: auto;
    }
  
    .section{
      padding: 8rem 0 1rem;
    }
    .section__title,
    .section__title-center{
      font-size: var(--h1-font-size);
    }

    .footer__logo{
      font-size: var(--h3-font-size);
    }
    .footer__container{
      grid-template-columns: 1fr .5fr .5fr .5fr;
    }
    .footer__copy{
      margin: 7rem 0 2rem;
    }
}
  
@media screen and (min-width: 1024px) {
    .bd-container {
      margin-left: auto;
      margin-right: auto;
    }
  
    .blog__container{
      padding-bottom: 5rem;
    }
  
    .blog__content{
      grid-template-columns: repeat(2, 450px);
      column-gap: 5rem;
      padding-top: 2rem;
    }
}
  
@media screen and (min-width: 1200px){
    .home__social{
      right: -3rem;
      row-gap: 4.5rem;
    }
    .home__social-follow{
      font-size: var(--small-font-size);
    }
    .home__social-follow::after{
      width: 1.5rem;
      right: -60%;
    }
    .home__social-link{
      font-size: 1.15rem;
    }
  
    .scrollup{
      right: 3rem;
    }

    .blog__container{
        padding-bottom: 5rem;
      }
    
      .blog__content{
        grid-template-columns: repeat(2, 450px);
        column-gap: 5rem;
        padding-top: 2rem;
      }
}

/*================ BLOG ===============*/
.hero{
    max-width: 114rem;
    height: 40rem;
    background: url('../img/bg4.png') no-repeat center center / cover;
    /* margin: 5rem auto; */
    margin-top: -3rem;
}

main{
    width: 100%;
    max-width: 80rem;
    background-color: #fff;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1.5rem;
    margin-top: 2rem;
}

main h2{
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
}

main .profile-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

main .content p{
    font-size: .75rem;
}

main .profile-container .profile{
    display: flex;
    justify-content: center;
    align-items: center;
}

main .profile-container .profile .img-container{
    width: 6rem;
    height: 6rem;
    background: url('../img/blog2.jpg') no-repeat center center / cover;
    border-radius: 0.5rem;
}

main .profile-container .profile .text{
    margin: 0 1rem;
    color: #5b5963;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.profile .text h3{
    text-transform: uppercase;
}

main .content p{
    color: #5b5963;
    margin: 1rem 0;
}

main .content h4{
    font-size: 1.4rem;
    font-weight: 600;
    color: #5b5963;
    margin: 2rem 0;
}

main .content .content-img-container{
    width: 100%;
    height: 35rem;
    background: url('../img/blog3.jpg') no-repeat center center / cover;
}

blockquote{
    font-size: 0.75rem;
    padding: 1rem 2.8rem;
    line-height: 1.6;
    font-weight: 300;
    box-shadow: inset 0.5rem 0 0 #00b54b;
    background-color: #f5f5f5;
}

.tags{
    display: flex;
    align-items: center;
}

.teags p{
    font-size: 1.4rem;
    text-transform: capitalize;
}

.tags a{
    display: inline-block;
    padding: 0.3rem 1.5rem;
    background-color: #f5f5f5;
    color: #5b5963;
    font-size: 1.2rem;
    text-transform: capitalize;
    margin: 0 0.5rem;
}

@media (max-width: 768px){
    main{
        /* padding: 1.2rem; */
        margin: 0;
        /* margin-left: -20rem; */
        width: 100%;     
        border-radius: 0;
    }

    .container{
        margin-left: 1rem;
    }

    main .profile-container .profile .img-container{
        width: 100%;
        height: 100%;

    }
}