/* ============== */
/* Body and color of the webpage */
/* ============== */
*{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

:root{
    --body-color: #E4E9F7;
    --altbody-color: #e1e5f0;
    --bodyalt-color: #dae0e7;
    --nav-color: #4070F4;
    --side-nav: #010718;
    --text-color: #FFF;
    --search-bar: #F2F2F2;
    --search-text: #000000;
    --outline-color: #18191A;
    --text-title: #000000;
    --card-color: #FFFFFF;
    --about-icon: #4070F4;
}

body{
    height: 100vh;
    background-color: var(--body-color);
}

body.dark{
    --body-color: #18191A;
    --altbody-color: #1e2021;
    --bodyalt-color: #191b1b;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
    --outline-color: #E4E9F7;
    --text-title: #FFFFFF;
    --card-color: #000000;
    --about-icon: #FFFFFF;
}


/* ============== */
/* Navigation bar */
/* ============== */
nav{
    position: fixed;
    top: 0;
    left:0;
    height: 70px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
}

nav .navbar{
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: var(--nav-color);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .navbar .sidebarOpen{
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .navbar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.menu .logoToggle{
    display: none;
}

.navbar .navlinks{
    display: flex;
    align-items: center;
}

.navbar .navlinks li{
    margin: 0 5px;
    list-style: none;
}

.navlinks li a{
    position: relative;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}

.navlinks li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.navlinks li:hover a::before{
    opacity: 1;
}


/* ============== */
/* Navigation bar with dark-light toggle and search bar toggle */
/* ============== */
.navbar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .darkLight,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;   
}

.darkLight i,
.searchToggle i{
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.darkLight i.sun{
    opacity: 0;
    pointer-events: none;
}

.darkLight.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.darkLight.active i.moon{
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel{
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel{
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search{
    opacity: 0;
    pointer-events: none;
}

.searchBox{
    position: relative;
}

.searchBox .searchField{
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    background-color: var(--nav-color);
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.searchToggle.active ~ .searchField{
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}

.searchField::before{
    content: '';
    position: absolute;
    right: 14px;
    top:  -4px;
    height: 12px;
    width: 12px;
    background-color: var(--nav-color);
    transform: rotate(-45deg);
    z-index: -1;
}

.searchField input{
    height: 100%;
    width: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--search-text);
    background-color: var(--search-bar);
}

body.dark .searchField input{
    color: var(--text-color);
}

.searchField i{
    position: absolute;
    color: var(--nav-color);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .searchField i{
    color: var(--text-color);
}


/* ============== */
/* Content Page */
/* ============== */
section{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--body-color);
    font-size: 100px;
    color: var(--text-color);
    font-weight: 500;
}

section:nth-child(odd){
    background: var(--altbody-color);
}

.home .bgimg{
    background-image: url("images/travel-concept-with-landmarks.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100%;
    width: 100%;
    height: 100vh;
    z-index: 1;
    position: absolute;
    filter: brightness(60%);
} 

body.dark .home .bgimg{
    filter: brightness(50%);
}

.home .contents{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 10%;
}

.home .contents .homeInfo{
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 30px;
}

.home .contents .title{
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 140px;
    font-weight: bold;
    border-top: 2px white solid;
    border-bottom: 2px white solid;
    padding: 0;
}

.home .contents .subtitle{
    z-index: 2;
    width: 100%;
    text-align: center;
    font-size: 16px;
    margin-top: 0.5rem;
}


/* ============== */
/* ABOUT SECTION */
/* ============== */
.about{
    font-size: 18px;
    color: var(--text-title);
    position: relative;
}

.aboutContainer{
    width: 100%;
    margin: 1rem;
    z-index: 3;
    overflow: hidden;
    display: flex;
    padding: 0.5rem;
    gap: 1rem;
}

.aboutContainer .leftCol{
    flex: 1;
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

body.dark .aboutContainer .leftCol{
    background-color: var(--body-color);
}

.leftCol .title{
    padding: 1rem;
    font-size: 40px;
    font-weight: bold;
}

.leftCol .textContent{
    padding: 0.5rem;
    margin: 0.5rem;
}

.leftCol .subContainer{
    display: flex;
    width: 100%;
    margin: 0 0.5rem 0 0;
    padding: 1rem;
    gap: 10px;
}

.leftCol .subContainer .box1,
.leftCol .subContainer .box2{
    flex: 1;
}

.box1 .plane,
.box2 .globe{
    font-size: 40px;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--about-icon);
    color: var(--about-icon);
}

.subContainer .text{
    font-size: 15px;
    margin: 0.5rem;
}

.aboutContainer .rightCol{
    flex: 1;
    position: relative;
    padding: 0.5rem;
    z-index: 1;
}

.aboutContainer .rightCol img{
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

body.dark .aboutContainer .rightCol img{
    filter: brightness(80%);
}


/* ============== */
/* GALLERY SECTION */
/* ============== */
.gallery{
    font-size: 18px;
    color: var(--text-title);
}

.gallery .content{
    display: flex;
    margin: 0.5rem;
    padding: 0.5rem;
}

.gallery .leftText{
    flex: 1;
}

.gallery .leftText .title{
    font-size: 40px;
    margin: 2rem;
}

.gallery .leftText .text{
    margin: 1rem;
}

.gallery .leftText .exploreBtn{
    margin: 2rem;
    font-size: 15px;
    padding: 1rem;
    border-radius: 15px;
    background-color: #008CBA;
    color: white;
    border: none;
    font-weight: bold;
}

.gallery .leftText .exploreBtn:hover{
    background-color: transparent;
    color: var(--outline-color);
    border: 1px solid var(--outline-color);
}

.gallery .content .rightImage{
    flex: 1;
    position: relative;
    padding: 0.5rem;
    z-index: 1;
}

.gallery .content .rightImage img{
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

body.dark .gallery .content .rightImage img{
    filter: brightness(80%);
}

/* ============== */
/* DESTINATION SECTION */
/* ============== */
.destinations{
    font-size: 30px;
    justify-content: center;
    align-items: center;
}

.cardWrapper {
    display: flex;
    overflow: hidden;
    max-width: 100%;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cardWrapper .cardItem{
    list-style: none;
    flex: 1;
    height: 100%;
    padding: 0.5rem;
}

.cardWrapper .cardItem .cardLink{
    width: 300px;
    display: block;
    background: var(--card-color);
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-title);
    border: 1px solid transparent;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    transition: 0.2s ease;
    margin: auto;
}

.cardWrapper .cardItem .cardLink:hover{
    border-color: var(--outline-color);
    transform: translateY(-40);
}

.cardWrapper .cardLink .cardImage{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
}

.cardWrapper .cardLink .place{
    padding: 8px 16px;
    font-size: 1.2rem;
    margin: 5px 0 15px;
    background: transparent;
    border: 2px solid var(--outline-color);
    border-radius: 25px;
    width: fit-content;
}

.cardWrapper .cardLink .title{
    font-size: 1rem; 
    font-weight: 100;
}

.cardWrapper .cardLink .cardButton{
    height: 35px;
    width: 35px;
    border-radius: 50%;
    margin: 15px 0 5px;
    background: none;
    cursor: pointer;
    font-size: 30px;
    color: var(--outline-color);
    border: 2px solid var(--outline-color);
    transition: 0.4s ease;
}

.cardWrapper .cardLink:hover .cardButton{
    background-color:#18191A;
    color: #E4E9F7;
    transform: rotate(-45deg);
}

body.dark .cardWrapper .cardLink:hover .cardButton{
    color:#18191A;
    background-color: #E4E9F7;
    transform: rotate(-45deg);
}


/* ============== */
/* Media CSS */
/* ============== */
@media (max-width: 690px){
    nav .navbar .sidebarOpen{
        display: block;
    }

    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu{
        left: -0%;
    }

    nav.active .navbar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logoToggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logoToggle .sidebarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

    .navbar .navlinks{
        flex-direction: column;
        padding-top: 30px;
    }

    .navlinks li a{
        display: block;
        margin-top: 20px;
    }

    section{
        font-size: 50px;
    }

    .home .contents .homeInfo{
        font-size: 26px;
    }
    
    .home .contents .title{
        font-size: 120px;
    }
    
    .home .contents .subtitle{
        font-size: 14px;
    }

    .aboutContainer,
    .leftCol .subContainer,
    .gallery .content{
        flex-direction: column;
    }

    .aboutContainer .rightCol img{
        width: 0;
        height: 0;
    }

}