/* Hero CSS */

@use 'responsive';
@use 'variables'as var;

.background-animation {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;

    .item1 {
        position: absolute;
        border-radius: 50%;
        width: 300px;
        height: 300px;
        top: 15%;
        left: 45%;
        z-index: -1;
        animation: rotateAnimation linear 39s infinite;

        &::after {
            position: absolute;
            content: "\f417";
            top: 10%;
            left: 10%;
            z-index: -1;
            font-family: bootstrap-icons !important;
            color: rgba(255, 255, 255, .3);
            font-size: 1rem;
        }
    }

    .item2 {
        position: absolute;
        border-radius: 50%;
        width: 240px;
        height: 240px;
        top: 50%;
        left: 60%;
        z-index: -1;
        animation: rotateAnimation linear 46s infinite;

        &::after {
            position: absolute;
            content: "\f588";
            top: 10%;
            left: 10%;
            z-index: -1;
            font-family: bootstrap-icons !important;
            color: rgba(255, 255, 255, .3);
            font-size: 1rem;
        }
    }

    .item3 {
        position: absolute;
        border-radius: 50%;
        animation: rotateAnimation linear 40s infinite;
        width: 20%;
        height: 20%;
        left: 30%;
        top: 50%;
        z-index: -1;

        &::after {
            position: absolute;
            content: "";
            z-index: -1;
            font-family: bootstrap-icons !important;
            content: "\f588";
            font-size: 1rem;
            color: var.$white;
        }
    }

    .item4 {
        position: absolute;
        border-radius: 50%;
        animation: rotateAnimation linear 34s infinite;
        width: 180px;
        height: 180px;
        left: 10%;
        top: 10%;
        z-index: -1;

        &::after {
            font-size: 1rem;
            position: absolute;
            content: "\f28a";
            font-family: bootstrap-icons !important;
            top: 10%;
            left: 10%;
            z-index: -1;
            color: rgba(255, 255, 255, .3);
        }
    }

    .item5 {
        position: absolute;
        border-radius: 50%;
        animation: rotateAnimation linear 37s infinite;
        width: 15%;
        height: 18%;
        left: 7%;
        top: 70%;
        z-index: -1;

        &::after {
            width: 18px;
            height: 18px;
            position: absolute;
            content: "";
            z-index: -1;
            background-color: transparent;
            border-radius: 6px;
            border: 3px solid rgba(255, 255, 255, .3);
        }
    }
}

@keyframes rotateAnimation {
    100% {
        transform: rotate(360deg);
    }
}

.background-shape {
    .circle1 {
        width: 1100px;
        height: 1100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        position: absolute;
        z-index: -30;
        top: -550px;
        right: -550px;

        @media #{responsive.$breakpoint-lg} {
            width: 1500px;
            height: 1500px;
            top: -750px;
            right: -750px;
        }

        @media #{responsive.$breakpoint-xxl} {
            width: 2200px;
            height: 2200px;
            top: -1100px;
            right: -1100px;
        }
    }

    .circle2 {
        width: 850px;
        height: 850px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        position: absolute;
        z-index: -20;
        top: -425px;
        right: -425px;

        @media #{responsive.$breakpoint-lg} {
            width: 1200px;
            height: 1200px;
            top: -600px;
            right: -600px;
        }

        @media #{responsive.$breakpoint-xxl} {
            width: 1700px;
            height: 1700px;
            top: -850px;
            right: -850px;
        }
    }

    .circle3 {
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        position: absolute;
        z-index: -10;
        top: -300px;
        right: -300px;

        @media #{responsive.$breakpoint-lg} {
            width: 900px;
            height: 900px;
            top: -450px;
            right: -450px;
        }

        @media #{responsive.$breakpoint-xxl} {
            width: 1200px;
            height: 1200px;
            top: -600px;
            right: -600px;
        }
    }

    .circle4 {
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        position: absolute;
        z-index: -10;
        top: -175px;
        right: -175px;

        @media #{responsive.$breakpoint-lg} {
            width: 600px;
            height: 600px;
            top: -300px;
            right: -300px;
        }

        @media #{responsive.$breakpoint-xxl} {
            width: 700px;
            height: 700px;
            top: -350px;
            right: -350px;
        }
    }
}

