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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --text-color-light: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);
  --container-color: hsl(0, 0%, 8%);

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

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


/*========== Responsive typography ==========*/
@media screen and (min-width: 1152px) {
  :root {
    --biggest-font-size: 5.5rem;
    --h1-font-size: 2.5rem;
    --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 {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

body {
  background-color: var(--body-color);
}

button,
input {
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

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

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

.section {
  padding-block: 5rem 1rem;
}

.section-title{
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

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

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  background: transparent;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo{
   color: var(--title-color);
   font-family: var(--second-font);
   font-weight: var(--font-semi-bold);
}

#menu-icon{
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1023px){
  .nav-menu{
    position: fixed;
    top: 0;
    left: -100%;
    background-color: hsla(0, 0%, 0%, .3);
    width: 100%;
    /* padding-block: 4rem; */
    display: inline-block;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: top .4s;
  }
}

.nav-list{
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;

}
.nav-link{
  position: relative;
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-medium);

}
.nav-link::after{
  content: '';
  width: 70%;
  height: 2px;
  background-color: var(--title-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .3s;
}
.nav-link:hover::after{
  width: 70%;

}

#menu-icon{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
    font-size: 42px;
    z-index: 10001;
    cursor: pointer;
    /* margin-left: 25px;
    display:none */
}


/* Show menu */

.show-menu{
  top:0;

}
/* Add blur to header */

.blur-header::after{
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, .3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;

}
/* Active link */
.active-link::after{
width: 70%;
}

/*=============== HOME ===============*/
.home{
  position: relative;
}
.home-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 750px;
  object-fit: cover;
  object-position: center;
}
.home-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 58%,
              hsla(0, 0%, 0% ) 78%);
}

.home-container{
  position: relative;
  padding-top:3rem;
  row-gap: 3rem;
}

.home-data{
  text-align: center;
}
.home-subtitle{
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.home-title{
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}

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

.home-cards{
  grid-template-columns: 240px;
  justify-content: center;
}

.home-card{
  position: relative;
  overflow: hidden;
}

.home-card-img{
  transition: transform .4s;
}

.home-card-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 50%,
              hsla(0, 0%, 0%) 125%);
}

.home-card-title{
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: var(--h3-font-size);
  z-index: 1;
}

.home-card:hover .home-card-img{
  transform:scale(1.2);
}
/*=============== B

UTTON ===============*/
.button{
  background-color: hsla(0, 0%, 100%, .2);
  padding: 1.25rem 1.5rem;
  color: var(--title-color);
  display: inline-flex;
  align-items: center;
  column-gap: 5rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}


.button i{
  font-size: 1.25rem;
  transition: transform .4s;
  font-weight: initial;
}

.button:hover i{
  transform: translateX(.25rem);
}
/*=============== ABOUT ===============*/

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

}
.about-data{
  text-align: center;
}
.about-description{
  margin-bottom: 2rem;
}

.about-image{
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.about-img{
  width: 300px;
  transition: transfrom .4s;
}


.about-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 50%,
              hsla(0, 0%, 0% ) 125%);
}

.about-image:hover .about-img{
  transform: scale(1.2);
}
/*=============== POPULAR ===============*/

.popular-container{
  padding-top: 1.5rem;
  grid-template-columns: 240px;
  justify-content: center;
row-gap: 2.5rem;
}
.popular-image{
position: relative;
overflow: hidden;
margin-bottom: 1rem;
}
.popular-img{
  transition: transform .4s;
}
.popular-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 50%,
              hsla(0, 0%, 0% ) 125%);
}
.popular-title{
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.popular-location{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: var(--small-font-size);
  font-family: var(--second-font);
  font-weight: 500;
}

.popular-location i{
  font-size: 1rem;
}

.popular-image:hover .popular-img{
  transform: scale(1.2);
}
/*=============== EXPLORE ===============*/
.explore{
  position: relative;
}

.explore-image{
  position: absolute;
  overflow: hidden;
}
.explore-img{
  width: 100%;
height: 333px;
object-fit: cover;
object-position: center;

}

.explore-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 5%,
              hsla(0, 0%, 0% ) 40%,
              hsla(0, 0%, 0% ) 60%,
              hsla(0, 0%, 0%, 0) 92%);

}

.explore-content{
  position: relative;
  padding-top: 16rem;
  text-align: center;
  row-gap: 2.5rem;
  
}

.explore-user{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
}

.explore-perfil{
  width: 30px;
border-radius: 50%;

}

.explore-name{
  font-size: var(--small-font-size);
  color: var(--title-color);
}
/*=============== JOIN ===============*/
.join-container{
  row-gap: 3rem;
  padding-bottom: 2.5rem;
}

.join-data{
  text-align: center;

}
.join-description{
  margin-bottom: 2rem;
}

.join-form{
  display: grid;
  row-gap: 1rem;
}

.join-input{
  padding: 1.25rem 1rem;
  background-color: var(--container-color);
}

.join-button{
  cursor: pointer;
}
.join-image{
  position: relative;
  justify-self: center;
  overflow: hidden;
}

.join-img{
  width: 300px;
  transition: transform .4s;
}

.join-shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
              hsla(0, 0%, 0%, 0) 50%,
              hsla(0, 0%, 0% ) 125%);
}

.join-image:hover .join-img{
  transform: scale(1.2);
}
/*=============== FOOTER ===============*/

