/* Services Grid Section v2 */
.services-grid-area {
    padding: 100px 0;
    background-color: #eaf6fa; /* Light blue background */
    background-image: url('../img/pattern.png'); /* Optional: subtle pattern */
    background-repeat: repeat;
}

.services-grid-area .section-tittle-alt h5 {
    color: #5faec7; /* Brand color */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.services-grid-area .section-tittle-alt h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}

.services-grid-area .gallery-info.service-alt {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: #6c757d;
}

.service-card-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, align-items 0.4s ease;
}

.service-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    align-items: flex-end;
}

.service-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    transition: background 0.3s ease;
}

.service-card-v2:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.service-card-content {
    width: 100%;
    padding: 30px;
    text-align: center;
    transition: text-align 0.4s ease;
    z-index: 1;
}

.service-card-v2:hover .service-card-content {
    text-align: left;
}

.service-card-content h3,
.service-card-content p {
    color: #fcfcfc;
}

.service-card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.service-card-content p,
.view-more-link {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.service-card-v2:hover .service-card-content p,
.service-card-v2:hover .view-more-link {
    opacity: 1;
    max-height: 100px; /* Allow space for content to appear */
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: lighter;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: rgba(255, 166, 0);
}

.view-more-link i {
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 166, 0);
    border-radius: 50%;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .service-card-v2 {
        align-items: flex-end; /* Keep content at bottom on mobile */
    }
    .service-card-v2 .service-card-content {
        text-align: left;
    }
    .service-card-v2 .service-card-content p,
    .service-card-v2 .view-more-link {
        opacity: 1;
        max-height: 100px;
    }
}
