@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Montserrat:wght@100..900&display=swap");

:root {
  --header-height: 3.5rem;

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

  --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-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  --z-tooltip: 10;
  --z-fixed: 100;
}

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

* {
  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: auto;
}

/* dark here */
.dark-theme {
  --title-color: hsl(220, 8%, 90%);
  --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);
}

.dark-theme .bg-header .nav-logo img {
  filter: initial;
}

.dark-theme .bg-header{
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .4);
}

.dark-theme .scrollup {
  background: var(--container-color);
}

.dark-theme::-webkit-scrollbar {
  background: hsl(220, 6%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background: hsl(220, 6%, 40%);
}

.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 here */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  z-index: var(--z-fixed);
  transition: background .4s, box-shadow .4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav-logo img{
  transition: filter .4s;
}

.nav-logo span {
   font-size: 16px;
}

.nav-toggle, .nav-close, .nav-theme {
  display: inline-flex;
  font-size: 1.5rem;
  color: var(--white-color);
  transition: color .4s;
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

@media screen and (max-width: 1150px) {
  .nav-menu {
    position: fixed;
    top: -120%;
    left: 0;
    background: var(--body-color);
    width: 100%;
    padding-block: 4rem;
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, .1);
    border-radius: 0 0 1.5rem 1.5rem;
    transition: top .4s;
  }
}

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

.nav-link {
  position: relative;
  font-size: 17px;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--title-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width .4s;
}

.nav-link:hover::after{
  width: 60%;
}

.nav-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

.show-menu{
  top: 0;
}

.bg-header {
  background: var(--body-color);
  box-shadow: 0 8px 16px hsla(0, 0%, 0%, .1);
}

.bg-header :is(.nav-logo, .nav-toggle, .nav-theme) {
  color: var(--title-color);
}

.bg-header .nav-logo img {
  filter: invert(100%);
}

.active-link::after {
  width: 60%;
}

/* home here */
.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: var(--opacity-color-20);
  backdrop-filter: blur(40px);
  transition: background .4s;
}

.home-container {
  position: relative;
  padding-block: 2rem 3rem;
  row-gap: 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-desc {
  margin-bottom: 2rem;
}

.home-swiper {
  max-width: 320px;
  border-radius: 1.5rem;
}

.home-swiper .swiper-button-prev::after, .home-swiper .swiper-button-next::after {
  content: "";
}

.home-swiper :is(.swiper-button-prev, .swiper-button-next) {
  color: var(--white-color);
  font-size: 1.5rem;
  background: var(--opacity-color-30);
  backdrop-filter: blur(24px);
  width: 2rem;
  height: 2rem;
  border-radius: .25rem;
  top: initial;
  bottom: 1.25rem;
  transition: background .4s;
}

.home-swiper .swiper-button-prev {
  left: initial;
  right: 4rem;
}

.home-swiper .swiper-button-next{
  right: 1.25rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  background: var(--black-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  border-radius: .5rem;
  transition: background .4s;
}

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

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

.button-opa-30 {
  background: var(--opacity-color-30);
}

/* destination here */
.destination-container {
  grid-template-columns: 300px;
  justify-content: center;
}

.destination-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.destination-img {
  transition: transform .4s;
}

.destination-data{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.5rem;
  background: var(--opacity-color-20);
  backdrop-filter: blur(24px);
  color: var(--white-color);
  display: grid;
  row-gap: .25rem;
  border-radius: 1.5rem;
  transition: background .4s;
}

.destination-subtitle {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
}

.destination-title {
  font-size: var(--h1-font-size);
}

.destination-country {
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.destination-country i{
  font-size: 1rem;
}

.destination-country span{
  font-size: var(--small-font-size);
}

.destination-card:hover .destination-img{
  transform: scale(1.2);
}

/* testi here */
.testimonial-container {
  justify-content: center;
  gap: 0;
}

.testimonial-img {
  width: 300px;
  border-radius: 1.5rem 1.5rem 0 0;
}

.testimonial-swiper {
  max-width: 300px;
  background: var(--container-color);
  border-radius: 0 0 1.5rem 1.5rem;
  margin-inline: initial;
  transition: background .4s;
}

.testimonial-card {
  padding: 2.5rem 2rem 3rem 1.25rem;
}

.testimonial-desc {
  margin-bottom: 1.5rem;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  column-gap: .5rem;
}

.testimonial-profile img {
  width: 60px;
  border-radius: 50%;
}

.testimonial-info h3{
  font-size: var(--normal-font-size);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: var(--small-font-size);
}

.testimonial-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 0.75rem;
}

/* swiper js shi */
.testimonial-swiper .swiper-button-prev::after, .testimonial-swiper .swiper-button-next::after{
  content: "";
}

.testimonial-swiper :is(.swiper-button-next, .swiper-button-prev) {
  color: var(--title-color);
  font-size: 1.5rem;
  top: initial;
  bottom: 1.25rem;
}

.testimonial-swiper .swiper-button-prev {
  left: initial;
  right: 3.5rem;
}

.testimonial-swiper .swiper-button-next {
  right: 1.25rem;
}

/* gallery here */
.gallery-container {
  grid-template-columns: 300px;
  justify-content: center;
}

.gallery-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.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%, .7) 100%);
}

