@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&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0%;
}

/* header-section */
.header {
    display: flex;
    padding: 10px;
    border-bottom: #d4d4d4 solid 1px;
    box-shadow: 0.5px 0 0.8px rgba(0, 0, 0, 0.75);
}

.logo {
    display: flex;
}

.logo img {
    width: 100px;
    justify-content: center;
    align-self: center;
    top: 0;
    right: 0;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 6px;
    margin-left: 3px;
    color: rgb(68, 68, 68);
}

.logo-text h1::after {
    content: "+91 90035 25975";
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
    color: #8f8f8f;
}

/* nav-bar section */
nav {
    height: 60px;
    background-color: var(--color1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-bars {
    justify-content: center;
    align-items: center;
    margin-left: 150px;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    padding: 0 20px;
    display: flex;
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    color: #F3B649;
    transition: 0.5s;
}

nav .home-links {
    fill: var(--text-color);
}

nav svg {
    fill: var(--text-color);
}

#sidebar-active {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

/* Language Switch Container */
.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10%;
}

/* Switch Control Styling */
.switch-control {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: rgba(243, 182, 73, 0.8);
    /* Active switch color */
}

input:checked+.switch-slider:before {
    transform: translateX(26px);
}

/* Language Label Styling */
#langLabel {
    font-size: 16px;
    color: rgb(23, 23, 23);
}



@media(max-width:1250px) {
    .links-container {

        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: #d3d3d3;
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: block;
    }

    #sidebar-active:checked~.links-container {
        right: 0;
    }

    #sidebar-active:checked~#overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }

    .header {
        flex-direction: row;
        /* Keep row layout */
        justify-content: space-between;
        /* Align logo to left, menu to right */
        align-items: center;
        padding: 10px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
    }

    .logo-text h1 {
        font-size: 16px;
        /* Slight size reduction for smaller screens */
    }
    .logo-text h1::after{
        font-size: 14px;
    }

    .nav-bars {
        margin-left: 0;
        /* Remove unnecessary margin on mobile */
    }

    .open-sidebar-button {
        display: block;
        /* Ensure menu icon is visible on mobile */
        margin-left: auto;
        /* Align the menu icon to the right */
    }
}

@media(max-width:430px) {

    .logo img {
        width: 60px;
        /* Further reduce logo size for smaller screens */
    }

    .logo-text h1 {
        font-size: 14px;
        /* Adjust title size */
    }
    .logo-text h1::after{
        font-size: 12px;
    }

    .header {
        padding: 8px;
        /* Compact padding */
    }
}


/* header Section */

/* Service Image Section */
.service-img {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('image/Travel-banner.JPG');
        background-size: cover;
        background-position: center;
        height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; 
        color: #fff;
        text-align: left;
        padding: 0 10%; 
        position: relative;
        animation: fadeUp 1s ease forwards; /* Add fade-up animation */
    }
    
    /* Keyframes for fading up */
    @keyframes fadeUp {
        0% {
            opacity: 0 ;
            transform: translateY(20px); /* Start slightly lower */
        }
        100% {
            opacity: 1;
            transform: translateY(0); /* End at original position */
        }
    }
    
    /* Styling for h1 and p */
    .service-img h1 {
        font-size: 32px;
        margin-bottom: 10px;
        color: rgba(243, 182, 73, 1);
        opacity: 0; /* Start hidden */
        transform: translateX(20px); /* Start from the right */
        animation: slideIn 1s ease forwards 0.5s; /* Add slide-in animation */
    }
    
    /* Keyframes for sliding in */
    @keyframes slideIn {
        0% {
            opacity: 0;
            transform: translateX(20px); /* Start slightly to the right */
        }
        100% {
            opacity: 1;
            transform: translateX(0); /* End at original position */
        }
    }
    
    .service-img p {
        font-size: 18px;
        margin-top: 0;
        opacity: 0; /* Start hidden */
        transform: translateX(20px); /* Start from the right */
        animation: slideIn 1s ease forwards 0.6s; /* Add slide-in animation */
    }
    
    /* media queries */
    @media (max-width: 991px){
        html,body{
            width: 100%;
            overflow-x: hidden;
        }
    }
    @media (max-width: 768px) {
        .service-img {
            padding: 0 5%; /* Reduce side padding */
            align-items: center; /* Center-align content */
            text-align: center;
        }
    
        .service-img h1 {
            font-size: 28px;
            margin-left: 0;
        }
    
        .service-img p {
            font-size: 16px;
            margin-left: 0;
        }
        html,body{
            width: 100%;
            overflow-x: hidden;
        }
    }
    
    /* Mobile view adjustments */
    @media (max-width: 480px) {
        .service-img {
            height: 200px; /* Adjust height for smaller screens */
            padding: 0 5%; /* Smaller side padding */
            align-items: center;
            text-align: center; /* Center-align text */
        }
    
        .service-img h1 {
            font-size: 24px;
        }
    
        .service-img p {
            font-size: 14px;
        }
    }
