/* Efeito de fundo */
.servicos-section {
    padding: 10rem 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.servicos-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, var(--bg-light) 50%);
}

.servicos-section .bg-shape {
    position: absolute;
    opacity: 0.04;
}

.servicos-section .bg-shape-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(50px);
}

.servicos-section .bg-shape-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--secondary-color);
    filter: blur(40px);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.servicos-footer {
    text-align: center;
    margin-top: 5rem;
}

.servico-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(230, 230, 230, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.servico-card:hover .servico-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.servico-card:hover .servico-title::after {
    width: 80px;
    background: var(--gradient-primary);
}

.servico-header {
    padding: 3rem 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 247, 250, 1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servico-icon {
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.servico-title {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.servico-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 50px;
}

.servico-desc {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 0;
    text-align: center;
    padding: 0 1rem;
}

.servico-content {
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.servico-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), transparent);
    z-index: -1;
}

.servico-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.servico-features li {
    margin-bottom: 1.2rem;
    padding-left: 2.2rem;
    position: relative;
    font-size: 1rem;
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.servico-features li:hover {
    transform: translateX(5px);
}

.servico-features li:last-child {
    margin-bottom: 2rem;
}

.servico-features li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.servico-action {
    margin-top: 2.5rem;
    text-align: center;
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.servico-action .btn {
    transition: all 0.3s ease;
    transform: scale(1);
}

.servico-action .btn:hover {
    transform: scale(1.05);
}

.servico-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.servico-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color-light);
    display: block;
    margin-top: 0.3rem;
}

.servico-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* Card Destacado */
.servico-card.featured {
    transform: scale(1.05);
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    z-index: 2;
}

.servico-card.featured:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.05);
}

.servico-card.featured .servico-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
}

.servico-card.featured .servico-icon {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 7px 15px rgba(var(--primary-rgb), 0.3);
    width: 90px;
    height: 90px;
}

/* Animações */
@keyframes cardFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.servico-card.featured {
    animation: cardFloat 6s ease-in-out infinite;
}

.servico-card .servico-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

.servico-features li:hover::before {
    animation: bounceIcon 0.6s ease-in-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.servico-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3); }
    50% { box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.5); }
    100% { box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3); }
}

/* Responsividade */
@media (max-width: 1200px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .servico-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .servico-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .servico-title {
        font-size: 1.6rem;
    }
    
    .servico-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}
