/* Estilos para o Service Section redesenhado */
.service-section.style2 {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    background-color: #0D1117;
}

.service-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/patterns/circuit-pattern.webp');
    background-size: cover;
    opacity: 0.06;
    z-index: -1;
}

.service-bg-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(192, 189, 48, 0.15) 0%, rgba(192, 189, 48, 0) 70%);
    z-index: -1;
    transform: rotate(-30deg);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0EFE9 0%, #E5E4DD 100%);  
    z-index: -1;
}

.service-section.style2 .container {
    position: relative;
    z-index: 5;
}

.service-section.style2 .section-header {
    margin-bottom: 60px;
    position: relative;
}

.service-section.style2 .section-header::before {
    content: '';
    position: absolute;
    left: -5%;
    top: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(192, 189, 48, 0.1) 0%, rgba(192, 189, 48, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.service-section.style2 .section-title {
    position: relative;
    z-index: 2;
}

.service-section.style2 .section-title .subtitle {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #C0BD30;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-left: 45px;
}

.service-section.style2 .section-title .subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 2px;
    background-color: #C0BD30;
    transform: translateY(-50%);
}

.service-section.style2 .section-title .title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #3F4332 0%, #2a2c22 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.service-section.style2 .title-separator {
    margin: 20px 0 25px;
    width: 80px;
    height: 3px;
    position: relative;
    background: linear-gradient(to right, #C0BD30 0%, rgba(192, 189, 48, 0.5) 100%);
    border-radius: 2px;
}

.service-section.style2 .title-separator span {
    display: block;
    width: 40%;
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
    opacity: 0.6;
}

.service-section.style2 .btn-container {
    text-align: right;
    position: relative;
}

.service-section.style2 .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(145deg, #C0BD30, #e6e336);
    color: #111;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 6px 15px rgba(192, 189, 48, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-section.style2 .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e6e336, #C0BD30);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-section.style2 .btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(192, 189, 48, 0.35);
}

.service-section.style2 .btn-primary:hover::after {
    opacity: 1;
}

.service-section.style2 .btn-primary i {
    margin-left: 12px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.service-section.style2 .btn-primary:hover i {
    transform: translateX(5px);
}

.service-section.style2 .btn-primary span {
    position: relative;
    z-index: 1;
}

.service-cards-container {
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.92));
    border-radius: 12px;
    overflow: hidden;
    padding: 35px 30px;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 4px solid #C0BD30;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(192, 189, 48, 0.05) 0%, rgba(255, 255, 255, 0) 80%);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.service-icon-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(192, 189, 48, 0.15);
    position: relative;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.15);
}

.service-content {
    position: relative;
    z-index: 2;  /* Isso garante que o conteúdo fique acima do pseudo-elemento */
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.service-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: #C0BD30;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;  /* Valor maior que o z-index do ::before */
}

.service-link i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #9c9926;
}

.service-link:hover i {
    transform: translateX(4px);
}

.service-card-cta {
    background: linear-gradient(145deg, #C0BD30, #f0ec05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    position: relative; /* Certifique-se de que a posição é relativa */
}

.service-card-cta .cta-content {
    position: relative;
    z-index: 2; /* Aumentar z-index para ficar acima do pseudo-elemento */
    width: 100%;
}

.service-card-cta h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    position: relative; /* Adicionar posição relativa */
}

.service-card-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
    position: relative; /* Adicionar posição relativa */
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #C0BD30;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative; /* Adicionar posição relativa */
    z-index: 3; /* Aumentar z-index para garantir clicabilidade */
}

.btn-secondary i {
    margin-left: 8px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: #9c9926;
    transform: translateY(-3px);
}

