﻿.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    margin-top: -100px;

    video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-content {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: 8%;
        transform: translateY(-50%);
        color: #fff;
        text-align: right;

        .title {
            margin-bottom: 20px;
            font-size: 4.5rem;
            font-weight: 700;
            line-height: 1.3;
        }

        .description {
            font-size: 2rem;
            line-height: 2;
            font-weight: 400;
        }
    }

    .hero-bg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: linear-gradient(180deg, #d5bcd5, transparent 300px);
    }
}

.quick-access-container {
    background: var(--app-secondary);
    padding: 10px;

    .quick-access {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        direction: rtl;

        .quick-access-item {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            padding: 18px;
            cursor: pointer;
            justify-content: center;

            &:hover {
                .quick-access-image {
                    flex: 0 0 40px;
                    width: 40px;
                    height: 40px;
                }
            }
        }

        .quick-access-image {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 35px;
            width: 35px;
            height: 35px;
            overflow: hidden;
            background: #f7f7f7;
            border-radius: 8px;
            transition: 0.2s all ease;


            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }


        .quick-access-content {
            min-width: 0;
        }

        .quick-access-title {
            margin: 0;
            color: white;
            font-size: 1.6rem;
            font-weight: bold;
            line-height: 1.6;
            overflow-wrap: anywhere;
        }

        .quick-access-description {
            margin-top: 5px;
            color: rgba(255,255,255,0.7);
            font-size: 1.2rem;
            font-weight: 400;
            line-height: 1;
            overflow-wrap: anywhere;
        }
    }
}

