/* Customer Sound Section Animation Styles */
/* Friendly and comfortable animations for customer testimonials */

/* Base styles for customer sound section */
.customer-sound {
    position: relative;
    will-change: transform, opacity;
    overflow: hidden;
}

/* Section title initial states */
.customer-sound .text-center h2 {
    opacity: 0;
    transform: translateY(70px) scale(0.85);
    will-change: transform, opacity;
    transform-origin: center center;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

/* Section subtitle initial states */
.customer-sound .text-center p {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    will-change: transform, opacity;
    color: #4b5563;
    transition: color 0.3s ease;
}

/* Testimonial cards initial states */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
    opacity: 0;
    transform: translateY(80px) scale(0.9) rotate(2deg);
    will-change: transform, opacity, box-shadow;
    transform-origin: center center;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #ffffff, #fefefe);
    position: relative;
    overflow: hidden;
}

/* Border elements initial states */
.customer-sound .border-l-4.border-red-600 {
    transform: scaleY(0);
    transform-origin: top center;
    will-change: transform;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #dc2626, #ef4444);
}

/* Star ratings initial states */
.customer-sound .flex.items-center.mb-4 {
    opacity: 0;
    transform: translateX(-40px) scale(0.8);
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

/* Individual stars initial states */
.customer-sound .lucide-star {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    will-change: transform, opacity;
    transition: all 0.3s ease;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

/* Testimonial text initial states */
.customer-sound .text-gray-700.mb-4 {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    will-change: transform, opacity;
    transition: all 0.3s ease;
    line-height: 1.7;
}

/* Customer names initial states */
.customer-sound .text-gray-900.font-bold {
    opacity: 0;
    transform: translateY(25px) translateX(20px) scale(0.9);
    will-change: transform, opacity;
    transition: all 0.3s ease;
    color: #1f2937;
    font-weight: 800;
}

/* Enhanced hover effects for testimonial cards */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
    transform: translateY(-12px) scale(1.03) rotate(1deg);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
    background: linear-gradient(135deg, #ffffff, #fef2f2);
}

/* Card shimmer effect */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.08), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover::before {
    left: 100%;
}

/* Ensure content stays above shimmer */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg > * {
    position: relative;
    z-index: 2;
}

/* Star hover effects */
.customer-sound .lucide-star:hover {
    transform: scale(1.4) rotate(360deg);
    color: #f59e0b;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4));
}

/* Enhanced star animations */
.customer-sound .lucide-star.breathing {
    animation: starBreathe 2.5s ease-in-out infinite;
}

@keyframes starBreathe {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

/* Floating animation for testimonial cards */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg.floating {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(-6px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Gentle pulsing animation for star ratings */
.customer-sound .flex.items-center.mb-4.pulsing {
    animation: ratingPulse 4s ease-in-out infinite;
}

@keyframes ratingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Word reveal animation */
.customer-sound .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    transition: all 0.4s ease;
}

.customer-sound .word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced card styling */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.1), 0 4px 8px rgba(220, 38, 38, 0.06);
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff, #fefefe, #fef2f2);
}

.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15), 0 12px 24px rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
}

/* Border styling enhancements */
.customer-sound .border-l-4.border-red-600 {
    border-left-width: 4px;
    border-left-color: #dc2626;
    border-radius: 2px;
}

.customer-sound .border-l-4.border-red-600:hover {
    border-left-width: 8px;
    border-left-color: #ef4444;
}

/* Enhanced typography */
.customer-sound .text-center h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.customer-sound .text-center p {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
}

.customer-sound .text-gray-700.mb-4 {
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 500;
    color: #374151;
}

.customer-sound .text-gray-900.font-bold {
    font-size: 1.125rem;
    line-height: 1.4;
    font-weight: 800;
    color: #1f2937;
}

/* Interactive feedback enhancements */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:active {
    transform: translateY(-8px) scale(0.99);
    transition: transform 0.1s ease;
}

/* Star rating container styling */
.customer-sound .flex.items-center.mb-4 {
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    transition: all 0.3s ease;
}

.customer-sound .flex.items-center.mb-4:hover {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    transform: scale(1.05);
}

/* Testimonial text hover effects */
.customer-sound .text-gray-700.mb-4:hover {
    color: #1f2937;
    transform: translateX(8px);
}

