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

/*=============== THEME ===============*/
/*========== Variables Dark theme ==========*/
.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);
}

/*==========
	Color changes in some parts of
	the website, in dark theme
==========*/
.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-color: var(--container-color);
}

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

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

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

.grid {
    display: grid;
    gap: 1.5rem;
    justify-content: space-evenly;
}

.section {
    padding-block: 3rem 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 {
    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__toggle,
.nav__close,
.nav__theme {
    display: inline-flex;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    transition: color .4s;
}

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

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    .nav__menu {
        position: fixed;
        top: -120%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        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 {
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav__link {
    position: relative;
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--title-color);
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .4s;
}

.nav__link:hover::after {
    width: 60%;
}

.nav__close {
    color: var(--title-color);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* 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__logo, .nav__toggle, .nav__theme) {
    color: var(--title-color);
}

.bg-header .nav__logo img {
    filter: invert(0%);
}

/* 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;
}

.home__container {
    position: relative;
    padding-block: 4rem 3rem;
    row-gap: 3rem;
}

.gioithieu__p {
    line-height: 1.4;
}

.sodotochuc__container img {
    margin: 0 auto;
}

.home__data {
    text-align: center;
    color: var(--white-color);
    margin-top: 1rem;
}

.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: 100%;
    border-radius: 1.5rem;
}

/* Swiper class */
.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-color: var(--opacity-color-30);
    backdrop-filter: blur(24px);
    width: 2rem;
    height: 2rem;
    border-radius: .25rem;
    top: initial;
    bottom: 1.25rem;
    transition: background-color .4s;
}

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

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

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

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

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

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

/*=============== DESTINATION ===============*/
.destination__container2 {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}

.destination__container {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
}

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

.destination__img {
    transition: transform .4s;
}

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

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

.destination__subtitle {
    text-align: center;
    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;
}

.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 {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 1rem;
}

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

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

.destination__swiper {
    width: 100%;
    /* max-width: 300px; */
    /* background-color: var(--container-color); */
    border-radius: 0 0 1.5rem 1.5rem;
    margin-inline: initial;
    transition: background-color .4s;
}

.destination__swiper .swiper-wrapper {
    align-items: center;
}

.testimonial__card {
    padding: 2.5rem 2rem 3rem 1.25rem;
}

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

.testimonial__description {
    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: .25rem;
}

.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) {
    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 ===============*/
.gallery__conainer {
    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%, 100%, 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 ===============*/
.join__container {
    row-gap: 3rem;
    padding-bottom: 3rem;
}

.join__data {
    text-align: center;
}

.join__data .section__title {
    margin-bottom: 1rem;
}

.join__description {
    margin-bottom: 2rem;
}

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

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

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

.join__img {
    width: 100%;
    border-radius: 1.5rem;
    justify-self: center;
}

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

.footer__container {
    row-gap: 3rem;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    column-gap: .25rem;
    justify-self: center;
    color: var(--white-color);
    font-size: var(--h3-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(-.25rem);
}

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

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
    width: .6rem;
    background-color: hsla(220, 6%, 80%);
}

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

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

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    bottom: -50%;
    right: 1rem;
    background-color: var(--body-color);
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, .1);
    color: var(--title-color);
    border-radius: .25rem;
    display: inline-flex;
    padding: 6px;
    justify-content: center;
    align-items: center;
    z-index: var(--z-tooltip);
    font-size: 1.25rem;
    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.5rem;
    }

    .destination__container, .gallery__conainer {
        grid-template-columns: 250px;
    }

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

/* For medium devices */


@media screen and (max-width: 576px) {
    .home__container {
        /* grid-template-columns: 400px; */
        justify-content: center;
    }

    .home__data {
        margin-top: 1rem;
    }

    .home__swiper {
        max-width: 100%;
    }

    .testimonial__img {
        width: 400px;
    }

    .testimonial__swiper {
        max-width: 400px;
    }

    .join__container {
        /* grid-template-columns: 380px; */
        justify-content: center;
    }

    .join__img {
        width: 380px;
    }

    .gallery-thumb {
        width: 200px !important;
    }

    .footer__content {
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
    }

    .destination__container2 {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media screen and (max-width: 506px) {

    .gallery-thumb {
        width: 170px !important;
    }

}

@media screen and (max-width: 450px) {

    .gallery-thumb {
        width: 150px !important;
    }

}

@media screen and (max-width: 400px) {

    .gallery-thumb {
        width: 250px !important;
    }

}

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

    .join__container {
        grid-template-columns: 300px 350px;
        align-items: center;
        column-gap: 2rem;
    }

    .home__data {
        margin-top: 1rem;
    }

    .destination__container, .gallery__container {
        grid-template-columns: repeat(2, 300px);
    }

    .gallery-thumb {
        width: 220px !important;
    }

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

    .destination__container2 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid {
        justify-items: center;
    }

    .testimonial__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For large devices */
@media screen and (min-width: 1150px) {
    .gallery-thumb {
        width: 250px !important;
    }

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

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

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

    .home__data {
        text-align: initial;
        /* transform: translateX(3rem); */
        z-index: 5;
    }

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

    .home__swiper {
        max-width: 700px;
        /* transform: translateX(-3rem); */
    }

    .home .swiper-button-prev, .home .swiper-button-next {
        bottom: 2rem;
    }

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

    .home .swiper-button-prev {
        right: 4.5rem;
    }

    .destination__container {
        grid-template-columns: repeat(3, 340px);
        gap: 2rem;
    }

    .destination__container2 {
        grid-template-columns: repeat(4, 1fr);

    }

    .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 2rem 3rem 2rem;
    }

    .testimonial__title {
        margin-bottom: 1rem;
    }

    .testimonial__description {
        margin-bottom: 3rem;
    }

    .testimonial__swiper {
        max-width: 100%;
        border-radius: 0 1.5rem 1.5rem 0;
    }

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

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

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

    .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__description {
        margin-bottom: 3rem;
    }

    .join__img {
        width: 500px;
    }

    .foooter {
        padding-top: 4.5rem;
    }

    .footer__container {
        max-width: 100%;
        grid-template-columns: repeat(1, 1fr);
        justify-content: space-between;
    }

    .footer__logo {
        align-self: flex-start;
    }

    .footer__content {
        width: 100%;
        column-gap: 4.5rem;
    }

    .footer__title {
        margin-bottom: 1.5rem;
    }

    .scrollup {
        right: 3rem;
    }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2048px) {
    body {
        zoom: 1.4;
    }
}
