
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --title-color: hsl(220, 8%, 10%);
  --text-color: hsl(220, 8%, 40%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(220, 8%, 6%);
  --body-color: hsl(220, 8%, 99%);
  --container-color: hsl(220, 8%, 96%);
  --opacity-color-30: hsla(0, 0%, 90%, .3);
  --opacity-color-20: hsla(0, 0%, 90%, .2);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Dancing Script", cursive;
  --biggest-font-size: 3rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 6rem;
    --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;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s;
}

input,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display:block;
  max-width: 100%;
  height: 100%;
}

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
.dark-theme{
  --title-color: hsl(220, 8%, 9%);
  --text-color: hsl(220, 8%, 70%);
  --body-color: hsl(220, 8%, 8%);
  --container-color: hsl(220, 8%, 12%);
  --opacity-color-30: hsla(0, 0%, 15%, .3);
  --opacity-color-20: hsla(0, 0%, 15%, .2);
  }

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/

  .dark-theme .bg-header .nav__toggle{
    color: var(--white-color);
  }
  .dark-theme .bg-header .nav__theme{
    color: var(--white-color);
  }
  .dark-theme .bg-header .nav__logo{
    color: var(--white-color);
  }
  .dark-theme .bg-header .nav__logo img {
    filter: initial;
  }

  .dark-theme .bg-header{
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, .4);
    /* margin: 0 .5rem 0 .5rem; */
  }

  .dark-theme .scrollUp{
    background-color: var(--container-color);
    color: var(--white-color);
  }

  .dark-theme::-webkit-scrollbar{
    background-color: hsl(220, 6%, 15%);
  }

  .dark-theme::-webkit-slider-thumb{
    background-color: hsl(220, 6%, 40%);
  }

  .dark-theme .section__title{
    color: white;
  }

  

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title {
  font-size: var(--big-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: var(--z-fixed);
    transition: background-color .4s , box-shadow .4s;
}
.nav{
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo{
    align-items: center;
    display:flex;
    column-gap: .25rem;
    color: var(--white-color);
    transition: color .4s;
    font-weight: var(--font-semi-bold);
}

.nav__logo img{
  transition: filter .4s;
}

.nav__theme,
.nav__toggle,
.nav__close{
  display: inline-flex;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white-color);
  transition: color .4s;
}

.nav__button{
  display: flex;
  align-items: center;
  column-gap: 1rem; 

}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu{
    left: 0px;
    top: -120%;
    position: fixed;

    background-color: transparent;
    backdrop-filter: blur(40px);
    color: var(--white-color);
    
    width: 100%;
    padding-block: 2rem;
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, .1);
    border-radius: 0 0 1.5rem 1.5rem;
  }
}

.nav__list{
display: flex;
flex-direction: column;
align-items: center;
row-gap: 2rem;
}

.nav__link{
 position: relative;
 color: var(--title-color);
 font-weight: var(--font-semi-bold)
}

.nav__link::after{
  content: '';
  left: 0;
  bottom: -.5rem;
  width: 0;
  height: 2px;
  position: absolute;
  background-color: var(--title-color);
  transition: width .4s;
}

.nav__link:hover::after{
  width: 60%;
}

.nav__close{
  color: var(--title-color);
  position: absolute;
  right: 1.5rem;
  top: 1rem;
}

/* Show menu */
.show-menu{
  top: 0;
}

/* Change background header */
.bg-header{
  background-color: var(--body-color);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .1);
}

.bg-header :is(.nav__toggle , .nav__theme , .nav__logo){
  color: var(--title-color);
}

.bg-header .nav__logo img{
  filter: invert(100%);
}

/* Active link */
.active-link::after{
  width: 60%;
}

/*=============== HOME ===============*/
.home{
  position: relative;
}

.home__bg,
.home__blur{
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
}

.home__bg{
  object-fit: cover;
  object-position: center;
}

.home__blur{
  background-color: var(--opacity-color-20);
  backdrop-filter: blur(40px);
  transition: background-color .4s;
  padding: 0 1rem 0 1rem ;
}

.home__container{
  position: relative;
  row-gap: 3rem;
  padding-block: 2rem 3rem; 
}

