/**
 * Trust2 — Testimonial section (futuristic)
 */

body.frontend-futuristic .fe-testimonial-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--fe-bg) 0%, var(--fe-bg-alt) 50%, var(--fe-bg) 100%);
}

body.frontend-futuristic .fe-testimonial-section .quote,
body.frontend-futuristic .fe-testimonial-section .linear-left,
body.frontend-futuristic .fe-testimonial-section .linear-right {
    display: none !important;
}

/* —— Background —— */
body.frontend-futuristic .fe-testimonial-section__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(255, 255, 255, 0.06);
}

body.frontend-futuristic .fe-testi-bg__grid {
    width: 100%;
    height: 100%;
    animation: feTestiGridDrift 52s linear infinite;
}

body.frontend-futuristic .fe-testi-bg__stars {
    position: absolute;
    top: 12%;
    right: 10%;
    width: min(200px, 35vw);
    height: auto;
    animation: feTestiStarsTwinkle 5s ease-in-out infinite;
}

body.frontend-futuristic .fe-testi-bg__quote {
    position: absolute;
    left: 4%;
    bottom: 10%;
    width: min(140px, 28vw);
    height: auto;
    color: var(--color-primary);
}

body.frontend-futuristic .fe-testi-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
    opacity: 0.4;
}

body.frontend-futuristic .fe-testi-bg__orb--1 {
    width: 400px;
    height: 400px;
    top: 8%;
    right: -6%;
    background: color-mix(in srgb, var(--color-primary) 30%, transparent);
    animation: feTestiOrb 18s ease-in-out infinite;
}

body.frontend-futuristic .fe-testi-bg__orb--2 {
    width: 340px;
    height: 340px;
    bottom: 0;
    left: -5%;
    background: rgba(251, 191, 36, 0.1);
    animation: feTestiOrb 22s ease-in-out infinite reverse;
}

body.frontend-futuristic .fe-testimonial-section .container {
    position: relative;
    z-index: 1;
}

/* —— Head —— */
body.frontend-futuristic .fe-testimonial-section__head {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

body.frontend-futuristic .fe-testimonial-title {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--fe-text);
    margin: 0 0 0.75rem;
}

body.frontend-futuristic .fe-testimonial-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--fe-muted);
    margin: 0;
}

@media (min-width: 992px) {
    body.frontend-futuristic .fe-testimonial-lead {
        font-size: 1.05rem;
    }

    body.frontend-futuristic .fe-testimonial-section__head {
        margin-bottom: 3rem;
    }
}

/* —— Rating card —— */
body.frontend-futuristic .fe-testimonial-section .fe-testimonial-rating.testimonial-card {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
    min-height: 280px;
    margin: 0 auto;
    padding: 1px !important;
    border: none !important;
    border-radius: 22px !important;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--color-primary) 42%, transparent),
        rgba(255, 255, 255, 0.06) 45%,
        color-mix(in srgb, #fbbf24 22%, transparent)
    ) !important;
    text-align: center;
}

body.frontend-futuristic .fe-testimonial-rating__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 278px;
    padding: 2rem 1.5rem;
    border-radius: 21px;
    background: linear-gradient(165deg, rgba(17, 24, 39, 0.96) 0%, rgba(10, 14, 23, 0.98) 100%);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

body.frontend-futuristic .fe-testimonial-rating__glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 58%);
    pointer-events: none;
}

