/* Success Stories Page Styles */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--ocean-blue) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--electric-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    background: #0c1e34;
    border-bottom: 2px solid rgba(0, 255, 240, 0.2);
    position: sticky;
    top: 70px; /* Account for fixed header height */
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0, 255, 240, 0.5);
    background: transparent;
    color: #00FFF0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 255, 240, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 240, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--neon-green) 100%);
    border-color: transparent;
    color: white;
}

/* Stories Section */
.stories-section {
    padding: 80px 0;
    background: #0c1e34;
}

/* Case Study Card */
.case-study {
    background: rgba(12, 30, 52, 0.95);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 255, 240, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.case-study:hover {
    box-shadow: 0 15px 50px rgba(0, 255, 240, 0.3);
    transform: translateY(-5px);
}

.case-study.featured {
    border: 3px solid var(--electric-cyan);
    background: linear-gradient(to bottom, rgba(0, 255, 240, 0.1), rgba(12, 30, 52, 0.95));
    margin-top: 35px; /* Add space for the badge */
    padding-top: 3.5rem; /* Extra padding to prevent content overlap with badge */
}

.case-badge {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--neon-green) 100%);
    color: var(--deep-navy, #0c1e34);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 240, 0.4);
    z-index: 100;
}

.case-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Case Content */
.case-industry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 240, 0.15);
    color: #00FFF0;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.case-industry i {
    color: var(--electric-cyan);
}

.case-study h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.case-subtitle {
    font-size: 1.125rem;
    color: #00FFF0;
    font-weight: 600;
    margin-bottom: 2rem;
}

.case-challenge,
.case-solution {
    margin-bottom: 2rem;
}

.case-challenge h3,
.case-solution h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-challenge h3 i {
    color: #ef4444;
}

.case-solution h3 i {
    color: var(--neon-green);
}

.case-challenge ul,
.case-solution ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.case-challenge li {
    padding: 0.75rem 0 0.75rem 2rem;
    border-left: 3px solid #ef4444;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.case-challenge li::before {
    content: '✗';
    position: absolute;
    left: 0.5rem;
    color: #ef4444;
    font-weight: bold;
}

.case-solution li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.case-solution li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

.case-solution p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.case-solution strong {
    color: #00FFF0;
}

.solution-highlight {
    background: rgba(0, 255, 240, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--electric-cyan);
    margin-top: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.solution-highlight i {
    font-size: 1.5rem;
    color: var(--electric-cyan);
    margin-top: 0.25rem;
}

.solution-highlight strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #00FFF0;
}

/* Case Results */
.case-results {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--ocean-blue) 100%);
    padding: 2rem;
    border-radius: 16px;
    color: white;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.results-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.results-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.result-card.primary {
    background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--neon-green) 100%);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 255, 240, 0.4);
}

/* Ensure text is visible on primary gradient card */
.result-card.primary .result-icon,
.result-card.primary .result-metric,
.result-card.primary .result-label,
.result-card.primary .result-detail {
    color: var(--deep-navy, #0c1e34);
    opacity: 1;
}

.result-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.result-metric {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-detail {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Testimonial */
.testimonial {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--neon-green);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quote-author strong {
    font-size: 1rem;
    color: white;
}

.quote-author span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Common Patterns Section */
.patterns-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 50%, #0f2439 100%);
}

.patterns-section .section-header h2 {
    color: #ffffff;
}

.patterns-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pattern-card {
    background: rgba(0, 255, 240, 0.08);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border-left: 4px solid var(--electric-cyan);
    border: 1px solid rgba(0, 255, 240, 0.15);
    transition: all 0.3s ease;
}

.pattern-card:hover {
    background: rgba(0, 255, 240, 0.12);
    box-shadow: 0 10px 30px rgba(0, 255, 240, 0.1);
    transform: translateY(-5px);
}

.pattern-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--electric-cyan) 0%, var(--neon-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pattern-icon i {
    font-size: 2rem;
    color: white;
}

.pattern-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.pattern-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--ocean-blue) 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-footer {
    font-size: 1rem;
    color: var(--neon-green);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Filter Animation */
.case-study.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .stories-section,
    .patterns-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .case-study {
        padding: 2rem;
    }
    
    .case-badge {
        left: 2rem;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .case-study h2 {
        font-size: 1.5rem;
    }
    
    .result-metric {
        font-size: 2rem;
    }
    
    .patterns-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary,
    .cta-buttons .btn-whatsapp {
        width: 100%;
        max-width: 400px;
    }
    
    .filter-section {
        padding: 1.5rem 0;
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .case-study {
        padding: 1.5rem;
    }
    
    .case-results {
        padding: 1.5rem;
    }
    
    .result-card {
        padding: 1.25rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}

/* Video Testimonials Section */
.video-testimonials-section {
    padding: 5rem 0;
    background: #0c1e34;
}

.video-testimonials-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-testimonials-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.video-testimonials-section .section-header h2 i {
    color: var(--electric-cyan);
    margin-right: 0.75rem;
}

.video-testimonials-section .section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-testimonial-card {
    background: rgba(12, 30, 52, 0.95);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 240, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 255, 240, 0.2);
}

.video-container {
    position: relative;
    background: #0c1e34;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.video-container video,
.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* 3-column video grid */
.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-testimonials-grid.single-video {
    max-width: 800px;
    margin: 2rem auto 0;
}

.audio-container {
    padding: 2rem;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--ocean-blue) 100%);
    text-align: center;
}

.audio-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.audio-visual i {
    font-size: 3.5rem;
    color: var(--electric-cyan);
}

.audio-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.audio-wave span {
    display: block;
    width: 6px;
    background: var(--neon-green);
    border-radius: 3px;
    animation: audioWave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 20px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes audioWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.audio-container audio {
    width: 100%;
    max-width: 320px;
    border-radius: 30px;
}

.video-testimonial-info {
    padding: 1.75rem;
}

.video-testimonial-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.video-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.video-duration,
.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.video-duration i,
.video-tag i {
    color: var(--electric-cyan);
}

.video-tag i {
    color: var(--neon-green);
}

/* Single video layout - centered */
.video-testimonials-grid.single-video {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-testimonials-grid.single-video .video-testimonial-card {
    max-width: 100%;
}

.video-testimonials-grid.single-video .video-testimonial-card.featured {
    border: 2px solid rgba(0, 255, 240, 0.4);
    box-shadow: 0 15px 50px rgba(0, 255, 240, 0.2);
}

/* Responsive adjustments for video testimonials */
@media (max-width: 768px) {
    .video-testimonials-section {
        padding: 3rem 0;
    }
    
    .video-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .video-testimonial-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .audio-container {
        padding: 1.5rem;
    }
    
    .audio-visual i {
        font-size: 2.5rem;
    }
}
