/* ========================================
   TESTIMONIALS SECTION - ENHANCED
   Beautiful animations & hover effects
   ======================================== */

.testimonial-section {
    width: 100%;
    padding: var(--space-4xl) 0;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Floating background elements */
.testimonial-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 193, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.testimonial-container {
    width: 90%;
    max-width: 1300px;
    background: linear-gradient(135deg, #e7f8ef 0%, #d4f4e4 100%);
    border-radius: 40px;
    border: 6px solid #00c16e;
    padding: var(--space-3xl);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xl);
    box-shadow: 0 20px 60px rgba(0, 193, 110, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 193, 110, 0.2);
    border-color: #00d47a;
}

/* ========================================
   LEFT TEXT SIDE - ENHANCED
   ======================================== */

.testimonial-left {
    flex: 1 1 45%;
    padding-right: var(--space-2xl);
    position: relative;
    z-index: 2;
}

/* Quote icon */
.testimonial-left::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(0, 193, 110, 0.15);
    line-height: 1;
    z-index: -1;
}

.quote-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: #1a4d3a;
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-left: var(--space-lg);
    border-left: 4px solid #00c16e;
    transition: all 0.3s ease;
}


.author-info {
    padding: 0 var(--space-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-container:hover .author-info {
    transform: translateX(8px);
}

.author-info h4 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xs);
    color: #0a3b2d;
    font-weight: 700;
}

.author-info p {
    font-size: var(--font-size-base);
    color: #555;
    font-weight: 500;
}

/* Star rating */
.stars {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.star {
    color: #ffc107;
    font-size: 1.25rem;
    animation: star-pop 0.3s ease;
}

.star:nth-child(1) {
    animation-delay: 0.1s;
}

.star:nth-child(2) {
    animation-delay: 0.2s;
}

.star:nth-child(3) {
    animation-delay: 0.3s;
}

.star:nth-child(4) {
    animation-delay: 0.4s;
}

.star:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes star-pop {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* ========================================
   RIGHT SIDE - ENHANCED
   ======================================== */

.testimonial-right {
    flex: 1 1 45%;
}

.title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
    color: #0a3b2d;
    font-weight: 800;
    line-height: 1.2;
}

.spark {
    color: #4ecdc4;
    display: inline-block;
    animation: spark-bounce 2s ease-in-out infinite;
}

@keyframes spark-bounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(180deg);
    }
}

.sub-heading {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: var(--space-md) 0;
    color: #1a4d3a;
}

.desc {
    font-size: var(--font-size-base);
    color: #555;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ========================================
   STATS SECTION - ENHANCED
   ======================================== */

.testimonial-right .stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.testimonial-right .stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: none;
}

.testimonial-right .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00c16e 0%, #4ecdc4 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.testimonial-right .stat-card:hover::before {
    transform: scaleY(1);
}

.testimonial-right .stat-card:hover {
    transform: translateY(-6px) translateX(8px);
}

.testimonial-right .stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.testimonial-right .stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(360deg);
}

.testimonial-right .stat-card h3 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #00c16e;
    font-weight: 800;
}

.testimonial-right .stat-card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: #444;
    font-weight: 600;
}

/* ========================================
   DECORATIVE ELEMENTS - ENHANCED
   ======================================== */

/* Butterfly */
.butterfly {
    position: absolute;
    bottom: -80px;
    right: 20px;
    width: 200px;
    opacity: 0.85;
    animation: butterfly-fly 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes butterfly-fly {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-10px, -15px) rotate(-5deg);
    }

    50% {
        transform: translate(10px, -20px) rotate(5deg);
    }

    75% {
        transform: translate(-5px, -10px) rotate(-3deg);
    }
}

/* Arrow */
.arrow {
    position: absolute;
    top: -100px;
    right: -240px;
    width: 210px;
    opacity: 0.7;
    animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Additional sparkles */
.testimonial-container::after {
    content: '✨';
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 2rem;
    animation: sparkle-rotate 4s ease-in-out infinite;
}

@keyframes sparkle-rotate {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }
}

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