.welcome-area {
    position: relative;
    z-index: 10;
    height: 750px;
    background-color: var.$primary;
    overflow: hidden;

    @media #{responsive.$breakpoint-md} {
        height: 500px;
    }

    @media #{responsive.$breakpoint-lg} {
        height: 660px;
    }

    @media #{responsive.$breakpoint-xl} {
        height: 750px;
    }

    @media #{responsive.$breakpoint-xxl} {
        height: 850px;
    }

    .background-image {
        position: absolute !important;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .hero-background-shape {
        position: absolute !important;
        top: -1px;
        right: -1px;
        z-index: -1;
    }

    .welcome-content {
        margin-top: 50px;

        @media #{responsive.$breakpoint-lg} {
            margin-top: 80px;
        }

        ul {
            padding-left: 0;

            li {
                position: relative;
                list-style: none;
                padding-right: 21px;
                color: var.$white;
                font-weight: 700;

                &::after {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    right: 0;
                    content: "\f309";
                    font-family: bootstrap-icons !important;
                    z-index: 1;
                    font-size: 20px;
                }

                &:last-child {
                    &::after {
                        display: none;
                    }
                }
            }
        }

        h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
            font-weight: 700;
            color: var.$white;
            letter-spacing: -0.5px;

            @media #{responsive.$breakpoint-lg} {
                font-size: 3rem;
            }

            @media #{responsive.$breakpoint-xl} {
                font-size: 4rem;
                margin-bottom: 1.5rem;
            }
        }

        p {
            font-size: 1rem;
            color: var.$white;

            @media #{responsive.$breakpoint-lg} {
                font-size: 1.25rem;
            }
        }
    }

    .welcome-thumb {

        @media #{responsive.$breakpoint-md} {
            margin-top: 50px;
        }

        @media #{responsive.$breakpoint-lg} {
            margin-top: 80px;
        }
    }

    &.hero2 {
        .hero2-big-circle {
            width: 240px;
            height: 240px;
            border-radius: 50%;
            border: 3rem solid var.$gray;
            position: absolute !important;
            left: -120px;
            top: 54%;
            z-index: -1;
        }

        .welcome-content {
            h2 {
                font-size: 2rem;
                color: var.$heading;

                @media #{responsive.$breakpoint-lg} {
                    font-size: 3rem;
                }

                @media #{responsive.$breakpoint-xl} {
                    font-size: 4rem;
                }
            }

            p {
                color: var.$text;
            }
        }

        .background-animation {
            .item1 {
                &::after {
                    color: rgba(12, 82, 255, 0.26);
                }
            }

            .item4 {
                &::after {
                    border: 4px solid rgba(12, 82, 255, 0.13);
                }
            }

            .item5 {
                &::after {
                    background-color: rgba(12, 82, 255, 0.11);
                }
            }
        }
    }

    &.hero3 {

        .welcome3-slide-item {
            width: 100%;
            height: 750px;

            @media #{responsive.$breakpoint-md} {
                height: 500px;
            }

            @media #{responsive.$breakpoint-lg} {
                height: 660px;
            }

            @media #{responsive.$breakpoint-xl} {
                height: 750px;
            }

            @media #{responsive.$breakpoint-xxl} {
                height: 800px;
            }
        }

        .welcome-content {
            h2 {
                font-size: 1.75rem;

                @media #{responsive.$breakpoint-lg} {
                    font-size: 2.25rem;
                }

                @media #{responsive.$breakpoint-xl} {
                    font-size: 3.5rem;
                }
            }
        }
    }

    &.hero4 {
        background-color: var.$white;

        .hero4-bg-shape {
            position: absolute;
            top: -1px;
            left: -1px;
            z-index: -10;
        }

        .hero4-bg-shape2 {
            position: absolute;
            top: -1px;
            right: -1px;
            z-index: -10;
        }

        .welcome-content {
            h2 {
                color: var.$heading;
                font-size: 1.75rem;
                margin-bottom: 1rem;

                @media #{responsive.$breakpoint-lg} {
                    font-size: 2.5rem;
                }

                @media #{responsive.$breakpoint-xl} {
                    font-size: 3.5rem;
                }
            }

            p {
                color: var.$text;
            }
        }

        .key-quote {
            font-size: 1rem;
            padding: 0.5rem 1rem;
            background-color: var.$warning;
            display: inline-block;
            margin-bottom: 1rem;
            border-radius: .5rem;
            color: var.$heading;
        }

        .hero-video-card {
            position: relative;
            z-index: 1;
            border: 0;
            box-shadow: 0 16px 48px 12px rgba(12, 82, 255, 0.17);
            border-radius: 1rem;
            background-color: transparent;

            .video-shape {
                position: absolute;
                bottom: -35px;
                left: -70px;
                z-index: -1;
                animation: slideAnimation linear 12s infinite;

                @media #{responsive.$breakpoint-lg} {
                    bottom: -70px;
                }
            }
        }

        .hero4-slide-controls {
            .tns-nav {
                margin-bottom: 1.5rem;
                margin-left: .5rem;
                line-height: 1;

                button {
                    width: .5rem;
                    height: .5rem;
                    background-color: var.$text-gray;
                    border: 0;
                    outline: none;
                    margin-right: .5rem;
                    border-radius: 50%;

                    &.tns-nav-active {
                        background-color: var.$primary;
                    }
                }
            }
        }
    }
}

