/* ============================================
   WebVerse — Testimonials Section
   File: testimonials.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,900;1,300&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Section ── */
.wt-sec {
    background: #0f0e0c;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    padding-bottom: 4rem;
}

.wt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 5% 3.5rem;
}

/* ── Header ── */
.wt-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.wt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 0.6rem;
}

.wt-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    animation: wtPulse 2s ease-in-out infinite;
}

.wt-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.wt-title em {
    font-style: italic;
    font-weight: 300;
    color: #f59e0b;
}

/* ── Overall rating box ── */
.wt-overall {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    flex-shrink: 0;
}

.wt-overall__num {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
}

.wt-overall__stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.wt-overall__count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════
   MARQUEE TRACK
══════════════════════════════ */

.wt-track-wrap {
    position: relative;
    overflow: hidden;
}

/* Fade edges */
.wt-track-wrap::before,
.wt-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.wt-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0f0e0c 30%, transparent);
}

.wt-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0f0e0c 30%, transparent);
}

.wt-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 24px 20px 30px;
    animation: wtScroll 40s linear infinite;
}

.wt-track:hover {
    animation-play-state: paused;
}

/* ══════════════════════════════
   CARD
══════════════════════════════ */

.wt-card {
    width: 320px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.wt-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* ── Avatar + Name row ── */
.wt-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wt-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wt-card__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.wt-card__city {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wt-card__stars {
    font-size: 0.8rem;
    color: #f59e0b;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Big quote mark ── */
.wt-quote-mark {
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    line-height: 0.5;
    color: rgba(245, 158, 11, 0.18);
    display: block;
    margin-bottom: -4px;
}

/* ── Review text ── */
.wt-card__review {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

/* ── Product tag ── */
.wt-card__bottom {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wt-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.03em;
}

.wt-check-circle {
    width: 14px;
    height: 14px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ══════════════════════════════
   KEYFRAMES
══════════════════════════════ */

@keyframes wtScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes wtPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.6);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .wt-overall {
        align-self: stretch;
    }

    .wt-card {
        width: 280px;
    }

    .wt-track {
        animation-duration: 30s;
    }

    .wt-track-wrap::before,
    .wt-track-wrap::after {
        width: 60px;
    }
}

@media (max-width: 520px) {
    .wt-container {
        padding: 3rem 4% 2.5rem;
    }

    .wt-card {
        width: 260px;
    }

    .wt-track {
        animation-duration: 26s;
    }
}