@import url('https://fonts.googleapis.com/css2?family=Lemonada:wght@700&family=Montserrat:wght@100;200;300;400;500;600&family=Nunito+Sans:wght@200;300;400;600;700&family=Open+Sans:wght@400;600&family=Poppins:ital,wght@0,300;1,200;1,300&family=Raleway:wght@500;600;700&display=swap');

:root{
  --header-height: 3rem;

  --hue-color: 190 ;
  --first-color: hsl(var(--hue-color), 64%, 22%);
  --first-color-second: hsl(var(--hue-color), 64%, 22%);
  --first-color-alt: hsl(var(--hue-color), 64%, 15%) ;
  --title-color: hsl(var(--hue-color), 64%, 18%);
  --text-color: hsl(var(--hue-color), 24%, 35%);
  --text-color-light: hsl(var(--hue-color), 8%, 60%);
  --input-color: hsl(var(--hue-color), 24%, 97%);
  --body-color : hsl(var(--hue-color), 100%, 99%);
  --white-color : hsl(var(--hue-color), 0%, 100%);
  --scroll-bar-color : hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color : hsl(var(--hue-color), 12%, 75%);
  
  /*================Font and typagraphy=============*/ 
  --body-font: 'Open Sans', sans-serif;
  --title-font: 'Raleway', sans-serif;
  --biggest-font-size: 2.5rem;
  --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======================*/ 
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --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: .3s;
  --img-hidden: hidden;
  --img-scale: scale(1.1);
}

@media screen and (min-width: 968px){
  :root{
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --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{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}
h1,h2,h3{
  color: var(--text-color);
}
a{
  text-decoration: none;
}
ul{
  list-style: none;
}
img,video{
  max-width: 100%;
  height: auto;
}

button , input{
  border: none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}
button{
  cursor: pointer;
}
input{
  outline: none;
}


/*==============================REUSABLE CSS CLASSES==============================*/
.section{
  padding: 4.5rem 0 2.5rem;
}
.section_title{
  font-size: var(--h2-font-size);
  color: var(--text-color);
  text-align: center;
  text-transform: capitalize;
  margin-bottom: var(--mb-2);
}

.container{
  max-width: 968px;
  margin-left: var(--mb-1);
  margin-right: var(--mb-1);
}
.grid{
  display: grid;
  gap: 1.5rem;
}
//========================== Buttons
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition: .3s;
}
.button:hover{
  background-color: var(--first-color-alt);
}
.button--flex{
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}
.button--link{
  background: none;
  padding: 0;
}
.button--link:hover{
  background: none;
}
/* Button Dark/Light */
.nav_dark{
  display: flex;
  align-items: center;
  column-gap: 2rem;
  position: absolute;
  left: 3rem;
  bottom: 4rem;
}
.change-theme,
.change-theme-name{
  color: var(--text-color);
}
.change-theme{
  cursor: pointer;
  font-size: 1rem;
}
.change-theme-name{
  font-size: var(--small-font-size);
}

/*============================== Variable Dark theme ==========================*/
body.dark-theme{
  --first-color-second: hsl(var(--hue-color), 54%, 12%);
  --title-color: hsl(var(--hue-color), 24%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color : hsl(var(--hue-color), 29%, 12%);
  --scroll-bar-color : hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color : hsl(var(--hue-color), 12%, 36%);
}
/*Start of header*/
.header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
}

.scroll-header{
  background-color: var(--body-color);
  box-shadow: 0 0 4px hsla(190, 64%, 15%, .15);

  & .nav__logo,
  & .nav__toggle{
      color: var(--title-color);
  }
}
/*End of header*/
/*Start of Nav*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav_logo ,
.nav_toggle{
  color: var(--white-color);
}
.nav_logo{
  font-weight: var(--font-semi-bold);
}
.nav_toggle{
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
}
.nav_menu{
  position: relative;
}
.nav_list{
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}
.nav_link{
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
}
.nav_link:hover{
  color: var(--text-color);
}
.nav_close{
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}
/*End of Nav*/
/*Active Link*/
.active-link{
  position: relative;
  color: var(--title-color);
}
.active-link::before{
  content: '';
  position: absolute;
  background-color: var(--title-color);
  width: 100%;
  height: 2px;
  bottom: -0.5rem;
  left: 0;
}

main{
  overflow-x: hidden;
}
/* start of home */
.home_img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: 83%;
}
.home_container{
  position: relative;
  height: calc(100vh - var(--header-height));
  align-content: center;
  row-gap: 3rem;
}
.home_data-subtitle, .home_data-title, .home_social-link, .home_info{
  color: var(--white-color);
}
.home_data-subtitle{
  display: block;
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-75);
}
.home_data-title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-2-5);
}
.home_social{
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}
.home_social-link{
  font-size: 1.2rem;
  width: max-content;
}
.home_info{
  background-color: var(--first-color);
  display: flex;
  padding: 1.5rem 1rem;
  align-items: center;
  column-gap: 0.5rem;
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: 228px;
}
.home_info-title{
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-75);
}
.home_info-button{
  font-size: var(--smaller-font-size);
}
.home_info-overly{
    overflow: var(--img-hidden);
}
.home_info-img{
  width: 145px;
  transition: var(--img-transition);
}
.home_info-img:hover{
  transform: var(--img-scale);
}
/* end of home */
/* start of about */

