/* CARROSSEL DE SERVIÇOS */
.services-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 91, 140, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Modo Escuro para controles */
body.dark-mode .carousel-control {
    background: rgba(138, 43, 226, 0.7);
}

body.dark-mode .carousel-control:hover {
    background: var(--primary);
}

body.dark-mode .carousel-indicators .indicator {
    background: #555;
}

body.dark-mode .carousel-indicators .indicator.active {
    background: var(--primary);
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-item {
        padding: 5px;
    }
}


/* Animação para transição entre slides */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-item.next {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.carousel-item.prev {
    animation: slideInFromLeft 0.8s ease-out forwards;
}