/*=============== HERO DETAIL SECTION ===============*/
.hero-detail {
    background: linear-gradient(45deg, #68B92E, #0056b3, #ff6600);
    background-size: 600% 600%;
    animation: gradientAnimation 10s ease infinite;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%; /* Restricts text width */
    margin: 0 auto; /* Centers text horizontally */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
}

/*=============== SERVICE DETAILS SECTION ===============*/
.service-details {
    padding: 4rem 1.5rem;
    background-color: #fff;
    color: #333;
}

.section-title {
    font-size: 2rem;
    color: #68B92E;
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-size: 1.5rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
}

.service-list i {
    color: #68B92E;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.service-details h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #333;
}

.service-details p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/*=============== CONTACT CALL-TO-ACTION SECTION ===============*/
.contact-cta {
    background-color: #68B92E; /* Green background */
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #333; /* Dark icon color for contrast */
}

.cta-button {
    background-color: #fff; /* White background for contrast */
    color: #68B92E; /* Green text color */
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #e8e8e8;
    color: #68B92E;
}

/*=============== RESPONSIVE DESIGN ===============*/
@media (max-width: 768px) {
    .hero-detail {
        height: 30vh;
    }

    .hero-content {
        max-width: 90%; /* Further restricts text width on smaller screens */
        padding: 0 1rem; /* Adds padding to prevent text from touching the screen edges */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-details {
        padding: 2rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        margin-bottom: 1rem;
    }
}