.about_data{
  text-align: center;
}
.about_container{
  row-gap: 2.5rem;
}
.about_description{
  margin-bottom: var(--mb-2);
}
.about_img{
  display: flex;
  column-gap: 1rem;
  justify-content: center;
  align-items: center;
}
.about_img-overly{
  overflow: var(--img-hidden);
}
.about_img-one{
  width: 130px;
}
.about_img-two{
  width: 180px;
}
.about_img-one, .about_img-two{
  transition: var(--img-transition);
}
.about_img-one:hover, 
.about_img-two:hover{
  transform: var(--img-scale);
}
/* end of about */
/* start of Discover */
.discover_container{
  overflow: hidden;
}
.discover_card{
  position: relative;
  width: 200px;
  overflow: var(--img-hidden);
}
.discover_data{
  position: absolute;
  bottom: 1.5rem;
  left: 1rem;
}
.discover_title,
.discover_description{
  color: var(--white-color);
}
.discover_title{
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}
.discover_description{
  font-size: var(--smaller-font-size);
  display: block;
}
.discover_img{
  transition: var(--img-transition);
}
.discover_img:hover{
  transform: var(--img-scale);
}
/* end of Discover */
/* start of experinece */
.experinece_container{
  row-gap: 2.5rem;
  justify-content: center;
  justify-items: center;
}
.experience_content{
  column-gap: 1rem;
  justify-items: center;
  padding: 0 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.experience_number{
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
}
.experience_description{
  font-size: var(--small-font-size);
}
.experience_img{
  position: relative;
  padding-bottom: 2rem;
}
.experience_overlay:nth-child(1){
  width: 263px;
  margin-right: 2rem;
}
.experience_overlay:nth-child(2){
  width: 120px;
  top: 2rem;
  position: absolute;
  right: 0;
}
.experience_img-one,
.experience_img-two{
  transition: var(--img-transition);
}
.experience_img-one:hover,
.experience_img-two:hover{
  transform: var(--img-scale);
}
/* end of experinece */
/* start of video */
.video_container{
  padding-bottom: 1rem;
}
.video_description{
  text-align: center;
  margin-bottom: var(--mb-2-5);
}
.video_content{
  position: relative;
}
.video_button{
  position: absolute;
  right: 1rem;
  bottom: -1rem;
  padding: 1rem 1.5rem;
}
.video_button-icon{
  font-size: 1.2rem;
}
/* end of video */

/* start of places */
.place_title{
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}
.place_card{
  overflow: var(--img-hidden);
  position: relative;
}
.palce_card,
.place_img{
  height: 230px;
}
.place_container{
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
}

.place_content,
.palce_title{
  color: var(--white-color);
}
.place_content{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .75rem .75rem 1rem;
}
.place_rating{
  display: flex;
  align-self: flex-end;
  align-items: center;
}
.place_rating-icon{
  font-size: 0.75rem;
  margin-right: var(--mb-0-25);
}
.place_rating-number{
  font-size: var(--small-font-size);
}
.place_subtitle,
.place_card{
  display: block;
}
.place_subtitle{
  font-size: var(--smaller-font-size);
  margin-bottom: var(--mb-0-25);
}
.place_button{
  position: absolute;
  right: 0;
  bottom: 4px;
  padding: 0.75rem 1rem;
}
.place_img{
  transition: var(--img-transition);
}
.place_card:hover .place_img{
  transform: var(--img-scale);
}
/* end of places */

/* start of subscribe */
.subscribe_bg{
  background-color: var(--first-color-second);
  padding: 2.5rem 0;
}
.subscribe_title,
.subscribe_description{
  color: var(--white-color);
}
.subscribe_description{
  text-align: center;
  margin-bottom: var(--mb-2-5);
}
.subscribe_form{
  background-color: var(--input-color);
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
}
.subscribe_input{
  width: 70%;
  padding-right: 0.5rem;
  background-color: var(--input-color);
  color: var(--text-color);
}
.subscribe_input::placeholder{
  color: var(--text-color);
}
/* end of subscribe */
/*start of sponsor*/
.sponsor_container{
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  justify-content: center;
  align-items: center;
  row-gap: 3.5rem;
}
.sponsor_img{
  width: 90px;
  filter: invert(0.7);
  transition: var(--img-transition);
}
.sponsor_content:hover .sponsor_img{
  filter: invert(0.5);
}
/*end of sponsor*/

/*start of footer*/
.footer_container{
  row-gap: 5rem;
}
.footer_content{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}
.footer_title,
.footer_subtitle{
  font-size: var(--h3-font-size);
}
.footer_title{
  margin-bottom: var(--mb-0-5);
}
.footer_description{
  margin-bottom: var(--mb-2);
}
.footer_social{
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1-25);
}
.footer_subtitle{
  margin-bottom: var(--mb-1);
}
.footer_item{
  margin-bottom: var(--mb-0-75);
}
.footer_link{
  color: var(--text-color);
}
.footer_link:hover{
  color: var(--title-color);
}
.footer_rights{
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  text-align: center;
}
.footer_copy,
.footer_terms-link{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}
.footer_term{
  display: flex;
  column-gap: 1.5rem;
  justify-content: center;
}
.footer_terms-link:hover{
  color: var(--text-color);
}
/*end of footer*/
/*start of scroll top */
.top{
  position: fixed;
  bottom:1rem;
  right: 1rem;
  border: 0px;
  border: none;
  padding: 0.5rem;
  border-radius: 10px;
  background-color: var(--first-color);
  width: 2.5rem;
  height: 2.5rem;
  color: var(--white-color);
  opacity: 0.9;
  display: none;
}
.top i{
  font-size: 1.5rem;
}
.top:hover{
  background-color: var(--first-color-alt);
  opacity: 0.9;
}
/*end of scroll top */

