/* ========================================
   SEATECH - MAIN SERVICES SECTION
   Estilos para a seção de serviços principais baseada no design fornecido
   ======================================== */

/* ========================================
   SEÇÃO PRINCIPAL
   ======================================== */
.main-services-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.main-services-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   CABEÇALHO DA SEÇÃO
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce, #2b77cb);
}

.section-subtitle {
    background: #ffd700;
    color: #1a365d;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 20px;
    border-radius: 20px;
}

/* ========================================
   GRID DE SERVIÇOS
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Fallback para telas menores */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ITEM DE SERVIÇO
   ======================================== */
.service-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    min-width: 0; /* Permite que o item encolha */
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3182ce;
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* ========================================
   IMAGEM DO SERVIÇO
   ======================================== */
.service-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

/* Overlay para melhor contraste do texto */
.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    transition: opacity 0.3s ease;
}

.service-item:hover .service-image::after {
    opacity: 0.7;
}

/* ========================================
   CONTEÚDO DO SERVIÇO
   ======================================== */
.service-content {
    padding: 15px 10px;
    text-align: center;
    position: relative;
}

.service-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #1a365d;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-title {
    color: #3182ce;
}

/* ========================================
   RODAPÉ DA SEÇÃO
   ======================================== */
.services-footer {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3182ce, #2b77cb);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
    background: linear-gradient(135deg, #2b77cb, #2c5aa0);
    color: white;
    text-decoration: none;
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(3px);
}

/* ========================================
   MENSAGEM SEM SERVIÇOS
   ======================================== */
.no-services-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-services-message p {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0;
}

.no-services-message a {
    color: #3182ce;
    text-decoration: none;
    font-weight: bold;
}

.no-services-message a:hover {
    text-decoration: underline;
}

/* ========================================
   ACCENT BORDER
   ======================================== */
.service-item {
    border-left: 4px solid #3182ce;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 1024px) {
    .main-services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .main-services-section {
        padding: 40px 0;
    }
    
    .main-services-section .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .service-image {
        height: 130px;
    }
    
    .service-content {
        padding: 12px 8px;
    }
    
    .service-title {
        font-size: 0.8rem;
        min-height: 2.4rem;
    }
    
    .view-all-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-image {
        height: 120px;
    }
    
    .service-content {
        padding: 10px 8px;
    }
    
    .service-title {
        font-size: 0.75rem;
        min-height: 2.2rem;
    }
    
    .view-all-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }
.service-item:nth-child(8) { animation-delay: 0.8s; }
.service-item:nth-child(9) { animation-delay: 0.9s; }
.service-item:nth-child(10) { animation-delay: 1.0s; }
.service-item:nth-child(11) { animation-delay: 1.1s; }
.service-item:nth-child(12) { animation-delay: 1.2s; }