.home__data{
  text-align: center;
  color: var(--white-color);
}

.home__title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  line-height: 110%;
  margin-bottom: 1rem;
}

.home__description{
 margin-bottom: 2rem; 
}

.home__swiper{
  max-width: 330px;
  border-radius: 1.8rem;
}

/* Swiper class  */
.home__swiper .swiper-button-prev::after,
.home__swiper .swiper-button-next::after{
  content: '';
}

.home__swiper :is(.swiper-button-prev, .swiper-button-next) {
  /* top: 0; */
  font-size: 1.5rem;
  height: 2.2rem;
  width: 2rem;
  color: var(--white-color);
  background-color: var(--opacity-color-30);
  backdrop-filter: blur(25px);
  top: initial;
  bottom: 1rem;
  border-radius: .5rem;
  transition: background-color .4s;
}

.home__swiper .swiper-button-prev{
  left: initial;
  right: 4rem;
  bottom: 0.5rem;
}

.home__swiper .swiper-button-next{
  right: 1.3rem;
  bottom: .5rem;
}


/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
  color: var(--white-color);
  background-color: var(--black-color);
  padding: 1rem 2rem ;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .4s;
}

.button i{
  font-weight: initial;
  font-size: 1.4rem;
  transition: transform .5s;
}

.button:hover i{
  transform: translateX(.5rem);
}

.button__opa-30{
  background-color: var(--opacity-color-30);
}

/*=============== DESTINATION ===============*/
.destination__container{
justify-content: center;
align-items: center;
grid-template-columns: 300px;
/* row-gap: 7rem;  */
}

.destination__card{
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.destination__img{
  transition: transform .4s;
  height: 20rem;
  width: 100%;
  cursor: pointer;
}

.destination__data{
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--opacity-color-30);
  backdrop-filter: blur(25px);
  color: var(--white-color);
  width: 100%;
  /* text-align: center; */
  padding: 1.3rem;
  border-radius: 1.25rem;
  display: grid;
  row-gap: .25rem;
  transition: background-color .4s;
}

.destination__subtitle{
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
}

.destination__title{
  font-size: var(--h1-font-size);
}

.destination__country{
  column-gap: .25rem;
  display: flex;
}

.destination__country i{
  font-size: 1rem;
}

.destination__country span{
  font-size: var(--small-font-size);
}

.destination__card:hover .destination__img {
  transform: scale(1.2);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__container{
  gap: 0;
  justify-content: center;
  /* align-items: center; */
}

.testimonial__title{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: .75rem;
}

.dark-theme .testimonial__title{
  color: white;
}

.testimonial__img{
  border-radius: 1.5rem 1.5rem 0 0;
  width: 300px;
}

.testimonial__swiper{
  border-radius: 0 0 1.5rem 1.5rem;
  max-width: 300px;
  margin-inline: initial;
  /* background-color: var(--container-color); */
    background-color:rgb(226, 235, 238)
  /* transition: background-color .4s; */
}

.dark-theme .testimonial__swiper{
    background-color: rgba(72, 72, 72, 0.514);

}

.testimonial__card{
  padding: 2.5rem 2rem 3rem 1.25rem;
}

.testimonial__description{
  margin-bottom: 1.5rem;
}

.testimonial__profile{
  align-items: center;
  display: flex;
  column-gap: .25rem;
}

.testimonial__profile img{
  width: 60px;
  border-radius: 50%;
}

.testimonial__info h3{
  font-size: var(--normal-font-size);
  color: var(--title-color);
  margin-bottom: .25rem;
}

.dark-theme .testimonial__info h3{
  color: white;
}

.testimonial__info p{
  font-size: var(--small-font-size);
}

/* Swiper class */
.testimonial__swiper .swiper-button-prev::after,
.testimonial__swiper .swiper-button-next::after{
  content: '';
}

.testimonial__swiper :is(.swiper-button-prev , .swiper-button-next) {
  top: initial;
  bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
  background-color:rgba(172, 189, 192, 0.916);
  /* background-color: transparent; */
  backdrop-filter: blur(25px);
  /* border-radius: 4rem .9rem; */
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
}

.testimonial__swiper .swiper-button-prev{
  left: initial;
  right: 3.8rem;
}

.testimonial__swiper .swiper-button-next{
  right: 1rem;
}

/*=============== GALLERY ===============*/
.gallery__container{
  align-items: center;
  justify-content: center;
  grid-template-columns: 300px;
}

.gallery__card{
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
    cursor: pointer;
}

.gallery__shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
              hsla(0,0%,0%,0)70%,
              hsla(0,0%,0%,0.8)100%);
}

