/* =============================================
   CAROUSEL 3D - Circular Rotating Gallery
   ============================================= */

.carousel-3d-section {
    background: #0398af;
    padding: 40px 0 60px;
    overflow: hidden;
}

.carousel-3d-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.carousel-3d-section .section-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
    background: #0398af;
    padding-bottom: 10px;
}

.carousel-3d-section .section-header h2 {
    color: #ffffff;
    font-family: brandon-grotesque, "Brandon Grotesque", "Open Sans", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.carousel-3d-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Container do carrossel */
.carousel-3d-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    cursor: grab;
    user-select: none;
    position: relative;
    margin: 0 auto;
}

.carousel-3d-container:active {
    cursor: grabbing;
}

/* Track que gira */
.carousel-3d-track {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    margin-left: -140px;
    margin-top: -190px;
}

/* Cada slide */
.carousel-3d-slide {
    position: absolute;
    width: 280px;
    height: 380px;
    left: 0;
    top: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backface-visibility: visible;
    transition: box-shadow 0.3s ease;
}

.carousel-3d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info overlay */
.carousel-3d-slide .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
}

.carousel-3d-slide .slide-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.carousel-3d-slide .slide-info p {
    font-size: 0.8rem;
    opacity: 0.85;
    font-style: italic;
}

/* Navegação */
.carousel-3d-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
}

.carousel-3d-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Indicadores */
.carousel-3d-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    position: relative;
    z-index: 100;
}

.carousel-3d-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-3d-dots .dot.active {
    background: #2EBFD8;
    transform: scale(1.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel-3d-section {
        padding: 30px 0 50px;
    }

    .carousel-3d-section .section-header {
        margin-bottom: 15px;
    }

    .carousel-3d-container {
        height: 360px;
    }

    .carousel-3d-track {
        width: 220px;
        height: 300px;
        margin-left: -110px;
        margin-top: -150px;
    }

    .carousel-3d-slide {
        width: 220px;
        height: 300px;
    }

    .carousel-3d-section .section-header h2 {
        font-size: 1.6rem;
    }

    .carousel-3d-slide .slide-info h3 {
        font-size: 0.85rem;
    }

    .carousel-3d-slide .slide-info p {
        font-size: 0.75rem;
    }

    .carousel-3d-nav {
        margin-top: 30px;
    }

    .carousel-3d-dots {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-3d-container {
        height: 320px;
    }

    .carousel-3d-track {
        width: 180px;
        height: 260px;
        margin-left: -90px;
        margin-top: -130px;
    }

    .carousel-3d-slide {
        width: 180px;
        height: 260px;
    }

    .carousel-3d-slide .slide-info {
        padding: 15px 10px;
    }

    .carousel-3d-slide .slide-info h3 {
        font-size: 0.75rem;
    }

    .carousel-3d-slide .slide-info p {
        font-size: 0.7rem;
    }

    .carousel-3d-nav {
        margin-top: 25px;
        gap: 15px;
    }

    .carousel-3d-nav button {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .carousel-3d-dots {
        margin-top: 15px;
        gap: 10px;
    }
}
