/* SCSS Variables converted to CSS */
:root {
    --font-weight-semibold: 600;
    --border-radius-30: 30px;
    --border-radius-lg: 15px;
    --card-border-color: rgba(255, 255, 255, 0.1);
    --white: #FFFFFFFF;
    --text-desc: #c4c4c4;
}

body {
    font-family: 'Helvetica', sans-serif;
}

/* Main Testimony Section Styles */
.testimony {
    padding: 150px 0;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1641758418881-1c3ebf530798?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.testimony::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.testimony .container {
    position: relative;
    z-index: 3;
}

.testimony .shape {
    position: absolute;
    top: -15px;
    right: -100px;
    height: 130px;
    opacity: 0.15;
    z-index: 1;
}

.testimony small {
    padding-bottom: 30px;
    font-weight: var(--font-weight-semibold);
    color: #ffd700;
}

.testimony h2 {
    font-weight: var(--font-weight-semibold);
    color: var(--white);
}

.testimony .section-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.testimony .section-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
    color: #000;
    text-decoration: none;
}

/* Enhanced Owl Carousel Styles */
.testimony-slider {
    position: relative;
    padding: 50px 0;
}

.testimony-slider .owl-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimony-slider .owl-item .item {
    margin: 0 10px;
    transform: scale(0.98);
    opacity: 0.9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Center item animation */
.testimony-slider .owl-item.center .item {
    transform: scale(1.01) translateY(-4px);
    opacity: 1;
    z-index: 10;
}

.testimony-slider .owl-item.center .testimony-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 215, 0, 0.18);
}

.testimony-slider .owl-stage-outer {
    overflow: visible !important;
}

/* Navigation Controls */
.testimony-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimony-slider .owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffd700;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.testimony-slider .owl-nav button:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.testimony-slider .owl-nav .owl-prev {
    left: -25px;
}

.testimony-slider .owl-nav .owl-next {
    right: -25px;
}

/* Dots Navigation */
.testimony-slider .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.testimony-slider .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 8px;
}

.testimony-slider .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.testimony-slider .owl-dots .owl-dot.active span {
    background: #ffd700;
    transform: scale(1.3);
}

/* Testimony Card Styles */
.testimony-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius-30);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.testimony-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* background: linear-gradient(90deg,#5132d1, #ffd700,  #7026ca); */
    background: #ffd700;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.testimony-card:hover::before {
    transform: translateX(0);
}

/* User Image Styles */
.testimony-card .user-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background-color: var(--card-border-color);
}

.owl-item.center .testimony-card .user-image {
    transform: scale(1.03);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.testimony-card .user-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rating and Content Styles */
.testimony-card .rating {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.owl-item.center .testimony-card .rating {
    transform: scale(1.03);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.testimony-card .quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-desc);
    transition: all 0.4s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* min-height: 60px; */
    min-height: 100px;
    display: block;
}

.owl-item.center .testimony-card .quote {
    color: var(--white);
}

.testimony-card .author {
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimony-card .position {
    color: var(--text-desc);
    font-size: 1rem;
}

/* Loading and Error States */
.loading-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border-color);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-30);
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffd700;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

/* Floating particles animation */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .testimony {
        padding: 120px 0;
    }
    .testimony-card {
        padding: 28px 16px;
    }
}

@media (max-width: 1200px) {
    .testimony {
        padding: 100px 0;
    }
    .testimony-card {
        padding: 24px 12px;
    }
    .testimony h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .testimony {
        padding: 80px 0;
    }
    .testimony h2 {
        font-size: 2rem;
    }
    .testimony-card {
        padding: 20px 8px;
    }
    .testimony-card .user-image {
        width: 65px;
        height: 65px;
    }
    .testimony-card .quote {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .testimony {
        padding: 60px 0;
    }
    .testimony h2 {
        font-size: 1.7rem;
    }
    .testimony .section-btn {
        font-size: 1rem;
        padding: 14px 30px;
    }
    .testimony-card {
        padding: 16px 4px;
    }
    .testimony-card .user-image {
        width: 55px;
        height: 55px;
    }
    .testimony-card .quote {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .testimony {
        padding: 40px 0;
    }
    .testimony h2 {
        font-size: 1.3rem;
    }
    .testimony .section-btn {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    .testimony-card {
        padding: 10px 2px;
    }
    .testimony-card .user-image {
        width: 40px;
        height: 40px;
    }
    .testimony-card .quote {
        font-size: 0.80rem;
    }
    .testimony-card .author {
        font-size: 1rem;
    }
    .testimony-card .position {
        font-size: 0.9rem;
    }
}