/* How to Reach Sethukarai Section */
/* General Styles */
.htrsethu {
    padding: 20px;
}

/* Center-align the h4 */
.htrsethu h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 3%;
    animation: fadeUp 1.5s ease-in-out;
}

/* Span text in yellow color */
.htrsethu h1 span {
    color: #F3B649;

}

/* Flexbox layout for desktop and tablet */
.bg {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(243, 182, 73, 1);
    width: 85%;
    height: 85%;
    margin-left: 10%;
    padding: 10px;
    overflow: hidden;
}

/* Animation to the iframe (map) */
.how-img {
    flex: 0.9;
    animation: fadeLeft 1.5s ease-in-out;
}

/* Responsive map size */
.how-img iframe {
    width: 350px;
    height: 350px;
    padding: 20px;
    border-radius: 8px;
}

/* Text animation */
.how-txt {
    flex: 2;
    color: #000000;
    margin-left: 1%;
    animation: fadeRight 1.5s ease-in-out;
}

/* List styling */
.how-txt ul {
    list-style-type: disc;
    padding-left: 20px;
    width: fit-content;
}

.how-txt ul li {
    margin-bottom: 10px;
    font-size: 22px;
    text-align: justify;
    width: 550px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bg {
        flex-direction: column;
        width: 95%;
        margin: auto;
        text-align: center;
    }

    .how-img,
    .how-txt {
        flex: 1;
        margin: 0;
    }

    .how-txt {
        margin-bottom: 2%;
    }

    .how-txt ul li {
        font-size: 18px;
        width: 270px;

    }
}

@media (max-width: 480px) {
    .bg {
        padding: 5px;
    }

    .htrsethu h1 {
        font-size: 20px;
    }

    .how-txt ul li {
        font-size: 16px;
    }
}

/* Keyframe Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Travel Section */
.travel {
    text-align: center;
    padding: 20px;
    /* Transparent yellow background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    /* Space between each travel information */
}

/* Heading and Subtitle */
.travel h4 {
    font-size: 28px;
    margin-top: 5%;
}

.travel p {
    font-size: 18px;
    color: #333;
}

/* Flip Container */
.flip-container {
    perspective: 1100px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    /* Space between cards and center */
    position: relative;
    height: 400px;
    /* Fixed height for cards */

}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
    /* 3D flip */
}

/* Front and Back sides */
/* General Styling */
.travel {
    padding: 20px;
    text-align: center;
}

#travelTitle {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Flip Container Styling */
.flip-container {
    perspective: 1000px;
    margin: 20px auto;
    width: 350px;

}

.flipper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;

}

.front,
.back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    padding: 20px;
    text-align: center;

}

/* Front Card */
.front {
    z-index: 2;
    background-color: #F3B649;
}

/* Back Card */
.back {
    transform: rotateY(180deg);
    background-color: rgba(243, 182, 73, 0.9);
}