@media (max-width: 1024px) {
    .testimonial-container {
        padding: var(--space-2xl);
        gap: var(--space-2xl);
    }

    .testimonial-left {
        padding-right: var(--space-lg);
    }

    .testimonial-right .stats {
        gap: var(--space-lg);
    }
}

@media (max-width: 900px) {
    .testimonial-container {
        flex-direction: column;
        padding: var(--space-xl);
    }

    .testimonial-left {
        padding-right: 0;
        margin-bottom: var(--space-lg);
    }

    .testimonial-right .stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .testimonial-right .stat-card {
        width: 100%;
    }

    .butterfly {
        width: 120px;
        right: 10px;
        bottom: -60px;
    }

    .arrow {
        width: 80px;
        right: 100px;
        top: -20px;
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: var(--space-2xl) 0;
    }

    .testimonial-container {
        width: 95%;
        border-radius: var(--space-xl);
        border-width: 4px;
    }

    .quote-text {
        font-size: var(--font-size-base);
        padding-left: var(--space-md);
    }

    .testimonial-left::before {
        font-size: 80px;
        top: -30px;
        left: -10px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        padding: var(--space-lg);
        gap: var(--space-lg);
    }

    .title {
        font-size: 1.5rem;
    }

    .butterfly {
        display: none;
    }

    .arrow {
        display: none;
    }

    .testimonial-right .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ADDITIONAL ENHANCEMENTS
   ======================================== */

/* Quote marks styling */
.quote-marks {
    font-size: 3rem;
    color: #00c16e;
    line-height: 0;
    opacity: 0.5;
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, #00c16e, #00d47a);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-sm);
    box-shadow: 0 4px 12px rgba(0, 193, 110, 0.3);
}

.verified-badge::before {
    content: '✓';
    font-size: 1rem;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #1a4d3a;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.trust-item::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: #00c16e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}



/* ========================================
   MORE SUCCESS STORIES CAROUSEL
   Card-based testimonial slider
   ======================================== */

.more-stories-section {
    background: #f8f9fa;
}

.more-stories-header {
    text-align: center;
}

.more-stories-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
}

/* Carousel Container */
.stories-carousel {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.stories-track-wrapper {
    overflow: hidden;
}

.stories-track {
    display: flex;
    gap: var(--space-2xl);
    transition: transform 0.5s ease-in-out;
    margin: var(--radius-lg) 5px;
}

/* Story Card */
.story-card {
    max-width: 380px;
    width: 360px;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Stars */
.story-rating {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.story-rating .star {
    color: #ffc107;
    font-size: 1.25rem;
}

/* Story Text */
.story-text {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-style: italic;
    min-height: 180px;
}

/* Author Info */
.story-author h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
}

.story-author p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Navigation Arrows */
.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.stories-nav:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(9, 98, 117, 0.3);
}

.stories-nav:hover svg {
    stroke: white;
}

.stories-prev {
    left: -25px;
}

.stories-next {
    right: -25px;
}

.stories-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 3;
    transition: stroke 0.3s ease;
}

.stories-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.stories-nav:disabled:hover {
    background: white;
    transform: translateY(-50%);
}

/* Dots Navigation */
.stories-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.stories-dot {
    min-width: 12px !important;
    min-height: 12px !important;
     border-radius: 50%;
    background: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stories-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.stories-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .story-card {
        min-width: 340px;
    }

    .stories-prev {
        left: -15px;
    }

    .stories-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .more-stories-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .story-card {
        min-width: 300px;
    }

    .stories-track {
        gap: var(--space-lg);
    }

    .stories-nav {
        width: 40px;
        height: 40px;
    }

    .stories-prev {
        left: -10px;
    }

    .stories-next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .story-card {
        min-width: 280px;
    }

    .story-text {
        min-height: 150px;
        font-size: var(--font-size-sm);
    }

    .stories-nav {
        width: 35px;
        height: 35px;
    }

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