.testimonials-section {
    position: relative;
    width: 100%;
    height: 110vh;
    min-height: auto;
    background: radial-gradient(ellipse at top, #f8f4ff 0%, #ffffff 50%);
    padding: 2.5rem 0 2rem;
    overflow: hidden;
}

/* Animated background orbs */
.testimonials-section::before,
.testimonials-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

.testimonials-section::before {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8B5CF6, #a78bfa);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.testimonials-section::after {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #c084fc, #e9d5ff);
    bottom: 10%;
    right: -5%;
    animation-delay: 10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.25;
    animation: floatOrb 25s ease-in-out infinite;
}

.background-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ddd6fe, #ede9fe);
    top: 40%;
    right: 15%;
    animation-delay: 5s;
}

.background-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f3e8ff, #faf5ff);
    top: 60%;
    left: 10%;
    animation-delay: 15s;
}

/* Animated mesh gradient overlay */
.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 30%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(167, 139, 250, 0.05) 0px, transparent 50%),
        radial-gradient(at 40% 80%, rgba(196, 181, 253, 0.04) 0px, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes meshMove {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.05) rotate(2deg); }
}

/* Animated particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #8B5CF6;
    border-radius: 50%;
    opacity: 0;
    animation: float 8s infinite;
}

@keyframes float {
    0%, 100% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-100vh) translateX(50px); }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 1s; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.header-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #641DAF 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.header-subtitle {
    font-size: 0.9rem;
    color: #666666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Main carousel container */
.carousel-container {
    position: relative;
    perspective: 2000px;
    height: 380px;
    margin-bottom: 1.75rem;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    pointer-events: none;
}

.testimonial-slide.active {
    transform: translate(-50%, -50%) translateZ(0) scale(1);
    opacity: 1;
    pointer-events: all;
    z-index: 3;
}

.testimonial-slide.prev {
    transform: translate(-120%, -50%) translateZ(-400px) rotateY(25deg) scale(0.8);
    opacity: 0.4;
    z-index: 2;
}

.testimonial-slide.next {
    transform: translate(20%, -50%) translateZ(-400px) rotateY(-25deg) scale(0.8);
    opacity: 0.4;
    z-index: 2;
}

.slide-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    animation: shimmer 3s infinite;
}

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

.slide-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.testimonial-slide.active .slide-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.8) 100%); */
}

.slide-body {
    padding: 1.5rem;
    position: relative;
}

.quote-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8B5CF6, #a78bfa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #8B5CF6;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

.author-info h4 {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.author-role {
    font-size: 0.8rem;
    color: #8B5CF6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.rating {
    color: #FFA500;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3.5rem;
}

.nav-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: #641DAF;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: linear-gradient(135deg, #8B5CF6, #a78bfa);
    color: #ffffff;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
    border-color: #8B5CF6;
}

.nav-button:active {
    transform: scale(1.05);
}

.progress-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.dot.active {
    background: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.dot.active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #8B5CF6;
    border-radius: 50%;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }

    .testimonial-slide {
        width: 700px;
    }

    .header-title {
        font-size: 2.75rem;
    }
}

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
    .testimonial-slide {
        width: 620px;
    }
}

