/* Modern Home Services Section */
.services-home-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-home-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    cursor: pointer;
    opacity: 0;
    will-change: transform, opacity;
    border: 1px solid rgba(0,0,0,0.02);
}

.service-home-card:nth-child(odd) {
    transform: translateY(30px); /* Subtler entrance from bottom */
}

.service-home-card:nth-child(even) {
    transform: translateY(30px);
}

.service-home-card.animate-show {
    opacity: 1;
    transform: translateY(0);
}

.service-home-card.animate-show:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service-home-img-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.service-home-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.service-home-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

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

.service-home-content {
    padding: 30px;
    text-align: center;
    position: relative;
}

.service-home-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -62px auto 20px;
    position: relative;
    font-size: 1.6rem;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
    border: 4px solid var(--white);
    transition: transform 0.4s ease;
}

.service-home-card:hover .service-home-icon {
    transform: rotateY(180deg);
}

.service-home-card:hover .service-home-icon i {
    transform: rotateY(-180deg); /* Counter rotate icon */
}

.service-home-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.service-home-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 992px) {
    .services-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .services-home-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-home-img-container {
        height: 220px;
    }

    .service-home-content {
        padding: 25px 20px;
    }

    .service-home-icon {
        width: 56px;
        height: 56px;
        margin: -53px auto 15px;
        font-size: 1.3rem;
    }

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