/* ===== SECTION TÉMOIGNAGES - DESIGN PREMIUM ===== */

.testimonials-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    overflow: hidden;
}

/* Decorative Shapes */
.testimonials-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.testimonials-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.testimonials-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--tech-gradient-3));
    top: -150px;
    right: -150px;
    animation: float-slow 25s ease-in-out infinite;
}

.testimonials-shapes .shape-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--secondary-color));
    bottom: -100px;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 40px) scale(1.1); }
}

.quote-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: rgba(0, 180, 219, 0.03);
    font-family: Georgia, serif;
    font-weight: 900;
}

.quote-pattern::before {
    content: '"';
}

/* Container */
.testimonials-container {
    position: relative;
    z-index: 1;
}

/* Section Title */
.testimonials-section .section-title {
    margin-bottom: 70px;
}

.testimonials-section .highlight-word {
    color: var(--tech-gradient-3);
    position: relative;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    background: #ffffff;
    border-radius: 25px;
    padding: 45px 40px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--tech-gradient-3) 0%, 
        var(--primary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 180, 219, 0.1) inset;
}

/* Card Decorations */
.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border-style: solid;
    border-color: var(--tech-gradient-3);
    opacity: 0.2;
    transition: all 0.4s ease;
}

.corner-accent.top-left {
    top: 20px;
    left: 20px;
    border-width: 3px 0 0 3px;
    border-radius: 15px 0 0 0;
}

.corner-accent.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 15px 0;
}

.testimonial-card:hover .corner-accent {
    opacity: 1;
    border-color: var(--primary-color);
}

.testimonial-card:hover .corner-accent.top-left {
    top: 15px;
    left: 15px;
}

.testimonial-card:hover .corner-accent.bottom-right {
    bottom: 15px;
    right: 15px;
}

/* Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Quote Icon */
.quote-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.3);
    transition: all 0.3s ease;
}

.quote-icon i {
    font-size: 24px;
    color: #ffffff;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(0, 180, 219, 0.5);
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-stars i {
    font-size: 18px;
    color: #FFB800;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 0, 0.3));
    transition: all 0.2s ease;
}

.testimonial-card:hover .rating-stars i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 184, 0, 0.5));
}

.rating-stars i:nth-child(1) { animation: star-twinkle 2s ease-in-out 0s infinite; }
.rating-stars i:nth-child(2) { animation: star-twinkle 2s ease-in-out 0.2s infinite; }
.rating-stars i:nth-child(3) { animation: star-twinkle 2s ease-in-out 0.4s infinite; }
.rating-stars i:nth-child(4) { animation: star-twinkle 2s ease-in-out 0.6s infinite; }
.rating-stars i:nth-child(5) { animation: star-twinkle 2s ease-in-out 0.8s infinite; }

@keyframes star-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Content */
.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-text {
    border-left-color: var(--tech-gradient-3);
    padding-left: 25px;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author {
    border-top-color: rgba(0, 180, 219, 0.2);
}

/* Author Image */
.author-image {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.image-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-gradient-3), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.testimonial-card:hover .image-border {
    opacity: 1;
    transform: scale(1);
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

.testimonial-card:hover .author-image img {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Author Info */
.author-info {
    flex: 1;
    position: relative;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-info h4 {
    color: var(--tech-gradient-3);
}

.author-info p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Company Badge */
.company-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, 
        rgba(0, 180, 219, 0.1), 
        rgba(47, 85, 212, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(0, 180, 219, 0.2);
    transition: all 0.3s ease;
}

.company-badge i {
    font-size: 14px;
    color: var(--tech-gradient-3);
}

.testimonial-card:hover .company-badge {
    background: var(--tech-gradient-3);
    border-color: var(--tech-gradient-3);
    transform: rotate(360deg);
}

.testimonial-card:hover .company-badge i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 35px 25px;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
    }
    
    .quote-pattern {
        font-size: 150px;
    }
}

/* Additional Premium Effects */
.testimonial-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.testimonial-card:hover {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Verified Badge - Optional */
.testimonial-card::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    color: var(--tech-gradient-3);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.testimonial-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Animation on Load */
.testimonial-card {
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

