/* Premium Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(37, 99, 235, 0.05) 100%);
    pointer-events: none;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Premium Header */
.testimonials .text-center {
    margin-bottom: 4rem;
}

.testimonials .display-4 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.testimonials h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.testimonials .fs-5 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: #64748b;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Premium Carousel */
.carousel {
    position: relative;
    margin-top: 2rem;
}

.carousel-inner {
    border-radius: 24px;
    overflow: visible;
}

.carousel-item {
    padding: 1rem 0;
}

/* Premium Testimonial Card */
.testimonials .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonials .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonials .card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.testimonials .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.2);
}

.testimonials .card:hover::before {
    transform: scaleX(1);
}

.testimonials .card:hover::after {
    top: -40%;
    right: -5%;
    opacity: 0.8;
}

/* Quote Icon */
.testimonials .text-primary {
    color: #0ea5e9 !important;
    position: relative;
    z-index: 3;
}

.testimonials .fa-quote-left {
    opacity: 0.8;
    transform: rotate(-15deg);
    transition: all 0.3s ease;
}

.testimonials .card:hover .fa-quote-left {
    transform: rotate(0deg) scale(1.1);
    opacity: 1;
}

/* Premium Blockquote */
.testimonials .blockquote {
    color: #1e293b;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    font-style: italic;
    font-weight: 500;
    z-index: 3;
    text-align: center;
}

/* Author Section */
.testimonials .d-flex {
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.testimonials .rounded-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.testimonials .card:hover .rounded-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.testimonials .bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.testimonials .bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.testimonials h5 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonials .text-muted {
    color: #64748b !important;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Premium Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.1);
    opacity: 0.7;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-color: #0ea5e9;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.3);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #0ea5e9;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color:transparent;
    transform: scale(0.9);
}

/* Premium Carousel Indicators */
.carousel-indicators {
    margin-bottom: -3rem;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.3);
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* Large Desktop */
@media (min-width: 1400px) {
    .testimonials {
        padding: 8rem 0;
    }
    
    .container-custom {
        max-width: 1320px;
    }
    
    .testimonials .card {
        padding: 3.5rem 3rem;
        min-height: 450px;
    }
    
    .testimonials .rounded-circle {
        width: 70px;
        height: 70px;
    }
}

/* Desktop */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .testimonials {
        padding: 5rem 0;
    }
    
    .testimonials .card {
        padding: 2.5rem 2rem;
        min-height: 380px;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .testimonials {
        padding: 4rem 0;
    }
    
    .container-custom {
        padding: 0 1.5rem;
    }
    
    .testimonials .text-center {
        margin-bottom: 3rem;
    }
    
    .testimonials .card {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: -25px;
    }
    
    .carousel-control-next {
        right: -25px;
    }
    
    .testimonials .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonials .text-start {
        text-align: center !important;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .testimonials {
        padding: 3rem 0;
    }
    
    .container-custom {
        padding: 0 1rem;
    }
    
    .testimonials .text-center {
        margin-bottom: 2.5rem;
    }
    
    .testimonials .card {
        padding: 1.5rem 1.25rem;
        min-height: 320px;
        border-radius: 20px;
    }
    
    .testimonials .blockquote {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonials .rounded-circle {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .carousel-indicators {
        margin-bottom: -2rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .testimonials {
        padding: 2rem 0;
    }
    
    .container-custom {
        padding: 0 0.75rem;
    }
    
    .testimonials .card {
        padding: 1.25rem 1rem;
        min-height: 300px;
        border-radius: 16px;
    }
    
    .testimonials .blockquote {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .testimonials .display-4 {
        font-size: 2rem;
    }
    
    .testimonials .rounded-circle {
        width: 45px;
        height: 45px;
    }
    
    .testimonials h5 {
        font-size: 1rem;
    }
    
    .testimonials .text-muted {
        font-size: 0.85rem;
    }
}

/* Tiny Mobile */
@media (max-width: 375px) {
    .testimonials {
        padding: 1.5rem 0;
    }
    
    .container-custom {
        padding: 0 0.5rem;
    }
    
    .testimonials .card {
        padding: 1rem 0.875rem;
        min-height: 280px;
    }
    
    .testimonials .blockquote {
        font-size: 0.95rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .testimonials .card:hover {
        transform: none;
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        transform: translateY(-50%);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .testimonials .card {
        border-width: 2px;
        border-color: #0ea5e9;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials .card,
    .carousel-control-prev,
    .carousel-control-next,
    .testimonials .fa-quote-left {
        transition: none;
    }
    
    .testimonials .card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .testimonials {
        background: white !important;
        padding: 2rem 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none;
    }
}