.services-section {
    padding: 50px 20px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border: 2px solid rgba(151, 15, 17, 0.2);
}

.service-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    transition: all 0.4s ease;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card:hover .service-image-container {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%);
}

.service-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-buttons {
    padding: 0 25px 25px;
    margin: auto 0 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.service-card:hover .service-buttons {
    transform: translateY(-5px);
}

.service-action-btn {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(151, 15, 17, 0.4);
}

.service-action-btn:hover {
    background: transparent;
    color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(151, 15, 17, 0.6);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}