/* ==========================================
   NON-CRITICAL STYLES
   Critical CSS is inlined in <head>
   ========================================== */

/* Stats Section */
.stats {
    position: relative;
    background-color: var(--color-cyan);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-red);
    margin-bottom: 8px;
}

.stat-text {
    font-size: 18px;
    line-height: 1.3;
    color: var(--color-black);
}

.stat-text strong {
    font-weight: 700;
}

/* Logo Showcase Section */
.logo-showcase {
    background: linear-gradient(180deg, #EAFBF9 0%, #fff 100%);
    padding: 80px 0;
}

.logo-showcase-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
}

.logo-showcase-subtitle {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    color: #50C1B5;
    letter-spacing: 1px;
    margin-top: 48px;
}

.home-logo-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    gap: 48px;
}

.clients-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
}

.clients-grid.logo-animate,
.clients-grid.logo-animate-reverse {
    opacity: 1;
    flex: none;
    will-change: transform;
}

.client-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Marquee Animations */
@keyframes slide {
    0% {
        transform: translateX(calc(0% + 151px));
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideReverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(calc(0% + 151px));
    }
}

.logo-animate {
    animation: slide 45s infinite linear;
}

.logo-animate-reverse {
    animation: slideReverse 45s infinite linear;
}

/* Fade Gradients */
.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.marquee-gradient-left {
    left: 0;
    background: linear-gradient(90deg, #f2fcfb 0%, rgba(255, 255, 255, 0) 100%)
}

.marquee-gradient-right {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #f2fcfb 100%);
}

/* Case Study Featured Section */
.case-study-featured {
    padding: 100px 0;
    background-color: #fff;
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: linear-gradient(135deg, #E8F8F5 0%, #D4F1EB 100%);
    border-radius: 32px;
    padding: 60px;
    position: relative;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.case-study-breadcrumb {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.case-study-breadcrumb .brand-name {
    color: #41B7A9;
    font-weight: 700;
}

.case-study-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 40px;
}

.case-study-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.case-study-product {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    border: 4px solid #41B7A9;
    border-radius: 16px;
    padding: 8px;
    background-color: #fff;
}

.case-study-testimonial {
    background-color: #fff;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 32px;
}

.testimonial-quote {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-black);
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 4px;
}

.author-position {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.btn-case-study {
    background: linear-gradient(90deg, #D64636 0%, #C44738 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.btn-case-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 70, 54, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .video-wrapper {
        min-height: unset;
        aspect-ratio: unset;
        margin-bottom: 30px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 32px;
        font-size: 16px;
    }

    .stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-number {
        font-size: 56px;
    }

    .stat-text {
        font-size: 16px;
    }

    .wave-oval {
        width: 150%;
        height: 500px;
        top: -100px;
    }

    .logo-showcase {
        padding: 40px 0;
    }

    .logo-showcase-title {
        font-size: 14px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .logo-showcase-subtitle {
        font-size: 12px;
        margin-top: 40px;
        padding: 0 10px;
    }

    .home-logo-wrapper {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .clients-grid {
        gap: 32px;
    }

    .client-logo {
        height: 40px;
    }

    .marquee-gradient-left,
    .marquee-gradient-right {
        width: 100px;
    }

    .case-study-featured {
        padding: 60px 0;
    }

    .case-study-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .case-study-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .case-study-product {
        max-width: 220px;
    }

    .case-study-testimonial {
        padding: 32px 24px;
    }

    .testimonial-quote {
        font-size: 18px;
    }

    .author-name {
        font-size: 16px;
    }

    .btn-case-study {
        padding: 14px 32px;
        font-size: 14px;
    }
}