/* Flip Button Styling */
.flipButton {
    padding: 10px 20px;
    background-color: white;
    color: #F3B649;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flipBackButton {
    padding: 10px 20px;
    background-color: white;
    color: #F3B649;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}


.container-map img,
.flip img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-bottom: 10px;
}


/* Flip the .flipper when .flipped class is applied */
.flip-container.flipped .flipper {
    transform: rotateY(180deg);
    /* 3D flip */
}


/* Responsive Design */
@media (max-width: 2000px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .flip-container {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .flip-container {
        width: 100%;
    }

    .front,
    .back {
        padding: 15px;
    }

    #travelTitle {
        font-size: 20px;
    }

}

/* Local Buses Section */
/* General Styling for the Section */
/* General Styling for LBuses Section */
.LBuses {
    background-color: rgba(243, 182, 73, 1);
    /* Background color */
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

/* h4 Styling */
.LBuses h4 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Styling for Bus Details */
.busdetails {
    background-color: #fff;
    /* White background */
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    width: 60%;
    /* Centers the content */
}

/* h5 Styling */
.LBuses h5 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .LBuses h4 {
        font-size: 20px;
    }

    .busdetails {
        width: 90%;
        /* Adjusts width for smaller screens */
    }

    .LBuses h5 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .LBuses h4 {
        font-size: 18px;
    }

    .busdetails {
        width: 95%;
        /* Almost full-width for mobile */
    }

    .LBuses h5 {
        font-size: 14px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .LBuses {
        padding: 15px;
        text-align: center;
        /* Center-align text on smaller screens */
    }

    .LBuses h4,
    .LBuses h5 {
        margin-left: 0;
        /* Remove left margin for mobile view */
    }
}

@media (max-width: 480px) {
    .LBuses h4 {
        font-size: 20px;
        /* Adjust font size for smaller screens */
    }

    .LBuses h5 {
        font-size: 16px;
        /* Adjust font size for smaller screens */
    }
}



#back {
    padding: 10px 20px;
    background-color: #F3B649;
    border: none;
    color: #fff;
    font-size: 19.2px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    margin-left: 85%;
    margin-top: 3%;
    margin-bottom: 3%;
}



/* Mobile & Tablet View - Align to Left */
@media (max-width: 768px) {
    #back {
        margin-left: 5%;
        /* Align to the left side */
        margin-top: 20px;
        /* Maintain spacing from top */
    }
}






/* Footer Section */
.footer {
    background-color: #fff;
    color: rgba(73, 72, 72, 1);
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    border-top: solid 1px;
    border-color: #ebebeb;
    gap: 20px;
    /* Space between sections */
}

/* Working Hours Section */
.footer .work {
    flex: 1;
    margin-bottom: 20px;
}

.footer .work h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .work p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Logo Section */
.footer .logo-f {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer .logo-f img {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.footer .logo-f p {
    font-size: 1.2rem;
    color: rgba(73, 72, 72, 1);
}

/* Contact Section */
.footer .contact-footer {
    flex: 1;
    margin-bottom: 20px;
}

.footer .contact-footer h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .contact-footer p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: rgba(243, 182, 73, 1);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #FFD700;
}

/* Copyright Section */
.copyr {
    color: #222;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
}

.copyr p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Tablet View */
    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {

    /* Mobile View */
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer div {
        width: 100%;
        /* Full width for sections */
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icons a {
        font-size: 1.3rem;
        /* Slightly smaller on mobile */
    }
}



/* Optional Custom Styling for Fade Animation */
/* Fade Left */
[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-50px);
    /* Start from the left */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
    /* Move to original position */
}

/* Fade Right */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(50px);
    /* Start from the right */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
    /* Move to original position */
}

/* Fade Up */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    /* Start from below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
    /* Move to original position */
}

/* Fade Down */
[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-50px);
    /* Start from above */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
    /* Move to original position */
}

#scrollTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #F3B649;
    color: white;
    font-size: 24px;
    border: none;
    outline: none;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

#scrollTopButton:hover {
    background-color: #e8a93d;
    /* Darker shade on hover */
}