/* Designed and developed by Aditya Panigrahi */

/* Testimonials Section Styles */
.testimonials-section {
    background: linear-gradient(180deg, #dae8ec 0%, #98E5FF 100%);
    border-radius: 20px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

/* Custom styling for testimonials title highlight */
.testimonials-title .highlight {
    font-weight: 900;
}

/* Testimonials carousel container */
.testimonials-carousel {
    width: 100%;
    position: relative;
}

.testimonials-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    max-width: 100%;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

/* Testimonial card positioning and transitions */
.testimonial-card {
    position: absolute;
    opacity: 0.3;
    transform: scale(0.8) translateX(0);
    transition: all 0.5s ease-in-out;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 10;
    pointer-events: auto;
}

.testimonial-card.prev {
    transform: scale(0.8) translateX(-50%);
    opacity: 0.7;
    z-index: 5;
    cursor: pointer;
}

.testimonial-card.next {
    transform: scale(0.8) translateX(50%);
    opacity: 0.7;
    z-index: 5;
    cursor: pointer;
}

.testimonial-card.prev:hover {
    transform: scale(0.85) translateX(calc(-50% * 0.9));
    opacity: 0.9;
    transition: all 0.3s ease;
}

.testimonial-card.next:hover {
    transform: scale(0.85) translateX(calc(50% * 0.9));
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Add subtle indicators for clickable side testimonials */
.testimonial-card.prev::before,
.testimonial-card.next::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card.prev::before {
    left: -15px;
    border-right-color: #1565c0;
}

.testimonial-card.next::before {
    right: -15px;
    border-left-color: #1565c0;
}

.testimonial-card.prev:hover::before,
.testimonial-card.next:hover::before {
    opacity: 0.7;
}

/* Quote header layout */
.quote-header {
    position: relative;
}

/* Quote icon colors */
.quote-icon.purple {
    color: #9c27b0;
}

.quote-icon.green {
    color: #4caf50;
}

/* Company logo styling */
.company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
}

.company-logo img {
    max-height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.company-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Custom card styling */
.testimonial-card .card {
    max-width: 500px;
    width: 70%;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card.prev .card,
.testimonial-card.next .card {
    margin: 0 15px;
}

.testimonial-card.active .card {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.testimonial-card.prev .card,
.testimonial-card.next .card {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Author information styling */
.author-name {
    font-size: 0.9rem !important;
}

.author-title {
    font-size: 0.8rem !important;
}

/* Professional spacing for author info */
.author-info .author-name {
    margin-bottom: 0.25rem !important;
}

.author-info .author-title {
    margin-bottom: 0.25rem !important;
}

.author-info .author-company {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
}

/* Navigation dots styling */
.dot {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #1565c0;
    transform: scale(1.2);
}

/* Section title responsive */
.testimonials-section .heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.testimonials-section .sub-heading {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Navigation controls responsive */
.testimonials-nav {
    margin-top: 3rem;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #1565c0;
    color: white;
    border-color: #1565c0;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .testimonial-card.prev {
        transform: scale(0.75) translateX(-50%);
    }
    
    .testimonial-card.next {
        transform: scale(0.75) translateX(50%);
    }
    
    .testimonial-card .card {
        max-width: 450px;
    }
    
    .testimonial-card.prev .card,
    .testimonial-card.next .card {
        margin: 0 10px;
    }
}

@media (max-width: 992px) {
    .testimonial-card.prev {
        transform: scale(0.7) translateX(-55%);
    }
    
    .testimonial-card.next {
        transform: scale(0.7) translateX(55%);
    }
    
    .testimonial-card .card {
        max-width: 400px;
    }
    
    .testimonial-card.prev .card,
    .testimonial-card.next .card {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        margin: 5px;
        border-radius: 15px;
    }
    
    .testimonials-container {
        height: 450px;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 15px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        opacity: 1;
        position: relative;
        width: 100%;
        max-width: 280px;
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 20px;
        transform: none;
        left: auto;
    }
    
    .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .testimonial-card.active {
        opacity: 1;
        transform: none;
    }
    
    .testimonial-card.prev {
        transform: none;
    }
    
    .testimonial-card.next {
        transform: none;
    }
    
    .testimonial-card .card {
        width: 100%;
        height: auto;
        min-height: 400px;
        border-radius: 20px;
        margin: 0;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .card-body {
        padding: 1.5rem !important;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    /* Quote header for mobile */
    .quote-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.75rem;
    }
    
    .quote-icon i {
        font-size: 1.5rem !important;
    }
    
    .company-logo {
        min-width: 40px;
    }
    
    .company-logo img {
        max-height: 20px;
    }
    
    /* Rating */
    .rating {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .rating i {
        margin-right: 0.2rem !important;
    }
    
    /* Testimonial text */
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        flex-grow: 1;
        text-align: left;
    }
    
    /* Author section */
    .testimonial-author {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .author-image img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .author-name {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600;
    }
    
    .author-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        color: #666;
    }
    
    .author-company {
        font-size: 0.75rem !important;
        color: #888;
    }
    
    /* Hide arrow indicators on mobile */
    .testimonial-card.prev::before,
    .testimonial-card.next::before {
        display: none;
    }
    
    /* Add scroll indicator */
    .testimonials-container::after {
        content: '';
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 40px;
        background: linear-gradient(to bottom, rgba(21, 101, 192, 0.3), rgba(21, 101, 192, 0.1));
        border-radius: 2px;
        pointer-events: none;
        opacity: 0.7;
    }
    
    /* Section title responsive */
    .testimonials-section .heading {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .testimonials-section .sub-heading {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Navigation controls */
    .testimonials-nav {
        margin-top: 2rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .testimonials-container {
        height: 420px;
        padding: 0 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 250px;
        min-width: 200px;
        position: relative;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 15px;
        transform: none;
        left: auto;
    }
    
    .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .testimonial-card.active {
        opacity: 1;
        transform: none;
    }
    
    .testimonial-card.prev {
        transform: none;
    }
    
    .testimonial-card.next {
        transform: none;
    }
    
    .testimonial-card .card {
        width: 100%;
        min-height: 380px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .quote-icon i {
        font-size: 1.25rem !important;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .author-name {
        font-size: 0.8rem !important;
    }
    
    .author-title {
        font-size: 0.7rem !important;
    }
    
    .author-company {
        font-size: 0.65rem !important;
    }
    
    .author-image img {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Section title responsive */
    .testimonials-section .heading {
        font-size: 1.8rem;
    }
    
    .testimonials-section .sub-heading {
        font-size: 0.9rem;
    }
    
    /* Navigation controls responsive */
    .testimonials-nav {
        margin-top: 1.5rem;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        height: 400px;
        padding: 0 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
        position: relative;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 12px;
        transform: none;
        left: auto;
    }
    
    .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .testimonial-card.active {
        opacity: 1;
        transform: none;
    }
    
    .testimonial-card.prev {
        transform: none;
    }
    
    .testimonial-card.next {
        transform: none;
    }
    
    .testimonial-card .card {
        width: 100%;
        min-height: 360px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
    
    .quote-icon i {
        font-size: 1.1rem !important;
    }
    
    .testimonial-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .author-image img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .company-logo img {
        max-height: 18px;
    }
    
    .author-name {
        font-size: 0.75rem !important;
    }
    
    .author-title {
        font-size: 0.65rem !important;
    }
    
    .author-company {
        font-size: 0.6rem !important;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 375px) {
    .testimonials-container {
        height: 380px;
        padding: 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-card {
        width: 100%;
        max-width: 300px;
        min-width: 260px;
        position: relative;
        flex-shrink: 0;
        scroll-snap-align: center;
        margin-right: 10px;
        transform: none;
        left: auto;
    }
    
    .testimonial-card:last-child {
        margin-right: 0;
    }
    
    .testimonial-card.active {
        opacity: 1;
        transform: none;
    }
    
    .testimonial-card.prev {
        transform: none;
    }
    
    .testimonial-card.next {
        transform: none;
    }
    
    .testimonial-card .card {
        width: 100%;
        min-height: 340px;
        border-radius: 14px;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .testimonial-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .rating {
        font-size: 0.8rem;
    }
    
    .rating i {
        margin-right: 0.2rem !important;
    }
    
    .quote-icon i {
        font-size: 1rem !important;
    }
    
    .author-image img {
        width: 30px !important;
        height: 30px !important;
    }
    
    .author-name {
        font-size: 0.7rem !important;
    }
    
    .author-title {
        font-size: 0.6rem !important;
    }
    
    .author-company {
        font-size: 0.55rem !important;
    }
    
    /* Section title responsive */
    .testimonials-section .heading {
        font-size: 1.6rem;
    }
    
    .testimonials-section .sub-heading {
        font-size: 0.85rem;
    }
    
    /* Navigation controls responsive */
    .nav-arrow {
        width: 30px;
        height: 30px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
}
