/* Trust & Testimonials Section - Switchable Content */
.trust-testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.trust-testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* Tab Navigation */
.content-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s;
}

.tab-btn:hover {
    border-color: rgba(212, 175, 55, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.tab-btn:hover i {
    transform: scale(1.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: rgba(212, 175, 55, 0.5);
    color: #D4AF37;
}

.tab-btn.active i {
    color: #D4AF37;
}

/* Tab Content Wrapper */
.tab-content-wrapper {
    position: relative;
    min-height: 400px;
    margin-top: 2rem;
}

.tab-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
    transform: translateX(30px);
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
}

/* Trust Stats Grid */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.trust-stat {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.trust-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(33, 150, 243, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.trust-stat:hover::before {
    opacity: 1;
}

.trust-stat:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.4s;
}

.trust-stat:hover .stat-icon {
    transform: scale(1.1) rotate(360deg);
}

.stat-icon i {
    font-size: 2rem;
    color: #fff;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: scale(1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF9800, #FFC107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-avatar i {
    font-size: 1.8rem;
    color: #fff;
}

.client-info {
    flex: 1;
    min-width: 150px;
}

.client-name {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-align: center;
}

.client-project {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.rating {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.rating i {
    color: #FFC107;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    text-align: center;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(255, 152, 0, 0.3);
    font-family: Georgia, serif;
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.4);
    color: #FF9800;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #FF9800;
    width: 30px;
    border-radius: 5px;
}

/* Tablet */
@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .tab-btn {
        padding: 1.2rem 2.5rem;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
    }

    .trust-stat {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }
}

/* Touch Device Support */
@media (hover: none) and (pointer: coarse) {

    .tab-btn,
    .trust-stat,
    .testimonial-prev,
    .testimonial-next,
    .dot {
        cursor: auto;
    }

    /* Swipe indicator for mobile */
    .tab-content-wrapper::after {
        content: 'Kaydırın';
        position: absolute;
        bottom: -2rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile Centering */
@media (max-width: 767px) {
    .testimonial-card {
        text-align: center;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .client-info {
        text-align: center;
        min-width: auto;
    }

    .testimonial-text {
        padding-left: 0;
    }

    .testimonial-text::before {
        display: none;
    }
}