/* Supreme Horizontal 3D Carousel */
:root {
    --brand-blue: #0091FF;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

.tp-testimonial-v2-area {
    padding: 160px 0;
    overflow: hidden;
    perspective: 2500px;
}

.testimonial-stack-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Wider for horizontal spread */
    margin: 100px auto 0;
    height: 500px;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card-v2 {
    position: absolute;
    width: 100%;
    max-width: 550px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    transform-origin: center center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    cursor: grab;
    visibility: hidden; /* Set to visible in JS */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card-v2:active {
    cursor: grabbing;
}

.testi-v2-content-inner {
    transform-style: preserve-3d;
    pointer-events: none;
}

.testi-v2-quote {
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.2;
    font-size: 120px;
    line-height: 1;
    color: var(--brand-blue);
    font-family: serif;
    transform: translateZ(50px);
}

.testi-v2-text {
    font-size: 20px;
    line-height: 1.6;
    color: #fff !important;
    margin-bottom: 35px;
    font-weight: 300;
    transform: translateZ(80px);
}

.testi-v2-author {
    display: flex;
    align-items: center;
    gap: 30px;
    transform: translateZ(60px);
}

.testi-v2-avater {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.testi-v2-avater img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-v2-info h5 {
    color: #fff !important;
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 800;
}

.testi-v2-info span {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Master Progress Indicators */
.testi-v2-progress-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 40px auto 0;
    max-width: 700px;
    z-index: 100;
    position: relative;
}

.testi-v2-count {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    font-family: var(--tp-ff-teko);
    letter-spacing: 3px;
    width: 80px;
}

.testi-v2-count span {
    color: var(--brand-blue);
}

.testi-v2-progress-bar {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.testi-v2-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--brand-blue);
    box-shadow: 0 0 10px var(--brand-blue);
    transition: width 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.testi-v2-nav {
    display: flex;
    gap: 15px;
}

.btn-testi-v2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-testi-v2:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .testimonial-card-v2 {
        max-width: 80%;
        padding: 40px;
    }
    .testi-v2-text {
        font-size: 20px;
    }
}

/* Funfact Section - Premium Dark Tech Overhaul */
.tp-funfact-area {
    background: #000000 !important;
    overflow: visible !important;
}

.tp-funfact-panel {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important; /* Reverted to 100vh for GSAP Stability */
    display: flex !important;
    align-items: center !important;
    background: #000000 !important;
    border: none !important;
    overflow: visible !important;
}

.tp-funfact-green-wrap {
    background: transparent !important; 
    padding: 0 !important; /* Let flex handle it */
    width: 100% !important;
    overflow: visible !important;
}

.tp-funfact-number {
    font-size: 15vw !important; /* Scaled down from 25vw */
    line-height: .7 !important;
    overflow: visible !important;
    pointer-events: none;
    z-index: -1 !important; /* MUST be behind text to prevent overlap */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.tp-funfact-number span {
    font-size: inherit !important;
    letter-spacing: -0.05em !important;
    color: rgba(0, 145, 255, 0.05) !important; /* Subtle Blue Watermark Glow */
    -webkit-text-stroke: 0 !important; /* Remove the theme's default stroke */
    background: none !important;
    opacity: 0.5; /* Extra subtle layering */
}

.tp-funfact-number i, 
.tp-funfact-number em {
    -webkit-text-stroke: 0 !important;
    color: inherit !important;
    font-style: normal !important;
}

.tp-funfact-content-wrap {
    z-index: 10 !important;
    position: relative;
    padding: 0 40px !important;
}

.tp-funfact-title {
    font-size: clamp(34px, 5.5vw, 95px) !important;
    line-height: 1.0 !important;
    letter-spacing: -3px !important;
    color: #ffffff !important; /* Pure White on Dark */
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 0 !important;
}

.tp-funfact-subtitle {
    font-size: 14px !important;
    color: var(--brand-blue) !important; /* Iconic Blue Subtitle */
    margin-bottom: 25px !important;
    display: block !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 5px !important;
}

.tp-funfact-img img {
    filter: brightness(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 120px;
}

.tp-funfact-img:hover img {
    filter: brightness(1);
    transform: scale(1.1);
}

/* BIG DASHBOARD IMAGES */
.tp-funfact-big-img img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 145, 255, 0.15);
    transition: transform 0.5s ease;
}

.tp-funfact-big-img:hover img {
    transform: translateY(-10px);
}

/* STAT CARDS */
.tp-funfact-stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tp-funfact-stat-item:hover {
    background: rgba(0, 145, 255, 0.05);
    border-color: rgba(0, 145, 255, 0.2);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem !important;
    letter-spacing: 2px !important;
    opacity: 0.6;
}

@media (max-width: 991px) {
    .tp-funfact-panel {
        min-height: auto !important;
        padding: 80px 0 !important;
    }
    .stat-number {
        font-size: 3rem !important;
    }
}
