/* Features Section */
.features {
    padding: 50px 0;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.feature-card {
    max-height: 400px;
    min-height: 400px;
    background-color: var(--ncs-container-weak);
    border-radius: var(--border-radius);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: left;
    background-size: 100% 400%;
    background-position: 100% 0%;
    transition: all ease 0.3s, background-position ease 0.7s;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

.feature-card h3 span {
    font-size: var(--font-xxxl);
    line-height: 90px;
    font-weight: var(--font-weight-bold);
}

.feature-card p {
    font-size: var(--font-md);
    opacity: 1;
    transition: all ease 0.3s;
    color: var(--text);
}

.feature-card p a {
    color: var(--ncs-primary-contrast);
}

#collab img {
    height: 100%;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
    transition: transform 0.3s ease;
}

#collab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, var(--background) 0%, color-mix(in srgb, var(--background) 70%, transparent) 100%);
    transition: all 0.3s;
    z-index: 2;
}

#collab h3,
#collab p {
    color: var(--text);
    z-index: 3 !important;
    position: relative;
}

#api {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#api .api-tools {
    background-color: var(--ncs-primary);
    color: var(--ncs-on-primary);
    display: block;
    font-size: var(--font-md);
    border-radius: 8px;
    padding: 20px;
    margin-top: 35px;
    font-weight: var(--font-weight-bold);
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}

#api .api-tools.cta {
    border-radius: 8px;
}

#editor {
    cursor: pointer;
}

#editor img {
    width: 90%;
    height: auto;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(-20%, 30%);
    transition: all ease 0.3s, opacity ease 0.1s;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.02);
}

#editor img.fade-out {
    opacity: 0;
}

#editor:hover img {
    left: 50%;
    transform: translate(-50%, -25px);
}

#editor:hover p {
    opacity: 0;
}

#editor .message {
    position: absolute;
    bottom: 10px;
    transform: translate(-50%, 0);
    width: max-content;
    left: 50%;
    padding: 5px;
    background: var(--ncs-container-strong);
    border-radius: 10px;
    transition: all ease 0.3s;
    z-index: 10;
    opacity: 0;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
                0px 1px 1px 0px rgba(0, 0, 0, 0.14),
                0px 2px 1px -1px rgba(0, 0, 0, 0.12);
}

#editor:hover .message {
    opacity: 1;
}

/* features flag scroll */

.flag-scroll-container {
    display: flex;
    overflow: hidden;
    width: calc(100% + 60px);
    margin: 25px -30px;
}

.flag-scroll {
    height: 3rem;
    margin-right: 20px;
    border-radius: 5px;
    position: relative;
    animation: scrollFlags 10s linear infinite;
    animation-direction: alternate;
}

.flag-scroll.inverse {
    animation-direction: alternate-reverse;
}

@keyframes scrollFlags {
    0% {
        left: 0%;
    }

    100% {
        left: -50%;
    }
}

/* features voice previews */
#dubbing {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap:wrap;
}

#dubbing .text {
    width: 50%;
}

#dubbing .voices {
    margin-right: 0;
    width:50%;
    margin-top: -50px;
}

.voice-preview-player {
    width: fit-content;
    min-width: 270px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all ease 0.3s;
    background-color: var(--ncs-container-strong);
}

.voice-preview-player:hover {
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
                0px 1px 1px 0px rgba(0, 0, 0, 0.14),
                0px 2px 1px -1px rgba(0, 0, 0, 0.12);
    transform: translateX(-15px);
    opacity: 1;
    background-color: var(--ncs-container-strong);
}

.voice-preview-player .flag {
    height: 50px;
    width: auto;
    border-radius: 7px;
}

.voice-preview-player .image {
    height: 50px;
    width: 50px;
    border-radius: 7px;
}

.voice-preview-player .label {
    color: var(--text);
}

.voice-preview-player .label span {
    opacity: 0.7;
}

.voices .voice-preview-player:nth-child(1) {
    margin-left: 50px;
    opacity: 0.7;
}

.voices .voice-preview-player:nth-child(2) {
    margin-left: 40px;
    opacity: 0.9;
}

.voices .voice-preview-player:nth-child(3) {
    margin-left: 30px;
}

.voices .voice-preview-player:nth-child(4) {
    margin-left: 20px;
    opacity: 0.9;
}

