/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* General Styles */
body {
    color: #000;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    background-color: #1b5e20;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    width: 120px;
    height: auto;
}

.logo-link {
    margin-right: 15px;
}

.company-name {
    text-transform: uppercase;
    font-size: 1.5em;
    color: #fff;
    margin-left: 10px;
}

/* Navigation Buttons */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.header nav ul li .nav-button {
    color: white;
    background-color: #388e3c;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 5px;
}

.header nav ul li .nav-button:hover {
    background-color: #2e7d32;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Slideshow */
.slideshow {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.slideshow-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    border: 2px solid #1b5e20;
    border-radius: 10px;
    overflow: hidden;
    background-color: #d7ffd9;
    padding: 20px;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: #d7ffd9;
    text-align: center;
}

.service-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    width: 45%;
    background: #fff;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #000;
    text-align: left;
    border: 2px solid #1b5e20;
}

/* Customer Reviews Section */
.reviews {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.reviews h2 {
    font-size: 2em;
    color: #1b5e20;
    margin-bottom: 20px;
}

.review-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
    position: relative;
    border: 1px solid #ddd;
}

.review-card p {
    font-size: 1em;
    line-height: 1.5;
    color: #555;
}

.review-card .reviewer {
    font-weight: bold;
    margin-top: 10px;
    color: #1b5e20;
}

.review-card .rating {
    color: #ffc107;
    font-size: 1.2em;
    margin: 5px 0;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.blog-section h2 {
    font-size: 2em;
    color: #1b5e20;
    margin-bottom: 20px;
}

#search-bar {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.blog-post {
    background-color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.hidden {
    display: none;
}

.like-button {
    background: none;
    border: none;
    color: #388e3c;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.like-button:hover {
    color: #2e7d32;
}

#load-more {
    padding: 10px 20px;
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 20px;
}

#load-more:hover {
    background-color: #2e7d32;
}

/* Contact Form */
.contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #388e3c;
    transition: outline 0.3s ease;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.contact-form button:hover {
    background-color: #2e7d32;
}

/* Feedback Message Styling */
.form-feedback {
    margin-top: 10px;
    font-size: 0.9em;
    color: #1b5e20;
    display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1b5e20;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
    transition: opacity 0.3s;
}

.scroll-to-top:hover {
    background-color: #388e3c;
}

/* Footer Styling */
.footer {
    background-color: #1b5e20;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header-content, .service-items, .review-cards {
        flex-direction: column;
        align-items: center;
    }
    .service-item, .review-card, .blog-post {
        width: 100%;
        margin: 10px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
