* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #17202a;
    background: #ffffff;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}



.top-bar {
    background: #102a43;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 9px 7%;
    font-size: 13px;
}


.navbar {
    height: 78px;

    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}


.logo {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #e85d04;
}

.logo > span {
    font-size: 35px;
}

.logo h2 {
    font-size: 22px;
    letter-spacing: 2px;
}

.logo small {
    display: block;
    letter-spacing: 5px;
    font-size: 10px;
    color: #102a43;
}


nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #e85d04;
}


.enquiry-btn,
.primary-btn,
.search-btn,
.submit-btn {
    background: #e85d04;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 13px 22px;

    cursor: pointer;
    font-weight: bold;

    transition: 0.3s;
}

.enquiry-btn:hover,
.primary-btn:hover,
.search-btn:hover,
.submit-btn:hover {
    background: #c94d00;
    transform: translateY(-2px);
}

.menu-btn {
    display: none;

    background: none;
    border: none;

    font-size: 27px;
    cursor: pointer;
}
#destinationInfo {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 12px;
    line-height: 1.6;
}

#destinationInfo h3 {
    color: #075985;
    margin-bottom: 8px;
}

#destinationInfo p {
    color: #333;
}

.hero {
    min-height: 650px;

    background:
        linear-gradient(
            rgba(5, 25, 40, 0.48),
            rgba(5, 25, 40, 0.48)
        ),
        url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1800&q=85");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 80px 7%;
}


.hero-content {
    max-width: 750px;
    color: white;

    animation: slideUp 1s ease;
}

.small-title {
    letter-spacing: 4px;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #ffb703;
    display: block;
}

.hero-text {
    max-width: 620px;
    font-size: 18px;
    margin-bottom: 30px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.secondary-btn {
    border: 2px solid white;
    color: white;

    padding: 11px 22px;

    border-radius: 5px;

    font-weight: bold;

    transition: 0.3s;
}

.secondary-btn:hover {
    background: white;
    color: #17202a;
}


.search-section {
    position: relative;
    margin-top: -55px;
    z-index: 10;
    padding: 0 7%;
}

.search-box {
    background: white;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;

    gap: 15px;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}


.search-item label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.search-item select,
.search-item input {
    width: 100%;

    border: 1px solid #ddd;
    border-radius: 4px;

    padding: 12px;

    outline: none;
}

.section {
    padding: 100px 7%;
}

.light-section {
    background: #f7f9fa;
}


.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading p,
.section-label,
.contact-content > p {
    color: #e85d04;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: bold;
}

.section-heading h2 {
    font-size: 42px;
    margin: 8px 0;
}

.section-heading span {
    color: #6c757d;
}
.destination-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.destination-card {
    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 25px rgba(0,0,0,0.08);

    transition: 0.4s;

    position: relative;
}


.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


.destination-card img {
    height: 250px;
    object-fit: cover;

    transition: 0.5s;
}


.destination-card:hover img {
    transform: scale(1.08);
}


.card-content {
    padding: 22px;
}


.tag {
    background: #fff0e6;
    color: #e85d04;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: bold;
}


.card-content h3 {
    font-size: 24px;
    margin: 12px 0 5px;
}

.card-content p {
    color: #6c757d;
    font-size: 14px;
}

.card-content a {
    color: #e85d04;

    display: inline-block;

    margin-top: 12px;

    font-weight: bold;
}


.stats {
    background: #102a43;
    color: white;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    padding: 55px 7%;

    text-align: center;
}


.stats h2 {
    color: #ffb703;
    font-size: 38px;
}

.stats p {
    color: #d9e2ec;
}
#destinationInfo {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 12px;
    line-height: 1.6;
}

#destinationInfo h3 {
    color: #075985;
    margin-bottom: 8px;
}

#destinationInfo p {
    color: #333;
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


.package-card {
    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 25px rgba(0,0,0,0.08);

    transition: 0.4s;
}

.package-card:hover {
    transform: translateY(-8px);
}


.package-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}


.package-image img {
    height: 100%;
    object-fit: cover;

    transition: 0.5s;
}


.package-card:hover .package-image img {
    transform: scale(1.1);
}


.package-image span {
    position: absolute;
    top: 15px;
    left: 15px;

    background: #102a43;
    color: white;

    padding: 7px 12px;

    border-radius: 4px;

    font-size: 12px;
}


.package-content {
    padding: 22px;
}