.voices .voice-preview-player:nth-child(5) {
    margin-left: 10px;
    opacity: 0.7;
}

/* features cross platform */
#cross-platform img{
    width: 70%;
    height: auto;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 60%);
    transition: transform ease 0.3s, opacity ease 0.1s;
    z-index: 0;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.02);
}

#cross-platform h3 {
    z-index: 2;
}

#cross-platform p {
    z-index: 2;
    position: relative;
}

/* features subtitle editor */
#subtitle-editor img{
    width: 90%;
    height: auto;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 40%);
    transition: transform ease 0.3s, opacity ease 0.1s;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.02);
}

#subtitle-editor:hover img {
    transform: translate(-50%, -25px);
}

#subtitle-editor:hover p {
    opacity: 0;
}

/* features audio to text */
#audio-to-text img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}


/* Responsive Styling */
@media(min-width:768px) and (max-width: 1360px) {

    /* Features Section */
    .feature-card.col-3 {
        width: 100%;
    }

    .feature-card.col-6 {
        width: 100%;
    }

}


@media (max-width: 768px) {

	.feature-card {
        max-height: 440px;
        min-height: 440px;
    }

    /* Features Section */
    #dubbing .voices {
        margin-right: -100px;
    }

    .voice-preview-player {
        min-width: 240px;
        padding: 10px 10px;
    }

}

.layout-page-lemon
{
    .feature-item {
        padding: 120px 0;
        text-align: left;
    }
    
    .feature-item h3 {
        font-size: var(--font-xxl);
        color: var(--text);
        font-weight: var(--font-weight-bold);
        text-transform: capitalize;
        text-align: left
    }
    
    .feature-item h4 {
        font-size: var(--font-md);
        margin-bottom: 10px;
        margin-top: 10px;
        font-weight: var(--font-weight-bold);
        text-align: left;
    }
    
    .feature-item p {
        font-size: var(--font-md);
        color: var(--text);
        text-align: left;
        margin-top: 22px;
        line-height: 28px;
    }
    
    .features a.cta-sl {
        height: 45px;
        line-height: 45px;
    }
    
    .feature-images {
        position: sticky;
        top: 15vh;
        height: fit-content;
        z-index: 1;
    }
    
    .feature-images img {
        width: 100%;
        display: block;
    }
    
    .features-inner {
        display: inline-flex;
        justify-content: space-between;
    }

    @media(max-width:767px) {

        .feature-item {
            max-height: 48px;
            overflow: hidden;
            background: var(--background);
            margin-bottom: 20px;
            padding: 20px !important;
            border-radius: var(--button-border-radius);
            position: relative;
            border: solid 2px color-mix(in srgb, var(--text) 20%, transparent);
            transition: all 0.2s;
        }
    
        .feature-item,
        .feature-item.active {
            max-height: 2400px;
            overflow: hidden;
        }
    
        .feature-opener {
            position: absolute;
            right: 0;
            bottom: 8px;
            width: 100%;
            height: 80px;
            line-height: 60px;
            text-align: center;
            line-height: 113px;
            transition: all 0.4s;
            background: rgb(34, 34, 34);
            background: linear-gradient(0deg, rgba(34, 34, 34, 1) 0%, rgba(34, 34, 34, 2) 71%, rgba(255, 255, 255, 0) 100%);
            color: #fff;
        }
    
        .feature-opener i {
            position: relative;
            top: 3px;
        }
    
        .feature-item.active .feature-opener {
            transform: rotate(180deg);
        }
    
        .feature-item h3 {
            font-weight: var(--font-weight-bold);
            display: inline;
            line-height: 30px;
        }
    
        .feature-item img {
            width: 100%;
            height: auto;
            border-radius: var(--button-border-radius);
            margin-top: 20px;
            opacity: 0;
            visibility: hidden;
            position: relative;
            transition: all 0.4s;
            transform: scale(0.8);
        }
    
        .feature-item.show img {
            opacity: 1;
            visibility: visible;
            transform: none;
        }
    
        .feature-item p {
            color: #969696;
            line-height: 26px;
            margin: 8px 0;
        }
    
        .feature-opener i {
            line-height: 30px;
        }
    
        .feature-images {
            display: none;
        }
    
        .feature-item {
            padding: 9px 15px;
        }
    
        .feature-item a.up-video-btn {
            margin-bottom: 30px;
        }
    }
}