/* Slider Section Styles */

/* CSS variables consolidated to main.css - using direct --c4s-* variables */

.slider-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Social Icons */
.social-icon {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-icon.facebook i {
    color: #1877F2;
}

.social-icon.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spinBounce {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.social-icon:hover {
    animation: spinBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Navigation Arrow Button */
.nav-arrow-btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Testimonial Slider */
.testimonial-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.is-dragging {
    cursor: grabbing;
}

.slider-wrapper {
    display: flex;
    user-select: none;
    -webkit-user-select: none;
    margin: 40px 0;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Testimonial Cards */
.testimonial-card {
    flex-shrink: 0;
    width: calc(100% - 32px);
    min-height: 280px;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    margin: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.slider-wrapper.transitioning .testimonial-card {
    transform: perspective(1000px) rotateY(5deg) scale(0.98);
    opacity: 0.8;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-wrapper.transitioning .testimonial-card.active-slide {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
}

.testimonial-card img {
    pointer-events: none;
}

/* Avatar Styles */
.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background-color: white;
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Avatar Color Variations */
.testimonial-card:nth-child(1) .avatar {
    color: var(--c4s-orange);
}

.testimonial-card:nth-child(2) .avatar {
    color: var(--c4s-teal);
}

.testimonial-card:nth-child(3) .avatar {
    color: var(--c4s-pink);
}

.testimonial-card:nth-child(4) .avatar {
    color: var(--c4s-green);
}

.testimonial-card:nth-child(5) .avatar {
    color: var(--c4s-yellow);
}

.testimonial-card:nth-child(6) .avatar {
    color: var(--c4s-gray);
}

.testimonial-card:nth-child(7) .avatar {
    color: var(--c4s-orange);
}

.testimonial-card:nth-child(8) .avatar {
    color: var(--c4s-teal);
}

.testimonial-card:nth-child(9) .avatar {
    color: var(--c4s-pink);
}

.testimonial-card:nth-child(10) .avatar {
    color: var(--c4s-green);
}

.testimonial-card:nth-child(11) .avatar {
    color: var(--c4s-yellow);
}

.testimonial-card:nth-child(12) .avatar {
    color: var(--c4s-gray);
}

.testimonial-card:nth-child(13) .avatar {
    color: var(--c4s-orange);
}

.testimonial-card:nth-child(14) .avatar {
    color: var(--c4s-teal);
}

.testimonial-card:nth-child(15) .avatar {
    color: var(--c4s-pink);
}

.testimonial-card:nth-child(16) .avatar {
    color: var(--c4s-green);
}

/* Star Rating */
.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1rem;
    flex-shrink: 0;
    animation: subtle-sparkle 3s ease-in-out infinite;
}

.stars i {
    display: inline-block;
    animation: star-twinkle 2s ease-in-out infinite;
}

.stars i:nth-child(1) {
    animation-delay: 0s;
}

.stars i:nth-child(2) {
    animation-delay: 0.3s;
}

.stars i:nth-child(3) {
    animation-delay: 0.6s;
}

.stars i:nth-child(4) {
    animation-delay: 0.9s;
}

.stars i:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes subtle-sparkle {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 2px rgba(255, 193, 7, 0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 4px rgba(255, 193, 7, 0.5));
    }
}

@keyframes star-twinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Review Text */
.review-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    min-height: 90px;
}

.customer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c4s-dark);
    flex-shrink: 0;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 3px;
}

.customer-name::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--c4s-green);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn,
.next-btn,
.pause-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(45, 176, 149, 0.15);
    color: var(--c4s-green);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(45, 176, 149, 0.12), 0 4px 16px rgba(45, 176, 149, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Pause Control */
.mobile-pause-control {
    display: flex;
    justify-content: center;
}

.pause-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(45, 176, 149, 0.15);
    color: var(--c4s-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(45, 176, 149, 0.12), 0 4px 16px rgba(45, 176, 149, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: visible;
}

.pause-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(45, 176, 149, 0.25);
    transform: translate(-50%, -50%) scale(0);
    animation: pauseRipple 3s ease-out infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}

.pause-ripple:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes pauseRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.pause-btn.paused {
    background: rgba(255, 255, 255, 0.95);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: var(--c4s-green);
    box-shadow: 0 12px 40px rgba(45, 176, 149, 0.25), 0 8px 24px rgba(45, 176, 149, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pause-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--c4s-green) 0%, rgba(45, 176, 149, 0.95) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.pause-btn.paused::before {
    opacity: 1;
}

.pause-btn i {
    position: relative;
    z-index: 2;
}

.pause-btn:active {
    transform: translateY(0) scale(0.98);
}

.desktop-pause-control {
    display: none;
    justify-content: center;
}

.desktop-pause-btn {
    display: none;
}

/* Navigation Button Styles */
.prev-btn::before,
.next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--c4s-green) 0%, rgba(45, 176, 149, 0.95) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.prev-btn:hover::before,
.next-btn:hover::before {
    opacity: 1;
}

.prev-btn:hover,
.next-btn:hover {
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: var(--c4s-green);
    box-shadow: 0 12px 40px rgba(45, 176, 149, 0.25), 0 8px 24px rgba(45, 176, 149, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.prev-btn:active,
.next-btn:active {
    transform: translateY(0) scale(0.98);
}

.prev-btn i,
.next-btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prev-btn:hover i {
    transform: translateX(-1px);
}

.next-btn:hover i {
    transform: translateX(1px);
}

/* Bullet Navigation */
.bullets {
    display: flex;
    margin: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(45, 176, 149, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--c4s-green);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bullet:hover {
    transform: scale(1.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(45, 176, 149, 0.3), 0 2px 10px rgba(45, 176, 149, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bullet:hover::before {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
}

.bullet.active {
    width: 28px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1);
    box-shadow: 0 6px 28px rgba(45, 176, 149, 0.4), 0 3px 14px rgba(45, 176, 149, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.bullet.active::before {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-radius: 4px;
    transform: translate(-50%, -50%) scale(1);
}

.bullet:active {
    transform: scale(0.9);
}

.bullet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(45, 176, 149, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.bullet.clicked::after {
    animation: bulletRipple 0.6s ease-out;
}

@keyframes bulletRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}