.footer{
  padding-block: 2.5rem;
  background-color: var(--container-color);
}
.footer-content{
  row-gap: 3.5rem;
}

.footer-logo{
  display: inline-block;
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.footer-data{
  grid-template-columns:repeat(2, max-content);
  gap: 2.5rem 3.5rem;
}

.footer-title{
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer-links{
  display: grid;
  row-gap: .75rem ;
}

.footer-links{
  color: var(--text-color);
  transition: color.4s;
}
.footer-links:hover{
  color: var(--title-color);
}

.footer-group,
.footer-social{
display: flex;
}

.footer-group{
  margin-top: 5rem;
  flex-direction: column;
  align-items: center;
  row-gap: 2rem ;
}

.footer-social{
  column-gap: 1.5rem
}
.footer-social-link{
  color: var(--text-color);
  font-size: 1.25rem;
  transition:color .4s, transform .4s;
}

.footer-social-link:hover{
  color:var(--title-color);
  transform:translateY(-25rem);

}

.foooter-copy{
font-size: var(--smaller-font-size);
color: var(--text-color-light);
text-align: center;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
background-color: hsla(0, 0%, 10% );

}
::-webkit-scrollbar-thumb{
 
  border-radius: .5rem;
background-color: hsla(0, 0%, 20% );

}
::-webkit-scrollbar-thumb:hover{
background-color: hsla(0, 0%, 30% );

}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: 3rem;
  background-color:  hsla(0, 0%, 100%, .1 );
  padding: 6px;
  display: inline-flex;
  color:var(--title-color) ;
  font-size: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-tooltip);
  transition: buttom .4s, transform .4s;
}
.scrollup:hover{
  transform: translateY(-.25rem);
}
/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */

@media screen and (max-width: 340px){
  .container{
    margin-inline:1rem ;
  }
    .footer-data{
grid-template-columns: max-content;
    }
  
}
/* For medium devices */
@media screen and (min-width: 576px){
  .home-container,
  .about-container,
  .explore-content,
  .join-container{
    grid-template-columns: 380px;
    justify-content: center;
  }

  .footer-data{
    grid-template-columns: repeat(3, max-content);
    gap: 2.5rem 3.5rem;
  }
}

@media screen and (min-width: 768px) {
 .home-cards{
  grid-template-columns:repeat(2, 240px);
 }

 .about-container,
 .join-container{
  grid-template-columns:repeat(2, 350px);
  align-items: center;
 }

 .about-data,
 .about-data .section__title,
 .join-data,
 .join-data .section__title{
  text-align: initial;
 }

 .popular-container{
  grid-template-columns:repeat(2, 240px);
 }

 .explore-img{
  width: 100vw;
 }
 .join-image{
  order: -1;
 }
 .footer-content{
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
 }

 .footer-group{
  flex-direction: row;
  justify-content: space-between;
 }

 .foooter-copy{
  order: -1;
 }
}


/* For large devices */
@media screen  and (min-width: 1023px){
  #menu-icon{
    display: none;
  }

.nav-list{
  flex-direction: row;
  column-gap: 4rem;
}

.popular-container{
  grid-template-columns: repeat(3, 240px);
}

.footer-data{
  grid-template-columns: repeat(4, max-content);
  column-gap: 4.5rem;
}


}

@media screen  and (min-width: 1152px){

  .container{
    margin-inline:auto ;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .nav{
    height: calc(--header-height) + 1.5rem;
  }
  .blur-header::after{
    backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  }

.home-container{
  grid-template-columns: initial;
  justify-content: initial;
  row-gap: 4rem;
  padding-top: 6.5rem;
}
.home-shadow{
  height: 980px;
}
.home-data{
  text-align: initial;
  width: 480px;
}
.home-subtitle{
  font-size: var(--h2-font-size);
}
.home-description{
  margin-bottom: 2.5rem;
}
.home-cards{
  grid-template-columns: repeat(4, 260px);
}
.home-card-title{
  left: 1.5rem;
  bottom: 1.5rem;
}

.button{
  column-gap: 1.5rem;
}

.about-container{
  grid-template-columns: 400px 460px;
  column-gap: 8.5rem;
  padding-block: 1rem;
}

.about-description{
  margin-bottom: 3rem;
}

.about-img{
  width: 460px;
  
}
.popular-container{
  grid-template-columns: repeat(3, 300px);
  column-gap: 3rem;
  padding-top: 4rem;
}
.popular-title{
  font-size: var(--h2-font-size);
}

.popular-location{
font-size: var(--normal-font-size);
}
.explore-img{
  height: 600px;
}

.explore-content{
  padding-top: 28rem;
  grid-template-columns: 670px 1fr;
}
.explore-data,
.explore-data .section__title{
  text-align: initial;
}

.explore-user{
  justify-content: flex-end;
  align-self: flex-end;
  margin-bottom: 1.25rem;
}

.join-container{
  grid-template-columns: 460px 340px;
  column-gap: 8.5rem;
  padding-block: 1rem 5rem;
}

.join-img{
  width: 460px;
}

.join-description{
  margin-bottom: 3rem;
}

.footer{
  padding-block:5rem 3rem;
}

.footer-title{
  margin-bottom: 1.5rem;
}

.footer-group{
  margin-top: 7rem;
}
.footer-social{
  column-gap: 2rem;
}
.footer-social-link{
  font-size: 1.5rem;
}

.scroll-up{
  right: 3rem;
}
}