/* ===== SERVIÇOS ULTRAMODERNOS - MOBILE FIRST ===== */
/* 
 * Este arquivo contém apenas os estilos da seção de Serviços
 * Configurações globais estão em global.css
 * Header principal está em header.css
 */
.services-section {
    padding: 0 1.25rem 2.5rem;
    border-radius: 20px 20px 0 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    z-index: 10001;
    contain: layout style;
}

/* Fundo dinâmico com formas geométricas fluidas */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.01) 25%, transparent 50%, rgba(99, 102, 241, 0.02) 75%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10002; /* Acima de tudo */
}

.services-header {
  text-align: center;
    margin-bottom: var(--space-md);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    overflow: hidden;
    z-index: 10001; /* Acima do header */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Acima do header */
}

.services-main-title {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #6366F1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.divider {
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    margin: 0 auto 1rem;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.services-subtitle {
    color: #6366F1;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 32rem;
    margin: 0 auto;
    font-weight: 400;
}

/* Grid - 1 coluna no mobile */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Cards com Glassmorphism e efeitos 3D */
.service-card-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px rgba(15, 23, 42, 0.05),
        0 1px 3px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    z-index: 10001; /* Acima do header */
}

/* Animação de entrada */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para cada card */
.service-card-modern:nth-child(1) { animation-delay: 0.1s; }
.service-card-modern:nth-child(2) { animation-delay: 0.2s; }
.service-card-modern:nth-child(3) { animation-delay: 0.3s; }
.service-card-modern:nth-child(4) { animation-delay: 0.4s; }
.service-card-modern:nth-child(5) { animation-delay: 0.5s; }
.service-card-modern:nth-child(6) { animation-delay: 0.6s; }

/* Efeito de levitação 3D no hover */
.service-card-modern:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.15),
        0 8px 16px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Borda neon sutil */
.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.3) 0%, 
        rgba(99, 102, 241, 0.2) 50%, 
        rgba(37, 99, 235, 0.1) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-modern:hover::before {
    opacity: 1;
}

/* Ícones dos serviços - Design UX Avançado */
.service-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.08) 0%, 
        rgba(99, 102, 241, 0.12) 50%,
        rgba(37, 99, 235, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    overflow: hidden;
}

/* Efeito de brilho interno */
.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
    z-index: 1;
    position: relative;
}

/* Estados de hover mais sofisticados */
.service-card-modern:hover .service-icon {
    transform: scale(1.15) rotate(8deg);
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.15) 0%, 
        rgba(99, 102, 241, 0.25) 50%,
        rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 
        0 12px 24px rgba(37, 99, 235, 0.2),
        0 6px 12px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card-modern:hover .service-icon::before {
    left: 100%;
}

.service-card-modern:hover .service-icon svg {
    color: var(--color-accent);
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

/* Hover no ícone — simples, sem animação infinita */
.service-card-modern:hover .service-icon {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Efeito de borda no hover */
.service-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        transparent 25%, 
        rgba(99, 102, 241, 0.1) 50%, 
        transparent 75%, 
        rgba(37, 99, 235, 0.1) 100%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card-modern:hover .service-icon::after {
    opacity: 1;
}

/* Conteúdo dos cards */
.card-content-modern {
    padding: 1.5rem;
    padding-top: 1.5rem;
    padding-right: 5rem; /* Espaço para o ícone */
    position: relative;
    z-index: 1;
}

.service-title-modern {
    color: var(--color-text);
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-description-modern {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
}

.service-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature-tag {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        rgba(99, 102, 241, 0.15) 100%);
    color: var(--color-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-accent) 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.feature-tag:hover::before {
    left: 100%;
}

/* Responsividade - Tablet: 2 colunas */
@media (min-width: 768px) {
    .services-section { 
        padding: 0 1.5rem 3rem; 
    }
    
    .services-header { 
        padding-top: 2.5rem; 
        margin-bottom: 2.5rem; 
    }
    
    .services-main-title { 
        font-size: 2rem; 
    }
    
    .services-subtitle { 
        font-size: 1.0625rem; 
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .card-content-modern { 
        padding: 1.75rem;
        padding-right: 6rem;
    }
    
    .service-title-modern { 
        font-size: 1.3125rem; 
    }
    
    .service-description-modern { 
        font-size: 1rem; 
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        top: 1.75rem;
        right: 1.75rem;
        border-radius: 18px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Desktop: 3 colunas, mais espaço */
@media (min-width: 1024px) {
    .services-section { 
        padding: 0 2rem 4rem; 
    }
    
    .services-header { 
        padding-top: 3rem; 
        margin-bottom: 3rem; 
    }
    
    .services-main-title { 
        font-size: 2.25rem; 
    }
    
    .divider { 
        width: 5rem; 
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
    
    .card-content-modern { 
        padding: 2rem;
        padding-right: 6.5rem;
    }
    
    .service-description-modern { 
        margin-bottom: 1.25rem; 
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        top: 2rem;
        right: 2rem;
        border-radius: 20px;
    }
    
    .service-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .card-content-modern { 
        padding: 2.25rem;
        padding-right: 7rem;
    }
    
    .service-icon {
        width: 68px;
        height: 68px;
    }
    
    .service-icon svg {
        width: 34px;
        height: 34px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
    .services-section { 
        padding: 0 1rem 2rem; 
    }
    
    .services-main-title { 
        font-size: 1.5rem; 
    }
    
    .services-subtitle { 
        font-size: 0.9rem; 
    }
    
    .card-content-modern { 
        padding: 1.25rem;
        padding-right: 5rem;
    }
    
    .service-title-modern { 
        font-size: 1.125rem; 
    }
    
    .service-description-modern { 
        font-size: 0.875rem; 
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        top: 1.25rem;
        right: 1.25rem;
        border-radius: 14px;
    }
    
    .service-icon svg {
        width: 26px;
        height: 26px;
    }
}
