/* Base Styles (applied to all screen sizes) */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f9f4; /* Fallback color */
    color: #333;
    line-height: 1.6;
    background-image: url('background.jpg');
    background-size: cover; /* Makes the image cover the entire background */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    background-position: center; /* Centers the image */
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 5px 0 0;
    font-size: 1.1em;
}

nav {
    background-color: #28a745;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 5px 15px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #218838;
    color: #e0f7fa;
}

nav a.active {
    background-color: #007bff;
    color: white;
}

.secondary-nav {
    background-color: #0056b3;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-nav a {
    color: white;
    text-decoration: none;
    margin: 5px 15px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.secondary-nav a:hover {
    background-color: #003087;
}

/* Service Page Header */
.service-page-header {
    background: linear-gradient(to right, #007bff, #28a745);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.service-page-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px;
}

.service-page-header p {
    font-size: 1.2em;
    margin: 0;
}

/* Service Details Section */
.service-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff; /* Added background for readability over potential background image */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.service-details h3 {
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

.service-details p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.service-details ul {
    list-style: none;
    padding: 0;
}

.service-details ul li {
    font-size: 1.1em;
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
}

.service-details ul li:before {
    content: '✔';
    color: #28a745;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Portfolio Section */
.portfolio {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background-color: white; /* Added background for readability */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    padding: 10px; /* Added padding for content inside */
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 5px; /* Slight rounding for image */
    margin-bottom: 10px; /* Space below image */
}

.portfolio-item p {
    margin: 0 10px 10px; /* Adjusted margins */
    color: #555;
    font-size: 1em;
}

/* Styles for portfolio item headings */
.portfolio-item h3 {
    font-size: 1.8em;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
    margin: 0 10px 10px; /* Adjusted margins */
    color: #333; /* Ensure heading color is visible */
}


/* Portfolio Section (Carousel) */
.image-gallery {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8); /* Slight background for visibility */
    padding: 10px;
    margin-bottom: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.slide.active {
    display: flex;
}

.slide img {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px; /* Ensure controls don't touch edges */
    box-sizing: border-box;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #28a745;
}

/* Testimonials Section */
.testimonial {
    background-color: #f8f9fa; /* Solid background */
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p:first-child {
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.testimonial p:last-child {
    font-weight: bold;
    color: #007bff;
    font-size: 1em;
}

/* Contact Us Section */
.contact-us {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff; /* Solid background */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-us h2 {
    text-align: center;
    color: #28a745;
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-us p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.contact-us form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-us input,
.contact-us textarea,
.contact-us button {
    margin: 10px 0;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-us input:focus,
.contact-us textarea:focus {
    border-color: #28a745;
    outline: none;
}

.contact-us textarea {
    resize: vertical;
}

.contact-us button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.contact-us button:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* Existing Styles for Other Pages (Adjusted for background visibility) */
.hero {
    text-align: center;
    padding: 50px 20px;
    /* background-image: url('hero-image.jpg'); - Removed if body bg is used */
    /* background-size: cover; */
    color: #fff; /* Changed to white for better contrast on potential dark bg */
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    /* background-position: center; */
    border-radius: 8px; /* Optional rounding */
    margin: 20px; /* Add some margin */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Text shadow for readability */
}

.hero p {
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Text shadow for readability */
}

.services {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white; /* Solid background */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    margin: 10px;
    color: #007bff;
    font-size: 1.2em;
}

.service-card p {
    margin: 10px;
    color: #555;
    font-size: 1em;
}

.contact {
    padding: 20px;
    background-color: #fff; /* Solid background */
    margin: 20px; /* Add margin */
    border-radius: 8px; /* Optional rounding */
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #28a745;
    font-size: 1.8em;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-info div {
    background-color: #f8f9fa; /* Light background for info boxes */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info div h3 {
    margin-bottom: 10px;
    color: #007bff;
    font-size: 1.2em;
}

.contact-info div p {
    font-size: 1em;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea,
.contact button,
.contact select {
    margin: 10px 0;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact textarea {
    resize: vertical;
}

.contact button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.contact button:hover {
    background-color: #218838;
}

.hybrid-option {
    padding: 20px;
    background-color: #e9ecef; /* Solid background */
    border-radius: 10px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hybrid-option h2 {
    margin-bottom: 10px;
    color: #28a745;
    font-size: 1.5em;
}

.hybrid-option p {
    margin-bottom: 10px;
    color: #555;
    font-size: 1em;
}

.hybrid-option ul {
    list-style-position: inside;
    margin-bottom: 15px;
    font-size: 1em;
    text-align: left; /* Align list items left */
    display: inline-block; /* Center the block */
}

.hybrid-option button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hybrid-option button:hover {
    background-color: #0056b3;
}

/* Styles for the Request a Quote button */
.quote-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    display: block; /* Make it block level */
    width: fit-content; /* Size to content */
    margin: 20px auto; /* Center button */
}

.quote-button:hover {
    background-color: #218838;
}

/* Media Queries for Responsiveness */

/* For smaller screens (phones) */
@media screen and (max-width: 768px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 0.9em;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 8px 0;
        font-size: 1.1em;
    }

    .secondary-nav {
        flex-direction: column;
        align-items: center;
    }

    .secondary-nav a {
        margin: 8px 0;
        font-size: 1.1em;
    }

    .service-page-header {
        padding: 30px 15px;
    }

    .service-page-header h2 {
        font-size: 2em;
    }

    .service-page-header p {
        font-size: 1em;
    }

    .service-details {
        padding: 15px;
        margin: 15px; /* Adjust margin */
    }

    .service-details h3 {
        font-size: 1.5em;
    }

    .portfolio {
        grid-template-columns: 1fr;
        padding: 15px; /* Add padding */
    }

    .portfolio-item img {
        height: auto;
        max-height: 250px;
    }

    .slide img {
        height: 250px;
        max-width: 100%;
    }

    .contact-us {
        padding: 15px;
        margin: 15px; /* Adjust margin */
    }

    .contact-us h2 {
        font-size: 1.8em;
    }

    .contact-us form {
        max-width: 100%;
    }

    .hero {
        padding: 30px 15px;
        margin: 15px; /* Adjust margin */
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .services {
        grid-template-columns: 1fr;
        padding: 15px; /* Add padding */
    }

    .service-card img {
        height: auto;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact {
        margin: 15px; /* Adjust margin */
    }

    .contact h2 {
        font-size: 1.5em;
    }

    .contact-info div h3 {
        font-size: 1em;
    }

    .hybrid-option {
      margin: 15px; /* Adjust margin */
    }
}

/* For tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    header h1 {
        font-size: 2.5em;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-page-header h2 {
        font-size: 2.2em;
    }

    .slide img {
        height: 350px;
        max-width: 100%;
    }

     .contact-info {
        grid-template-columns: repeat(2, 1fr); /* Adjust contact info for tablets */
    }
}