body.frontend-futuristic .fe-testimonial-rating__quote {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

body.frontend-futuristic .fe-testimonial-rating__label {
    position: relative;
    z-index: 1;
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: var(--fe-text) !important;
    margin: 0 !important;
}

body.frontend-futuristic .fe-testimonial-rating__stars {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.frontend-futuristic .fe-testimonial-rating__stars i {
    font-size: 1.15rem;
    color: #fbbf24;
}

body.frontend-futuristic .fe-testimonial-rating__count {
    position: relative;
    z-index: 1;
    margin: 0.25rem 0 0 !important;
    font-size: 0.95rem;
    color: var(--fe-muted) !important;
}

body.frontend-futuristic .fe-testimonial-rating__count span {
    color: var(--fe-text);
    font-weight: 600;
}

/* —— Slider —— */
body.frontend-futuristic .fe-testimonial-slider-wrap {
    position: relative;
    min-height: 280px;
}

body.frontend-futuristic .fe-testimonial-slider {
    overflow: hidden;
    padding-bottom: 0.5rem;
}

body.frontend-futuristic .fe-testimonial-section .swiper-slide {
    opacity: 0.35;
    transition: opacity 0.45s ease;
    height: auto;
}

body.frontend-futuristic .fe-testimonial-section .swiper-slide-active {
    opacity: 1;
}

body.frontend-futuristic .fe-testimonial-section .fe-testimonial-item.testimonial-item {
    text-align: left;
    border-radius: 0;
}

body.frontend-futuristic .fe-testimonial-item__inner {
    position: relative;
    overflow: hidden;
    padding: 1px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 35%, transparent),
        rgba(255, 255, 255, 0.06) 50%,
        color-mix(in srgb, #6366f1 22%, transparent)
    );
    min-height: 260px;
}

body.frontend-futuristic .fe-testimonial-item__inner > .fe-testimonial-item__content,
body.frontend-futuristic .fe-testimonial-item__inner > .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 258px;
    padding: 1.75rem 1.6rem 1.5rem;
    border-radius: 19px;
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
    backdrop-filter: blur(12px);
}

body.frontend-futuristic .fe-testimonial-item__mark {
    position: absolute;
    top: 1rem;
    right: 1.15rem;
    z-index: 3;
    font-size: 2rem;
    line-height: 1;
    color: color-mix(in srgb, var(--color-primary) 55%, transparent);
    opacity: 0.65;
}

body.frontend-futuristic .fe-testimonial-section .fe-testimonial-item .content p,
body.frontend-futuristic .fe-testimonial-item__content p {
    font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: var(--fe-muted) !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    border: none !important;
}

body.frontend-futuristic .fe-testimonial-item__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
}

body.frontend-futuristic .fe-testimonial-item__avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 32%, transparent);
}

body.frontend-futuristic .fe-testimonial-section .fe-testimonial-item .designation h6,
body.frontend-futuristic .fe-testimonial-item__author h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--fe-text) !important;
    margin: 0 0 0.2rem !important;
}

body.frontend-futuristic .fe-testimonial-section .fe-testimonial-item .designation span,
body.frontend-futuristic .fe-testimonial-item__author span {
    font-size: 0.88rem !important;
    color: var(--fe-muted) !important;
    opacity: 1 !important;
}

/* —— Nav —— */
body.frontend-futuristic .fe-testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
}

body.frontend-futuristic .fe-testimonial-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 10%, rgba(10, 16, 28, 0.9));
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.frontend-futuristic .fe-testimonial-nav__btn:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 20%, transparent);
    color: var(--color-primary);
}

body.frontend-futuristic .fe-testimonial-nav__btn i {
    font-size: 1.15rem;
}

@media (max-width: 1199.98px) {
    body.frontend-futuristic .fe-testimonial-section .fe-testimonial-item.testimonial-item {
        text-align: center;
    }

    body.frontend-futuristic .fe-testimonial-item__author {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    body.frontend-futuristic .fe-testimonial-section {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    body.frontend-futuristic .fe-testimonial-section__head {
        margin-bottom: 1.75rem;
    }

    body.frontend-futuristic .fe-testimonial-rating__inner {
        min-height: 240px;
        padding: 1.5rem 1.25rem;
    }

    body.frontend-futuristic .fe-testimonial-item__inner > .content {
        min-height: 220px;
        padding: 1.35rem 1.15rem 1.2rem;
    }
}

@keyframes feTestiGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(48px, 48px); }
}

@keyframes feTestiOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-16px, 12px); }
}

@keyframes feTestiStarsTwinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-testi-bg__grid,
    body.frontend-futuristic .fe-testi-bg__orb,
    body.frontend-futuristic .fe-testi-bg__stars {
        animation: none !important;
    }
}
