/* ===================================
   TESTIMONIALS SECTION - PREMIUM DESIGN
   =================================== */

.testimonials-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--primary-light-grey) 50%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

/* Sophisticated background pattern */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(217, 180, 95, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(217, 180, 95, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(217, 180, 95, 0.02) 0%, transparent 60%);
    z-index: 0;
    animation: breatheBackground 10s ease-in-out infinite;
}

@keyframes breatheBackground {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Decorative geometric elements */
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border: 1px solid rgba(217, 180, 95, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

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

/* ===================================
   SECTION HEADER ENHANCEMENT
   =================================== */

.testimonials-section .section-header {
    margin-bottom: var(--spacing-xl);
}

.testimonials-section .section-title {
    margin-bottom: var(--spacing-sm);
}

.testimonials-section .section-subtitle {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===================================
   TESTIMONIALS SLIDER - PREMIUM LAYOUT
   =================================== */

.testimonials-slider {
    margin-top: var(--spacing-xl);
    position: relative;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-track {
    position: relative;
    overflow: visible;
    perspective: 1000px;
}

/* ===================================
   TESTIMONIAL CARDS - ENHANCED DESIGN
   =================================== */

.testimonial-card {
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: testimonialReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes testimonialReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.08),
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    border: 1px solid rgba(217, 180, 95, 0.15);
    overflow: hidden;
}

/* Premium gradient accent */
.testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Decorative corner element */
.testimonial-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(217, 180, 95, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Quote icon - more elegant */
.quote-icon {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 7rem;
    font-family: Georgia, serif;
    color: rgba(217, 180, 95, 0.08);
    line-height: 1;
    font-weight: 700;
    z-index: 0;
    transform: rotate(-5deg);
}

/* ===================================
   VERIFIED BADGE & RATING
   =================================== */

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.15) 0%, rgba(217, 180, 95, 0.08) 100%);
    border-radius: var(--radius-full);
    border: 1px solid rgba(217, 180, 95, 0.25);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark-gold);
    letter-spacing: 0.3px;
}

.verified-badge svg {
    width: 16px;
    height: 16px;
    color: var(--primary-gold);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.star {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
    filter: drop-shadow(0 2px 4px rgba(217, 180, 95, 0.3));
}

/* ===================================
   TESTIMONIAL TEXT - ENHANCED TYPOGRAPHY
   =================================== */

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.testimonial-text::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary-gold);
    font-family: Georgia, serif;
    margin-right: 6px;
    vertical-align: top;
    line-height: 0.8;
    opacity: 0.7;
}

/* Highlight key phrases */
.testimonial-text strong {
    color: var(--text-dark);
    font-weight: 600;
    font-style: normal;
    background: linear-gradient(to bottom, transparent 60%, rgba(217, 180, 95, 0.15) 60%);
}

/* ===================================
   AUTHOR INFO - PREMIUM DESIGN
   =================================== */

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(217, 180, 95, 0.15);
    position: relative;
    z-index: 1;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(217, 180, 95, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Premium ring effect */
.author-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gold-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

/* Animated pulse ring */
.author-image::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-location {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-gold);
}

.author-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===================================
   SLIDER CONTROLS - PREMIUM DESIGN
   =================================== */

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 180, 95, 0.2);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.slider-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.slider-btn:hover {
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 12px 28px rgba(217, 180, 95, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.1);
}

.slider-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.slider-btn svg {
    position: relative;
    z-index: 1;
}

/* ===================================
   SLIDER DOTS - ENHANCED
   =================================== */

.slider-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(217, 180, 95, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 2px solid transparent;
}

.slider-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slider-dot:hover {
    background: rgba(217, 180, 95, 0.5);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary-gold);
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(217, 180, 95, 0.4);
}

.slider-dot.active::after {
    border-color: rgba(217, 180, 95, 0.2);
}

/* ===================================
   MOBILE SWIPE INDICATOR
   =================================== */

.swipe-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.swipe-indicator svg {
    width: 20px;
    height: 20px;
    animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* ===================================
   TESTIMONIAL COUNTER
   =================================== */

.testimonial-counter {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.counter-current {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

@media (max-width: 1024px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonial-content {
        padding: var(--spacing-lg);
    }
    
    .testimonial-text {
        font-size: 1.15rem;
    }
    
    .quote-icon {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 70px 0;
    }
    
    .testimonial-content {
        padding: var(--spacing-lg) var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .verified-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .testimonial-rating {
        position: absolute;
        top: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .star {
        width: 18px;
        height: 18px;
    }
    
    .testimonial-text {
        font-size: 1.08rem;
        line-height: 1.8;
        margin-bottom: var(--spacing-md);
    }
    
    .quote-icon {
        font-size: 5rem;
        top: 25px;
        right: 25px;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .slider-controls {
        gap: var(--spacing-md);
    }
    
    .swipe-indicator {
        display: flex;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-content {
        padding: var(--spacing-md);
        border-radius: var(--radius-sm);
    }
    
    .testimonial-content::after {
        width: 80px;
        height: 80px;
    }
    
    .verified-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .verified-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .star {
        width: 16px;
        height: 16px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .testimonial-text::before {
        font-size: 2rem;
    }
    
    .quote-icon {
        font-size: 4rem;
        top: 20px;
        right: 20px;
    }
    
    .testimonial-author {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .author-image {
        width: 55px;
        height: 55px;
    }
    
    .author-name {
        font-size: 1.05rem;
    }
    
    .author-location {
        font-size: 0.9rem;
    }
    
    .author-date {
        font-size: 0.8rem;
    }
    
    .slider-controls {
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
    }
    
    .slider-btn {
        width: 42px;
        height: 42px;
    }
    
    .slider-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 28px;
    }
}

/* ===================================
   TOUCH INTERACTION FEEDBACK
   =================================== */

@media (hover: none) and (pointer: coarse) {
    .testimonial-content {
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .slider-btn:active {
        transform: translateY(0) scale(0.95);
    }
    
    .slider-dot:active {
        transform: scale(0.9);
    }
}

/* ===================================
   SLIDER TRANSITION EFFECTS
   =================================== */

.testimonial-card.slide-out-left {
    animation: slideOutLeft 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.testimonial-card.slide-out-right {
    animation: slideOutRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.testimonial-card.slide-in-left {
    animation: slideInLeft 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.testimonial-card.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-80px) scale(0.95);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .testimonial-card.active,
    .author-image::after,
    .swipe-indicator svg,
    .testimonials-section::before {
        animation: none !important;
    }
    
    .testimonial-card.slide-out-left,
    .testimonial-card.slide-out-right,
    .testimonial-card.slide-in-left,
    .testimonial-card.slide-in-right {
        animation: none !important;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.slider-btn:focus-visible,
.slider-dot:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 3px;
}

/* ===================================
   LOADING STATE (OPTIONAL)
   =================================== */

.testimonials-slider.loading .testimonial-content {
    opacity: 0.5;
    pointer-events: none;
}

.testimonials-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(217, 180, 95, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
