/**
 * Enhanced Service Cards - Modern & Professional
 */

/* Service Cards Section */
.service-cards-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-cards-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.service-cards-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Modern Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 30px rgba(59, 130, 246, 0.2);
    background: white;
    border-color: rgba(59, 130, 246, 0.2);
}

/* Service Card Icon Container */
.service-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
}

.service-card-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card-icon::before {
    opacity: 1;
}

.service-card-icon i {
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-card-icon i {
    transform: scale(1.15) rotate(5deg);
}

/* Color Variants for Service Icons */
.service-card-icon.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.service-card-icon.icon-blue i {
    color: #3b82f6;
}

.service-card-icon.icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.service-card-icon.icon-green i {
    color: #10b981;
}

.service-card-icon.icon-yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.service-card-icon.icon-yellow i {
    color: #f59e0b;
}

.service-card-icon.icon-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.service-card-icon.icon-red i {
    color: #ef4444;
}

.service-card-icon.icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
}

.service-card-icon.icon-purple i {
    color: #8b5cf6;
}

.service-card-icon.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
}

.service-card-icon.icon-cyan i {
    color: #06b6d4;
}

/* Service Card Title */
.service-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.service-card:hover h5 {
    color: #3b82f6;
}

/* Service Card Text */
.service-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Stretched Link for Cards */
.service-card .stretched-link {
    position: static;
}

.service-card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    .service-card-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .service-card-icon i {
        font-size: 2rem;
    }

    .service-card h5 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .service-cards-section {
        padding: 2rem 0;
    }

    .service-card {
        min-height: 110px;
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
    }

    .service-card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }

    .service-card-icon i {
        font-size: 1.25rem;
    }

    .service-card h5 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .service-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        display: none !important;
        /* Hide description on very small screens to save space if needed, or keep it minimal */
    }
}

/* Animation on Scroll */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideInUp 0.6s ease-out;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card-icon.icon-teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.05));
}

.service-card-icon.icon-teal i {
    color: #14b8a6;
}