/*
======================================================
8. TESTIMONIALS SECTION
======================================================
*/

/* .section-container, .container, .section-header, .section-badge, .highlight
   are all handled by global.css */

#testimonials {
    /* Use global var */
    background: linear-gradient(180deg, var(--bg-light-gray) 0%, var(--bg-white) 50%, var(--bg-light-gray) 100%);
    min-height: 750px;
}

/* Animated Background */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    /* Use new orange theme */
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.3));
    top: 10%;
    left: -100px;
    animation: float1 15s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    /* Use new orange theme */
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.3), rgba(249, 115, 22, 0.3));
    bottom: 10%;
    right: -80px;
    animation: float2 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}

/* Header font override */
#testimonials .section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
}

#testimonials .section-header p {
    font-size: 1.3rem;
}

/* Stories Container */
.stories-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
}

/* Story Cards - Stack Layout */
.story-wrapper {
    position: relative;
    min-height: 650px; /* Adjusted height */
}

.story-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.story-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    position: relative;
}

.story-content {
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 4rem;
    align-items: start;
    background: var(--bg-white);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Left Side - Image */
.story-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.story-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* Use new orange theme */
    color: var(--primary-accent);
}

/* Stats Overlay */
.stats-bar {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    z-index: 3;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.3rem;
    line-height: 1;
    /* Use new orange theme */
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Right Side - Content */
.story-text {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story-text h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    /* Use new orange theme */
    color: var(--primary-accent);
}

.challenge {
    /* Use new orange theme */
    background: rgba(249, 115, 22, 0.05);
    border-left: 4px solid var(--primary-accent);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.challenge h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.challenge p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: 1rem; /* Reduced margin */
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 5rem;
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
    /* Use new orange theme */
    color: var(--primary-accent);
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.role {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Navigation */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    user-select: none;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    /* Use new orange theme */
    border: 2px solid rgba(249, 115, 22, 0.2);
    color: var(--primary-accent);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.control-btn:hover {
    /* Use new orange theme */
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
}

.control-btn:active {
    transform: scale(1);
}

.dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #9CA3AF;
    transform: scale(1.2);
}

.dot.active {
    width: 35px;
    border-radius: 8px;
    /* Use new orange theme */
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
}

/* CTA */
.success-cta {
    max-width: 1000px;
    margin: 6rem auto 0;
    text-align: center;
    background: var(--bg-white);
    padding: 4rem 3rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.08); /* Use new orange theme */
}

.success-cta h3 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.success-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* .cta-btn is removed, as it's now using global .btn .btn-primary */

/* Responsive */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stats-bar {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
    }
    #testimonials .section-header h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    #testimonials .section-header h2 {
        font-size: 2.5rem;
    }
    .story-text h3 {
        font-size: 2rem;
    }
    .story-image img {
        height: 300px;
    }
    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .control-btn {
        width: 50px;
        height: 50px;
    }
    .story-wrapper {
        min-height: 850px; /* Taller on mobile */
    }
}