/* ================================================
   MODERN TESTIMONIAL CAROUSEL - CARD-BASED DESIGN
   Clean, professional carousel with smooth animations
   ================================================ */

/* Main Section Container */
.testimonial-carousel-section {
    position: relative;
    padding: 80px 0 100px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.testimonial-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Section */
.testimonial-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    text-transform: none;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ================================================
   CAROUSEL WRAPPER - THREE COLUMN LAYOUT
   ================================================ */
.testimonial-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Cards Container */
.testimonial-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    align-items: center;
    justify-items: center;
    position: relative;
}

/* ================================================
   TESTIMONIAL CARDS - MODERN DESIGN
   ================================================ */
.testimonial-card {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: none;
}

/* Show only center card initially */
.testimonial-card[data-index="0"] {
    display: block;
}

/* Active cards */
.testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Center card styling */
.testimonial-card.center {
    transform: scale(1.05) translateY(-10px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Side cards styling */
.testimonial-card.left,
.testimonial-card.right {
    transform: scale(0.95);
    opacity: 0.85;
}

/* Hover Effect */
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.6);
}

.testimonial-card.center:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.9);
}

/* ================================================
   VIDEO CONTAINER
   ================================================ */
.testimonial-video {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for vertical videos */
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px 24px 0 0;
}

.testimonial-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s ease;
}

/* ================================================
   CARD CONTENT
   ================================================ */
.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 20px 15px;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    transition: transform 0.2s ease;
}

.testimonial-stars i:hover {
    transform: scale(1.2);
}

.testimonial-quote {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.6;
    margin: 0 0 15px 0;
    padding: 0 20px;
    text-align: center;
}

.testimonial-author {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
    padding: 0 20px;
    text-align: center;
}

.testimonial-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ================================================
   NAVIGATION ARROWS
   ================================================ */
.testimonial-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-nav-prev {
    left: 10px;
}

.testimonial-nav-next {
    right: 10px;
}

.testimonial-nav-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.testimonial-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-nav-arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ================================================
   PROGRESS DOTS
   ================================================ */
.testimonial-progress-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

.progress-dot.active {
    width: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Large Tablets */
@media (max-width: 1024px) {
    .testimonial-carousel-wrapper {
        padding: 30px 60px;
        min-height: 550px;
    }

    .testimonial-cards-container {
        gap: 20px;
    }

    .testimonial-card {
        max-width: 300px;
    }

    .testimonial-nav-arrow {
        width: 50px;
        height: 50px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .testimonial-carousel-section {
        padding: 60px 0 80px;
    }

    .testimonial-header {
        margin-bottom: 40px;
    }

    .testimonial-carousel-wrapper {
        padding: 20px 50px;
        min-height: 500px;
    }

    .testimonial-cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonial-card {
        max-width: 400px;
    }

    /* Show only one card at a time on mobile */
    .testimonial-card.left,
    .testimonial-card.right {
        display: none !important;
    }

    .testimonial-card.center {
        transform: scale(1);
        grid-column: 1;
    }

    .testimonial-nav-arrow {
        width: 48px;
        height: 48px;
    }

    .testimonial-nav-prev {
        left: 5px;
    }

    .testimonial-nav-next {
        right: 5px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .testimonial-carousel-section {
        padding: 50px 0 70px;
    }

    .testimonial-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .testimonial-carousel-wrapper {
        padding: 20px 15px;
        min-height: 450px;
    }

    .testimonial-card {
        max-width: 320px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .testimonial-author {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .testimonial-badge {
        font-size: 0.8rem;
        padding: 5px 14px;
    }

    .testimonial-nav-arrow {
        width: 44px;
        height: 44px;
    }

    .testimonial-nav-arrow svg {
        width: 20px;
        height: 20px;
    }

    .progress-dot {
        width: 10px;
        height: 10px;
        gap: 10px;
    }

    .progress-dot.active {
        width: 28px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .testimonial-carousel-wrapper {
        padding: 15px 10px;
    }

    .testimonial-card {
        max-width: 280px;
    }

    .testimonial-stars {
        padding: 15px;
    }

    .testimonial-stars i {
        font-size: 1rem;
    }

    .testimonial-quote {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

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

/* ================================================
   ACCESSIBILITY
   ================================================ */
.testimonial-nav-arrow:focus,
.progress-dot:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-nav-arrow,
    .progress-dot,
    .testimonial-stars i {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================ */
.testimonial-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.testimonial-video iframe {
    transform: translateZ(0);
    backface-visibility: hidden;
}
