/* Enhanced Testimony Section - Modern Design */

#testimony {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
    overflow: hidden;
}

/* Background Elements */
.testimony-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.testimony-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 186, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 186, 255, 0.04) 0%, transparent 50%);
    background-size: 800px 800px;
}

.testimony-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-quote {
    position: absolute;
    font-size: 8rem;
    font-weight: 300;
    color: rgba(0, 186, 255, 0.1);
    font-family: Georgia, serif;
    animation: floatQuote 15s ease-in-out infinite;
}

.quote-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.quote-2 {
    bottom: 15%;
    right: 8%;
    animation: floatQuote2 15s ease-in-out infinite;
    animation-delay: -7s;
}

.floating-star {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 193, 7, 0.3);
    animation: floatStar 12s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.star-2 {
    top: 70%;
    left: 10%;
    animation-delay: -5s;
}

.star-3 {
    top: 40%;
    right: 5%;
    animation-delay: -8s;
}

@keyframes floatQuote {
    0%, 100% { transform: translateY(0) rotate(0deg);    opacity: 0.1; }
    50%       { transform: translateY(-20px) rotate(5deg); opacity: 0.2; }
}

/* quote-2 is flipped 180° — keep that base rotation throughout */
@keyframes floatQuote2 {
    0%, 100% { transform: translateY(0) rotate(180deg);   opacity: 0.1; }
    50%       { transform: translateY(-20px) rotate(185deg); opacity: 0.2; }
}

@keyframes floatStar {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-15px) scale(1.2); 
        opacity: 0.6;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.testimony-header {
    margin-bottom: 4rem;
}

.testimony-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 186, 255, 0.1);
    border: 1px solid rgba(0, 186, 255, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066cc;
    backdrop-filter: blur(10px);
}

.testimony-badge i {
    color: #00baff;
    font-size: 1rem;
}

.testimony-main-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #0066cc;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #00baff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.testimony-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Video Section */
.video-wrapper {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 186, 255, 0.15);
}

.video-info {
    text-align: center;
    color: white;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.video-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
}

.video-decorations {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 186, 255, 0.2), rgba(0, 230, 255, 0.1));
    animation: decorationFloat 8s ease-in-out infinite;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.circle-2 {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 30px;
    animation-delay: -2s;
}

.circle-3 {
    width: 25px;
    height: 25px;
    bottom: 0;
    left: 0;
    animation-delay: -4s;
}

@keyframes decorationFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-10px) scale(1.1); 
        opacity: 0.6;
    }
}

/* Testimonial Carousel - Fixed Layout */
.testimonial-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
}

/* Carousel Container */
#testimonialCarousel {
    position: relative !important;
    width: 100% !important;
    max-width: 900px !important;
    max-height: 500px !important;
    margin: 0 auto !important;
}

/* Carousel Inner */
.testimonial-carousel-inner {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

/* Testimonial Slide */
.testimonial-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 400px !important;
    padding: 2rem 1rem !important;
    width: 100% !important;
}

/* Testimonial Card */
.testimonial-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    box-shadow: 0 15px 50px rgba(0, 186, 255, 0.1) !important;
    transition: all 0.4s ease !important;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 70px rgba(0, 186, 255, 0.2);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 186, 255, 0.03) 0%, 
        transparent 50%, 
        rgba(0, 230, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.testimonial-card:hover .card-background {
    opacity: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.customer-avatar {
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
}

.avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 186, 255, 0.3);
}

.avatar-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #00baff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 186, 255, 0.3);
}

.customer-info {
    flex: 1;
}

.customer-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.customer-location {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.rating {
    display: flex;
    gap: 0.3rem;
}

.rating i {
    color: #ffc107;
    font-size: 1rem;
}

/* Testimonial Body */
.testimonial-body {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00baff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 186, 255, 0.3);
}

.testimonial-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-service {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 186, 255, 0.1);
    border: 1px solid rgba(0, 186, 255, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0066cc;
}

.testimonial-service i {
    color: #00baff;
    font-size: 1rem;
}

/* Indicator dihapus dari tampilan */

