.testi-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body {
    background: #121212;
}


.testi-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    padding: 60px 5px;
    position: relative;
    min-height: 100vh;
}


.testi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 165, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}


.testi-section .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.testi-section .testi-title {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 15px;
}


.testi-section .testi-title h1 {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffb300, #ff9800, #ff5722, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(255, 152, 0, 0.3);
    letter-spacing: -1px;
    animation: gradientShift 4s ease-in-out infinite;
}


@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.testi-section .testi-title .testi-highlight {
    display: block;
    font-size: 5.5rem;
    font-weight: 900;
    margin-top: -20px;
    background: linear-gradient(45deg, #ffd700, #ffb300, #ff9800, #ff5722);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    letter-spacing: -2px;
    animation: gradientShift 3s ease-in-out infinite;
    animation-delay: 0.5s;
}


.testi-section .testi-title p {
    font-size: 1.5rem;
    color: #e0e0e0;
    max-width: 900px;
    margin: 30px auto 0;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 300;
}


.testi-section .testi-cards-container {
    position: relative;
    perspective: 2000px;
    overflow: hidden;
    padding: 30px 0;
    width: 100%;
    margin: 0 auto;
}


.testi-section .testi-cards-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 25px;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    margin: 0 auto;
    padding: 0 20px;
    /* This CSS property is a hint to the browser to allow vertical scrolling (pan-y) */
    touch-action: pan-y pinch-zoom;
}


.testi-section .testi-card {
    width: 350px;
    height: 520px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 165, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: testi-fadeInUp 1s ease-out forwards;
}


.testi-section .testi-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 165, 0, 0.3),
        0 0 30px rgba(255, 165, 0, 0.2);
}


.testi-section .testi-card.flipped {
    transform: rotateY(180deg);
}


.testi-section .testi-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.testi-section .testi-card-front {
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}


.testi-section .testi-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}


.testi-section .testi-card-content {
    padding: 25px 30px;
    position: relative;
    z-index: 2;
    text-align: left;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
}


.testi-section .testi-client-name {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
    line-height: 1.2;
}


.testi-section .testi-client-title {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}


.testi-section .testi-client-quote {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    line-height: 1.4;
    font-size: 0.9rem;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: block;
    overflow: visible;
}


.testi-section .testi-card-back {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
    transform: rotateY(180deg);
    border: 2px solid rgba(255, 165, 0, 0.2);
    position: relative;
    overflow: hidden;
}


.testi-section .testi-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(255, 165, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(255, 193, 7, 0.03) 0%, transparent 50%);
    z-index: 0;
}


.testi-section .testi-back-content {
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    text-align: center;
}


.testi-section .testi-quote-marks {
    font-size: 8rem;
    color: rgba(255, 165, 0, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 0;
}


.testi-section .testi-testimonial-text {
    color: #f5f5f5;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-weight: 300;
    text-align: center;
}


.testi-section .testi-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb300;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 30px;
    padding-top: 25px;
    position: relative;
}


.testi-section .testi-signature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff9800, #ffd700, #ff9800, transparent);
    border-radius: 2px;
}


.testi-section .testi-signature i {
    margin-right: 15px;
    font-size: 1.8rem;
    color: #ff9800;
}


.testi-section .testi-flip-back {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 152, 0, 0.1);
    padding: 12px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 152, 0, 0.2);
    font-weight: 500;
}


.testi-section .testi-flip-back i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}


.testi-section .testi-flip-back:hover {
    background: rgba(255, 152, 0, 0.2);
    color: #ffd700;
    border-color: rgba(255, 152, 0, 0.4);
    transform: translateX(-50%) translateY(-3px);
}


.testi-section .testi-flip-back:hover i {
    transform: translateX(-8px);
}


@keyframes testi-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.testi-section .testi-card:nth-child(1) { animation-delay: 0.1s; }
.testi-section .testi-card:nth-child(2) { animation-delay: 0.2s; }
.testi-section .testi-card:nth-child(3) { animation-delay: 0.3s; }
.testi-section .testi-card:nth-child(4) { animation-delay: 0.4s; }
.testi-section .testi-card:nth-child(5) { animation-delay: 0.5s; }


.testi-section .floating-element {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,179,0,0.15) 0%, transparent 70%);
    filter: blur(1px);
}


