:root {
    --bg-primary: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-muted: #b0b0b0;
    --accent-start: #FF1744;
    --accent-end: #FF6E40;
    --tooltip-shadow: rgba(255, 23, 68, 0.4);
    --bg: #0a0a0a;
    --surface: #111111;
    --border: #1a1a1a;
    --accent: #00d4ff;
    --text: #ffffff;
    --text-muted: #888888;
    --glass-background: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.light-theme {
    --bg-primary: #F5F5F5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #555555;
    --accent-start: #D32F2F;
    --accent-end: #F06292;
    --tooltip-shadow: rgba(211, 47, 47, 0.3);
    --bg: #ffffff;
    --surface: #f5f5f5;
    --border: #e0e0e0;
    --accent: #0066cc;
    --text: #1a1a1a;
    --text-muted: #666666;
    --glass-background: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(200, 200, 200, 0.3);
    --glow-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
}

.testimonial-section .section {
    padding: 60px 0;
    position: relative;
}

.testimonial-section .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--accent-start), 0.03) 0%, transparent 50%, rgba(var(--accent-end), 0.03) 100%);
    pointer-events: none;
}

.testimonial-section .fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadein 0.8s ease forwards;
}

@keyframes fadein {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-section .h2 {
    font-size: 2.2rem;
    font-weight: 800;
background: linear-gradient(135deg, var(--text), var(--accent));
    
    background-clip: text;               
    -webkit-background-clip: text;       
    
    -webkit-text-fill-color: transparent; 
    
    margin-bottom: 0.5rem;
    text-align: center;
}
.h2 {
    font-size: 2.25rem;
    font-weight:800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-section .body {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-section .testimonial-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.testimonial-section .testimonial-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-section .testimonial-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-section .testimonial-card {
    background: linear-gradient(135deg, var(--glass-background), var(--glass-background));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 20px 20px;
    width: 280px;
    min-width: 280px;
    height: 300px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    margin: 8px 0; 
}

.testimonial-section .testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--accent-start), 0.1) 0%, transparent 30%, rgba(var(--accent-end), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.testimonial-section .testimonial-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: rgba(var(--accent-start), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-shadow);
}

.testimonial-section .testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-section .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.testimonial-section .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.testimonial-section .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-section .avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(var(--text-primary), 0.5) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease-in-out;
    opacity: 0;
}

.testimonial-section .testimonial-card:hover .avatar::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.testimonial-section .client-info {
    flex-grow: 1;
}

.testimonial-section .client-name {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-section .client-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.testimonial-section .client-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.testimonial-section .location-icon {
    width: 10px;
    height: 10px;
}

.testimonial-section .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    justify-content: center;
}

.testimonial-section .star {
    width: 14px;
    height: 14px;
    color: var(--accent-start);
    fill: var(--accent-start);
}

.testimonial-section .star.empty {
    color: var(--bg-primary);
    fill: var(--bg-primary);
}

.testimonial-section .rating-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-start);
    margin-left: 6px;
}

.testimonial-section .testimonial-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 10px;
    flex-grow: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial-section .testimonial-card:hover .testimonial-text {
    color: var(--text-primary);
}

.testimonial-section .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: auto;
}

.testimonial-section .badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.testimonial-section .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-section .badge-icon {
    width: 8px;
    height: 8px;
}

.testimonial-section .scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.testimonial-section .scroll-btn {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    pointer-events: all;
}

.testimonial-section .scroll-btn:hover:not(:disabled) {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.testimonial-section .scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonial-section .scroll-btn i {
    width: 20px;
    height: 20px;
}

.testimonial-section .scroll-left {
    left: -20px;
}

.testimonial-section .scroll-right {
    right: -20px;
}

.testimonial-section .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.testimonial-section .theme-btn {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.testimonial-section .theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.testimonial-section .theme-btn i {
    width: 20px;
    height: 20px;
    transition: transform;
    transition-duration: 0.3s;
}

.testimonial-section.light-theme {
    background: radial-gradient(var(--surface), var(--bg));
    color: var(--text-primary);
}

.testimonial-section.light-theme .h2 {
    background: linear-gradient(45deg, var(--text-primary), var(--accent-start));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-section.light-theme .body {
    color: var(--text-muted);
}

.testimonial-section.light-theme .testimonial-card {
    background: var(--glass-background);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-section.light-theme .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), var(--glow-shadow);
}

.testimonial-section.light-theme .client-info {
    color: var(--text-primary);
}

.testimonial-section.light-theme .client-title {
    color: var(--text-muted);
}

.testimonial-section.light-theme .client-location {
    color: var(--text-muted);
}

.testimonial-section.light-theme .testimonial-text {
    color: var(--text-muted);
}

.testimonial-section.light-theme .testimonial-card:hover .testimonial-text {
    color: var(--text-primary);
}

.testimonial-section.light-theme .scroll-btn,
.testimonial-section.light-theme .theme-btn {
    background: var(--glass-background);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .testimonial-section .testimonial-card {
        width: 260px;
        min-width: 260px;
        height: 400px;
        padding: 10px;
    }
    .testimonial-section .h2 {
        font-size: 24px;
    }
    .testimonial-section .avatar {
        width: 40px;
        height: 40px;
        font-size: normal;
    }
    .testimonial-section .client-name {
        font-size: 20px;
    }
    .testimonial-section .testimonial-text {
        font-size: 14px;
    }
}
