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

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

html {
  scroll-behavior: smooth;
}

body, button, input {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  color: hsl(0, 0%, 70%);
}

body {
  background: hsl(0, 0%, 0%);
}

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

h1, h2, h3, h4 {
  color: hsl(0, 0%, 95%);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/* Reusable class style */
.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: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Header and nav style */
.header{
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: 100;
}

.nav{
  height: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav_logo{
  color: hsl(0, 0%, 95%);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.nav_toggle, .nav_close{
  display: flex;
  font-size: 1.25rem;
  color: hsl(0, 0%, 95%);
  cursor: pointer;
}

/* Nav for mobile devices */
@media screen and (max-width: 1023px){
  .nav_menu{
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, .3);
    width: 100%;
    padding-block: 4rem;
    backdrop-filter: blur(24px);
    transition: top .4s;
  }
}

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

.nav_link{
  color: hsl(0, 0%, 95%);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.nav_close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
/* Show menu */
.show_menu{
  top: 0;
}

/* Add blur to header */
.blur_header::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, .3);
  backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Home styling */
.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%, hsl(0, 0%, 0%)) 78%;
}

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

.home_data{
  text-align: center;
}

.home_subtitle{
  font-size: 1rem;
  margin-bottom: .5rem;
}

.home_title {
  font-size: 5.5rem;
  margin-bottom: 1rem;
}

.home_description {
  margin-bottom: 2rem;
  color: hsl(0, 0%, 95%); 
}

.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;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(180deg,hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%)) 125%;
}

.home_card_title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 1rem;
  z-index: 1;
}

.home_card:hover .home_card_img{
  transform: scale(1.2);
}

/* Button styling */
.button{
  background-color: hsla(0, 0%, 100%, .2);
  padding: 1.25rem 1.5rem;
  color: hsl(0, 0%, 95%);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  backdrop-filter: blur(15px);
  border-radius: 0.5rem;
}

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

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

/* About styling */
.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: transform .4s;
}

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

.about_image:hover .about_img {
  transform: scale(1.2);
}
/* Destination styling */

.destination_container{
  padding-top: 1.5rem;
  grid-template-columns: 240px;
  justify-content: center;
  row-gap: 2.5rem;
}

.destination_image{
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.destination_img{
  transition: transform .4s;
}

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

.destination_title{
  font-size: 1rem;
  margin-bottom: .5rem;;
}

.destination_location{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-size: .800rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.destination_location i{
  font-size: 1rem;
}

.destination_image:hover .destination_img{
  transform: scale(1.2)
}

/* Explore styling */
.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,
  hsl(0, 0%, 0%) 5%,hsla(0, 0%, 0%, 0) 40%,hsla(0, 0%, 0%, 0) 60%,hsl( 0, 0%, 0%) 92%);
}

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

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

.explore_profile{
  width: 30px;
  border-radius: 50%;
}

.explore_name{
  font-size: .800rem;
  color: hsl(0, 0%, 95%);
}

/* Join form styling */
.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: hsl(0, 0%, 8%);
}

.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%,hsl(0, 0%, 0%) 125%);
}

.join_image:hover .join_img{
  transform: scale(1.2);
}

/* Footer styling */
.footer{
  padding-block: 2.5rem;
  background-color: hsl(0, 0%, 8%);
}

.footer_content{
  row-gap: 3.5rem;
}

.footer_logo{
  display: inline-block;
  color: hsl(0, 0%, 95%);
  font-size: 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer_title{
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

.footer_link{
  color: hsl(0, 0%, 70%);
  transition: color .4s;
}

.footer_link:hover{
  color: hsl(0, 0%, 95%);
}

.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: hsl(0, 0%, 70%);
  font-size: 1.25rem;
  transition: color .4s, transform .4s;
}

.footer_social_link:hover{
  color: hsl(0, 0%, 95%);
  transform: translateY(-0.25rem);
}

.footer_copy_right{
  font-size:  .75rem;
  color: hsl(0, 0%, 60%);
  text-align: center;
}


/* Different device styling */
/* 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);
  }
}

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

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

  .footer_copy_right{
    order: -1;
  }
}

/* For large devices */
@media screen and (min-width: 1023px){
  .nav_close, .nav_toggle{
    display: none;
  }

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

  .destination_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: 5rem;
  }

  .blur_header::after{
    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: 1.25rem;
  }

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

  .destination_container{
    grid-template-columns: repeat(3, 300px);
    column-gap: 3rem;
    padding-top: 4rem;
  }

  .destination_title{
    font-size: 1.25rem;
  }

  .explore_location{
    font-size: .940rem;
  }

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