/* Carousel Controls - Fixed Position */
.testimonial-control-prev,
.testimonial-control-next {
    position: absolute !important;
    top: 40% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 186, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0066cc !important;
    font-size: 1.2rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 20px rgba(0, 186, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}
  
.testimonial-control-prev:hover,
.testimonial-control-next:hover {
      background: #00baff;
      color: white;
      border-color: #00baff;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 8px 25px rgba(0, 186, 255, 0.3);
  }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background: none;
    width: auto;
    height: auto;
}

.carousel-control-prev-icon i,
.carousel-control-next-icon i {
    font-size: 1.2rem;
    color: inherit;
}

.testimonial-control-prev:hover .carousel-control-prev-icon i,
.testimonial-control-next:hover .carousel-control-next-icon i {
    color: white;
}

/* Animasi masuk — ditangani AOS (data-aos di HTML) */

/* Responsive Design */
@media (max-width: 1200px) {
    .testimony-main-title {
        font-size: 2.8rem;
    }
    
    .video-container {
        height: 350px;
    }
    
    .testimonial-control-prev {
        left: -20px;
    }
    
    .testimonial-control-next {
        right: -20px;
    }
}

@media (max-width: 992px) {
    #testimony {
        padding: 80px 0;
    }
    
    .testimony-header {
        margin-bottom: 3rem;
    }
    
    .testimony-main-title {
        font-size: 2.4rem;
    }
    
    .video-container {
        height: 300px;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-control-prev,
    .testimonial-control-next {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonial-control-prev {
        left: -15px;
    }
    
    .testimonial-control-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    #testimony {
        padding: 60px 0;
    }
    
    .testimony-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .testimony-main-title {
        font-size: 2rem;
    }
    
    .testimony-subtitle {
        font-size: 1rem;
    }
    
    .video-container {
        height: 250px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .testimonial-slide {
        min-height: 320px;
        padding: 1.5rem 0.5rem;
    }
    
    .testimonial-carousel-inner {
        padding: 0;
    }
    
    .testimonial-indicators {
        gap: 0.4rem;
        margin: 2rem 0 1rem 0;
    }
    
    .testimonial-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-control-prev,
    .testimonial-control-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .testimonial-control-prev {
        left: -10px;
    }
    
    .testimonial-control-next {
        right: -10px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .customer-avatar {
        width: 70px;
        height: 70px;
    }
    
    .customer-name {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding-left: 1rem;
    }
    
    .quote-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .avatar-badge {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        border: 2px solid white;
    }
}

@media (max-width: 576px) {
    .testimony-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .testimony-main-title {
        font-size: 1.8rem;
    }
    
    .video-container {
        height: 200px;
        border-radius: 15px;
    }
    
    .testimonial-card {
        padding: 1.2rem;
        border-radius: 15px;
        margin: 0 0.5rem;
    }
    
    .testimonial-slide {
        min-height: 300px;
        padding: 1rem 0.2rem;
    }
    
    .testimonial-carousel-inner {
        padding: 0;
    }
    
    .testimonial-indicators {
        gap: 0.4rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .testimonial-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .testimonial-control-prev,
    .testimonial-control-next {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .testimonial-control-prev {
        left: -5px;
    }
    
    .testimonial-control-next {
        right: -5px;
    }
    
    .testimonial-header {
        margin-bottom: 1.2rem;
    }
    
    .customer-avatar {
        width: 60px;
        height: 60px;
    }
    
    .customer-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .quote-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .avatar-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        border: 2px solid white;
        bottom: -2px;
        right: -2px;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    .floating-quote,
    .floating-star,
    .play-button,
    .decoration-circle,
    .testimony-header,
    .video-wrapper,
    .testimonial-carousel-wrapper {
        animation: none !important;
    }
    
    .testimonial-card,
    .testimonial-indicators button,
    .testimonial-control-prev,
    .testimonial-control-next {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.play-button:focus,
.testimonial-indicators button:focus,
.testimonial-control-prev:focus,
.testimonial-control-next:focus {
    outline: 2px solid #00baff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .testimonial-card,
    .testimonial-indicators button,
    .testimonial-control-prev,
    .testimonial-control-next {
        border-color: #000;
        background: #fff;
    }
    
    .testimony-main-title,
    .customer-name,
    .testimonial-text {
        color: #000;
    }
} 