@media (max-width: 768px) {
    section {
        padding: 20px; /* Less padding on smaller screens */
    }
    
    .card-container {
        flex-direction: column; /* Stack cards vertically */
        align-items: center; /* Center cards */
    }
    
    .review-card {
        width: 90%; /* Adjust card width */
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* Smaller font size on mobile */
    }

    .sub-header h2, .sub-header p {
        font-size: 16px; /* Adjust sizes for subheaders */
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #505050; /* Updated header background */
    color: white;
    padding: 20px;
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space between logo and nav */
}

.header-content {
    display: flex; /* Use flexbox for the content */
    align-items: center; /* Center logo and title vertically */
}

.logo {
    max-width: 150px; /* Adjust the maximum width of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 15px; /* Space between logo and title */
}

nav ul {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0; /* Ensure no margin for nav */
    display: flex; /* Flex display for inline links */
}
nav ul li {
    margin: 0 15px; /* Space between links */
}

nav a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline */
}

nav a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* If you want to highlight the Contact link */
nav a.contact {
    font-weight: bold; /* Make it stand out */
}


main {
    display: flex;
    flex-direction: column;
}
section {
    max-width: 100%; /* Ensure sections don’t exceed screen width */
    box-sizing: border-box; /* Include padding in width calculations */
}

section {
    padding: 50px;
    height: auto; /* Full viewport height for scrolling effect */
    display: flex;
    flex-direction: column; /* Allow column layout */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
}
.sub-header {
    background: #B0C299; /* Background color for the subtitle header */
    color: white; /* Text color */
    padding: 20px; /* Space around text */
    text-align: center; /* Center text */
}

.sub-header h2 {
    margin: 0; /* Remove default margin */
}

.sub-header p {
    margin: 5px 0 0; /* Adjust margin for paragraph */
}

#section1 {
    background: #9CB380; /* Fixed background color */
}

#section2 {
    background: #B0C299; /* Corrected background color */
}
.front {
    position: relative; /* Position relative to enable absolute positioning of children */
    width: 100%;
    height: 100%;
}

.front h2 {
    position: absolute; /* Position the header absolutely */
    top: 10px; /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    color: white; /* Change to your preferred color */
    z-index: 2; /* Ensure it appears above the image */
    background-color: rgba(0, 0, 0, 0.6); /* Optional: semi-transparent background */
    padding: 5px; /* Add some padding */
}

.card-container {
    flex-wrap: wrap; /* Ensure items wrap */
    justify-content: center; /* Center cards in the container */
}



.flip-container {
    perspective: 1000px;
    width: 300px; /* Card width */
    height: 200px; /* Card height */
    margin: 10px; /* Space between cards */
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back {
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: rotateY(180deg);
    padding: 20px;
}

#section3 {
    background: #9CB380;
}

#section4 {
    background: #C3D2B0; /* Corrected background for the fourth section */
}

.gallery {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory;
    padding: 10px 0; /* Add padding */
}

.gallery img {
    width: 80%; /* Use relative width */
    max-width: 300px; /* Cap max width for larger screens */
}


.gallery img:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

footer {
    background: #505050; /* Footer background color */
    padding: 20px; /* Padding for overall content */
}

.footer-content {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space out content */
}

.footer-logo {
    max-width: 100px; /* Adjust the maximum width of the footer logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between logo and text */
}

.footer-text {
    color: white; /* Text color */
    text-align: center; /* Align text to the left */
    flex-grow: 1; /* Allow text to take remaining space */
}

footer nav ul {
    list-style: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 10px 0 0; /* Margin above the links */
    display: flex; /* Display links inline */
}

footer nav ul li {
    margin: 0 15px; /* Space between links */
}

footer nav a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline */
}

footer nav a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Stack items on small screens */
        align-items: flex-start; /* Align items to the left */
    }

    .footer-logo {
        margin-bottom: 10px; /* Space below the logo */
    }

    footer nav ul {
        flex-direction: column; /* Stack links on small screens */
    }
    
    footer nav ul li {
        margin: 5px 0; /* Space between links vertically */
    }
}
.card-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.review-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    width: 30%; /* Adjust width as needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-card h3 {
    margin-top: 0;
}
.logo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between logos */
    padding: 20px;
}

.logo-gallery img {
    max-width: 150px; /* Adjust based on your design */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #ddd; /* Optional: Add border */
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
}#contact {
    background-color: #9CB380; /* Change this to your desired theme color */
    color: white; /* Change text color if necessary */
    padding: 40px; /* Add some padding for spacing */
    text-align: center; /* Center align text */
}