// Scroll Bar 
::-webkit-scrollbar{
  width: 0.60rem;
  background-color: var(--scroll-bar-color);
}
::-webkit-scrollbar-thumb{
  width: 0.60rem;
  background-color: var(--scroll-thumb-color);
}
::-webkit-scrollbar-thumb:hover{
  width: 0.60rem;
  background-color: var(--text-color-light);
}








@media(max-width : 767px){
  .nav_toggle{
    display: inline-block;
  }
  .nav_menu{
    position: fixed;
    background-color: var(--body-color);
    top: 0;
    right: -105%;
    width: 70%;
    height: 100%;
    box-shadow: -1px 0 4px hsla(var(--hue-color), 64% , 15%, .15);
    padding: 3rem;
    transition: .4s;
  }
  .nav_menu.active{
    right: 0;
  }
}


// For Small devices 
@media(max-width: 340px) {
  .place_container{
    grid-template-columns: max-content;
    justify-content: center;
  }

  .experience_content{
    padding: 0;
  }
  .experience_overlay:nth-child(1){
    width: 190px;
  }
  .experience_overlay:nth-child(2){
    width: 80px;
  }
  .home_info{
    width: 190px;
    padding: 1rem;
  }
  .experience_img,
  .video_container{
    padding: 0;
  }
}

