/* Testimonials Section Styles */
.testimonials {
    background: #0a0a0a;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.testimonials-track {
    display: flex;
    animation: scroll-testimonials 60s linear infinite;
    gap: 2rem;
    width: max-content;
}

.testimonial-card {
    background: #111111;
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    padding: 2rem;
    min-width: 350px;
    max-width: 350px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: #dc2626;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: serif;
    opacity: 0.5;
}

.testimonial-quote::after {
    content: '"';
    font-size: 3rem;
    color: #dc2626;
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: serif;
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #dc2626;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.author-company {
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}

.author-role {
    color: #888888;
    font-size: 0.8rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    margin-top: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1rem;
}

.star.empty {
    color: #333333;
}

/* Pause animation on hover */
.testimonials-wrapper:hover .testimonials-track {
    animation-play-state: paused;
}

/* Prevent text selection on mobile */
@media (max-width: 768px) {
    .testimonials-wrapper,
    .testimonial-card,
    .testimonial-content,
    .testimonial-quote,
    .testimonial-author {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Infinite scroll animation */
@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 1rem;
    }
    
    .testimonials-track {
        animation-duration: 80s;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 250px;
        max-width: 250px;
        padding: 1.2rem;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-track {
        animation-duration: 100s;
    }
}