* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    margin: 0px;
    padding: 0px;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #221314;
    --second-color: #5a7184;
    --main-color: #6e54fa;
    --big-font: clamp(2.5rem, 5vw + 1rem, 6rem);
    --h2-font: clamp(1.5rem, 3vw + 1rem, 3rem);
    --p-font: clamp(1rem, 1vw + 0.5rem, 1.1rem);
}

/*General styling*/
.card,
.services-card,
.who-card {
    width: min(90%, 400px);
}


/*Html element styling*/
textarea {
    resize: none;
    border: none;
}


/*Body general settings*/
body {
    background-image: url(../assets/Decore.png);
    background-attachment: fixed;
    background-position-x: left;
    background-position-y: top;
    background-size: cover;
    color: var(--text-color);
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.15;
    text-align: center;
    margin-top: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/*General styling */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    max-width: 100%;
    word-wrap: break-word;
}

/*General styling */
main,
footer,
.container-grid,
.second-section,
.services,
.about-stories {
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Basic layout */
/*General header stylng*/
header {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 30px 5vw;
    transition: ease .40s;
    margin-bottom: 20px;
}

#website-logo h1 {
    font-family: 'Poppins', sans-serif;
    margin-right: 20px;

}


nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-color);
    font-size: 25px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 4px;
    transition: ease .40s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.206);
    color: var(--text-color);
    box-shadow: 5px 10px 30px rgb(85 85 85 / 20%);
    border-radius: 4px;
}

.signup-btn {
    border: 1px solid black;
    border-radius: 10px;
    padding: 5px 15px;
    background: transparent;
}

/* Burger icon hidden by default */
.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}




#website-logo {
    font-size: 35px;
    font-weight: 600;
    letter-spacing: 1px;

}

/*Destination cards grid*/
.cards-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/*Home first div*/
.d1 h1 {
    color: rgb(207, 101, 26);
}


.bt-findout-more {
    background-color: orange;
    border-radius: 25px;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* For spacing between icon and text */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#bt-sign-up {
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: 25px;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/*the general main styling*/
main {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    margin-bottom: 100px;
    margin-top: -100px;

    .home-text {
        padding-top: 80px;
        max-width: 1000px;
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

    .home-text .d1 h1 {
        color: rgb(155, 66, 15);
        font-size: 1.5rem;
        line-height: 1.3;
        font-weight: 700;
    }

    #p1 {
        font-size: 6rem;
        color: #022232;
        font-weight: 600;
        line-height: 1.3;
    }

    #p2 {
        color: #555;
        font-size: 1rem;
        margin-top: 15px;
        line-height: 1.7;
    }
}

.best-services {
    text-align: center;
}

.best-services h4{
    text-align: center;
}
.best-services h1{
    font-size: 5rem;
    font-weight: 900;
    color: #022232;
}

/*The newsletter styling*/
.best-services-newsletter {
    background-image: url(../assets/form-background.png);
    background-size: cover;
    width: 100%;
    padding-top: 5%;
    display: inline-block;
    width: 1000px;
    margin-top: 30px;
}


.best-services-newsletter img {
    margin-top: -100px;
    margin-left: 955px;
}

.best-services-newsletter h1 {
    font-size: x-large;
    margin-bottom: 20px;
    margin-top: 30px;
    font-weight: 600;
}


.best-services-newsletter input {
    width: 20em;
    margin-right: 10px;
    border-radius: 10px;
}

.best-services-newsletter button {
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
}

.best-services-newsletter button:hover {
    background: orangered;
}

/*General form styling used in signin, login and contact us*/
.signup-login-contact-section {
    background-image: url(../assets/form-background.png);
    background-size: cover;
    width: 100%;
    padding-top: 5%;
    display: inline-block;
    width: 1000px;
    margin-top: 30px;
}

.signup-login-contact-section h1 {
    margin-bottom: 30px;
}

.signup-login-contact-section button {
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
    margin-bottom: 40px;
}


.signup-login-contact-section button:hover {
    background: orangered;
}

.signup-login-contact-section textarea {
    border-radius: 20px;
    padding: 20px;
}

.signup-login-contact-section input {
    width: 20em;
    margin-right: 10px;
    border-radius: 10px;
}

/*Offered services cards styling*/
.services {
    align-items: center;
    justify-content: center;
    height: 300px;
    display: flex;
    gap: var(--big-font);
    display: flexbox;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 100px;
    margin-bottom: 80px;
}