.package-content small {
    color: #e85d04;
    font-weight: bold;
}


.package-content h3 {
    font-size: 22px;
    margin: 5px 0;
}

.package-content p {
    color: #6c757d;
    font-size: 14px;
}


.package-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 20px;
}


.package-bottom strong {
    font-size: 22px;
    color: #102a43;
}


.package-bottom button {
    border: none;

    background: #e85d04;
    color: white;

    padding: 9px 14px;

    border-radius: 4px;

    cursor: pointer;
}

.experience-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.experience {
    padding: 30px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    transition: 0.3s;

    background: white;
}


.experience:hover {
    transform: translateY(-7px);

    border-color: #e85d04;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


.experience span {
    font-size: 38px;
}

.experience h3 {
    margin: 12px 0 5px;
}

.experience p {
    color: #6c757d;
    font-size: 14px;
}

.why-us {
    display: grid;

    grid-template-columns: 1fr 1fr;

    min-height: 550px;
}


.why-image img {
    height: 100%;
    object-fit: cover;
}


.why-content {
    padding: 70px 10%;
    background: #102a43;
    color: white;
}


.why-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 15px 0 20px;
}


.why-content h2 span {
    color: #ffb703;
}


.why-content > p:not(.section-label) {
    color: #d9e2ec;
}


.features {
    margin-top: 30px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.features div {
    display: flex;
    gap: 12px;
}


.features b {
    background: #e85d04;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    display: grid;
    place-items: center;
}


.features small {
    display: block;
    color: #bcccdc;
}


.testimonial-section {
    padding: 100px 7%;

    background: #f7f9fa;

    text-align: center;
}


.testimonial-box {
    max-width: 750px;
    margin: auto;

    background: white;

    padding: 45px;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


.quote {
    font-size: 60px;
    color: #e85d04;
    line-height: 0.5;
}


.testimonial-box p {
    font-size: 20px;
    color: #52606d;

    margin: 20px 0;
}


.testimonial-box h3 {
    font-size: 15px;
}


.dots button {
    border: none;
    background: none;

    color: #e85d04;

    cursor: pointer;

    margin: 15px 3px;
}

.contact-section {
    padding: 90px 7%;

    background:
        linear-gradient(
            rgba(16,42,67,0.94),
            rgba(16,42,67,0.94)
        ),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;

    color: white;

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 60px;

    align-items: center;
}
.travel-section {
    padding: 40px 6%;
    background: #fffdf8;
    font-family: Arial, sans-serif;
}
.travel-hero {
    min-height: 300px;
    padding: 50px;
    border-radius: 25px;
    margin-bottom: 35px;

    background:
        linear-gradient(
            rgba(255,255,255,0.35),
            rgba(255,255,255,0.15)
        ),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.travel-hero h1 {
    font-size: 48px;
    color: #12304a;
    margin-bottom: 15px;
}

.travel-hero p {
    font-size: 18px;
    color: #173b55;
}

.hero-text {
    text-align: right;
}

.hero-text h2 {
    color: white;
    font-size: 30px;
    text-shadow: 2px 2px 5px #333;
}

.travel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}


.travel-card {
    display: flex;
    min-height: 230px;

    border-radius: 22px;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0,0,0,0.10);

    transition: 0.4s;
}

.travel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}
.travel-card img {
    width: 45%;
    object-fit: cover;

    transition: 0.5s;
}

.travel-card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    flex: 1;
}

.icon {
    font-size: 35px;
}

.card-content h2 {
    font-size: 25px;
    color: #172b3a;
    margin: 10px 0;
}

.card-content p {
    color: #52606b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-content button {
    border: none;
    padding: 11px 22px;
    border-radius: 25px;

    background: #168447;
    color: white;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.card-content button:hover {
    transform: scale(1.08);
    background: #0d6635;
}
.pink {
    background: #fff0f6;
}

.green {
    background: #eefbea;
}

.light-green {
    background: #effbef;
}

.purple {
    background: #f5edff;
}

.orange {
    background: #fff3e7;
}

.blue {
    background: #eaf7ff;
}
.travel-footer {
    text-align: center;
    margin-top: 35px;

    font-size: 20px;
    color: #173b55;
    font-weight: bold;
}



@media (max-width: 768px) {

    .travel-grid {
        grid-template-columns: 1fr;
    }

    .travel-hero {
        flex-direction: column;
        text-align: center;
        padding: 35px 20px;
    }

    .travel-hero h1 {
        font-size: 35px;
    }

    .hero-text {
        text-align: center;
        margin-top: 25px;
    }

    .travel-card {
        flex-direction: column;
    }

    .travel-card img {
        width: 100%;
        height: 220px;
    }
}

.contact-content h2 {
    font-size: 45px;
    line-height: 1.15;

    margin: 10px 0 20px;
}


.contact-content span {
    color: #d9e2ec;
}


#travelForm {
    background: white;

    padding: 30px;

    border-radius: 8px;
}