.gallery__img{
  transition: transform .4s;
}

.gallery__data{
  position: absolute;
  color: var(--white-color);
  left: 1.25rem;
  bottom: 1rem;
}

.gallery__subtitle{
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
}

.gallery__title{
  font-size: var(--h2-font-size);
}

.gallery__card:hover .gallery__img{
  transform: scale(1.2);
}

/*=============== JOIN ===============*/
.join__container{
  justify-content: center;
  align-items: center;
  row-gap: 2.5rem;
  padding-bottom: 3rem;
}

.join__data{
 text-align: center; 
}

.join__data .section__title{
  margin-bottom: 1rem;
}

.join__data .join__description{
  padding-bottom: 2rem;
}

.join__form{
  display: grid;
  row-gap: 1rem;
}

.join__input{
  background-color:rgb(226, 235, 238);
  /* color: rgba(172, 189, 192, 0.916); */
    /* background-color: var(--container-color); */
      color: var(--title-color);
  padding: 1.25rem;
  border-radius: .5rem;
  transition: background-color .4s;
  font-weight: var(--font-medium);
  cursor: pointer;
}

.dark-theme .join__input{
  background-color: rgb(60, 60, 60);
  /* color: black; */
}

.join__input:hover{
    transform: translateY(-0.2);  
}

.join__button{
  padding: 1.25rem;
  font-weight: var(--font-bold);
    cursor: pointer;
}

.dark-theme .join__button{
  background-color: var(--white-color);
  color: var(--black-color);
}

.join__img{
  /* transform: scale(1.2);   */
  border-radius: 1.25rem;
  justify-self: center;
  width: 300px;
}

/*=============== FOOTER ===============*/
.fotter{
  background-color: var(--black-color);
  padding-block: 4rem 2rem;
}

.fotter__container{
  row-gap: 3rem;
  margin-bottom: 2rem;
}

.fotter__logo{
  justify-self: flex-start;
  align-items: center;
  color: var(--white-color);
  display: inline-flex;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  column-gap: .25rem;
}

.fotter__content{
  grid-template-columns: repeat(2 , max-content);
  gap: 3rem;
}

