/* ===== MELHORIAS PARA SERVICE CARDS DA PÁGINA INDEX ===== */

/* Service Cards Aprimorados */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 167, 217, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0DA7D9, #E5D70F, #0DA7D9);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s ease-in-out infinite;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(13, 167, 217, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 167, 217, 0.15);
}

/* Service Icon Aprimorado */
.service-icon {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 12px;
}

.service-card:hover .service-icon {
    box-shadow: 0 8px 25px rgba(13, 167, 217, 0.2);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

/* Service Title Aprimorado */
.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #0DA7D9;
}

/* Service Description Aprimorada */
.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Service Footer Aprimorado */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 167, 217, 0.1);
}

/* Service Link Específico para Cards */
.service-footer .service-link {
    color: #0DA7D9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.service-footer .service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0DA7D9, #E5D70F);
    transition: width 0.3s ease;
}

.service-footer .service-link:hover::after {
    width: 100%;
}

.service-footer .service-link:hover {
    color: #067A9F;
    transform: translateX(3px);
}

/* Botão Purchase Específico para Cards */
.service-footer .btn-purchase {
    background: linear-gradient(135deg, #0DA7D9 0%, #0891B8 100%);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(13, 167, 217, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
    text-align: center;
}

.service-footer .btn-purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.service-footer .btn-purchase:hover::before {
    width: 200px;
    height: 200px;
}

.service-footer .btn-purchase:hover {
    background: linear-gradient(135deg, #E5D70F 0%, #D4C60E 100%);
    color: #1a1a2e;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(229, 215, 15, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(229, 215, 15, 0.3);
}

.service-footer .btn-purchase:active {
    transform: translateY(0) scale(1.02);
}

/* Services Grid Aprimorado */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Animação de Entrada para Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.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:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1.0s; }
.service-card:nth-child(11) { animation-delay: 1.1s; }
.service-card:nth-child(12) { animation-delay: 1.2s; }
.service-card:nth-child(13) { animation-delay: 1.3s; }
.service-card:nth-child(14) { animation-delay: 1.4s; }
.service-card:nth-child(15) { animation-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Responsividade para Service Cards */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .service-footer .btn-purchase {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .service-footer .service-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon img {
        height: 180px;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}
