/* Onflow Showcase Styling */
.onflow-showcase {
    margin-bottom: 80px;
    width: 100%;
}

.onflow-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 60px auto;
}

.onflow-logo-title {
    height: 80px;
    max-width: 100%;
    /* Ensure it doesn't overflow horizontally */
    width: auto;
    margin: 30px auto 40px auto;
    display: block;
    object-fit: contain;
    /* Mantém a proporção sem cortar */
    /* CSS filter to turn black/dark SVG into white */
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(0, 197, 233, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.onflow-main-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.product-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 197, 233, 0.3);
    animation: badgePulse 2s infinite alternate;
}

@keyframes badgePulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 197, 233, 0.2);
    }

    to {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 197, 233, 0.5);
    }
}

/* Feature Rows */
.onflow-details {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-bottom: 60px;
}

.onflow-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.onflow-feature-row.reverse {
    flex-direction: row-reverse;
}

.onflow-feature-text {
    flex: 1;
}

.onflow-feature-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.onflow-feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.onflow-feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #ffffff;
}

.feature-item i {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Image Wrapper and Window Frame */
.onflow-feature-image-wrapper {
    flex: 1.2;
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #ffffff;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Window Header (Dots) */
.onflow-feature-image-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #28c840;
    z-index: 5;
}

.onflow-placeholder-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin-top: 30px;
    /* Space for dots */
}

/* When image or video is added */
.onflow-feature-image-wrapper img,
.onflow-feature-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    display: block;
    margin-top: 30px;
    /* Space for dots */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    border: none;
}

.onflow-placeholder-img i {
    font-size: 3.5rem;
    opacity: 0.6;
}

.onflow-placeholder-img span {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.onflow-feature-row:hover .onflow-feature-image-wrapper {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* CTA Wrapper - Glassmorphism Version */
.onflow-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 20px 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

/* Removido ::before para limpar interferência visual */

.onflow-cta-text {
    z-index: 1;
}

.onflow-cta-text h3 {
    font-size: 3.8rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.onflow-cta-text h3 .highlight-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    font-weight: 900;
}

.onflow-cta-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 950px;
    margin: 0 auto;
    line-height: 1.6;
}

.onflow-cta-actions {
    display: flex;
    gap: 20px;
    z-index: 1;
}

.onflow-cta-wrapper .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    font-size: 1.15rem;
    background: #ffffff;
    color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    border-radius: 50px;
}

.onflow-cta-wrapper .btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.onflow-cta-wrapper .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 2px solid #ffffff;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    white-space: nowrap;
    border-radius: 50px;
    font-weight: 600;
}

.onflow-cta-wrapper .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Updated Responsive adjustments for CTA Banner */
@media (max-width: 1100px) {
    .onflow-cta-wrapper {
        padding: 50px;
    }

    .onflow-cta-text h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .onflow-cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 40px;
    }

    .onflow-cta-text {
        text-align: center;
    }

    .onflow-cta-text p {
        margin: 0 auto;
    }

    .onflow-cta-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .onflow-cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    .onflow-cta-wrapper .btn-primary,
    .onflow-cta-wrapper .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Secondary Services Title */
.secondary-services-title {
    text-align: center;
    margin: 20px 0 40px 0;
}

.secondary-services-title h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.secondary-services-title h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .onflow-feature-row,
    .onflow-feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .onflow-feature-image-wrapper {
        width: 100%;
        max-width: 700px;
        flex: none;
    }

    .onflow-feature-list {
        align-items: center;
    }

    .onflow-main-title {
        font-size: 2.8rem;
    }

    .onflow-feature-image-wrapper {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .onflow-logo-title {
        height: 60px;
        /* Reduzindo a altura no mobile */
        margin: 20px auto 30px auto;
    }

    .onflow-main-title {
        font-size: 2.2rem;
    }

    .onflow-feature-text h3 {
        font-size: 1.8rem;
    }

    .onflow-cta-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .onflow-feature-row,
    .onflow-feature-row.reverse {
        gap: 25px;
    }

    .onflow-feature-image-wrapper {
        padding: 5px;
        border-radius: 12px;
        width: calc(100% + 10px);
        margin-left: -5px;
        margin-right: -5px;
    }

    .onflow-feature-video,
    .onflow-feature-image-wrapper img {
        margin-top: 18px;
        border-radius: 8px;
    }

    .onflow-feature-image-wrapper::before {
        top: 8px;
        left: 12px;
        transform: scale(0.7);
    }

    .onflow-feature-text h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
}