/* Testimonial Section Styles */
.testimonial-section {
    background: linear-gradient(
        135deg,
        var(--Bg-8) 0%,
        var(--White) 50%,
        var(--Bg-16) 100%
    );
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="testimonial-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%230d401c" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23testimonial-pattern)"/></svg>');
    z-index: 1;
}

.testimonial-section .tf-container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.testimonial-tag {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--Secondary);
    font-family: "Work Sans", sans-serif;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.testimonial-tag::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--Secondary);
    border-radius: 2px;
}

.testimonial-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--Primary);
    font-family: "Work Sans", sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.testimonial-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--Text);
    font-family: "Nunito Sans", sans-serif;
    max-width: 700px;
    margin: 0 auto;
}

/* Testimonial Swiper Container */
.testimonial-swiper {
    width: 100%;
    padding: 40px 0 60px;
    overflow: visible;
}

.testimonial-swiper .swiper-wrapper {
    align-items: stretch;
}

.testimonial-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--White);
    border-radius: 25px;
    padding: 40px 30px 30px;
    box-shadow: 0 15px 50px rgba(13, 64, 28, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--Primary) 0%,
        var(--Secondary) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(13, 64, 28, 0.2);
    border-color: var(--Bg-1);
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    margin-bottom: 30px;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--Bg-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    position: relative;
}

.quote-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--Secondary);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: -1;
}

.testimonial-card:hover .quote-icon::after {
    transform: scale(1);
}

.quote-icon i {
    font-size: 24px;
    color: var(--Primary);
    transition: all 0.4s ease;
}

.testimonial-card:hover .quote-icon i {
    color: var(--Primary);
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--Text);
    font-family: "Nunito Sans", sans-serif;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--Bg-1);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-text::before {
    background: var(--Secondary);
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
}

.rating i {
    font-size: 16px;
    color: var(--Secondary);
    transition: all 0.3s ease;
}

.testimonial-card:hover .rating i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(248, 195, 44, 0.3));
}

/* Client Info */
.client-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid var(--Bg-1);
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-info {
    border-top-color: var(--Secondary);
}

.client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--Bg-1);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.testimonial-card:hover .client-photo {
    border-color: var(--Secondary);
    transform: scale(1.05);
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-photo img {
    transform: scale(1.1);
}

.client-details {
    flex: 1;
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--Primary);
    font-family: "Work Sans", sans-serif;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .client-name {
    color: var(--Bg);
}

.client-occupation {
    font-size: 14px;
    font-weight: 500;
    color: var(--Text-4);
    font-family: "Nunito Sans", sans-serif;
    margin-bottom: 3px;
}

.client-location {
    font-size: 13px;
    color: var(--Text);
    font-family: "Nunito Sans", sans-serif;
    margin: 0;
}

/* Navigation Buttons */
.testimonial-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.testimonial-button-prev,
.testimonial-button-next {
    position: absolute;
    width: 55px;
    height: 55px;
    background: var(--White);
    border: 2px solid var(--Bg-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 10px 30px rgba(13, 64, 28, 0.1);
}

.testimonial-button-prev:hover,
.testimonial-button-next:hover {
    background: var(--Primary);
    border-color: var(--Primary);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(13, 64, 28, 0.2);
}

.testimonial-button-prev i,
.testimonial-button-next i {
    font-size: 18px;
    color: var(--Primary);
    transition: all 0.3s ease;
}

.testimonial-button-prev:hover i,
.testimonial-button-next:hover i {
    color: var(--White);
}

.testimonial-button-prev {
    left: 0px;
}

.testimonial-button-next {
    right: 0px;
}

/* Pagination */
.testimonial-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: var(--Bg-1);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.testimonial-pagination .swiper-pagination-bullet:hover {
    background: var(--Secondary);
    transform: scale(1.2);
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--Primary);
    transform: scale(1.3);
    border-color: var(--Secondary);
}

/* Slide Animation Effects */
.testimonial-swiper .swiper-slide {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.testimonial-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-swiper .swiper-slide-next,
.testimonial-swiper .swiper-slide-prev {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonial-button-prev {
        left: -15px;
    }

    .testimonial-button-next {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .testimonial-title {
        font-size: 2.2rem;
    }

    .testimonial-card {
        padding: 30px 25px 25px;
    }

    .testimonial-button-prev,
    .testimonial-button-next {
        width: 50px;
        height: 50px;
    }

    .testimonial-button-prev i,
    .testimonial-button-next i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .testimonial-title {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 25px 20px 20px;
    }

    .quote-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .quote-icon i {
        font-size: 20px;
    }

    .testimonial-text {
        font-size: 15px;
        padding-left: 15px;
    }

    .client-info {
        gap: 15px;
        padding-top: 20px;
    }

    .client-photo {
        width: 60px;
        height: 60px;
    }

    .client-name {
        font-size: 16px;
    }

    .testimonial-button-prev,
    .testimonial-button-next {
        display: none;
    }

    .testimonial-navigation {
        display: none;
    }
}

@media (max-width: 576px) {
    .testimonial-title {
        font-size: 1.5rem;
    }

    .testimonial-swiper {
        padding: 30px 0 50px;
    }

    .testimonial-card {
        padding: 20px 15px 15px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .client-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .client-photo {
        width: 50px;
        height: 50px;
    }

    .testimonial-pagination {
        margin-top: 30px;
    }

    .testimonial-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
}

/* Loading Animation */
@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: testimonialFadeIn 0.6s ease forwards;
}

.testimonial-swiper .swiper-slide:nth-child(1) .testimonial-card {
    animation-delay: 0.1s;
}

.testimonial-swiper .swiper-slide:nth-child(2) .testimonial-card {
    animation-delay: 0.2s;
}

.testimonial-swiper .swiper-slide:nth-child(3) .testimonial-card {
    animation-delay: 0.3s;
}

/* Hover Effects for Better Interaction */
.testimonial-card:hover .testimonial-text {
    color: var(--Text-2);
}

.testimonial-card:hover .client-occupation {
    color: var(--Secondary);
}

.testimonial-card:hover .client-location {
    color: var(--Text-4);
}

/* Custom Scrollbar for Mobile */
.testimonial-swiper::-webkit-scrollbar {
    display: none;
}

.testimonial-swiper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
