/* Enhanced Service Section Styling */
.service-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-section h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
}

.service-section h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.service-item {
    display: flex;
    margin-bottom: 40px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.image-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-item:hover .image-container img {
    transform: scale(1.08);
}

.text-container {
    flex: 2;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-container h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.text-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 1.5px;
}

.text-container p {
    margin: 0;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

/* Media Queries - Enhanced */
@media (max-width: 992px) {
    .service-item {
        flex-direction: column;
    }

    .image-container {
        height: 280px;
    }
    
    .service-section h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 40px 15px;
    }
    
    .service-item {
        margin-bottom: 30px;
    }
    
    .image-container {
        height: 220px;
    }

    .text-container {
        padding: 25px 20px;
    }
    
    .text-container h2 {
        font-size: 1.4rem;
    }
    
    .service-section h1 {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
}

/* Animation for service items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.service-item:nth-child(1) {
    animation-delay: 0.2s;
}

.service-item:nth-child(2) {
    animation-delay: 0.4s;
}

.service-item:nth-child(3) {
    animation-delay: 0.6s;
}