/* Modern Services Section Styles */
.services-section-modern {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Add subtle pattern overlay */
.services-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(0,0,0,0.01) 12%, transparent 12.5%, transparent 87%, rgba(0,0,0,0.01) 87.5%, rgba(0,0,0,0.01)),
        linear-gradient(150deg, rgba(0,0,0,0.01) 12%, transparent 12.5%, transparent 87%, rgba(0,0,0,0.01) 87.5%, rgba(0,0,0,0.01));
    background-size: 80px 140px;
    pointer-events: none;
    z-index: 0;
}

.services-section-modern > * {
    position: relative;
    z-index: 1;
}

.service-card-modern {
    background: white;
    border-radius: 15px;
    padding: 35px 30px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #242424 0%, #555 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #242424 0%, #444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card-modern:hover .service-icon {
    background: linear-gradient(135deg, #000 0%, #242424 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 60px;
}

.service-description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 0;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.service-list li {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.service-list li i {
    color: #242424;
    font-size: 16px;
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-card-modern h3 {
        min-height: auto;
        font-size: 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .service-card-modern {
        padding: 30px 25px;
        margin-bottom: 20px;
    }

    .service-card-modern h3 {
        font-size: 19px;
    }

    .service-description {
        font-size: 14px;
    }

    .service-list li {
        font-size: 13px;
    }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern {
    animation: fadeInUp 0.6s ease-out;
}

/* Staggered animation delay for cards */
.col-lg-4:nth-child(1) .service-card-modern { animation-delay: 0.1s; }
.col-lg-4:nth-child(2) .service-card-modern { animation-delay: 0.2s; }
.col-lg-4:nth-child(3) .service-card-modern { animation-delay: 0.3s; }
.col-lg-4:nth-child(4) .service-card-modern { animation-delay: 0.4s; }
.col-lg-4:nth-child(5) .service-card-modern { animation-delay: 0.5s; }
.col-lg-4:nth-child(6) .service-card-modern { animation-delay: 0.6s; }
.col-lg-4:nth-child(7) .service-card-modern { animation-delay: 0.7s; }
.col-lg-4:nth-child(8) .service-card-modern { animation-delay: 0.8s; }
.col-lg-4:nth-child(9) .service-card-modern { animation-delay: 0.9s; }

/* Alternative color schemes for variety (optional) */
.service-card-modern:nth-child(3n+1) .service-icon {
    background: linear-gradient(135deg, #242424 0%, #444 100%);
}

.service-card-modern:nth-child(3n+2) .service-icon {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.service-card-modern:nth-child(3n+3) .service-icon {
    background: linear-gradient(135deg, #000 0%, #2a2a2a 100%);
}
