/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    margin: 0;
    padding: 0;
    color: #333333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

ul {
    list-style: none;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Fade Section */
.fade-section {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    opacity: 0;
    transform: translateY(50px);
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Section */
header {
    background: transparent;
    color: #4B0082;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

.logo {
    height: 60px;
    /* Adjust this as needed to keep the header height consistent */
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    height: 150px;
    /* Ensure the logo does not exceed 150px */
}

.nav-links {
    display: flex;
    gap: 1em;
}

.nav-links li a {
    color: #4B0082;
    text-decoration: none;
}

.nav-links li a:hover {
    color: #FFD700;
    /* Change color on hover to gold */
}

.nav-toggle {
    display: none;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-bottom: 4em;
}

#hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.btn {
    background: #08b911;
    color: #4B0082;
    padding: 0.75em 1.5em;
    border-radius: 0.25em;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background: #079907;
    transform: scale(1.1);
}

/* About Us Section */
/* General Styles for About Us Section */
#about {
    background: #F5F5F5;
    padding: 4em 1em;
    text-align: center;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* Adding a semi-transparent overlay for better text readability */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* Adjust opacity as needed */
    z-index: 1;
}

/* Styling for the section heading */
#about h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 0.5em;
    z-index: 2;
    position: relative;
    animation: fadeIn 2s ease-out;
}

/* Styling for the paragraph background image */
#about .content-wrapper {
    position: relative;
    z-index: 2;
    width: 100vw;
    /* Extend to the full viewport width */
    margin: 0 calc(-50vw + 50%);
    /* Center align and extend to edges */
    box-sizing: border-box;
    padding: 2em;
    background: url('https://img.freepik.com/free-photo/aerial-view-business-team_53876-124515.jpg?t=st=1721976110~exp=1721979710~hmac=722924cf1df579de28c5be01fdcd4310fb4de3d6dd2b97c23f80108f2a870c7a&w=900') no-repeat center center/cover;
}

/* Adding a semi-transparent overlay for the background image */
#about .content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Adjust opacity and color as needed */
    z-index: 1;
}

/* Styling for the paragraph within the content wrapper */
#about .content-wrapper p {
    padding: 2em;
    color: #ffffff;
    margin: 0;
    /* Remove default margin */
    text-align: center;
    /* Center align text */
    border-radius: 8px;
    /* Optional: Rounded corners */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    /* Optional: Add shadow for better separation */
    position: relative;
    z-index: 2;
    /* Ensure it is above the overlay */
    max-width: 800px;
    /* Optional: Limit the maximum width */
    margin: 0 auto;
    /* Center align the content */
    font-size: large;
}

/* Our Services Section */
#services {
    padding: 2rem;
    background-color: #f9f9f9;
}

#services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.service-section {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.service-image {
    flex: 1;
    text-align: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-content {
    flex: 1;
    padding: 1rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.service-details {
    margin-top: 1rem;
}

.service-details ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: center;
}

.whatsapp-button img {
    width: 24px;
    height: 24px;
}


/* Our Partners Section */
#partners {
    padding: 4em 1em;
    text-align: center;
}

.partners-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

.partners-container img {
    width: 150px;
    height: auto;
}

/* Testimonials Section */
#testimonials {
    padding: 4em 1em;
    text-align: center;
    position: relative;
}

.testimonial-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    overflow: hidden;
    position: relative;
}

.testimonial {
    flex: 0 0 33%;
    max-width: 33%;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.8);
    text-align: center;
}

.testimonial.active-testimonial {
    opacity: 1;
    transform: scale(1);
}

.testimonial p {
    font-style: italic;
    color: #555;
}

.testimonial h4 {
    margin-top: 1em;
    color: #4B0082;
}

/* Contact Us Section */
#contact {
    padding: 4em 1em;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    margin-right: 1em;
}

.contact-details h4 {
    margin-bottom: 0.5em;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 0.25em;
    text-align: center;
    margin: 1em 0;
    transition: background-color 0.3s, transform 0.3s;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    flex: 1;
    width: 50%;
}

iframe {
    width: 100%;
    border: none;
}

/* Footer Section */
footer {
    background: #4B0082;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 1em;
}

footer .footer-logo {
    max-width: 150px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-carousel {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .map-container {
        width: 100%;
        margin-top: 2em;
    }

    .testimonial {
        flex: 1;
        max-width: 100%;
        opacity: 1;
        transform: scale(1);
        margin: 0 0 1em;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-section {
        flex-direction: column;
    }

    .service-section.reverse {
        flex-direction: column;
    }

    .service-content,
    .service-image {
        width: 100%;
        padding: 0.5em;
    }

    .service-section .service-content {
        order: 2;
    }

    .service-section.reverse .service-content {
        order: 2;
    }

    .service-section .service-image {
        order: 1;
    }

    .service-section.reverse .service-image {
        order: 1;
    }

    #map {
        display: none;
        /* Hide the map on smaller screens */
    }

    #hero {
        background: url('responsive-hero-image.jpg') no-repeat center center/cover;
    }

    #about .content-wrapper {
        background: url('responsive-about-image.jpg') no-repeat center center/cover;
    }

}

@media (max-width: 480px) {
    #services h2 {
        font-size: 2em;
    }

    .service-content {
        padding: 0.5em;
    }

    .service-image img {
        width: 100%;
    }

    #map {
        display: none;
        /* Hide the map on smaller screens */
    }

    #hero {
        background: url('responsive-hero-image.jpg') no-repeat center center/cover;
    }

    #about .content-wrapper {
        background: url('AboutUsMobile.jpg') no-repeat center center/cover;
    }

    #about .content-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.658);
        /* Adjust opacity and color as needed */
        z-index: 1;
    }
}