/* ==== 
 --------- (5.04) portfolio styles start ---------
 ==== */


.portfolio {

    .section__header {
        max-width: 740px;
    }

    .portfolio__single {
        padding: 60px 20px;
        background-color: var(--quaternary-color);
        border-radius: 12px;

        &:hover {
            .portfolio__tags {
                a {
                    border-color: var(--secondary-color);
                }
            }

            .btn-quaternary {

                .btn-animated-text {
                    background-color: var(--secondary-color);

                    span {
                        color: var(--white);

                        &:nth-child(odd) {
                            transform: translateY(0);
                        }

                        &:nth-child(even) {
                            transform: translateY(0);
                        }
                    }

                }

                .btn-icon {
                    background-color: var(--secondary-color);
                    color: var(--white);
                }

                i {
                    transform: rotate(45deg);
                    color: var(--white);

                    &:nth-of-type(1) {
                        left: 50%;
                        transform: translateX(-50%) rotate(45deg);
                    }

                    &:nth-of-type(2) {
                        left: 60px;
                        transform: rotate(45deg);
                    }
                }
            }
        }
    }

    .portfolio__single-inner {
        display: flex;
        align-items: center;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .portfolio__single-intro {
        max-width: 360px;
    }

    .portfolio__single-content {
        max-width: 360px;
    }

    .portfolio__thumb {
        display: none;

        img {
            width: 100%;
            min-height: 300px;
            border-radius: 8px;
        }
    }

    .portfolio__tags {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;

        a {
            padding: 10px 32px;
            border: 1px solid var(--senary-color);
            border-radius: 30px;
            font-size: 16px;

            &:hover {
                border: 1px solid var(--secondary-color);
            }
        }
    }

}

// portfolio section two styles
.portfolio-two {
    .thumb {
        position: relative;
        z-index: 1;

        .img-wrap,
        img {
            width: 100%;
            border-radius: 16px;
            min-height: 350px;
        }

        .parallax-image-wrap,
        .parallax-image-inner {
            border-radius: 16px;
        }

        .btn-wrap {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) scale(0);
            transition: var(--transition);

            a {
                width: 180px;
                height: 180px;
                border-radius: 50%;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                background-color: var(--secondary-color);
                padding: 8px;
                font-size: 16px;
                letter-spacing: 0.8px;
                text-transform: uppercase;

                i {
                    font-size: 30px;
                }

                &:hover {
                    background-color: var(--secondary-color);
                    color: var(--white);
                }
            }
        }
    }

    .content {
        padding: 0px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    h4 {
        a {
            position: relative;
            text-transform: uppercase;
            display: inline-block;

            &::before {
                content: '';
                position: absolute;
                top: 100%;
                inset-inline: 0px;
                width: 0%;
                height: 1px;
                background-color: var(--template-color);
                transition: var(--transition);
            }

            &:hover {
                color: var(--template-color);

                &::before {
                    width: 100%;
                }
            }
        }
    }

    .tags {
        a {
            padding: 8px 24px;
            border: 1px solid var(--template-color);
            border-radius: 40px;
            font-size: 16px;
            text-transform: uppercase;

            &:hover {
                border-color: var(--secondary-color);
                color: var(--secondary-color);
            }
        }
    }

    .portfolio-two__single {
        &:hover {
            .thumb {
                .btn-wrap {
                    transform: translate(-50%, -50%) scale(1);

                    a {
                        background-color: var(--secondary-color);
                        color: var(--white);
                    }
                }
            }
        }
    }
}


// portfolio section four styles
.portfolio-four {
    position: relative;
    z-index: 1;
    background-color: var(--template-bg);

    .swiper,
    .swiper-wrapper {
        background-color: var(--template-bg);
    }

    .thumb {
        width: 100%;
        overflow: hidden;
        position: relative;
        line-height: 0px;

        &::before {
            content: '';
            position: absolute;
            inset: 0px;
            width: 100%;
            height: 100%;
            background-color: var(--black);
            opacity: 0.5;
            z-index: 1;
        }

        img {
            width: 100%;
            min-height: 400px;
            transition: transform 7s ease 0.8s;
        }
    }



    .content {
        position: absolute;
        inset-inline-start: 0px;
        bottom: 120px;
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.3s ease 0.2s;
        padding-inline: 20px;
        z-index: 2;
        max-width: 600px;
    }

    .swiper-slide {
        overflow: hidden;
    }

    .swiper-slide-active {
        .portfolio-four__single {
            .thumb {
                img {
                    transform: scale(1.2);
                }
            }

            .content {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }

    .banner__slider-wrapper {
        position: relative;

        .portfolio-pagination {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
        }
    }


    .portfolio__right {
        height: 100%;
    }

    .portfolio-pagination {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        height: 100%;

        .swiper-pagination-bullet {
            width: 32px;
            height: 3px;
            border-radius: 32px;
            background-color: var(--senary-color);
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            width: 48px;
            background-color: var(--secondary-color);
            opacity: 1;
        }
    }

    .portfolio-four__wrapper {
        position: relative;
        z-index: 1;
    }

    .fraction {
        position: absolute;
        bottom: 40px;
        inset-inline-start: 20px;
        border-bottom: 1px solid var(--white);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 90px;
        padding-bottom: 12px;
        z-index: 1;

        span {
            font-weight: 500;
            color: var(--white);
        }

        .divide {
            color: var(--white);
            font-weight: 300;
        }
    }

}


// portfolio five section styles
.portfolio-five {
    .portfolio-five__single {
        position: relative;
        overflow: hidden;

        img {
            width: 100%;
            min-height: 400px;
        }

        &:hover {
            .portfolio-five__content {
                transform: translateX(-50%) scale(1);
                bottom: 30px;
            }
        }
    }

    .parallax-image-wrap,
    .parallax-image-inner {
        width: 100%;
        height: 100%;
    }

    .portfolio-five__content {
        position: absolute;
        width: calc(100% - 60px);
        left: 50%;
        transform: translateX(-50%) scale(0%);
        padding: 40px 20px;
        background-color: var(--secondary-color);
        text-align: center;
        transition: var(--transition);
        bottom: -100%;
    }

    .portfolio-five__cta {
        a {
            text-transform: uppercase;
            padding-bottom: 2px;
            position: relative;

            &::before {
                content: '';
                position: absolute;
                inset-inline: 0px;
                width: 100%;
                height: 1px;
                background-color: var(--template-color);
                inset-block-end: 0px;
            }
        }
    }
}

// instagram feed section styles
.insta-feed {
    overflow-x: clip;

    .swiper-wrapper {
        transition-timing-function: linear !important;
    }

    .swiper-slide {
        width: auto;
    }

    .insta-feed__single {
        position: relative;
        z-index: 1;
        width: auto;

        &:hover {
            a {
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }

    .swiper-slide-active {
        .insta-feed__single {

            a {
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }


    img {
        width: 100%;
        min-height: 300px;
        position: relative;
        z-index: -1;
    }

    a {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--secondary-color);
        color: var(--white);
        font-size: 24px;
        z-index: 2;

        i {
            color: var(--white);
        }

        &:hover {
            background-color: var(--secondary-color);
            color: var(--white);
        }
    }
}

// video section styles
.video-cta {
    position: relative;
    overflow: hidden;

    img {
        width: 100%;
        min-height: 450px;
    }

    .parallax-image-inner,
    .parallax-image-wrap {
        width: 100%;
        height: 100%;
    }

    .open-video-popup {
        width: 120px;
        height: 120px;
        min-width: 120px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #F20101;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: ripple 1s linear infinite;

        i {
            color: var(--white);
        }
    }


}


@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 1, 1, 0.3), 0 0 0 10px rgba(242, 1, 1, 0.3), 0 0 0 30px rgba(242, 1, 1, 0.3), 0 0 0 60px rgba(242, 1, 1, 0.3);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(242, 1, 1, 0.3), 0 0 0 30px rgba(242, 1, 1, 0.3), 0 0 0 60px rgba(242, 1, 1, 0.3), 0 0 0 90px rgba(242, 1, 1, 0);
    }
}

// project details section styles start
.project-details {
    .thumb {
        img {
            width: 100%;
            min-height: 300px;
            border-radius: 8px;
        }


    }

    .parallax-image-inner,
    .parallax-image-wrap {
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .list-grp {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;

        li {
            width: 100%;
            margin-bottom: 0px;
        }
    }

    li {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;

        &:nth-last-of-type(1) {
            margin-bottom: 0px;
        }
    }

    .divider {
        background-color: var(--template-color);
        opacity: 0.1;
    }

    .pagination-two__inner {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        row-gap: 40px;
        flex-direction: column;
        justify-content: center;

        .button-pr {
            padding: 12px 32px;
            background-color: var(--quinary-color);
            color: var(--white);
            font-weight: 300;
            border-radius: 60px;

            &:hover {
                background-color: var(--secondary-color);
            }
        }

        .text-alt-start {
            text-align: center;
        }

        .text-alt {
            text-align: center;
        }
    }
}

/* ==== 
 --------- (5.04) portfolio styles end ---------
 ==== */