/* Testimonials Page Specific Styles */

/* Global text overflow fixes for testimonials */
.testimonials-hero,
.testimonials-main,
.testimonials-stats,
.trust-indicators,
.testimonials-cta {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure all text content wraps properly */
.page-title,
.page-subtitle,
.testimonial-title,
.testimonial-content,
.client-name,
.client-role,
.trust-item h3,
.trust-item p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Testimonials Hero */
.testimonials-hero {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(0, 188, 212, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,250.7C1248,256,1344,288,1392,304L1440,320L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    padding: 150px 0 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Rating Display */
.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    font-size: 1.5rem;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.rating-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Main Testimonials Section */
.testimonials-main {
    padding: 80px 0;
    background: var(--background-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: visible;
    margin-bottom: 2rem;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.testimonial-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    transform: scale(1.02);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.testimonial-card.featured:hover {
    transform: translateY(-5px) scale(1.04);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.client-details {
    flex: 1;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.client-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-style: italic;
}

.client-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.service-type {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(233, 30, 99, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: #FFD700;
    font-size: 1.25rem;
}

/* Testimonial Content */
.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-title {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.testimonial-content blockquote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

/* Testimonial Highlights */
.testimonial-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.highlight {
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Stats Section */
.testimonials-stats {
    padding: 80px 0;
    background: var(--text-dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(233, 30, 99, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trust Indicators */
.trust-indicators {
    padding: 80px 0;
    background: var(--background-white);
}

.trust-indicators .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(0, 188, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.trust-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.trust-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Testimonials CTA */
.testimonials-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.testimonials-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.testimonials-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quote Animation */
@keyframes quote-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.testimonial-content blockquote::before {
    animation: quote-float 4s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-hero {
        padding: 120px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }
    
    .client-info {
        width: 100%;
    }
    
    .rating {
        align-self: flex-end;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .testimonial-content blockquote {
        padding-left: 1rem;
    }
    
    .testimonial-content blockquote::before {
        font-size: 3rem;
        left: -5px;
    }
    
    .testimonial-highlights {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* Prevent text overflow on small screens */
    .container {
        padding: 0 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .testimonial-card,
    .trust-item {
        margin: 0 5px;
        padding: 1.5rem 1rem;
    }
    
    /* Ensure all text fits within viewport */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}