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

#testimonials {
    background: var(--beige);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
    animation: slideInRight 0.8s var(--transition-ease)
}

.testimonials-container h2 {
    color: var(--primary-blue);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-family: 'Trebuchet MS';
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-md);
    animation: pulse 3s ease-in-out infinite;
    
}

/* Decorative line under heading */
.testimonials-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.testimonial-item {
    background: var(--white);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all var(--transition-speed) var(--transition-ease);
    animation: fadeIn 0.8s var(--transition-ease);
}

.testimonial-item:nth-child(1) {
    animation-delay: 0.2s;
}

.testimonial-item:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Quote mark decoration */
.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.15);
    font-family: var(--font-display);
    line-height: 1;
    pointer-events: none;
}

.testimonial-image {
    width: 120px;
    height: 120px;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) var(--transition-ease);
}

.testimonial-item:hover .testimonial-image img {
    transform: scale(1.1);
    border-color: var(--primary-blue);
}

/* Decorative ring around image */
.testimonial-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.testimonial-text {
    position: relative;
    z-index: 2;
}

.testimonial-text p {
    color: var(--dark-gray);
    font-family: var(--font-secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-name {
    display: block;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    position: relative;
    padding-top: var(--spacing-sm);
}

/* Decorative line above name */
.testimonial-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: var(--spacing-md);
    }

    .testimonials-container h2 {
        animation: pulse 3s ease-in-out infinite;
    }
}

@media (max-width: 768px) {
    #testimonials {
        padding: var(--spacing-md) 0;
        width: 100%;
    }
    
    .testimonials-container {
        padding: 0 var(--spacing-sm);
        width: 85%;
        animation: slideInRight 0.8s var(--transition-ease)
    }


    .testimonials-container h2 {
        animation: pulse 3s ease-in-out infinite;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .testimonial-item {
        padding: var(--spacing-md);
    }
    
    .testimonial-item::before {
        font-size: 4rem;
        top: 15px;
        left: 20px;
    }
    
    .testimonial-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {

#testimonials {
        padding: var(--spacing-md) 0;
        width: 100%;
    }


    .testimonials-container h2::after {
        width: 80px;
        height: 3px;
    }
    
    .testimonial-item {
        padding: var(--spacing-sm);
    }
    
    .testimonial-item::before {
        font-size: 3rem;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-image {
        width: 90px;
        height: 90px;
    }
    
    .testimonial-name::before {
        width: 50px;
    }
}

/* Alternative layout for more testimonials */
@media (min-width: 1400px) {
    .testimonials-grid.large-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
