@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins:wght@400;500&display=swap');
:root {
    --header-height: 3.5rem;

    --title-color: hsl(0 ,0% , 95%);
    --text-color: hsl(0 ,0%, 70%);
    --text-color-light: hsl(0, 0%, 60%);
    --body-color: hsl(0, 0% ,0%);
    --container-color: hsl(0,0%,8%);

    --body-font:"Poppins", sans-serif;
    --second-font: "Montserrat", sans-serif;
    --biggest-font-size: 2.75rem;
    --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-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

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

@media screen and(min-width:1152px){
    :root{
        --biggest-font-size: 5.5rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

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

html{
    scroll-behavior: smooth;
}

body,
button,
input{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
}
body{
    background-color: var(--body-color);
}
button,
input{
    outline: none;
    border: none;
}
h1,h2,h3,h4{
    color: var(--title-color);
    font-family: var(--second-font);
    font-family: var(--font-semi-bold);
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    display: block;
    max-width: 100%;
    height: auto;
}
.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: var(--h1-font-size);
    margin-bottom: 1.5rem;
}
.main{
    overflow: hidden;
}

/*header*/
.header{
    position: fixed;
    width: 100%;
    background-color: white;
    top:0;
    left:0;
    z-index: var(--z-fixed);
}
.btn {
    text-align: center;
    color: black;
    padding: 6px 24px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
  }
.btn:active {
    transform: scale(0.98);
  }
.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo{
    color: black;
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
}
.nav__btns {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}
.nav__toggle,
.nav__button,
.nav__close{
    display: flex;
    font-size: 1.25rem;
    color: black;
    cursor: pointer;
    background-color: transparent;
}
/*navigation 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);
        -webkit-backdrop-filter: blur(24px);
        transition: top .4s;
    }
}
.logo{
    display: flex;
    align-items: center;
}
.nav__list{
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
}
.nav__link{
    position: relative;
    color: black;
    font-family: var(--second-font);
    font-weight: var(--font-medium);
}
.nav__link::after{
    content: '';
    width: 0;
    height: 2px;
    background-color: black;
    position: absolute;
    left: 0;
    bottom: -.5rem;
    transition: width .3s;
}
.nav__link:hover::after{
    width: 70%;
}
.nav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.show-menu{
    top:0;
}
    
.active-link::after{
    width:70%;
}

/*home*/
.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: 3rem;
    row-gap: 3rem;
}
.home__data{
    text-align:center;
}
.home__subtitle{
    display: inline-flex;
    backdrop-filter: blur(4px);
    background-color: hsla(0,0%,100%,.2);
    padding: 1rem 1rem;
    color: white;
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.home__title{
    display: flex;
    backdrop-filter: blur(4px);
    background-color: hsla(0,0%,100%,.2);
    padding: 1rem 1rem;
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
    color: white;
}
.home__description{
    display: inline-flex;
    backdrop-filter: blur(4px);
    background-color: hsla(0,0%,100%,.2);
    padding: 1rem 1rem;
    margin-bottom: 2rem;
    color:white;
}
.home__cards{
    grid-template-columns: 240px;
    justify-content: center;
}
.home__card{
    position: relative;
    overflow: hidden;
}
.home__card-img{
    height: 180px;
    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: var(--h3-font-size);
    z-index:1;
}
.home__card:hover .home__card-img{
    transform: scale(1.2);
}
.button{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    background-color: hsla(0,0%,100%,.2);
    padding: 1.25rem 1.5rem;
    color: var(--title-color);
    display: inline-flex;
    align-items:center;
    column-gap: .5rem;
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.button i{
    font-size: 1.25rem;
    transition: transform .4s;
    font-weight: initial;
}
.button:hover i{
    transform: translate(.25rem);
}

/*about*/
.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;
    height: 384px;
    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);
}
/*EXPLORE*/
.explore{
    position: relative;
}
.explore__image{
    position: absolute;
    overflow: hidden;
}
.explore__img{
    width:100%;
    background-repeat: no-repeat;
    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;
}
/*JOIN*/
.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__button{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    cursor: pointer;
}
.join__image{
    position: relative;
    justify-self: center;
    overflow: hidden;
}
.join__img{
    width: 300px;
    height: 234px;
    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);
}
/*POPULAR*/
.popular__container {
    padding-top: 1.5rem;
    justify-content: center;
    row-gap:2.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.popular__img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 0px 5px;
}


.popular__slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.popular__slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    column-gap: 3rem;
}

