/* ===========================
   PROFESSIONAL TESTIMONIALS UX
   Enhanced User Experience
   =========================== */

/* Hero Section Enhancements */
.testimonial-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #001f3f 0%, #003d7a 50%, #0066cc 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.03) 40px,
            rgba(255, 255, 255, 0.03) 80px
        );
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(80px) translateY(80px); }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
}

.floating-quotes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.quote-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.quote-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.quote-icon:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.08;
    }
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: white;
}

.hero-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.6);
}

.page-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #b3d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Rating Showcase */
.hero-rating-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stars-large {
    display: flex;
    gap: 6px;
}

.stars-large i {
    font-size: 28px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-number {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.rating-info span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.trust-badges {
    display: flex;
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 18px;
}

.hero-cta {
    margin-top: 10px;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: #0066cc;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-large:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
}

/* Overall Rating Section */
.overall-rating {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.rating-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 102, 204, 0.1);
}

.rating-score {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 20px;
}

.score-number {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.rating-text {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 16px;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.rating-bar {
    position: relative;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.rating-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #00aaff 100%);
    border-radius: 6px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.rating-row:hover .rating-fill {
    opacity: 0.9;
}

.rating-count {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

/* Testimonial Cards Enhancement */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(0, 102, 204, 0.08);
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(0, 102, 204, 0.15),
        0 0 0 1px rgba(0, 102, 204, 0.2);
}

.testimonial-card .stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card .stars i {
    color: #ffd700;
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 4px 0;
}

.testimonial-author span {
    font-size: 13px;
    color: #888;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.verified-badge i {
    font-size: 12px;
}

/* Interactive Elements */
.testimonial-card .helpful-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.helpful-text {
    font-size: 13px;
    color: #888;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
}

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-btn:hover {
    background: #e9ecef;
    border-color: #0066cc;
    color: #0066cc;
}

.helpful-btn i {
    font-size: 14px;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rating-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .testimonial-hero {
        min-height: 55vh;
    }
    
    .page-hero-content h1 {
        font-size: 40px;
    }
    
    .hero-rating-showcase {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-display {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .trust-badges {
        flex-direction: column;
        width: 100%;
    }
    
    .trust-badge {
        justify-content: center;
    }
    
    .rating-card {
        padding: 30px;
    }
    
    .score-number {
        font-size: 64px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .btn-primary-large {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .rating-score {
        padding: 20px;
    }
    
    .score-number {
        font-size: 56px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.helpful-btn:focus,
.btn-primary-large:focus {
    outline: 3px solid rgba(0, 102, 204, 0.5);
    outline-offset: 2px;
}
