/*************************************************
 * ENHANCED TESTIMONIALS SECTION STYLES
 * Modern, attractive testimonial cards with 3D effects
 ************************************************/

/* Enhanced testimonial card container */
.testimonial-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Card background effect */
.testimonial-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 157, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 50%, 
        rgba(255, 107, 157, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.testimonial-content:hover .testimonial-card-bg {
    opacity: 1;
}

/* Enhanced testimonial header */
.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Enhanced avatar */
.testimonial-avatar {
    position: relative;
    margin-bottom: 0;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d 0%, #4ecdc4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 
        0 8px 25px rgba(255, 107, 157, 0.3),
        0 4px 12px rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.testimonial-content:hover .avatar-circle::before {
    opacity: 1;
    animation: shimmer 0.6s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.testimonial-content:hover .avatar-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(255, 107, 157, 0.4),
        0 6px 18px rgba(78, 205, 196, 0.3);
}

/* Enhanced rating section */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-text {
    font-weight: 700;
    color: #ff6b9d;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced testimonial body */
.testimonial-body {
    position: relative;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 4rem;
    color: rgba(255, 107, 157, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

.testimonial-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
    position: relative;
    z-index: 2;
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

/* Enhanced testimonial footer */
.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.2rem 0;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Verified badge */
.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.verified-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.check-mark {
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hover effects */
.testimonial-content:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.testimonial-content:hover .testimonial-body p {
    color: #222;
    transform: scale(1.02);
}

.testimonial-content:hover .testimonial-author h4 {
    color: #ff6b9d;
}

/* Active state enhancement */
.testimonial-item.active .testimonial-content {
    transform: scale(1.05);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.12),
        0 12px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.testimonial-item.active .avatar-circle {
    transform: scale(1.15);
    box-shadow: 
        0 15px 40px rgba(255, 107, 157, 0.4),
        0 8px 20px rgba(78, 205, 196, 0.3);
}

/* Navigation enhancement */
.testimonials-nav {
    margin-top: 3rem;
}

.nav-btn {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* Dots enhancement */
.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.testimonials-dots .dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.testimonials-dots .dot.active {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    transform: scale(1.3);
}

.testimonials-dots .dot.active::before {
    border-color: rgba(255, 107, 157, 0.5);
}

.testimonials-dots .dot:hover {
    transform: scale(1.2);
    background: rgba(255, 107, 157, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .testimonial-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .testimonial-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .quote-icon {
        font-size: 3rem;
        top: -5px;
        left: -10px;
    }
    
    .testimonial-body p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-body p {
        font-size: 0.95rem;
    }
    
    .verified-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .testimonial-author h4 {
        font-size: 0.9rem;
    }
    
    .testimonial-author span {
        font-size: 0.8rem;
    }
}

/* Animation for card entrance */
@keyframes testimonialFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.testimonial-item.active .testimonial-content {
    animation: testimonialFadeIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glow effect for active card */
.testimonial-item.active .testimonial-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4, #ff6b9d);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
}