.testi-evervault-section {
    padding: 80px 0 100px 0;
    /* Restored padding for clean spacing */
    background: linear-gradient(135deg, #ffffff 0%, rgba(245, 197, 24, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.testi-evervault-section .section-eyebrow {
    background: transparent !important;
    /* Forcefully remove any yellow badge/shadow effect */
    padding: 0;
    margin-bottom: 1.5rem;
}

.testi-evervault-section .section-title {
    color: var(--dark);
}

.testi-evervault-section .section-sub {
    color: var(--mid);
}

.testi-ever-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

/* Particle Background */
#particleCanvas {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 300px;
    z-index: 1;
    pointer-events: none;
}

/* Scanner Light Bar */
.testi-scanner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 320px;
    border-radius: 30px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(245, 197, 24, 0.8),
            rgba(139, 92, 246, 1),
            /* Purple Sparkle center */
            rgba(245, 197, 24, 0.8),
            transparent);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6), 0 0 50px rgba(245, 197, 24, 0.3);
    z-index: 20;
    pointer-events: none;
}

#scannerCanvas {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 320px;
    z-index: 15;
    pointer-events: none;
}

/* Card Stream Alignment */
.testi-card-stream {
    position: absolute;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 10;
}

.testi-card-line {
    display: flex;
    align-items: center;
    gap: 50px;
    white-space: nowrap;
    will-change: transform;
    padding-left: 20%;
}

/* Individual Card Wrapper */
.testi-card-wrapper {
    position: relative;
    width: 380px;
    height: 340px;
    flex-shrink: 0;
    perspective: 1000px;
}

.testi-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Normal Visual Card */
.testi-card-normal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 2;
    clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.testi-card-inner {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    white-space: normal;
    /* Fixes the text cutoff from parent nowrap */
}

.testi-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.testi-card-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 13px;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.testi-card-stars {
    color: var(--yellow);
    font-size: 14px;
    letter-spacing: 2px;
}

.testi-card-quote {
    font-size: 14.5px;
    color: #222;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.testi-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-card-avatar-wrap {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--yellow);
    background: #eee;
    flex-shrink: 0;
}

.testi-card-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-card-name {
    font-weight: 800;
    font-size: 14px;
    color: #000;
    line-height: 1.2;
}

.testi-card-role {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.testi-card-code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #000;
    letter-spacing: 1px;
}

/* ASCII / Code Card */
.testi-card-ascii {
    background: #000;
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

.testi-ascii-content {
    padding: 15px;
    color: var(--yellow);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 11px;
    white-space: pre;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .testi-card-wrapper {
        width: 300px;
        height: 200px;
    }

    .testi-card-inner {
        padding: 15px;
    }

    .testi-card-quote {
        font-size: 13px;
    }
}