/* Carousel touch interaction styles */

.projects-carousel {
    transition: transform 0.4s ease;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
    position: relative;
    overflow: hidden;
}

.projects-carousel.touching {
    cursor: grabbing;
    transition: none;
    transform-origin: center;
}

/* Body class to prevent scrolling during carousel swipes */
body.carousel-swiping {
    overscroll-behavior-x: none;
}

/* Visual cue for swipe direction */
.carousel-button-highlight {
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--primary-color);
    color: var(--primary-color) !important;
    transition: all 0.2s ease !important;
}

/* Swipe success feedback animation */
.swipe-feedback {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.7;
    z-index: 1000;
    animation: swipe-success 0.3s ease-out forwards;
}

@keyframes swipe-success {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Make carousel dots more tappable */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}

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

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .carousel-dot {
        width: 15px;
        height: 15px;
        margin: 0 10px;
    }
    
    /* Make carousel buttons easier to tap */
    .carousel-button {
        width: 40px !important;
        height: 40px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    /* Ensure the carousel is properly sized */
    .projects-carousel {
        width: 100%;
        display: flex;
        overflow: hidden;
    }
    
    .projects-page {
        min-width: 100%;
        flex: 0 0 100%;
    }
}