/* Estilo para a descrição da seção */
.section-description {
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Responsividade */
@media (max-width: 992px) {
    .service-section.style2 {
        padding: 90px 0 70px;
    }
    
    .section-description {
        font-size: medium !important;
        white-space: normal;
        margin-bottom: 25px;
    }
    
    .service-section.style2 .section-title .title {
        font-size: 36px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-content h3 {
        font-size: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 32px;
        height: 32px;
    }
    
    .service-section.style2 .section-header::before {
        left: -2%;
        top: -40px;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .service-section.style2 {
        padding: 70px 0 50px;
    }
    
    .section-description {
        font-size: medium !important;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .service-section.style2 .btn-container {
        text-align: left;
        margin-top: 25px;
    }
    
    .service-section.style2 .section-title .title {
        font-size: 30px;
    }
    
    .service-section.style2 .section-title .subtitle {
        font-size: 13px;
    }
    
    .service-card {
        margin-bottom: 20px;
        height: calc(100% - 20px);
    }
    
    .service-content h3 {
        font-size: 18px;
    }
    
    .service-card-cta h3 {
        font-size: 20px;
    }
    
    .service-section.style2 .section-header::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .service-section.style2 .section-header {
        margin-bottom: 40px;
    }
    
    .service-section.style2 .btn-primary {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .service-section.style2 .section-title .title {
        font-size: 26px;
    }
    
    .service-section.style2 .section-header {
        margin-bottom: 30px;
    }
    
    .service-section.style2 .btn-primary {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon img {
        width: 28px;
        height: 28px;
    }

    .section-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* Estilos para os modais de serviço */
.modal-dialog.modal-lg {
    max-width: 900px;
    margin-top: 2.5rem;
}

.modal-content {
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(145deg, #3F4332, #2a2c22);
    z-index: 0;
}

.modal-header {
    background: transparent;
    padding: 2rem;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(192, 189, 48, 0), 
        rgba(192, 189, 48, 0.8) 20%, 
        rgba(192, 189, 48, 0.8) 80%, 
        rgba(192, 189, 48, 0)
    );
}

.modal-title {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-left: 20px;
}

.modal-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #C0BD30;
    border-radius: 2px;
}

.modal-body {
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.98);
    position: relative;
    z-index: 1;
}

.btn-close {
    position: absolute;
    top: 50%;
    right: 16px;
    left: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s, transform 0.3s;
    font-size: 32px;
    z-index: 10;
}

.btn-close::after {
    content: "×";
    font-size: 28px;
    color: inherit;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: #fff;
    color: #C0BD30;
    transform: translateY(-50%) scale(1.08) rotate(90deg);
}

.service-detail {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 0.5rem;
}

.service-detail-icon {
    width: 140px;
    height: 140px;
    padding: 25px;
    background: linear-gradient(145deg, 
        rgba(192, 189, 48, 0.08), 
        rgba(192, 189, 48, 0.03)
    );
    border-radius: 24px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-detail-icon:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.service-detail-content {
    flex: 1;
}

.service-detail-content p {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    padding-bottom: 15px;
}

.service-detail-content p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #C0BD30, rgba(192, 189, 48, 0.3));
    border-radius: 2px;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.service-detail-content ul li {
    position: relative;
    padding: 12px 0 12px 38px;
    color: #555;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.service-detail-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: linear-gradient(145deg, #C0BD30, #e6e336);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(192, 189, 48, 0.25);
    transition: all 0.3s ease;
}

.service-detail-content ul li:hover {
    color: #333;
    transform: translateX(5px);
}

.service-detail-content ul li:hover::before {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 12px rgba(192, 189, 48, 0.35);
}

/* Animação de entrada do modal */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Responsividade para os modais */
@media (max-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 800px;
        margin: 2rem auto;
    }
}

@media (max-width: 992px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
        margin: 1.75rem auto;
    }
}

@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .service-detail {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .service-detail-icon {
        width: 120px;
        height: 120px;
        padding: 20px;
    }

    .service-detail-content p::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-detail-content ul {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0.75rem;
    }

    .modal-title {
        font-size: 22px;
        padding-right: 40px;
    }

    .service-detail-content p {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }

    .service-detail-content ul li {
        font-size: 15px;
        padding: 10px 0 10px 35px;
    }

    .service-detail-content ul li::before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .modal-dialog.modal-lg {
        max-width: 100%;
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 15px;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .service-detail {
        gap: 1.5rem;
    }

    .service-detail-icon {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .modal-title {
        font-size: 20px;
    }

    .service-detail-content p {
        font-size: 15px;
    }

    .service-detail-content ul li {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .modal-dialog.modal-lg {
        margin: 0;
    }

    .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .service-detail-icon {
        width: 90px;
        height: 90px;
        padding: 12px;
    }

    .modal-title {
        font-size: 18px;
    }

    .service-detail-content p {
        font-size: 14px;
        margin-bottom: 1.25rem;
    }

    .service-detail-content ul li {
        font-size: 13px;
        padding: 8px 0 8px 30px;
    }

    .service-detail-content ul li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}