.home-stats-container {
    margin: 30px 0;

    .home-stats {
        display: flex;
        align-items: stretch;
        gap: 20px;
        width: 100%;
        direction: rtl;

        .statistics-container {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            flex: 0 0 calc(30% - 10px);
            min-width: 0;
            gap: 15px;

            .counter-item {
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 15px;
                border-radius: 10px;
                background: linear-gradient(251deg, #dfcff5 20%, #f7f7f8);

                .img-container {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex: 0 0 60px;
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    background: white;

                    i {
                        font-size: 25px;
                        color: var(--app-secondary);
                    }
                }

                .content-box {
                    min-width: 0;
                    flex: 1;
                    text-align: center;

                    .counter {
                        display: inline-block;
                        color: var(--app-primary);
                        font-size: 3rem;
                        font-weight: 700;
                        line-height: 1.6;
                    }

                    .plus {
                        font-size: 3rem;
                        font-weight: 700;
                        color: var(--app-primary);
                        display: inline-block;
                        margin: 0;
                        line-height: 0;
                    }

                    .title-en {
                        margin: 5px 0 0;
                        color: #666;
                        font-size: 2rem;
                        font-weight: bold;
                        line-height: 1;
                    }
                }
            }
        }

        .statistics-img-container {
            flex: 0 0 calc(70% - 10px);
            min-width: 0;
            overflow: hidden;
            border-radius: 12px;

            img {
                display: block;
                width: 100%;
                height: 100%;
                min-height: 300px;
                object-fit: cover;
            }
        }




        @media (max-width: 1200px) {
            .hero-content {
                right: 6%;
                width: 50%;

                .title {
                    font-size: 38px;
                }
            }

            .quick-access-container .quick-access {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 992px) {
            .hero-content {
                right: 6%;
                width: 50%;

                .title {
                    font-size: 38px;
                }
            }
        }

        @media (max-width: 768px) {
            .hero-content {
                right: 5%;
                left: 5%;
                width: auto;

                .title {
                    font-size: 32px;
                }

                .description {
                    font-size: 16px;
                }
            }
        }
    }
}

.home-neo-feature-container {
    background: #ebebeb;
    padding: 15px;

    .section-title {
        color: var(--app-primary);
        font-weight: bold;
        font-size: 3rem;
        margin-bottom: 20px;
        margin-top: 50px;
    }

    .img-container {
        text-align: center;
        padding: 5px;
        position: relative;
        position: relative;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;

        &:before {
            content: "";
            background: #e5e2ee;
            height: 350px;
            display: inline-block;
            width: 350px;
            position: absolute;
            left: 0;
            border-radius: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            left: 50%;
        }


        .neo-iphone-frame {
            display: block;
            position: relative;
            z-index: 2;
            width: 230px;
            margin: 0 auto;
            pointer-events: none;
        }



        .neo-iphone-screen {
            position: absolute;
            top: 15px;
            right: 9px;
            bottom: 15px;
            left: 9px;
            overflow: hidden;
            border-radius: 28px;
            width: 210px;
            margin: 0 auto;
            z-index: 1;
        }

            .neo-iphone-screen .base-slider,
            .neo-iphone-screen .swiper,
            .neo-iphone-screen .swiper-wrapper,
            .neo-iphone-screen .swiper-slide,
            .neo-card {
                width: 100%;
                height: 100%;
            }

                .neo-card img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
    }

    .swiper-vertical {
        height: 250px;
        padding-bottom: 20px;
    }

    .neo-feature-items {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .neo-item-title {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        background: transparent;
        color: #666;
        cursor: pointer;
        border: none;
        font-size: 1.8rem;
        font-weight: normal;
        text-align: right;

        &:hover {
            color: var(--app-primary);
        }

        &.active {
            color: var(--app-primary);
            font-weight: bold;
        }
    }

    .neo-item-title-text {
        flex: 1;
    }

    .neo-item-progress {
        display: block;
        flex: 0 0 3px;
        width: 3px;
        min-height: 40px;
        align-self: stretch;
        overflow: hidden;
        border-radius: 3px;
        background: #d1cfcf;
    }

    .neo-item-progress-bar {
        display: block;
        width: 100%;
        height: 0;
        border-radius: inherit;
        background: var(--app-primary);

        &.running {
            animation: neo-item-progress-fill 3s linear forwards;
        }
    }
}

.home-news-container {
    margin: 20px 0;
    padding:30px 15px;

    .news-card {
        display: flex;
        flex-wrap: wrap;
        background: white;
        overflow: hidden;
        gap: 15px;
        padding: 20px;
        border: 1px solid var(--app-secondary);
        border-radius: 20px;
        height: clamp(180px, 35vh, 280px);


        &.first-item {
            border-radius: 0 20px 20px 20px;
        }

        &.last-item {
            border-radius: 20px 20px 20px 0;
        }

        .img-container {
            flex: 1.5;
            border-radius: 20px;
            overflow: hidden;

            img {
                height: 100%;
                object-fit: cover;
            }
        }

        .content-container {
            flex: 2;

            .title {
                font-size: 2rem;
                line-height: 1.6;
                font-weight: bold;
                margin-bottom: 20px;
            }

            .dscp {
                font-size: 1.6rem;
                line-height: 1.6;
                text-align: justify;
                margin-bottom: 20px
            }
        }
    }

    .swiper-button-prev, .swiper-button-next {
        display: none;
    }

    .swiper-vertical {
        height: clamp(180px, 35vh, 280px);
        padding-bottom: 20px;
        left: 17px;
    }

    .news-item-title {
        background: transparent;
        color: #666;
        cursor: pointer;
        border: none;
        font-size: 1.8rem;
        font-weight: normal;
        padding: 13.1px;
        width: 100%;
        text-align: right;

        &:hover {
            background: rgba(var(--app-primary-rgb), 0.15);
        }

        &.active {
            color: var(--app-primary);
            font-weight: bold;
            border: 1px solid var(--app-secondary);
            border-right: 2px solid white;
        }
    }
}

.home-download-container {
    background: var(--app-secondary);
    padding: 20px;

    .download-item-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0 30px;
        align-items: center;
        justify-content: center;

        .img-container {
            flex: 1;
            text-align: center;

            img {
                width: 300px;
            }
        }

        .more-btn {
            flex: 0 0 100%;
            text-align: center;
        }

        .content-container {
            flex: 1;


            .download-item {
                display: block;
                padding: 5px;
                font-size: 1.8rem;
                color: white;
                border-bottom: 1px solid white;
                text-align: center;


                &:hover {
                    background: rgba(var(--app-primary-rgb), 0.15);
                }

                &:last-child {
                    border-bottom: none;
                }

                .date {
                    display: block;
                    text-align: center;
                    font-size: 1.6rem;
                }
            }
        }
    }
}

.blog-container {
    padding: 50px 20px;
    background-color: #b3b4b6;
    background-image: radial-gradient(circle, rgb(189 ,189 ,189) 3px, transparent 3px);
    background-size: 18px 20px;
    background-position: 0 0;

    .blog-post-item-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 30px;

        .blog-section-title {
            flex: 1;
            font-size: 4rem;
            font-weight: bold;
        }

        .blog-items {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 30px;
            flex: 4;

            .blog-item {
                display: flex;
                flex-wrap: wrap;
                background: white;
                padding: 30px;
                border-radius: 10px;
                align-items: center;
                gap: 20px;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                border: 1px solid transparent;

                .img-container {
                    flex: 1;
                    border-radius: 10px;
                    overflow: hidden;

                    img {
                        height: 200px;
                        width: 200px;
                        object-fit: cover;
                        border-radius: 10px;
                        transition: transform 0.4s ease;
                    }
                }

                .content-container {
                    flex: 1;
                    font-size: 1.6rem;
                    font-weight: bold;
                    transition: color 0.3s ease;
                }

                &:hover {
                    transform: translateY(-5px);
                    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
                    border-color: #eeeeee;

                    .img-container img {
                        transform: scale(1.05);
                    }

                    .content-container {
                        color: var(--app-primary);
                    }
                }
            }
        }
    }
}

.samaneh-moamelati-container {
    padding: 50px 20px;
    background: #f2f2f4;

    .samaneh-moamelati-section-title {
        line-height: 1;
        text-align: center;

        p:first-child {
            font-weight: bold;
            font-size: 3rem;
        }

        p:last-child {
            font-size: 1.8rem;
            color: #666;
        }
    }

    .samaneh-moamelati-item {
        position: relative;
        min-height: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px 120px;
        text-align: center;

        .samaneh-moamelati-title {
            position: relative;
            z-index: 2;
            font-size: 2.4rem;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.6;
            margin: 0;
            color: var(--app-secondary);
        }

        .samaneh-moamelati-description {
            position: relative;
            z-index: 2;
            max-width: 600px;
            font-size: 1.6rem;
            font-weight: 500;
            color: #666;
            line-height: 2;
        }

        .orbit-item {
            position: absolute;
            width: 100px;
            height: 100px;
            border-radius: 20px;
            padding: 5px;
            background: #fff;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            animation: orbit-float 4s ease-in-out infinite;
            will-change: transform;

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: contain;
                border-radius: 15px;
            }

            &.orbit-item-1 {
                top: 5%;
                left: 15%;
                width: 120px;
                height: 120px;
                animation-delay: 0s;
            }

            &.orbit-item-2 {
                top: 5%;
                right: 15%;
                animation-delay: -1s;
            }

            &.orbit-item-3 {
                top: 42%;
                left: 10%;
                animation-delay: -2s;
            }

            &.orbit-item-4 {
                top: 42%;
                right: 10%;
                width: 120px;
                height: 120px;
                animation-delay: -0.7s;
            }

            &.orbit-item-5 {
                bottom: 5%;
                left: 14%;
                animation-delay: -1.5s;
                width: 120px;
                height: 120px;
            }

            &.orbit-item-6 {
                bottom: 8%;
                right: 14%;
                animation-delay: -2.5s;
            }
        }
    }

    .swiper-button-next,
    .swiper-button-prev {
        bottom: 0;
        top: auto;
        background: transparent;
        box-shadow: none;
        border: none;

        .swiper-navigation-icon {
            display: none;
        }

        &::after {
            display: block;
            font-family: 'Font Awesome 7 Pro' !important;
            font-weight: 900;
            font-size: 2.5rem;
            line-height: 1;
            color: var(--app-secondary);
            opacity: 1;
            visibility: visible;
        }

        &:hover {
            &::after {
                color: var(--app-primary);
            }
        }

        &.swiper-button-lock {
            display: none;
        }
    }

    .swiper-button-next {
        left: auto !important;
        right: 25% !important;

        &::after {
            content: '\f178' !important;
        }
    }

    .swiper-button-prev {
        left: auto !important;
        right: 30% !important;

        &::after {
            content: '\f177' !important;
        }
    }
}


