/* testimonials.css - Complete Stylesheet */

/* Section Styling */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Background Decorations */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: -75px;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Section Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s;
}

.testimonials-section .section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    animation: fadeInUp 1s;
}

.title-divider {
    width: 100px;
    height: 4px;
    background: white;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    animation: expandWidth 1.5s;
}

/* Carousel Container */
.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 30px;
    padding: 50px 40px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-item.active .testimonial-card {
    animation: scaleIn 0.6s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

/* Decorative Elements */
.testimonial-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
}

/* Quote Icon */
.quote-icon {
    text-align: center;
    margin-bottom: 25px;
}

.quote-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

/* Client Photo at Top */
.client-photo-top {
    text-align: center;
    margin-bottom: 25px;
}

.user-photo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial-card:hover .user-photo-img {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.user-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 5px solid white;
    transition: all 0.3s ease;
}

.testimonial-card:hover .user-photo-placeholder {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Rating Stars */
.rating-stars {
    text-align: center;
    margin-bottom: 20px;
}

.rating-stars i {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.rating-stars i.filled {
    color: #ffc107;
    text-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
}

/* Testimonial Content */
.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2d3748;
    text-align: center;
    font-style: italic;
    margin: 0;
    position: relative;
}

/* Client Info */
.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.client-details {
    text-align: left;
}

.client-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 5px 0;
}

.client-date {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.client-date i {
    margin-right: 5px;
}

/* Carousel Controls */
.custom-control-prev,
.custom-control-next {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.custom-control-prev {
    left: -70px;
}

.custom-control-next {
    right: -70px;
}

.custom-control-prev:hover,
.custom-control-next:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.control-icon i {
    font-size: 1.2rem;
    color: #667eea;
    transition: color 0.3s ease;
}

.custom-control-prev:hover .control-icon i,
.custom-control-next:hover .control-icon i {
    color: white;
}

/* Carousel Indicators */
.custom-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.custom-indicators button.active {
    width: 30px;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Testimonial Count */
.testimonial-count {
    text-align: center;
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

.testimonial-count p {
    font-size: 1.1rem;
    color: white;
    margin: 0;
}

.testimonial-count strong {
    font-size: 1.4rem;
    font-weight: 700;
}

/* No Testimonials Message */
.no-testimonials {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.no-testimonials-icon {
    margin-bottom: 30px;
}

.no-testimonials-icon i {
    font-size: 5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-testimonials h3 {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-testimonials p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
}

.btn-primary-custom {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

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

.slide-in {
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .custom-control-prev {
        left: 10px;
    }

    .custom-control-next {
        right: 10px;
    }

    .custom-control-prev,
    .custom-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonials-section .section-title {
        font-size: 2.2rem;
    }

    .testimonials-section .section-subtitle {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 40px 25px;
        margin: 10px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .client-name {
        font-size: 1.1rem;
    }

    .quote-icon i {
        font-size: 2.5rem;
    }

    .custom-control-prev,
    .custom-control-next {
        display: none;
    }

    .custom-indicators {
        bottom: -40px;
    }

    .testimonial-count {
        margin-top: 60px;
    }

    .client-info {
        flex-direction: column;
        text-align: center;
    }

    .client-details {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .testimonials-section .section-title {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .client-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .rating-stars i {
        font-size: 1.1rem;
    }

    .no-testimonials {
        padding: 60px 20px;
    }

    .no-testimonials-icon i {
        font-size: 4rem;
    }

    .no-testimonials h3 {
        font-size: 1.5rem;
    }

    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .testimonials-section {
        background: white;
        padding: 40px 0;
    }

    .custom-control-prev,
    .custom-control-next,
    .custom-indicators,
    .bg-decoration {
        display: none;
    }

    .testimonial-card {
        box-shadow: none;
        border: 1px solid #e0e0e0;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
.custom-control-prev:focus,
.custom-control-next:focus,
.custom-indicators button:focus {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid #000;
    }

    .control-icon i {
        color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}