.popular__title{
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.popular__location{
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-size: var(--small-font-size);
    font-family: var(--second-font);
    font-weight:500;
}
.popular__location i{
    font-size: 1rem;
}
.popular__image:hover .popular__img{
    transform: scale(1.2);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Responsive slides for different screen sizes */
@media (min-width: 768px) {
    .popular__slide {
        min-width: 50%; /* Two slides visible at once */
    }
}

@media (min-width: 1024px) {
    .popular__slide {
        min-width: 33.33%; /* Three slides visible at once */
    }
}


/*FOOTER*/
.footer{
    padding-block: 2.5rem;
    background-color: var(--container-color);
}
.footer__content{
    row-gap: 3.5rem;
}
.footer__logo{
    display: inline-block;
    color: var(--title-color);
    font-size: var(--h2-font-size);
    font-family: var(--second-font);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1rem;
}
.footer__data{
    grid-template-columns: repeat(2,max-content);
    gap: 2,5rem 3.5rem;
}
.footer__title{
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}
.footer__links{
    display: grid;
    row-gap: .75rem;
}
.footer__link{
    color: var(--text-color);
    transition: color .4s;
}
.footer__link:hover{
    color: var(--title-color);
}
.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: var(--text-color);
    font-size: 1.25rem;
    transition: color .4s, transform .4s;
}
.footer__social-link:hover{
    color: var(--title-color);
    transform: translateY(-.25rem);
}
.footer__copy{
    font-size: var(--smaller-font-size);
    color: var(--text-color);
    text-align: center;
}
/*SCROLL BAR*/
::-webkit-scrollbar{
    width: .6rem;
    border-radius: 0.5rem;
    background-color: hsl(0, 0%, 10%);
}
::-webkit-scrollbar-thumb{
    border-radius: .5rem;
    background-color: hsl(0, 0%, 20%);
}
::-webkit-scrollbar-thumb:hover{
    background-color: hsl(0, 0%, 30%);
}
/*SCROLLUP*/
.scrollup{
    position: fixed;
    left: 1rem;
    bottom: -50%;
    background-color: hsla(0,0%,100%,.1);
    padding: 6px;
    display: inline-flex;
    color: var(--title-color);
    font-size: 1.25rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}
.scrollup:hover{
    transform: translateY(-.25rem);
}
.show-scroll{
    bottom: 3rem;
}

@media screen and (max-width:340px) {
    .container{
        margin-inline: 1rem;
    }
    .footer__data{
        grid-template-columns: max-content;
    }    
}
@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);
    }
    .about__data,
    .about__data .section__title,
    .join__data,
    .join__data .section__title{
        text-align: initial;
    }
    .popular__container{
        grid-template-columns: repeat(2,240px);
    }
    .explore__img{
        width:100vm;
    }
    .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{
        order: -1;
    }
}
@media screen and (min-width: 1023px) {
    .nav__close,
    .nav__toggle{
        display: none;
    }
    .nav__list{
        flex-direction: row;
        column-gap: 4rem;
    }
    .popular__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: 8.5rem 2rem;
    }
    .home{
        padding: 0;
    }
    .nav{
        height: calc(var(--header-height)+1.5rem);
    }
    .blur-header::after{
        backdrop-filter: blur(25px);
        --webkit-backdrop-filter: blur(25px);
    }
    .home__container{
        grid-template-columns: initial;
        justify-content: initial;
        row-gap: 4rem;
        padding-top: 6.5rem;
    }
    .home__shadow{
        height: 800px;
    }
    .home__data{
        text-align: initial;
        width: 480px;
    }
    .home__subtitle{
        font-size: var(--h2-font-size);
    }
    .home__description{
        margin-bottom: 2.5rem;
    }
    .home__cards{
        grid-template-columns: repeat(4,240px);
    }
    .home__card-title{
        left: 1rem;
        bottom: 1.5rem;
    }
    .button{
        column-gap: 1.5rem;
    }
    .about__container{
        grid-template-columns: 400px 460px;
        column-gap: 8.5rem;
        padding: 1rem;
    }
    .about__description{
        margin-bottom: 3rem;
    }
    .about__img{
        width:460px;
    }
    .popular__container{
        grid-template-columns: repeat(3,300px);
        column-gap: 3rem;
        padding-top: 4rem;
    }
    .popular__title{
        font-size: var(--h2-font-size);
    }
    .popular__location{
        font-size: var(--normal-font-size);
    }
    .explore__img{
        width: 100vw;
        height: 600px;
    }
    .explore__content{
        padding-top: 20rem;
        grid-template-columns: 670px 1fr;
    }
    .explore__data,
    .explore__data .section__title{
        text-align: initial;
    }
    .join{
        padding: 140px;
    }
    .join__container{
        grid-template-columns: 460px 340px;
        column-gap: 8.5rem;
        padding-block: 1rem 5rem;
    }
    .join__img{
        width: 460px;
        height: 250px;
    }
    .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;
    }
    .scrollup{
        left: 3rem;
    }
}
.bottom-right-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 2000;  
    cursor: pointer;
}

.bottom-right-link img {
    width: 100px;
    height: 100px;
    z-index: 1000;
}

/* Style for the popup window */
.popup {
    position: fixed;
    bottom: 60px; /* Adjust the position */
    right: 10px; /* Adjust the position */
    z-index: 1000;
    width: 260px; /* Adjust the width */
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.popup.hidden {
    display: none;
}

.popup-content {
    position: relative;
    padding: 15px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

  