.consulting-container {
    padding: 100px 20px;
    position: relative;

    .section-content {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
        position: relative;
        z-index: 2;

        .section-title {
            font-size: 3rem;
            font-weight: bold;
        }

        .section-descrpition {
            font-size: 1.8rem;
            color: #666;
        }
    }

    .bg {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 120px 20px;
        background-color: white;
        background-image: radial-gradient(circle, #e0e5e9 1px, transparent 2px);
        background-size: 20px 15px;
        background-position: 0 0;
        z-index: 0;
    }

    .btn-outline-primary {
        background: white;

        &:hover {
            background: var(--app-primary);
        }
    }
}

.company-container {
    padding: 100px 20px;

    .company-item {
        text-align: center;
        cursor: pointer;

        .company-item-img {
            filter: grayscale(1);
            transition: 0.3s all;
            transform: scale(1);
            width: 100px;
            margin: 0 auto;
        }

        .company-item-content {
            .title {
                color: #666;
                font-size: 1.4rem;
                line-height: 2;
                transition: 0.3s all;
            }
        }

        &:hover {

            .company-item-img {
                filter: grayscale(0);
                transform: scale(1.1);
            }

            .company-item-content {
                .title {
                    color: black;
                }
            }
        }
    }

    .swiper-button-lock {
        display: none;
    }
}

@keyframes orbit-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes neo-item-progress-fill {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@media(max-width:1600px) {
    .home-news-container {
        .news-item-title {
            font-size: 1.4rem;
        }
    }
}

@media(max-width:1200px) {
    .quick-access-container {
        .quick-access {
            grid-template-columns: repeat(2, minmax(0, 1fr));

            .quick-access-item {
                justify-content: flex-start;
            }
        }
    }

    .home-stats-container {
        .home-stats {
            flex-direction: column-reverse;

            .statistics-img-container {
            }

            .statistics-container {
                .counter-item {
                    padding: 5px 10px;

                    .img-container {
                        flex: 0 0 40px;
                        width: 40px;
                        height: 40px;
                    }

                    .content-box {
                        .counter {
                            font-size: 2rem;
                        }

                        .title-en {
                            font-size: 1.3rem;
                        }
                    }
                }
            }
        }
    }

    .home-news-container {
        .news-card {
            height: 300px;

            .content-container {
                display: flex;
                flex-direction: column;
                justify-content: space-around;

                .title {
                    font-size: 1.6rem;
                    margin-bottom: 10px;
                }

                .dscp {
                    font-size: 1.4rem;
                    margin-bottom: 10px;
                }
            }

            &.first-item {
                border-radius: 20px;
            }

            &.last-item {
                border-radius: 20px;
            }
        }

        .swiper-button-prev, .swiper-button-next {
            display: block;
            top: 40%;
        }
    }

    .blog-container {
        .blog-post-item-container {
            .blog-section-title {
                font-size: 3rem;
            }

            .blog-items {
                gap: 10px;

                .blog-item {
                    padding: 10px;
                    gap: 10px;

                    .img-container {

                        img {
                            height: 100px;
                            width: 100px;
                        }
                    }

                    .content-container {
                        flex: auto;
                        font-size: 1.4rem;
                    }
                }
            }
        }
    }

    .samaneh-moamelati-container {
        .samaneh-moamelati-item {
            .orbit-item {

                &.orbit-item-1 {
                    top: 5%;
                    left: 5%;
                    width: 120px;
                    height: 120px;
                    animation-delay: 0s;
                }

                &.orbit-item-2 {
                    top: 5%;
                    right: 5%;
                    animation-delay: -1s;
                }

                &.orbit-item-3 {
                    top: 42%;
                    left: 0%;
                    animation-delay: -2s;
                }

                &.orbit-item-4 {
                    top: 42%;
                    right: 0%;
                    width: 120px;
                    height: 120px;
                    animation-delay: -0.7s;
                }

                &.orbit-item-5 {
                    bottom: 5%;
                    left: 4%;
                    animation-delay: -1.5s;
                    width: 120px;
                    height: 120px;
                }

                &.orbit-item-6 {
                    bottom: 8%;
                    right: 4%;
                    animation-delay: -2.5s;
                }
            }
        }
    }
}

@media(max-width:992px) {
    .home-download-container {
        .download-item-container {
            display: flex;
            flex-direction: column;
        }
    }

    .blog-container {
        .blog-post-item-container {
            flex-direction: column;
        }
    }

    .samaneh-moamelati-container {

        .samaneh-moamelati-item .orbit-item {
            display: none;
        }

        .samaneh-moamelati-item {
            min-height: auto;
            padding: 20px 20px;
            padding-bottom: 60px;
        }

        .swiper-button-next {
            left: auto !important;
            right: 0 !important;

            &::after {
                content: '\f178' !important;
            }
        }

        .swiper-button-prev {
            left: 0 !important;
            right: auto !important;
        }
    }
}

@media(max-width:768px) {
    .home-stats-container {
        .home-stats {
            .statistics-img-container {
            }

            .statistics-container {
                .counter-item {
                    padding: 5px 10px;

                    .img-container {
                        flex: 0 0 40px;
                        width: 40px;
                        height: 40px;
                    }

                    .content-box {
                        .counter {
                            font-size: 2rem;
                        }

                        .title-en {
                            font-size: 1.3rem;
                        }
                    }
                }
            }
        }
    }

    .home-news-container {
        .news-card {
            height: 500px;
            flex-direction: column;
        }
    }

    .blog-container {
        .blog-post-item-container {
            .blog-items {
                .blog-item {
                    flex-direction: column;
                }
            }
        }
    }
}

@media(max-width:576px) {
    .quick-access-container {
        .quick-access {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }
    }

    .blog-container {
        .blog-post-item-container {
            .blog-items {
                grid-template-columns: repeat(1, minmax(0, 1fr));
            }
        }
    }
}