/* Customer name hover effects */
.customer-sound .text-gray-900.font-bold:hover {
    color: #dc2626;
    transform: translateX(12px) scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(220, 38, 38, 0.12);
    }
    
    .customer-sound .text-center h2 {
        font-size: 2.25rem;
    }
    
    .customer-sound .text-center p {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 15px 30px rgba(220, 38, 38, 0.1);
    }
    
    .customer-sound .text-center h2 {
        font-size: 2rem;
    }
    
    .customer-sound .text-center p {
        font-size: 1rem;
    }
    
    .customer-sound .text-gray-700.mb-4 {
        font-size: 1rem;
    }
    
    .customer-sound .text-gray-900.font-bold {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 12px 24px rgba(220, 38, 38, 0.08);
    }
    
    .customer-sound .text-center h2 {
        font-size: 1.75rem;
    }
    
    .customer-sound .text-center p {
        font-size: 0.875rem;
    }
    
    .customer-sound .text-gray-700.mb-4 {
        font-size: 0.875rem;
    }
    
    .customer-sound .text-gray-900.font-bold {
        font-size: 0.875rem;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .customer-sound .text-center h2,
    .customer-sound .text-center p,
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg,
    .customer-sound .flex.items-center.mb-4,
    .customer-sound .lucide-star,
    .customer-sound .text-gray-700.mb-4,
    .customer-sound .text-gray-900.font-bold,
    .customer-sound .border-l-4.border-red-600 {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover,
    .customer-sound .lucide-star:hover,
    .customer-sound .text-gray-700.mb-4:hover,
    .customer-sound .text-gray-900.font-bold:hover,
    .customer-sound .flex.items-center.mb-4:hover {
        transform: none !important;
    }
    
    .customer-sound .breathing,
    .customer-sound .floating,
    .customer-sound .pulsing {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
        border: 3px solid #000000;
    }
    
    .customer-sound .border-l-4.border-red-600 {
        border-left-color: #000000;
    }
    
    .customer-sound .text-center h2 {
        color: #000000;
        -webkit-text-fill-color: #000000;
    }
    
    .customer-sound .text-center p {
        color: #000000;
    }
    
    .customer-sound .text-gray-700.mb-4 {
        color: #000000;
    }
    
    .customer-sound .text-gray-900.font-bold {
        color: #000000;
    }
    
    .customer-sound .lucide-star {
        color: #000000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .customer-sound {
        background-color: #111827;
    }
    
    .customer-sound .text-center h2 {
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
    
    .customer-sound .text-center p {
        color: #e5e7eb;
    }
    
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
        background: linear-gradient(135deg, #1f2937, #374151);
        border-color: #4b5563;
    }
    
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
        background: linear-gradient(135deg, #374151, #4b5563);
        border-color: #dc2626;
    }
    
    .customer-sound .text-gray-700.mb-4 {
        color: #d1d5db;
    }
    
    .customer-sound .text-gray-900.font-bold {
        color: #ffffff;
    }
    
    .customer-sound .border-l-4.border-red-600 {
        border-left-color: #dc2626;
    }
    
    .customer-sound .flex.items-center.mb-4 {
        background: linear-gradient(135deg, #374151, #4b5563);
    }
    
    .customer-sound .flex.items-center.mb-4:hover {
        background: linear-gradient(135deg, #4b5563, #6b7280);
    }
}

/* Print styles */
@media print {
    .customer-sound .text-center h2,
    .customer-sound .text-center p,
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg,
    .customer-sound .flex.items-center.mb-4,
    .customer-sound .lucide-star,
    .customer-sound .text-gray-700.mb-4,
    .customer-sound .text-gray-900.font-bold,
    .customer-sound .border-l-4.border-red-600 {
        transform: none !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }
    
    .customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
        background: #ffffff !important;
        border: 2px solid #dc2626 !important;
    }
    
    .customer-sound .text-center h2 {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .customer-sound .text-center p {
        color: #000000 !important;
    }
    
    .customer-sound .text-gray-700.mb-4 {
        color: #000000 !important;
    }
    
    .customer-sound .text-gray-900.font-bold {
        color: #000000 !important;
    }
    
    .customer-sound .lucide-star {
        color: #000000 !important;
    }
    
    .customer-sound .border-l-4.border-red-600 {
        border-left-color: #dc2626 !important;
    }
}

/* Loading states */
.customer-sound.loading {
    opacity: 0.7;
    pointer-events: none;
}

.customer-sound.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(220, 38, 38, 0.3);
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Focus states for accessibility */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:focus {
    outline: 4px solid #dc2626;
    outline-offset: 2px;
}

.customer-sound .lucide-star:focus {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
}

/* Performance optimizations */
.customer-sound * {
    will-change: auto;
}

.customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
    contain: layout style paint;
}

/* Smooth scrolling enhancement */
.customer-sound {
    scroll-behavior: smooth;
}

/* Enhanced gradient backgrounds */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
    background: linear-gradient(135deg, #ffffff, #fefefe, #fef2f2);
}

.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
    background: linear-gradient(135deg, #fefefe, #fef2f2, #fee2e2);
}

/* Enhanced shadow system */
.customer-sound .bg-white.p-8.rounded-lg.shadow-lg {
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.1),
        0 4px 8px rgba(220, 38, 38, 0.06),
        0 0 0 1px rgba(220, 38, 38, 0.05);
}

.customer-sound .bg-white.p-8.rounded-lg.shadow-lg:hover {
    box-shadow: 
        0 25px 50px rgba(220, 38, 38, 0.15),
        0 12px 24px rgba(220, 38, 38, 0.1),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Star glow effects */
.customer-sound .lucide-star {
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.customer-sound .lucide-star:hover {
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4));
}

/* Testimonial text styling */
.customer-sound .text-gray-700.mb-4 {
    text-align: left;
    font-style: italic;
    position: relative;
}

.customer-sound .text-gray-700.mb-4::before {
    content: '"';
    position: absolute;
    left: -0.5rem;
    top: -0.25rem;
    font-size: 2rem;
    color: #dc2626;
    opacity: 0.3;
}

.customer-sound .text-gray-700.mb-4::after {
    content: '"';
    position: absolute;
    right: -0.5rem;
    bottom: -0.5rem;
    font-size: 2rem;
    color: #dc2626;
    opacity: 0.3;
}

/* Customer name styling */
.customer-sound .text-gray-900.font-bold {
    position: relative;
    padding-left: 1rem;
}

.customer-sound .text-gray-900.font-bold::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 600;
} 