/*
 * TABLE OF CONTENTS
 * -----------------
 * 1. Global Imports
 * 2. Root Variables
 * 3. Global Styles
 * 4. Body Section
 * 5. Hero Section
 * 6. Why Travel with us Section 
 * 7. Special Offer Section
 * 8. Hot Deals Section
 * 9. Customer Reviews Section
 * 10. Get In Touch Section
 * 11. Footer Section
 * 12. Media Queries
 */


/* 1. Global Imports */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* 2. Root Variables */
:root{
    --main-color:#8793FF;
    --text-color:#000;
    --subtext-color:#E7E7E7;
    --break-color:#FDAB31;
    --gray-color:#6D6C6C;
    --light-gray-color:#E3E3E3;
}

 /* 3. Global styles */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
/* Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px; 
    height: 10px; 
}

::-webkit-scrollbar-track {
    background: rgba(135, 147, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color); 
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}


html {
    scroll-behavior: smooth;
    scrollbar-color: var(--main-color) rgba(135, 147, 255, 0.3); 
    scrollbar-width: thin; 
    overflow-x: hidden;

}
li a{
    cursor: pointer;
    transition: color 0.3s ease; 
}

.elements_width{
    width: 1140px;
}
.btn{
    background-color: var(--main-color);
    padding: 16px 20px;
    outline: 0;
    border: 0;
    width: fit-content;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease; 
}
.btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.btn:hover::before {
    transform: scaleX(1); 
}

h2 span{
    color: var(--main-color);
}
.subtitle{
    color: var(--gray-color);
}
.starter_text{
    color: var(--break-color);
}
.why_section, .special_offer, .deals_section, .reviews, .intouch_section, .footer{
    padding: 60px 0;

}
.section_bg{
    background-color: rgba(135, 147, 255, 0.14);
}
/* 4. Body Section */
body{
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden !important;
}

 /* Loading State */

 .loading-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;  
    position: fixed;  
    width: 100%; 
    background-color: rgba(255, 255, 255, 0.9);
    top: 0;
    left: 0;
    z-index: 1000; 
}

.heart {
    width: 80px;
    height: 80px; 
    background-color: #8793FF; 
    border-radius: 50%; 
    animation: beat 1s infinite; 
}

@keyframes beat {
    0%, 100% { transform: scale(1); }  /* At the start and end, no scaling */
    25% { transform: scale(1.2); }  /* Scale up slightly */
    50% { transform: scale(0.8); }  /* Scale down */
    75% { transform: scale(1.2); }  /* Scale up again */
}

/* 5. Hero Section */

header{
    max-width: 1140px;
    height: 80px;
    padding: 12px 0;
}
#mobileMenu {
    top: 0;
    right: 0;
    width: 75%;
    background-color: #fff;
    height: 100vh;
    position: fixed;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}
header li a:hover{
    color: var(--main-color);
}
.hero_section{
    background-image: url('../images/nature.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    text-align: center;
}

.hero_section::after{
    content:"";
    position:absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}
.hero_section div{
    max-width: 940px;
    position: relative;
    z-index: 2;
}

.hero_section p{
    color: var(--subtext-color);
}


/* 6. Why Travel with us Section */
.why_section{
    background-image: url('../images/bg-whyus.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%; 
}
.why_box{
    flex: 1 1 32%;
    margin: 8px;
}
.why_box .circle{
    border-color: #000;
    width: 85px;
    height: 85px;
    transition: all 0.3s ease-in;
}
.why_box .circle:hover{
    border-color: var(--main-color);
    color: var(--main-color);
}
.why_box .circle i{
   font-size: 30px;
}
.why_box h3{
    color: var(--main-color);
}

/* 7. Special Offer Section */

.special_offer{
    background-image: url('../images/bg-offer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%; 
}
.special_offer .bg-special{
    background-image: url('../images/forest.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%; 
}
.special_offer .btn{
    width: fit-content;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.special_offer .feature {
     flex: 1 1 32%;
     margin-bottom: 16px;
}
.special_offer .feature i{
    color: var(--main-color);
}

/* 8. Hot Deals Section */

.deals_section .bg-world {
    background-image: url('../images/world.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 250px;
    width: 100%; 
}

.deals_section .deals_box{
    max-width: 940px;
}

.deals_section .deals_box button{
    width: fit-content;
    font-size: 16px;
}

/* 9. Customer Reviews Section */

.reviews .review_box{
    border-radius: 14px;
    border:1px solid var(--light-gray-color);
    box-shadow: 5px 7px 8px 1px var(--light-gray-color);
    flex: 1 1 46%; 
    margin: 12px; 
}

.reviews .review_box .avatar{
    border-radius: 50px;
    width: 86px;
    height: 86px;
    background-image: url('../images/smile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.reviews .review_box .quote_style{
    right: 10px;
    top: 20px;
    color: var(--main-color);
    font-size: 70px;
    opacity: 0.3;
    transform: rotate(180deg);
}

/* 10. Get In Touch Section */

.intouch_section .contact_input{
    flex: 1 1 48%; 
    margin: 8px; 
}
.intouch_section .intouch_flex{
    flex: 1 1 48%; 
}
.intouch_section input{
    box-sizing: border-box;
    height: 48px;
    padding: 4px 10px;
    font-size: 14px;
}
.intouch_section input::placeholder, .intouch_section textarea::placeholder{
    color: var(--gray-color);
}
.intouch_section textarea{
    padding: 4px 10px;
    font-size: 14px;
}

.intouch_section .bg_intouch{
    background-image: url('../images/contact.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 70vh;
}

/* 11. Footer Section */
.footer{
    background-color: var(--main-color);
    color: #fff;
    height: 50vh;
}
.footer li i{
    font-size: 24px;
}

/* Go to the top button */
#goUpBtn{
    display: none;
    background-color: var(--break-color);
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}

/* 12. Media Queries */

@media (max-width: 1240px) {

    html, body {
        width: 100%;
        overflow-x: hidden;
    } 
    .header, .elements_width, .deals_section .deals_box {
        width: 100%;
    }
    .intouch_section .bg_intouch{
        height: 50vh;
    }
    .deals_bg{
        width: 70%;
        height: 250px;
    }

}
@media (max-width: 1040px) {

    .hero_section div{
        width: 100%;
        max-width: 400px;
    }
    .why_box, .reviews .review_box, 
    .intouch_section .contact_input  {
        flex: unset;
        margin: unset;
    }
    .intouch_section .contact_input{
        width: 100%;
        margin-bottom: 12px;
    }
    .reviews .review_box{
        margin-bottom: 12px;
    }

    .footer{
        height: 100%;
    }
}
