* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.services-section {
    font-family: 'Open Sans', sans-serif;
   
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    height: 0;
    padding-bottom: 75%; /* Maintain aspect ratio */
    background-color: white;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.service-card:hover .service-img {
    filter: brightness(0.7);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.service-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.service-card:hover .service-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-overlay {
    opacity: 0;
    transform: translateY(100%);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.1s;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.5;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.2s;
}

.service-card:hover .service-title,
.service-card:hover .service-description {
    transform: translateY(0);
    opacity: 1;
}

/* Adjustments for smaller screens */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding-bottom: 70%;
    }
}

/* View all button style */
.view-all {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.view-all-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #ff0000 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    color: #ff0000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease, background-position 0.4s ease, color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none; /* Optional: Remove border if not needed */
}

.view-all-btn:hover {
    background-position: left bottom;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.view-all-btn .arrow-icon {
    margin-left: 8px;
    width: 20px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .arrow-icon {
    transform: translateX(5px) scale(1.2);
}