/* Laptop (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 2rem;
    }

    .testimonial-slide {
        width: 580px;
    }

    .carousel-container {
        height: 420px;
    }

    .header-title {
        font-size: 2rem;
    }
}

/* Tablet Landscape (900px - 1023px) */
@media (max-width: 1023px) {
    .testimonials-section {
        height: auto;
        min-height: 100vh;
        padding: 0;
    }

    .testimonial-slide {
        width: 85%;
        max-width: 550px;
    }

    .carousel-container {
        height: 480px;
    }

    .testimonial-slide.prev {
        transform: translate(-130%, -50%) translateZ(-300px) rotateY(20deg) scale(0.75);
        opacity: 0.3;
    }

    .testimonial-slide.next {
        transform: translate(30%, -50%) translateZ(-300px) rotateY(-20deg) scale(0.75);
        opacity: 0.3;
    }

    .slide-image-container {
        height: 140px;
    }

    .navigation {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .nav-button {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Tablet Portrait (768px - 899px) */
@media (max-width: 899px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-title {
        font-size: 1.85rem;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }

    .testimonial-slide {
        width: 90%;
    }

    .carousel-container {
        height: 520px;
    }

    .slide-body {
        padding: 1.25rem;
    }

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

    .quote-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-info h4 {
        font-size: 0.9rem;
    }

    .author-role {
        font-size: 0.75rem;
    }
}

/* Mobile Landscape (640px - 767px) */
@media (max-width: 767px) {
    .testimonials-section {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    .header-section {
        margin-bottom: 1.5rem;
    }

    .header-title {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }

    .header-subtitle {
        font-size: 0.8rem;
        max-width: 400px;
    }

    .carousel-container {
        height: 560px;
        perspective: 1500px;
    }

    .testimonial-slide {
        width: 95%;
    }

    .testimonial-slide.prev,
    .testimonial-slide.next {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) translateZ(-200px) scale(0.7);
    }

    .slide-image-container {
        height: 130px;
    }

    .slide-body {
        padding: 1.25rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }

    .navigation {
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .progress-dots {
        gap: 0.75rem;
    }

    .dot {
        width: 9px;
        height: 9px;
    }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
    .testimonials-section {
        padding: 0 0;
        height: auto;
    }

    .container {
        padding: 0 1rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
        max-width: 320px;
    }

    .carousel-container {
        height: 300px;
    }

    .testimonial-slide {
        width: 100%;
    }

    .slide-content {
        border-radius: 16px;
    }

    .slide-image-container {
        height: 120px;
    }

    .slide-body {
        padding: 1.15rem;
    }

    .quote-icon {
        width: 26px;
        height: 26px;
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .author-section {
        gap: 0.85rem;
        padding-top: 1rem;
    }

    .author-avatar {
        width: 38px;
        height: 38px;
    }

    .author-info h4 {
        font-size: 0.875rem;
    }

    .author-role {
        font-size: 0.7rem;
    }

    .rating {
        font-size: 0.7rem;
    }

    .navigation {
        gap: 1rem;
        margin-top: 1.75rem;
    }

    .nav-button {
        margin-top: 30px;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .progress-dots {
        gap: 0.65rem;
    }

    .dot {
        margin-top: 30px;
        width: 8px;
        height: 8px;
    }
}

/* Small Mobile (375px - 479px) */
@media (max-width: 479px) {
    .testimonials-section {
        padding: 1.75rem 0;
    }

    .container {
        padding: 0 0.875rem;
    }

    .header-title {
        font-size: 1.35rem;
        letter-spacing: -0.02em;
    }

    .header-subtitle {
        font-size: 0.7rem;
        max-width: 280px;
    }

    .carousel-container {
        height: 620px;
    }

    .slide-image-container {
        height: 110px;
    }

    .slide-body {
        padding: 1rem;
    }

    .quote-icon {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.875rem;
    }

    .author-section {
        gap: 0.75rem;
        padding-top: 0.875rem;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
        border-width: 1.5px;
    }

    .author-info h4 {
        font-size: 0.8rem;
    }

    .author-role {
        font-size: 0.65rem;
    }

    .rating {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .navigation {
        gap: 0.875rem;
        margin-top: 1.5rem;
    }

    .nav-button {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .progress-dots {
        gap: 0.5rem;
    }
}

/* Extra Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.75rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .header-subtitle {
        font-size: 0.65rem;
        max-width: 260px;
    }

    .carousel-container {
        height: 640px;
    }

    .slide-content {
        border-radius: 14px;
    }

    .slide-image-container {
        height: 100px;
    }

    .slide-body {
        padding: 0.875rem;
    }

    .quote-icon {
        width: 22px;
        height: 22px;
        font-size: 0.875rem;
    }

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

    .author-avatar {
        width: 34px;
        height: 34px;
    }

    .nav-button {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .dot {
        width: 7px;
        height: 7px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .testimonials-section {
        height: auto;
        padding: 1.5rem 0;
    }

    .carousel-container {
        height: 400px;
    }

    .slide-image-container {
        height: 100px;
    }

    .navigation {
        margin-top: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slide-content {
        border-width: 0.5px;
    }

    .author-avatar {
        border-width: 1.5px;
    }
}