/* Success Stories Page CSS */
/* Following project standards with black and white theme */

/* Hero Section */
.success-hero-section {
    position: relative;
    background-color: #000;
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Geometric shapes for background */
.hero-geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 4px;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: #6a11cb;
    top: -50px;
    right: 10%;
    transform: rotate(45deg);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: #8d5cf6;
    bottom: -30px;
    left: 15%;
    transform: rotate(30deg);
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: #d442f5;
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.shape-4 {
    width: 250px;
    height: 250px;
    background-color: #ff59c7;
    bottom: 10%;
    right: 5%;
    transform: rotate(60deg);
}

.success-hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero title with gradient */
.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #8d5cf6, #ff59c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Star rating display */
.hero-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.stars {
    color: #ffdd00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 1.1rem;
    opacity: 0.8;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #000;
}

.section-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Text Reviews Section */
.text-reviews-section {
    position: relative;
    background-color: var(--background, #fff);
    padding: 60px 0;
    overflow: hidden;
}

.testimonial-slider-container {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    width: 100%;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    gap: 20px;
    animation: scroll 60s linear infinite;
}

.testimonial-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move exactly half the width for seamless loop */
    }
}

.testimonial-card {
    flex: 0 0 auto;
    width: 300px;
    background-color: var(--card, white);
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--border-hover, rgba(0, 0, 0, 0.2));
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #FFD700;
    margin-right: 2px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.author-info h5 {
    margin-bottom: 0;
    font-size: 16px;
}

.author-info p {
    margin-bottom: 0;
    font-size: 14px;
    color: #777;
}

/* Video Reviews Section */
.video-reviews-section {
    background-color: #0a0a0f;
    color: white;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #0a0a0f, #14141f);
}

.video-reviews-section .section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.video-reviews-section .section-title:after {
    background-color: white;
    width: 80px;
    height: 3px;
    margin: 15px auto 0;
}

.video-reviews-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.video-carousel-container {
    position: relative;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    padding: 0 30px;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-prev.disabled,
.carousel-next.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* 3D Carousel Structure */
.video-carousel-scene {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    perspective: 1500px;
    overflow: visible;
}

.video-carousel-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.video-carousel-card {
    position: absolute;
    width: 380px;
    height: 380px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: center center -20px;
}

/* Active card - centered and on top */
.video-carousel-card.active {
    opacity: 1;
    visibility: visible;
    z-index: 30;
    transform: translate(-50%, -50%) scale(1) translateZ(60px);
    pointer-events: auto;
    filter: brightness(1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Adjacent cards - slightly behind */
.video-carousel-card.prev,
.video-carousel-card.next {
    opacity: 0.8;
    visibility: visible;
    z-index: 20;
    pointer-events: auto;
    filter: brightness(0.7);
}

.video-carousel-card.prev {
    transform: translate(-95%, -50%) scale(0.85) rotateY(25deg) translateZ(30px);
}

.video-carousel-card.next {
    transform: translate(-5%, -50%) scale(0.85) rotateY(-25deg) translateZ(30px);
}

/* Far cards - further back */
.video-carousel-card.prev-2,
.video-carousel-card.next-2 {
    opacity: 0.5;
    visibility: visible;
    z-index: 10;
    filter: brightness(0.5);
}

.video-carousel-card.prev-2 {
    transform: translate(-130%, -50%) scale(0.7) rotateY(35deg) translateZ(0);
}

.video-carousel-card.next-2 {
    transform: translate(30%, -50%) scale(0.7) rotateY(-35deg) translateZ(0);
}

.video-testimonial-card {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.active .video-testimonial-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-content {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-thumbnail {
    height: 100%;
    width: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

.video-playing .video-thumbnail {
    opacity: 0;
    pointer-events: none;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.play-button i {
    color: white;
    font-size: 20px;
    margin-left: 3px; /* Slight offset for play icon */
}

.active .play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-info {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--card, white);
}

.video-info h4 {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--foreground, #000);
    font-size: 18px;
}

.video-title {
    color: var(--muted-foreground, #777);
    margin-bottom: 10px;
    font-size: 14px;
}

.video-rating {
    margin-bottom: 15px;
}

.video-rating i {
    color: #FFD700;
    margin-right: 2px;
    font-size: 16px;
}

.watch-review-btn {
    margin-top: auto;
    background-color: #000;
    border: none;
    color: white;
    transition: all 0.3s ease;
    padding: 10px 0;
    font-weight: 500;
    border-radius: 6px;
    width: 100%;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.active .watch-review-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #000;
    transform: scale(1.3);
}

/* Video Modal */
/* Video player styles - No modal needed */
.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button for inline video */
.close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    padding: 5px 8px;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.video-playing .close-video {
    opacity: 1;
    pointer-events: auto;
}

.close-video:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}

/* CTA Section */
/* CTA Section - Styled like hero but with more white space */
.cta-section {
    position: relative;
    background-color: #000;
    padding: 150px 0;
    color: white;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.cta-geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 2.5rem;
}

.cta-section .btn-primary {
    background: linear-gradient(90deg, #8d5cf6, #ff59c7);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.pulse-animation {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation Classes */
.pre-animation {
    opacity: 0;
    transform: translateY(20px);
}

.animate-in {
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .video-carousel-slide {
        flex: 1 0 100%;
    }
    
    .video-testimonial-card {
        height: 380px;
    }
}

@media (max-width: 767.98px) {
    .success-hero-section {
        padding: 80px 0;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .testimonial-card {
        width: 280px;
    }
    
    .video-testimonial-card {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .success-hero-section {
        padding: 60px 0;
    }
    
    .testimonial-card {
        width: 260px;
        padding: 20px;
    }
    
    .video-testimonial-card {
        height: 320px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-info {
        padding: 15px;
    }
}