/* BrainyTech - Testimonials Carousel Section Styles */
/* Customer feedback carousel with side peek */

.testimonialsSection {
    padding: 80px 0;
    overflow: hidden;
}

[data-theme="dark"] .testimonialsSection {
    background: none;
}

.testimonialsCarousel {
    position: relative;
    margin-top: 48px;
    padding: 0 80px;
}

.carouselTrack {
    display: flex;
    gap: 32px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.testimonialCard {
    position: relative;
    min-width: 600px;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0.3;
    transform: scale(0.85);
    pointer-events: none;
    cursor: pointer;
}

[data-theme="dark"] .testimonialCard {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(30, 58, 138, 0.3);
}

.testimonialCard.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.15);
}

[data-theme="dark"] .testimonialCard.active {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(59, 130, 246, 0.15));
}

.testimonialCard.side {
    opacity: 0.5;
    transform: scale(0.9);
    pointer-events: auto;
}

.testimonialCard.side:hover {
    opacity: 0.7;
    transform: scale(0.92);
}

.testimonialCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonialCard.active::before {
    opacity: 1;
}

.testimonialHeader {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.testimonialAvatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    transition: all 0.4s ease;
}

[data-theme="dark"] .testimonialAvatar {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
}

.testimonialCard.active .testimonialAvatar {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4);
}

.avatarInitials {
    font-size: 28px;
    font-weight: 700;
    color: white;
    user-select: none;
}

.testimonialAuthor {
    flex: 1;
}

.authorName {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

[data-theme="dark"] .authorName {
    color: #f1f5f9;
}

.authorTitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

[data-theme="dark"] .authorTitle {
    color: #94a3b8;
}

.authorCompany {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .authorCompany {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonialRating {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.star {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.testimonialCard.active .star {
    animation: starPop 0.4s ease forwards;
}

.testimonialCard.active .star:nth-child(1) {
    animation-delay: 0s;
}

.testimonialCard.active .star:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonialCard.active .star:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonialCard.active .star:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonialCard.active .star:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.testimonialText {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    padding-left: 24px;
}

[data-theme="dark"] .testimonialText {
    color: #cbd5e1;
}

.testimonialText::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}

.testimonialFooter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 58, 138, 0.2);
}

[data-theme="dark"] .testimonialFooter {
    border-top-color: rgba(59, 130, 246, 0.25);
}

.testimonialIcon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.testimonialLabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .testimonialLabel {
    color: #94a3b8;
}

/* Navigation Buttons */
.carouselNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 58, 138, 0.3);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

[data-theme="dark"] .carouselNav {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.carouselNav:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

[data-theme="dark"] .carouselNav:hover {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.carouselNav svg {
    width: 24px;
    height: 24px;
}

.carouselNavPrev {
    left: 0;
}

.carouselNavNext {
    right: 0;
}

/* Carousel Dots */
.carouselDots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carouselDot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .carouselDot {
    background: rgba(59, 130, 246, 0.3);
}

.carouselDot:hover {
    background: rgba(30, 58, 138, 0.5);
    transform: scale(1.2);
}

[data-theme="dark"] .carouselDot:hover {
    background: rgba(59, 130, 246, 0.6);
}

.carouselDot.active {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
}

[data-theme="dark"] .carouselDot.active {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonialsCarousel {
        padding: 0 60px;
    }

    .testimonialCard {
        min-width: 500px;
        max-width: 500px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .testimonialsSection {
        padding: 60px 0;
    }

    .testimonialsCarousel {
        padding: 0 50px;
    }

    .testimonialCard {
        min-width: 90%;
        max-width: 90%;
        padding: 28px;
    }

    .testimonialCard.side {
        opacity: 0.2;
        transform: scale(0.8);
    }

    .testimonialAvatar {
        width: 60px;
        height: 60px;
    }

    .avatarInitials {
        font-size: 24px;
    }

    .authorName {
        font-size: 18px;
    }

    .testimonialText {
        font-size: 15px;
    }

    .carouselNav {
        width: 48px;
        height: 48px;
    }

    .carouselNav svg {
        width: 20px;
        height: 20px;
    }
}
