/* Estilos modernos para a seção de serviços/cards - SinapseTech 2025 */

/* Seção de Serviços */
#services {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0c1c2c, #0a1622);
    position: relative;
    overflow: hidden;
}

/* Overlay com padrão sutil */
#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(99, 102, 241, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 1;
}

/* Container principal */
.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Cabeçalho da seção */
.service-text {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

/* Badge de Soluções Integradas */
.service-badge {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 3;
}

.service-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tu00edtulo aprimorado com melhor legibilidade */
.service-text h2.enhanced-title {
    background: linear-gradient(to bottom right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.service-text h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 2px;
}

/* Layout assimétrico para os cards */
.service-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .service-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-boxes {
        grid-template-columns: 1fr;
    }
}

/* Card individual */
.service-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Efeito de destaque diagonal */
.service-box .diagonal-highlight {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: -1;
}

.service-box:hover .diagonal-highlight {
    top: -20%;
    left: -20%;
}

/* Efeito de brilho no canto */
.service-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-box:hover::after {
    transform: scaleX(1);
}

/* Indicador visual sutil */
.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 75%, rgba(99, 102, 241, 0.15) 100%);
    transition: all 0.3s ease;
    z-index: 0;
}

.service-box:hover::before {
    background: linear-gradient(135deg, transparent 75%, rgba(99, 102, 241, 0.25) 100%);
}

/* Variação para cards alternados */
.service-box:nth-child(odd) .icon {
    margin-left: auto;
    margin-right: auto;
}

.service-box:nth-child(odd) h3::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.service-box:nth-child(even) {
    border-radius: 16px;
}

.service-box:nth-child(odd) {
    border-radius: 16px;
}

/* Efeito de profundidade para os cards */
.service-box {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ícone do card */
.service-box .icon {
    width: 65px;
    height: 65px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    margin-left: auto;
    margin-right: auto;
}

.service-box:hover .icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.service-box .icon img {
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
    stroke: #6366f1;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.3));
}

.service-box:hover .icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

/* Título do card */
.service-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.service-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-box:hover h3::after {
    width: 60px;
}

/* Texto do card */
.service-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    flex-grow: 1;
    text-align: center;
}

/* Responsividade */
@media (max-width: 1024px) {
    .service-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #services {
        padding: 4rem 0;
    }
    
    .service-text h2 {
        font-size: 1.8rem;
    }
    
    .service-box {
        padding: 2rem 1.5rem;
    }
    
    .service-box .icon {
        width: 60px;
        height: 60px;
    }
    
    .service-box .icon img {
        width: 35px;
        height: 35px;
    }
    
    .service-box h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .service-text::before {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .service-text h2 {
        font-size: 1.6rem;
    }
    
    .service-box {
        padding: 1.8rem 1.2rem;
    }
}