.new-letter-span {
    display: flexbox;
    justify-content: center;
    text-align: center;
}

#new-letter-section {
    background-image: url(../assets/form-background.png);
    width: 50%;
    height: 50%;
    background-size: cover;

}

/*Footer general styling*/
footer {

    color: black;
    padding: 40px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

footer section {
    flex: 1 1 200px;
}

footer img {
    max-width: 180px;
    height: auto;
}

footer .lists {
    list-style: none;
    justify-content: space-around;
    margin-right: 50px;

}

footer .lists ul {
    margin: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

footer .lists li {
    color: #5a7184;
}

footer p {
    color: #5a7184;
}

footer .lists ul:hover {
    color: #00bcd4;
}

footer section:last-of-type {
    flex-basis: 100%;
    text-align: center;
    border-top: 1px solid #ffffff22;
    padding-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

#new-letter-section h1 {
    color: rgb(94, 52, 180);

}

/*Contact email input styling*/
.email-input {
    border: none;
    background-color: white;
    padding: 10px 12px;
    font-size: 16px;
    width: 50%;
    box-sizing: content-box;
    margin-bottom: 50px;

}

/*Used html elements styling*/
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.companies-logos {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.card-companies {
    width: auto;
    height: 150px;
    background-color: #ffffff00;
    border-radius: 28px;
    border: none;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 20px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
    align-content: center;



}

.pic-title {
    display: flex;
    justify-content: space-between;
}

.card-companies.active {

    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-companies:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.card-companies img {
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(80%);
    transition: all .3s cubic-bezier(.495, .05, .55, .95);
    will-change: filter;

}

/* Services Cards*/

.services-card {
    width: auto;
    height: auto;
    background-color: #ffffff00;
    border-radius: 8px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 15px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;

}

.services-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: ease .40s;
}


.services-card.active {

    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.services-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.services-card img {
    width: 100%;
    height: auto;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* the destination cards*/

.card {
    width: 400px;
    height: auto;
    background-color: #ffffff;
    border-radius: 50px;
    border: none;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 20px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/*Destination cards styling*/
.card img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(80%);
    transition: all .3s cubic-bezier(.495, .05, .55, .95);
    will-change: filter;

}

.card-content {
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
}

.destination span:last-child {
  color: #343f41;
}

.card-content {
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  text-align: left;
}


.destination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.card-content p {
  color: #777;
  font-size: 0.9rem;
  margin-top: 0;  
}
.card-content h3 {
    margin-bottom: 8px;
    padding-top: 30px;
    position: left;
}

.card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;

}

.card.active {

    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 5rem;
}

/*Second section of the main */
.second-section {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 30px;
    padding: 10px 8%;
    flex-wrap: wrap;
}

.second-section .text,
h4 {
    flex: 1;
    min-width: 320px;
    text-align: left;
    
}

.second-section-texts p {
    flex: 1;
    min-width: 320px;
}

.second-section-texts p,
h4 {
    color: #5a7184;
}


.second-section .text {
    flex: 1;
    max-width: 450px;
}


.section-cards {
    display: grid;
    grid-template-columns: 150px 150px;
    gap: 20px;
    position: relative;
}


/*Second section of destination page cards*/

.section-cards .card {
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;


}

.section-cards .card #second-card {
    position: relative;
    top: 50em;
    left: 20px;
}

.section-cards .card:nth-child(1) {
    -webkit-transform: translate(15px, 15px);
    transform: translate(15px, 15px);
}

.section-cards .card:nth-child(2) {
    -webkit-transform: translate(30px, 30px);
    transform: translate(30px, 30px);
}

.section-cards .card:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/*Used html elements styling*/
select {
    background-color: #ffffff00;
    size: 50px;
    padding: 20px;
    font-size: xx-large;
    border: none;
}


/*Second section*/
/*About stories testimonials section style*/
.who-card {
    width: auto;
    height: auto;
    background-color: #ffffff;
    border-radius: 8px;
    border: none;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
    align-content: center;
    padding: 20px;
    justify-content: space-around;
    margin-bottom: 200px;
    margin-top: none;
    display: inline-block;

}

.about-stories {
    display: flex;
    justify-content: space-evenly;
    text-align: left;
}

.about-stories .testimonials-title {
    position: left;
    margin-bottom: 50px;
    margin-right: 500px;
    font-weight: 900;
}

.testimonials-title h4 {
    color: #5a7184;
    font-size: 18px;
    margin: 0;
    font-size: x-large;
}

.testimonials-title p {
    font-family: 'Georgia', serif;
}


.testimonials-card {
    background-color: #ffffff;
    display: inline-block;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 5px 10px 30px rgb(85 85 85 / 20%);
}

.img-fluid {
    margin-top: -90px;
    margin-left: -90px;
}

.rounded-circle {
    border-radius: 80px;
}

.m-top {
    position: relative;
}

.about-main {
    margin-bottom: 200px;
}

.about-section h1 {
    font-size: 5rem;
    padding-bottom: 50px;
}

.who-card p {
    color: #5a7184;
    font-size: xx-large;
    text-align: left;
    font-weight: 500;
    padding: 50px;
}

.testimonial_author {
    color: #5a7184;
    font-size: xx-large;
    font-weight: 600;
    text-align: start;
    padding-left: 50px;
    padding-top: 20px;
    padding-bottom: 10px;
}

.author_place {
    text-align: start;
    color: #5a7184;
    padding-left: 50px;
}

/*Footer lists adaptation*/
ul li {
    margin-bottom: 10px;
}

/*Media queries for more responsiveness to the website*/
@media (max-width: 1100px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(255, 255, 255, 0.64);
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }

    /*Burger used in the shrinked screen*/
    .burger {
        display: block;
    }
}

@media (max-width: 1200px) {
    header {
        padding: 20px 10%;
    }

    .nav-element a {
        font-size: 20px;
        padding: 8px 15px;
        display: flex;
    }

    .second-section {
        padding: 40px 8%;
        gap: 40px;
    }

    .container-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .services {
        gap: 5rem;
    }

    #sign-up-section {
        width: 80%;
        padding: 5%;
    }
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 5%;
    }

    .nav-element {
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 0;
    }

    main {
        flex-direction: column;
        text-align: center;
    }

    .home-text {
        padding: 0 5%;
        text-align: center;
    }

    .services {
        flex-wrap: wrap;
        height: auto;
        margin-top: 50px;
    }

    .second-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer section {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    body {
        margin-top: 25%;
    }

    header {
        padding: 15px 5%;
    }

    #website-logo {
        font-size: 28px;
    }

    .nav-element a {
        font-size: 18px;
    }

    .home-text #p1 {
        font-size: 3rem;
    }

    .home-text #p2 {
        font-size: 1rem;
    }

    .card {
        width: 90%;
        height: auto;
    }

    .card img {
        width: 100%;
        height: auto;
    }

    .container-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    #sign-up-section {
        width: 90%;
        padding: 8%;
    }

    .email-input {
        width: 80%;
    }

    .about-stories {
        flex-direction: column;
        align-items: center;
    }

    .testimonials-title {
        margin-right: 0;
        text-align: center;
    }

    .who-card p,
    .testimonial_author,
    .author_place {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .nav-element {
        flex-direction: column;
        align-items: center;
    }

    .social a {
        height: 60px;
        width: 60px;
    }

    .services {
        gap: 2rem;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .section-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-section h1 {
        font-size: 2.5rem;
    }

    footer {
        padding: 20px 3%;
    }

    footer img {
        max-width: 150px;
    }



    #new-letter-section {
        width: 90%;
        height: auto;
        padding: 10% 5%;
    }

    .email-input {
        width: 90%;
    }
}

@media (max-width: 400px) {
    .home-text #p1 {
        font-size: 2rem;
    }

    .home-text #p2 {
        font-size: 0.9rem;
    }

    .nav-element a {
        font-size: 16px;
        padding: 6px 12px;
    }

    footer section:last-of-type {
        font-size: 0.8rem;
    }
}


/*added gaping for styling*/
.sign-up-section {
    margin-bottom: 220px;
   margin-top: 70px;
}

.destination-title {
    margin-bottom: 150px;
    margin-top: -150px;
}

/*Social media icons*/
.social {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.social a i {
    font-size: 3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.social a i.bxl-facebook {
    color: #1877F2;
}

.social a i.bxl-instagram-alt {
    color: #E4405F;
}

.social a i.bxl-twitter {
    color: #1DA1F2;
}


.social a:hover i {
    transform: scale(1.2);
    opacity: 0.85;
}