// For medium devices 
@media(min-width: 568px){
  .video_container{
    display: grid;
    grid-template-columns: 0.8fr;
    justify-content: center;
  }
  .place_container{
    grid-template-columns: repeat(3, max-content);
  }
  .subscribe_form{
    width: 470px;
    margin: 0 auto;
  }
}

@media(min-width: 768px){
  body{
    margin: 0;
  }
  .nav{
    height: calc((--header-height) + 1.5rem);
  }
  .nav_link{
    color: var(--white-color);
    text-transform: inherit;
  }
  .nav_link:hover{
    color: var(--white-color);
  }
  .nav_dark{
    position: initial;
  }
  .nav_menu{
    display: flex;
    column-gap: 1rem;
  }
  .nav_list{
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav_toggle,
  .nav_close,
  .change-theme-name{
    display: none;
  }
  .change-theme{
    color: var(--white-color);
  }
  .active-link::before{
    background-color: var(--white-color);
  }
  .scroll-header .nav_logo{
    color: var(--title-color);
  }
  .scroll-header .nav_link{
    color: var(--text-color);
  }
  .scroll-header .active-link{
    color: var(--text-color);
  }
  .scroll-header .active-link::before{
    background-color: var(--text-color);
  }
  .scroll-header .change-theme{
    color: var(--text-color);
  }
  .section{
    padding: 7rem 0 2rem;
  }
  .home_container{
    height: 100vh;
    grid-template-rows: 1.8fr .5fr;
  }
  .home_data{
    align-self: flex-end;
  }
  .home_social{
    flex-direction: row;
    align-self: flex-end;
    column-gap: 2.5rem;
    margin-bottom: 3rem;
  }
  .home_info{
    bottom: 3rem;
  }
  .about_container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .about_data,
  .about_title{
    text-align: initial;
  }
  .about_title{
    margin-bottom: --mb-1-5;
  }
  .about_description{
    margin-bottom: var(--mb-2);
  }
  .discover_container{
    width: 610px;
    margin-left: auto;
    margin-right: auto;
  }
  .discover_container,
  .place_container{
    padding-top: 2rem;
  }
  .experience_overlay:nth-child(1){
    width: 363px;
    margin-right: 4rem;
  }

  .experience_overlay:nth-child(2){
    width: 160px;
  }
  .subscribe_bg{
    background : none;
    padding: 0;
  }
  .subscribe_container{
    background-color: var(--first-color-second);
    padding: 3.5rem 0;
  }
  .subscribe_input{
    padding: 0 .5rem;
  }
  .footer_rights{
    flex-direction: row;
    justify-content: space-between;
  }
}


// For Large devices 
@media(min-width: 1024px){
  .container{
    margin-left: auto;
    margin-right: auto;
  }
  .home_container{
    grid-template-rows: 2fr .5fr;
  }
  .home_info{
    width: 328px;
    grid-template-columns: 1fr 2fr;
    column-gap: 2rem;
  }
  .home_info-title{
    font-size: var(--normal-font-size);
  }
  .home_info-img{
    width: 240px;
  }
  .about_img-one{
    width: 240px;
  }
  .about_img-two{
    width: 290px;
  }

  .discover_card{
    width: 237px;
  }
  .discover_container{
    width: 700px;
  }
  .discover_data{
    left: 1.5rem;
    bottom: 2rem;
  }
  .discover_title{
    font-size: var(--h2-font-size);
  }

  .experience_content{
    margin: var(--mb-1);
    column-gap: 3.5rem;
  }
  .experience_overlay:nth-child(1){
    width: 463px;
    margin-right: 7rem;
  }
  .experience_overlay:nth-child(2){
    width: 220px;
    top: 3rem;
  }

  .video_container{
    grid-template-columns: 0.7fr;
  }
  .video_description{
    padding: 0 8rem;
  }

  .place_container{
    gap: 3rem 2rem;
  }
  .place_card,
  .place_img{
    height: 263px;
  }
  .place_button{
    bottom: 0;
  }
  .footer_content{
    justify-items: center;
  }
}

@media(min-width: 1200px){
  .container{
    max-width: 1024px;
  }
}

// for tall screens on mobils y desktop 
@media(min-height: 721px){
  body{
    margin: 0;
  }
  .home_container,
  .home_img{
    height: 680px;
  }

}