.testi-section .float-1 {
    width: 400px;
    height: 400px;
    top: 8%;
    left: 3%;
    animation: float 15s infinite ease-in-out;
}


.testi-section .float-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    right: 5%;
    animation: float 18s infinite ease-in-out;
    animation-delay: 3s;
}


@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, -10px) rotate(180deg); }
    75% { transform: translate(-30px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}


.testi-nav-controls {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 25px;
}


.testi-nav-btn {
    background: linear-gradient(45deg, #ff9800, #ff5722, #ff7043);
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 30px rgba(255, 152, 0, 0.4),
        0 0 0 1px rgba(255, 152, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}


.testi-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}


.testi-nav-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(255, 152, 0, 0.6),
        0 0 0 2px rgba(255, 152, 0, 0.4);
}


.testi-nav-btn:hover::before {
    left: 100%;
}


.testi-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
}


.testi-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .testi-section .testi-title h1 {
        font-size: 3.8rem;
    }
    
    .testi-section .testi-title .testi-highlight {
        font-size: 4.5rem;
    }
    
    .testi-section .testi-card {
        width: 320px;
        height: 500px;
    }
    
    .testi-section .testi-cards-wrapper {
        padding: 0 40px;
    }
}


@media (max-width: 992px) {
    .testi-section {
        padding: 80px 15px;
    }
    
    .testi-section .testi-title h1 {
        font-size: 3.2rem;
    }
    
    .testi-section .testi-title .testi-highlight {
        font-size: 3.8rem;
    }
    
    .testi-section .testi-title p {
        font-size: 1.3rem;
    }
    
    .testi-section .testi-card {
        width: 300px;
        height: 480px;
    }
    
    .testi-section .testi-cards-wrapper {
        gap: 30px;
        padding: 0 30px;
    }
}


@media (max-width: 768px) {
    .testi-section {
        padding: 60px 10px;
    }
    
    .testi-section .testi-title {
        margin-bottom: 40px;
    }
    
    .testi-section .testi-title h1 {
        font-size: 2.4rem;
    }
    
    .testi-section .testi-title .testi-highlight {
        font-size: 2.8rem;
        margin-top: -15px;
    }
    
    .testi-section .testi-title p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .testi-section .testi-cards-container {
        padding: 20px 0;
        overflow: visible;
    }
    
    .testi-section .testi-cards-wrapper {
        padding: 0 20px;
        gap: 20px;
    }
    
    .testi-section .testi-card {
        width: calc(100vw - 80px);
        max-width: 350px;
        min-width: 280px;
        height: 420px;
    }
    
    /* Disable hover effects on mobile */
    .testi-section .testi-card:hover {
        transform: none;
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 165, 0, 0.1);
    }
    
    .testi-section .testi-client-name {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .testi-section .testi-client-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .testi-section .testi-client-quote {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .testi-section .testi-testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .testi-section .testi-back-content {
        padding: 30px 20px;
    }
    
    .testi-section .testi-quote-marks {
        font-size: 4.5rem;
        top: 10px;
        left: 15px;
    }
    
    .testi-section .testi-card-content {
        padding: 15px 20px;
    }
    
    .testi-nav-controls {
        margin-top: 40px;
        gap: 20px;
    }
    
    .testi-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}


@media (max-width: 480px) {
    .testi-section {
        padding: 40px 5px;
    }
    
    .testi-section .testi-title h1 {
        font-size: 2rem;
    }
    
    .testi-section .testi-title .testi-highlight {
        font-size: 2.4rem;
    }
    
    .testi-section .testi-title p {
        font-size: 1rem;
    }
    
    .testi-section .testi-cards-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
    
    .testi-section .testi-card {
        width: calc(100vw - 60px);
        max-width: 320px;
        min-width: 260px;
        height: 400px;
    }
    
    .testi-section .testi-client-name {
        font-size: 1.3rem;
    }
    
    .testi-section .testi-client-quote {
        font-size: 0.8rem;
    }
    
    .testi-section .testi-testimonial-text {
        font-size: 0.9rem;
    }
    
    .testi-section .testi-back-content {
        padding: 25px 15px;
    }
    
    .testi-section .testi-quote-marks {
        font-size: 3.5rem;
        top: 8px;
        left: 10px;
    }
    
    .testi-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testi-section .testi-signature {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .testi-section .testi-flip-back {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}
