/* 📄 BESTAND: public/css/testimonials-carousel.css */

/* =====================================================
   TESTIMONIALS SECTION STYLING
   ===================================================== */

   .testimonials-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.testimonials-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-gray);
    line-height: 1.6;
}

/* =====================================================
   CAROUSEL CONTAINER
   ===================================================== */

.testimonials-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
    position: relative;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

/* =====================================================
   TESTIMONIAL CARD ELEMENTS
   ===================================================== */

.quote-icon {
    margin-bottom: 1.5rem;
}

.quote-icon i {
    font-size: 2.5rem;
    color: var(--accent-color, #3b82f6);
    opacity: 0.3;
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.testimonial-rating i {
    font-size: 1.2rem;
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.testimonial-rating i.active {
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-style: italic;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   CLIENT INFO
   ===================================================== */

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color, #3b82f6);
    position: relative;
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-photo:hover img {
    transform: scale(1.1);
}

.client-details {
    text-align: left;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.client-position {
    font-size: 1rem;
    color: var(--accent-gray);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.client-position .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.client-company {
    font-weight: 500;
}

.project-type {
    display: inline-block;
    background: var(--accent-color, #3b82f6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.testimonials-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent-color, #3b82f6);
    color: var(--accent-color, #3b82f6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.nav-btn:hover {
    background: var(--accent-color, #3b82f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.testimonial-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: var(--accent-color, #3b82f6);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--accent-color, #3b82f6);
    opacity: 0.7;
}

/* =====================================================
   CALL TO ACTION
   ===================================================== */

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

.testimonials-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    background: var(--accent-color, #3b82f6);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonials-cta .btn:hover {
    background: transparent;
    border-color: var(--accent-color, #3b82f6);
    color: var(--accent-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

/* =====================================================
   BACKGROUND ELEMENTS
   ===================================================== */

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonials-section .section-title {
        font-size: 2rem;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .client-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .client-details {
        text-align: center;
    }
    
    .client-photo {
        width: 60px;
        height: 60px;
    }
    
    .testimonials-navigation {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .quote-icon i {
        font-size: 2rem;
    }
    
    .testimonials-cta .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* =====================================================
   ACCESSIBILITY IMPROVEMENTS
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .testimonials-track,
    .testimonial-card,
    .nav-btn,
    .dot,
    .bg-shape {
        transition: none;
        animation: none;
    }
}

.testimonials-carousel:focus-within {
    outline: 2px solid var(--accent-color, #3b82f6);
    outline-offset: 4px;
}