.gallery-img {
  transition: transform .4s;
}

.gallery-data {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  color: var(--white-color);
}

.gallery-subtitle {
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
}

.gallery-title {
  font-size: var(--h2-font-size);
}

.gallery-card:hover .gallery-img{
  transform: scale(1.2);
}

/* join here */
.join-container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.join-data {
  text-align: center;
}

.join-data .section-title {
  margin-bottom: 1rem;
}

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

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

.join-input {
  width: 100%;
  background: var(--container-color);
  color: var(--text-color);
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  transition: background .4s;
}

.join-button {
  padding-block: 1.25rem;
  cursor: pointer;
}

.join-img {
  width: 300px;
  border-radius: 1.5rem;
  justify-self: center;
}

/* footer here */
footer {
  background: var(--black-color);
  padding-block: 4rem 2rem;
}

.footer-container {
  row-gap: 3rem;
}

.footer-logo{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  justify-self: flex-start;
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
}

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

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

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

.footer-link {
  color: var(--white-color);
}

.footer-social {
  display: flex;
  column-gap: 1rem;
}

.footer-social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: transform .4s;
}

.footer-social-link:hover{
  transform: translateY(-0.25rem);
}

.footer-copy{
  display: block;
  margin-top: 6rem;
  color: var(--white-color);
  text-align: center;
  font-size: var(--small-font-size);
}

/* scrollbar here */
::-webkit-scrollbar {
  width: 0.6rem;
  background: hsl(220,6%,80%);
}

::-webkit-scrollbar-thumb {
  background: hsl(220,6%,60%);
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(220,6%,50%);
}

/* scroll up here */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background: var(--body-color);
  box-shadow: 0 8px 16px hsla(0,0% 0%, .1);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, 
  background .4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

.show-scroll {
  bottom: 3rem;
}

/* responsive here - small screens */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .home-title {
    font-size: 2.5rem;
  }

  .destination-container,
  .gallery-container {
    grid-template-columns: 250px;
  }

  .footer-content {
    grid-template-columns: max-content;
  }
}

/* responsive here - mid screens */
@media screen and (min-width: 576px) {
  .home-container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .home-swiper {
    max-width: 400px;
  }

  .testimonial-img {
    width: 400px;
  }

  .testimonial-swiper {
    max-width: 400px;
  }

  .join-container {
    grid-template-columns: 380px;
    justify-content: center;
  }

  .join-img {
    width: 380px;
  }

  .footer-content{
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 768px) {
  .destination-container,
  .gallery-container {
    grid-template-columns: repeat(2, 300px);
  }

  .footer-content {
    grid-template-columns: repeat(4, max-content);
  }
}

/* responsive here - large screens */
@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-toggle, .nav-close {
    display: none;
  }

  .nav-menu {
    margin-left: auto;
  }

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

  .nav-link {
    color: var(--white-color);
    font-size: 15px;
  }

  .nav-link::after {
    background: var(--white-color);
  }

  .bg-header .nav-link {
    color: var(--title-color);
  }

  .bg-header .nav-link::after{
    background: var(--title-color);
  }

  .home-container {
    grid-template-columns: 520px 700px;
    align-items: center;
    padding-block: 6rem 9rem;
    gap: 0;
  }

  .home-data {
    text-align: initial;
    transform: translateX(3rem);
    z-index: 5;
  }

  .home-desc {
    padding-right: 6rem;
    margin-bottom: 4rem;
  }

  .home-swiper {
    max-width: 700px;
    transform: translateX(-3rem);
  }

  .home .swiper-button-next, .home .swiper-button-prev {
    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: 500px;
    border-radius: 1.5rem 0 0 1.5rem;
  }

  .testimonial-card {
    padding: 6rem 6rem 3rem 2rem;
  }

  .testimonial-title {
    margin-bottom: 1rem;
  }

  .testimonial-desc {
    margin-bottom: 3rem;
  }

  .testimonial-swiper {
    border-radius: 0 1.5rem 1.5rem 0;
  }

  .testimonial .swiper-button-next, .testimonial .swiper-button-prev {
    bottom: 2.5rem;
  }

  .testimonial .swiper-button-prev {
    right: 5rem;
  }

  .testimonial .swiper-button-next {
    right: 3rem;
  }

  .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;
    align-items: center;
    column-gap: 10rem;
  }

  .join-data {
    text-align: initial;
  }

  .join-data .section-title {
    margin-bottom: 1.5rem;
    text-align: initial;
  }

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

  .join-img {
    width: 400px;
  }

  .footer {
    padding-top: 4.5rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer-logo {
    align-self: flex-start;
  }

  .footer-content {
    column-gap: 4.5rem;
  }

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

  .scrollup {
    right: 3rem;
  }
}

/* for 2k */
@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}