/* Services Section Styling */

/* Modern Elegant Card-Style Slideshow */
.card-slideshow {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-card {
    position: absolute;
    width: 380px;
    height: 470px;
    border-radius: 1.2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: transform, opacity;
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}

/* Active card (front center) */
.slide-card.active {
    z-index: 10;
    transform: translateX(0) translateY(0) scale(1) rotateY(0deg);
    opacity: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.slide-card.active img {
    filter: brightness(1) saturate(1);
}

/* Infinite loop positioning - always balanced */
.slide-card:not(.active) {
    z-index: 2;
    opacity: 0.8;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Default positioning will be handled by JavaScript for infinite effect */

/* Hover effects - subtle and elegant */
.slide-card:not(.active):hover {
    opacity: 0.95 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    /* Transform handled by JavaScript for infinite positioning */
}

.slide-card:not(.active):hover img {
    filter: brightness(1.05) saturate(1.1);
}

/* Elegant Slide indicators */
.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgb(206 48 39);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.indicator.active {
    background-color: #dc3545;
    transform: scale(1.3);
}

.indicator.active::before {
    border-color: rgb(220 53 69);
}

.indicator:hover {
    background-color: #0d6efd;
    transform: scale(1.1);
}
.service-icon {
    font-size: 2.5rem; /* Makes the icon larger */
    color: #0d6efd; /* Blue color for the icon */
}

.service-item h5 {
    font-size: 1.03rem;
}

.img-fluid.rounded-4 {
    border-radius: 0.5rem;
    max-height: 700px;
}

.service-item .service-icon {
    /* Estilo para o contentor do ícone, como na imagem de referência */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    background-color: #f6f6f6; /* Fundo cinza claro */
    color: #d9534f; /* Cor do ícone (azul primário do Bootstrap) */
}

.service-item .service-icon i {
    font-size: 2rem; /* Tamanho do ícone */
}

/* Mobile-first responsive adjustments */
@media (max-width: 991.98px) {
    #servicos .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #servicos .row {
        flex-direction: column-reverse;
    }
    
    #servicos .col-lg-6:first-child {
        margin-top: 3rem;
        margin-bottom: 0;
    }
    
    .service-item {
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        background-color: #ffffff;
        border-radius: 0.5rem;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    }
    
    .service-item .service-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 1rem auto;
        background-color: #f8f9fa;
    }
    
    .service-item .service-icon i {
        font-size: 1.75rem;
    }
    
    .service-item h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .service-item p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    .img-fluid.rounded-4 {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .service-item {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .service-item .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-item .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-item h5 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    .img-fluid.rounded-4 {
        max-height: 300px;
        border-radius: 0.5rem;
    }
    
    /* Mobile Elegant Slideshow Adjustments */
    .card-slideshow {
        max-width: 100%;
        margin: 1rem 0;
        padding: 1rem 0;
    }
    
    .slideshow-container {
        height: 260px;
    }
    
    .slide-card {
        width: 280px;
        height: 200px;
    }
    
    /* Simplified elegant effects for mobile performance */
    .slide-card.active {
        transform: translateX(0) translateY(0) scale(1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
    
    .slide-card:not(.active) {
        opacity: 0.7;
        /* Positioning handled by JavaScript for infinite loop */
    }
    
    .slide-card:not(.active):hover {
        opacity: 0.85;
        /* Hover positioning handled by JavaScript */
    }
    
    .slide-indicators {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .indicator::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }
}