.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 15px;
}
async function submitForm(event) {

    event.preventDefault();

    const name =
        document.getElementById("name").value.trim();

    const phone =
        document.getElementById("phone").value.trim();

    const destination =
        document.getElementById("formDestination").value;

    const date =
        document.getElementById("formDate").value;

    const result =
        document.getElementById("formMessage");

    try {

        // Check all fields
        if (!name || !phone || !destination || !date) {
            throw new Error("Please fill in all required fields.");
        }

        // Check phone number
        if (!/^[0-9]{10}$/.test(phone)) {
            throw new Error("Please enter a valid 10-digit phone number.");
        }

        result.style.color = "blue";
        result.textContent = "Processing your booking request...";

        // Promise: simulate an asynchronous process
        await new Promise(resolve => setTimeout(resolve, 1000));

       
        result.style.color = "green";

        result.textContent =
            "Thank you, " + name +
            "! Your request for " + destination +
            " on " + date +
            " has been noted. Sharma Travels will contact you.";

        // Reset form
        document.getElementById("travelForm").reset();

    } catch (error) {

        // Handle errors
        result.style.color = "red";
        result.textContent = error.message;

    } finally {

        // Runs whether successful or error occurs
        console.log("Form processing completed.");

    }

#travelForm input,
#travelForm select,
#travelForm textarea {
    width: 100%;

    border: 1px solid #ddd;

    padding: 13px;

    border-radius: 4px;

    outline: none;

    font-family: inherit;
}


#travelForm textarea {
    resize: vertical;

    margin-bottom: 15px;
}


.submit-btn {
    width: 100%;
}


#formMessage {
    color: #16803c;

    text-align: center;

    margin-top: 12px;

    font-weight: bold;
}

footer {
    background: #081c2d;
    color: white;
}


.footer-main {
    padding: 65px 7%;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1.5fr;

    gap: 40px;
}


.footer-logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ffb703;
}


.footer-about p {
    color: #9fb3c8;

    margin: 15px 0;

    max-width: 300px;
}


.footer-main h3 {
    margin-bottom: 15px;
}


.footer-main a {
    display: block;

    color: #9fb3c8;

    margin: 8px 0;

    transition: 0.3s;
}


.footer-main a:hover {
    color: #ffb703;
}


.footer-main p {
    color: #9fb3c8;
}


.socials {
    display: flex;
    gap: 15px;
}


.socials a {
    color: #ffb703;
}


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 20px 7%;

    display: flex;
    justify-content: space-between;

    color: #829ab1;

    font-size: 13px;
}

@keyframes slideUp {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
@media (max-width: 1000px) {

    nav {
        gap: 15px;
    }

    .destination-grid,
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        grid-template-columns: 1fr 1fr;
    }

    .why-us,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .why-image {
        height: 400px;
    }

}


@media (max-width: 750px) {

    .top-bar {
        display: none;
    }

    .navbar {
        height: 70px;
    }

    nav {
        display: none;

        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        padding: 20px 7%;

        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .enquiry-btn {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .search-section {
        margin-top: 20px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .destination-grid,
    .package-grid,
    .experience-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 5
    }
    .section {
        padding: 70px 5%;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .stats {
        gap: 25px;
    }

    .why-content {
        padding: 50px 7%;
    }

    .why-content h2 {
        font-size: 34px;
    }

    .testimonial-box {
        padding: 30px 20px;
    }

    .testimonial-box p {
        font-size: 17px;
    }

    .contact-section {
        padding: 70px 5%;
        gap: 35px;
    }

    .contact-content h2 {
        font-size: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .logo h2 {
        font-size: 18px;
    }

    .logo > span {
        font-size: 28px;
    }

    .hero {
        padding: 60px 5%;
        min-height: 550px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    #travelForm {
        padding: 20px;
    }
}