.fotter__title{
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.fotter__links{
  display: grid;
  row-gap: 1rem;
}

.fotter__link{
  color: var(--white-color);
}

.fotter__social{
  display: flex;
  column-gap: 1rem;
}

.fotter__social-link{
  font-size: 1.5rem;
  color: var(--white-color);
  transition: transform .4s;
}

.fotter__social-link:hover{
  transform: translateY(-.25rem);
}

.fotter__copy{
  text-align: center;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  display: block;
  margin-top: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(220, 6%, 80%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(220, 6%, 60%);
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(220, 6%, 50%);
    cursor: pointer;
}

/*=============== SCROLL UP ===============*/
.scrollUp{
  position: fixed;
  display: inline-flex;
  z-index:var(--z-tooltip);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .2);
  bottom: -50%;
  right: 1rem;
  background-color: var(--body-color);
  color: var(--title-color);
  border-radius: .25rem;
  font-size: 1.2rem;
  padding: .3rem;
  transition: bottom .4s , transform .4s , background-color .4s ;
}

.scrollUp:hover{
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container{
    margin-inline: 1rem;
  }

  .home__title{
  font-size: 2.2rem;
  }

  .destination__container,
  .gallery__container{
    grid-template-columns: 240px;
  }

  .fotter__content{
    grid-template-columns: max-content;   
  }
}

/* For medium devices */

@media screen and (min-width: 576px) {
  .home__container{
    grid-template-columns: 400px;
    justify-content: center;
  }

  .home__swiper{
    max-width: 400px;
  }

  .destination__container,
  .gallery__container{
  grid-template-columns: 400px;
  } 

  .testimonial__img{
    width: 350px;
  }
  .testimonial__swiper{
    max-width: 350px;
  }

  .join__container{
    grid-template-columns: 380px;
    justify-content: center;
  }

  .join__img{
    width: 380px;
  }

  .fotter__content{
    grid-template-columns: repeat(3 , max-content);
  }

  .fotter__container{
    justify-content: center;
    align-items: center;
  }
}

@media screen and (min-width:768px) {
  .destination__container,
  .gallery__container{
    grid-template-columns: repeat(2 , 300px);
  }

  .fotter__content{
    grid-template-columns: repeat(4,max-content);
  }
}

/* For large devices */

@media screen and (min-width:1150px) {
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }

  .section__title{
    margin-bottom: 4rem;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }

  .nav__close,
  .nav__toggle{
    display: none;
  }

  .nav__menu{
    margin-left: auto;
  }

  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav__link{
      color: var(--white-color);
    }
  .nav__link::after{
      background-color: var(--white-color);
    }
  
  .bg-header .nav__link{
    color: var(--title-color);
  }
  .bg-header .nav__link::after{
    background-color: var(--title-color);
  }

  .dark-theme .nav__link{
      color: var(--white-color);
    }
  
  .dark-theme .nav__link::after{
      background-color: var(--white-color);
    }

  
  .home__container{
    grid-template-columns: 520px 700px;
    gap: 0;
    align-items: center;
    padding-block: 6rem 9rem;
  }
  
  .home__data{
    text-align: initial;
    z-index: 5;
    transform: translateX(3rem);
  }

  .home__description{
    padding-right: 6rem;
    margin-bottom: 4rem;
  }

  .home__swiper{
    transform: translateX(-3rem);
    max-width: 700px;
  }

  .home .swiper-button-prev,
  .home .swiper-button-next{
    bottom: 2rem;
  }

  .home .swiper-button-prev{
    right: 4.5rem;
  }
  .home .swiper-button-next{
    right: 2rem;
  }

  .destination__container{
    grid-template-columns: repeat(3 , 340px);
    gap: 2rem;
  }

  .destination__data{
    padding-inline: 2rem;
  }

  .destination__title{
    font-size: var(--h2-font-size);
  }

  .testimonial__container{
    grid-template-columns: 600px 400px;
  }

  .testimonial__img{
    width: 600px;
    border-radius: 1.5rem 0 0 1.5rem;
  }

  .testimonial__card{
    padding: 6rem 6rem 3rem 3rem;
  }

  .testimonial__title{
    margin-bottom: 1rem;
  }

  .testimonial__description{
    margin-bottom: 3rem;
  }

  .testimonial__swiper{
    border-radius: 0 1.5rem 1.5rem 0;
  }

  .testimonial .swiper-button-prev,
  .testimonial .swiper-button-next{
      bottom: 2rem;
  }

  .testimonial .swiper-button-prev{
    right: 4.6rem;
  }

  .testimonial .swiper-button-next{
    right: 2rem;
  }

  .gallery__container{
    grid-template-columns: repeat(2 , 500px);
    gap: 2rem;
  }

  .gallery__data{
    left:2rem ;
    bottom:2rem ;
  }

  .gallery__title{
    font-size: var(--h1-font-size);
  }

  .join__container{
    grid-template-columns: 360px 500px;
    column-gap: 10rem;
    align-items: center;
  }

  .join__data{
    text-align: initial;
  }

  .join__data .section__title{
    text-align: initial;
    margin-bottom: 1.5rem;
  }

  .join__description{
    margin-bottom: 3rem;
  }

  .join__img{
    width: 500px;
  }

  .fotter{
    padding-top: 4.5rem;
  }

  .fotter__container{
    grid-template-columns: repeat(2 , max-content);
    justify-content: space-between;
  }

  .fotter__logo{
    align-self: self-start;
  }

  .fotter__title{
    margin-bottom: 1.5rem;
  }

  .fotter__content{
    column-gap: 6rem;
  }

  .scrollUp{
    right: 2rem;
  }

}




/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
    body{
      zoom: 1.4;
    }




  }
