/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    margin-top: 40px; /* Space for top strip */
    color: #333;
    background-color: #f4f4f4;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
}

.phone-number {
    font-family: 'Arial', sans-serif;
    font-size: 1.2em;
    color: #4CAF50;
    text-align: center;
    margin-top: 5px;
}

.phone-number a {
    color: #FF9800;
    text-decoration: none;
}

.phone-number a:hover {
    text-decoration: underline;
}

.company-logo {
    max-width: 50px; /* Max width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Block element */
    margin: 0 auto 5px; /* Reduced space below */
}

.company-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 25px;
    color: #4CAF50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 2px 0; /* Adjust margins */
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #4CAF50;
    transition: transform 0.3s;
}

.company-title:hover {
    transform: scale(1.1);
}

/* Section title styles */
.section-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.5rem; /* Relative units */
    color: #4CAF50;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: #FF9800;
    margin: 10px auto;
    border-radius: 5px;
}

/* Navigation styles */
nav {
    position: relative;
    display: flex; /* Flex container */
    justify-content: space-between; /* Space between items */
    align-items: center; /* Center items */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #4CAF50;
    transition: color 0.3s;
}

nav a:hover {
    color: #333;
}

.menu-toggle {
    display: none; 
    font-size: 25px;
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
}

.menu-toggle .menu-text {
    margin-right: 5px;
}

/* Hero section styles */
.hero {
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-family: 'Playfair Display', sans-serif;
    font-size: 1.5rem; /* Relative units */
    color: #44ab52;
    text-align: center;
    font-weight: bold;
    text-transform: none;
}


/* Call to action button styles */
.cta-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #45a049;
}

.top-slider-contact-button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    border: none; /* No border */
    padding: 5px 10px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
}

.top-slider-contact-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Service grid styles */
.service-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.service {
    flex: 1 1 calc(25% - 20px);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.service:hover {
    transform: translateY(-5px);
}

.service i {
    font-size: 40px;
    color: #4CAF50;
}

/* Testimonial slider styles */
.testimonial-slider {
    position: relative;
    padding: 40px 0;
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease; /* Fade-in effect */
    padding: 20px;
    border-radius: 8px;
    background: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial.active {
    display: block;
    opacity: 1; /* Fade-in effect */
}


.slider-button {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4CAF50;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-content input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.modal-content button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #45a049;
}

/* Footer styles */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background: #333;
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}

footer .newsletter form {
    display: flex;
    gap: 10px;
}

footer .newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

footer .newsletter button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

footer .newsletter button:hover {
    background-color: #45a049;
}

/* Required field styles */
.required {
    color: red;
}

/* Form group styles */
.form-group {
    display: flex;
    justify-content: center; /* Center button */
    margin-top: 20px; /* Space above button */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Top slider styles */
.top-slider {
    background-color: black; 
    color: rgb(31, 133, 6); 
    height: 60px; 
    display: flex; 
    align-items: center; 
    padding: 0 20px; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    overflow: hidden; /* Hide overflow */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Space between text and button */
    font-weight: bold; /* Bold text */
}

.top-word-slider {
    display: flex; 
    align-items: center; 
    position: relative; 
    animation: scroll 20s linear infinite; /* Adjust duration */
    padding-right: 50px; /* Space before button */
    flex: 1; /* Fill available space */
}

.top-word-slide {
    white-space: nowrap; /* Prevent word wrapping */
    margin-right: 50px; /* Space between words */
}

@keyframes scroll {
    0% {
        transform: translateX(100%); /* Start off-screen right */
    }
    100% {
        transform: translateX(-100%); /* Move past left edge */
    }
}

/* Slider button focus styles */
.slider-button:focus,
.cta-button:focus,
.modal-content button:focus {
    outline: 2px solid #4CAF50;
}

/* Additional styles for responsiveness */
@media (max-width: 768px) {
    .service {
        flex: 1 1 calc(50% - 20px);
    }

    .top-slider {
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Allow height to adjust */
    }
    nav ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9); /* Optional: style for the mobile menu */
        position: absolute;
        top: 100%; /* Position below the toggle */
        left: 0;
        right: 0;
        padding: 0;
    }
    
    nav ul.show {
        display: flex; /* Show when toggled */
        z-index: 20; /* Ensure it appears above other elements */
    }
    
    .menu-toggle {
        display: block; /* Show toggle button on mobile */
     }
}
