/* Problem Section */
.problem {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

/* Adicionando uma borda com degradê sutil na parte inferior */
.problem::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        var(--danger-color) 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    opacity: 0.7;
    box-shadow: 0 0 8px 1px rgba(6, 88, 246, 0.3);
}

/* Efeito de fundo com gradiente animado */
.problem::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 30% 20%, rgba(6, 88, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: gradientMove 15s ease infinite alternate;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.problem .container {
    position: relative;
    z-index: 1;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.problem-card {
    background: linear-gradient(145deg, var(--light-color), var(--gray-light));
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--danger-color));
    transform: scaleX(0);
    transform-origin: left;
}

/* Adicionar overlay de gradiente */
.problem-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(6, 88, 246, 0.15), rgba(239, 68, 68, 0.15));
    opacity: 0;
    z-index: 0;
}

.problem-card .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff6b6b 100%);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
    z-index: 1;
}

.problem-card .icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff6b6b 100%);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.problem-cta {
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.problem-cta .highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 30px auto;
    padding: 25px 35px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(6, 88, 246, 0.15) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(6, 88, 246, 0.15) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    --light-x: 50%;
    --light-y: 50%;
    text-align: left;
}

.problem-cta .highlight p {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.problem-cta .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%
        ),
        linear-gradient(90deg, 
            rgba(6, 88, 246, 0) 0%, 
            rgba(6, 88, 246, 0.1) 50%, 
            rgba(6, 88, 246, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    z-index: -1;
    transition: all 0.3s ease;
}

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

/* Adicionar borda brilhante */
.problem-cta .highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(6, 88, 246, 0.7) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(239, 68, 68, 0.7) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Efeito de clique nos cards */
.problem-card.card-clicked {
    animation: cardClick 0.3s forwards;
}

@keyframes cardClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilo para o container de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    transition: background-color 0.5s ease;
}

/* Emoji pulsante */
.emoji-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: emojiPulse 2s infinite;
    margin-right: 15px;
    font-size: 1.6rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    flex-shrink: 0;
    line-height: 1;
    height: 1.6rem;
}

@keyframes emojiPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.highlight-text {
    display: inline-block;
    line-height: 1.4;
    flex: 1;
}

/* Efeito de brilho nos cards */
.card-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    pointer-events: none;
    z-index: 1;
}

/* Removendo estilos específicos do botão na seção problem para usar o estilo padronizado */
/* 
.problem-cta .btn-primary {
    position: relative;
    z-index: 2;
    overflow: visible;
    display: inline-block !important;
    background-color: var(--primary-color);
    box-shadow: none;
}

.problem-cta .btn-primary::before {
    display: none;
}
*/

.problem-cta .btn-pulse::before,
.problem-cta .btn-pulse::after {
    z-index: -1;
    border-radius: var(--border-radius);
    background-clip: padding-box;
}

/* Animação para o elemento highlight */
.highlight-animate {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.highlight-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(2deg) translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .problem-card {
        padding: 30px 20px;
    }
    
    .problem-card .icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .problem-cta .highlight {
        padding: 20px;
        font-size: 1.2rem;
    }
    
    .emoji-pulse {
        font-size: 1.4rem;
        height: 1.4rem;
        margin-right: 12px;
    }
}

@media (max-width: 576px) {
    .problem-card .icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .problem-cta .highlight {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .emoji-pulse {
        font-size: 1.3rem;
        height: 1.3rem;
        margin-right: 10px;
    }
} 