/* ================================
   Services Section Styles
================================ */

/* Services Section Container */
.services-section {
    background: var(--bg-color); /* Background color from root variable */
    color: var(--text-color); /* Text color from root variable */
    padding: 60px 0; /* Top and bottom padding */
}

.services-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--main-color); /* Highlight color for the heading */
    position: relative;
}

.services-section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--main-color);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Individual Service Item */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

/* Service Image */
.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    max-height: 500px;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Service Content */
.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--main-color);
}

.service-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ================================
   Contact Form Section Styles
=============================== */

/* Contact Section */
.contact-section {
    background: var(--bg-color);
    color: var(--bg-color); /* Text color */
    padding: 60px 0; /* Top and bottom padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure the section takes full viewport height */
}

/* Container to Center the Form */
.contact-section .container {
    width: 100%;
    max-width: 700px; /* Adjusted max-width for uniformity */
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form Styling */
.contact-form {
    background: #595959;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--main-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bg-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(41, 253, 83, 0.5); /* Green glow on focus */
    outline: none;
}

.contact-form button {
    width: 100%;
    padding: 14px 0;
    background-color: var(--main-color);
    color: var(--text-color);
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background-color: #28c746;
}

/* Responsive Styles */

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
        min-height: auto; /* Allow section to adjust height */
    }

    .contact-form {
        padding: 30px;
    }

    .contact-form h2 {
        font-size: 1.8rem;
    }

    .contact-form button {
        font-size: 1rem;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 20px;
    }

    .contact-form h2 {
        font-size: 1.6rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }

    .contact-form button {
        font-size: 0.95rem;
        padding: 10px 0;
    }
}


/* Responsive Styles */

/* Tablet and Medium Screens */
@media (max-width: 992px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-item.reverse {
        flex-direction: column;
    }

    .service-image, .service-content {
        max-width: 100%;
    }

    .service-content h3 {
        font-size: 1.8rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .services-section h2 {
        margin-bottom: 40px;
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.6rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }

    .services-section h2 {
        font-size: 1.8rem;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-content p {
        font-size: 0.85rem;
    }

    .service-item {
        margin-bottom: 40px;
    }
}
