.services {
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.service-icon {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-right: 15px;
    background-color: rgba(233, 52, 50, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    background-color: var(--primary-red);
    color: white;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary-red);
}

.service-description {
    margin: 15px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 5px;
    transition: transform 0.2s ease;
}

.service-feature:hover {
    transform: translateX(5px);
}

.service-feature i {
    color: hsla(128, 89%, 43%, 0.753);
    margin-right: 10px;
    font-size: 1rem;
}

.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card .btn:hover::before {
    left: 100%;
}

.service-img[src=""], 
.service-img:not([src]) {
    position: relative;
}

.service-img[src=""]:after, 
.service-img:not([src]):after {
    content: 'Imagem não disponível';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
    }
    
    .service-icon {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .service-icon i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .service-description {
        text-align: center;
    }
    
    .service-features {
        width: fit-content;
        margin: 1rem auto;
    }
    
    .service-feature {
        justify-content: flex-start;
        text-align: left;
    }
    
    .service-btn-container {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .service-card .btn {
        margin: 0 auto;
        display: block;
        min-width: 200px;
        align-self: center;
    }
}
