﻿/* =============================================
   wwwroot/css/testimonials-section.css
   SunShine Premium Testimonials Section
   ============================================= */

:root {
    --green-deep: #071a10;
    --green-primary: #0e3521;
    --green-secondary: #1a5230;
    --gold-bright: #FFD700;
    --gold-mid: #F9A826;
    --gold-deep: #FF8C00;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-hover: 0 25px 50px rgba(249, 168, 38, 0.15);
}

/* ---------- Section Base ---------- */
.testimonials-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

/* ---------- Ambient Background ---------- */
.testimonial-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatBg 20s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--gold-bright), transparent 70%);
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--gold-deep), transparent 70%);
    animation-delay: 7s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--green-secondary), transparent 70%);
    animation-delay: 14s;
    opacity: 0.15;
}

@keyframes floatBg {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* ---------- Header ---------- */
.section-header {
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: var(--green-deep);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    color: var(--green-deep);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.golden-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
    border-radius: 2px;
    margin-top: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ---------- Carousel Wrapper ---------- */
.testimonials-carousel-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 60px;
}

/* ---------- Carousel ---------- */
.testimonials-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 33.3333%;
    padding: 1rem;
    box-sizing: border-box;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s ease;
    }

    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(255, 215, 0, 0.4);
    }

        .testimonial-card:hover::before {
            transform: scaleX(1);
        }

/* ---------- Quote Icon ---------- */
.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--green-deep), var(--green-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(7, 26, 16, 0.3);
    animation: quotePulse 3s ease-in-out infinite;
}

@keyframes quotePulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(7, 26, 16, 0.3);
    }

    50% {
        box-shadow: 0 8px 30px rgba(7, 26, 16, 0.5);
    }
}

/* ---------- Rating Stars ---------- */
.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

    .rating-stars i {
        color: #e0e0e0;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .rating-stars i.active {
            color: var(--gold-bright);
            text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
        }

/* ---------- Testimonial Text ---------- */
.testimonial-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative;
    padding-left: 1rem;
}

    .testimonial-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.25rem;
        bottom: 0.25rem;
        width: 3px;
        background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
        border-radius: 3px;
    }

/* ---------- Divider ---------- */
.testimonial-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
    margin-bottom: 1.5rem;
}

/* ---------- Client Info ---------- */
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.client-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

    .client-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        position: relative;
        z-index: 1;
        border: 3px solid #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold-bright), var(--gold-deep), var(--gold-bright));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateRing 3s linear infinite;
}

.testimonial-card:hover .avatar-ring {
    opacity: 1;
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

.client-details {
    min-width: 0;
    flex: 1;
}

.client-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-deep);
    margin: 0 0 0.15rem 0;
    line-height: 1.2;
}

.client-role {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-deep);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.client-location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

    .client-location i {
        color: var(--gold-mid);
        font-size: 0.7rem;
    }

/* ---------- Project Tag ---------- */
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--green-deep);
    font-weight: 600;
    align-self: flex-start;
}

    .project-tag i {
        color: #198754;
        font-size: 0.7rem;
    }

/* ---------- Carousel Navigation ---------- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: var(--green-deep);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

    .carousel-nav:hover {
        background: var(--green-deep);
        color: var(--gold-bright);
        border-color: transparent;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 25px rgba(7, 26, 16, 0.4);
    }

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

    .carousel-nav:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: translateY(-50%);
    }

/* ---------- Carousel Dots ---------- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

    .carousel-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d0d0d5;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

        .carousel-dots .dot:hover {
            background: #a8a8b3;
            transform: scale(1.2);
        }

        .carousel-dots .dot.active {
            width: 28px;
            border-radius: 5px;
            background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
        }

/* ---------- Trust Stats ---------- */
.testimonial-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.5);
}

.stat-content {
    min-width: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green-deep);
    margin: 0 0 0.15rem 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-slide {
        flex: 0 0 100%;
    }

    .testimonial-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem 1.75rem;
    }

    .quote-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 30px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .testimonial-stats {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}