@-webkit-keyframes slideAnimation {
    50% {
        bottom: 0;
    }
}

@keyframes slideAnimation {
    50% {
        bottom: 0;
    }
}

.welcome-area.hero5 {
    position: relative;
}

.welcome-area.hero5 .welcome-content h2 span {
    position: relative;
    color: var.$white;
}

.welcome-area.hero5 .welcome-content h2 span::after {
    position: absolute;
    top: 0;
    z-index: 2;
    content: "";
    background-image: url('img/core-img/text-horn.png');
    width: 32px;
    height: 30px;
    -webkit-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    transform: rotate(15deg);
    right: auto;
    background-size: cover;
}

.welcome-area.hero5 .welcome-thumb {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 2rem;
    -webkit-transform: rotate(8deg);
    -ms-transform: rotate(8deg);
    transform: rotate(8deg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media only screen and (min-width:992px) {
    .welcome-area.hero5 .welcome-content h2 span::after {
        width: 42px;
        height: 40px;
    }

    .welcome-area.hero5 .welcome-thumb {
        width: 300px;
        height: 300px;
    }
}

@media only screen and (min-width:1200px) {
    .welcome-area.hero5 .welcome-content h2 span::after {
        top: 8px;
    }

    .welcome-area.hero5 .welcome-thumb {
        width: 350px;
        height: 350px;
    }
}

.welcome-area.hero5 .welcome-thumb span.first-badge {
    position: absolute;
    top: 4px;
    -webkit-transform: rotate(-12deg);
    -ms-transform: rotate(-12deg);
    transform: rotate(-12deg);
    left: -4px;
}

.welcome-area.hero5 .welcome-thumb span.second-badge {
    position: absolute;
    bottom: 1rem;
    -webkit-transform: rotate(-8deg);
    -ms-transform: rotate(-8deg);
    transform: rotate(-8deg);
    right: 10px;
}

.welcome-area.hero5 .big-letters {
    position: absolute;
    z-index: -1;
    width: 50%;
    height: 80%;
    bottom: 10%;
    right: -10%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.welcome-area.hero5 .big-letters span {
    color: rgba(255, 255, 255, .08);
    font-size: 6vw;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}


.welcome-area.hero6,
.welcome-area.hero6 .welcome4-slide-item {
    height: 600px;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

@media only screen and (min-width:768px) {

    .welcome-area.hero6,
    .welcome-area.hero6 .welcome4-slide-item {
        height: 600px;
    }
}

@media only screen and (min-width:992px) {

    .welcome-area.hero6,
    .welcome-area.hero6 .welcome4-slide-item {
        height: 630px;
    }
}

@media only screen and (min-width:1200px) {

    .welcome-area.hero6,
    .welcome-area.hero6 .welcome4-slide-item {
        height: 850px;
    }
}

.welcome-area.hero6 .welcome-content {
    background-color: rgba(255, 255, 255, .75);
    border-radius: 1rem;
    padding-bottom: 2.5rem;
    padding-top: 2rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;

    h2 {
        color: var.$heading;
    }
}

.welcome-area.hero6 .tns-controls button {
    position: absolute;
    width: 40px;
    height: 120px;
    left: 0;
    top: 50%;
    margin-top: -60px;
    background-color: var.$heading;
    opacity: 0.15;
    border: 0;
    z-index: 100;
    border-radius: 0 .375rem .375rem 0;
    color: var.$white;
    transition-duration: 350ms;
}

.welcome-area.hero6 .tns-controls button:hover {
    opacity: 1;
}

.welcome-area.hero6 .tns-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 3rem;
    width: 100%;
    z-index: 100;
}

.welcome-area.hero6 .tns-nav button {
    width: 80px;
    margin: 0 .5rem;
    height: 5px;
    background-color: var.$white;
    border-radius: 4px;
    border: 0;
    transition-duration: 350ms;
    opacity: 0.5;
}

.welcome-area.hero6 .tns-nav button.tns-nav-active {
    background-color: var.$heading;
    opacity: 1;
}

.welcome-area.hero6 .tns-controls button[data-controls="next"] {
    left: auto;
    right: 0;
    border-radius: .375rem 0 0 .375rem;
}