﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --left-position: 55%;
    --transition-time: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

html,
body {
    height: 100%;
    width: 100%;
   
}

/* carousel */
.carousel {
    width: 100%;
    /*height: 100%;*/
    height: 85vh;
    overflow: hidden;
    position: relative;
}

    .carousel .list .item {
        width: 180px;
        height: 250px;
        position: absolute;
        bottom: 150px;
        left: calc(var(--left-position) + 3%);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
        background-position: center;
        background-size: cover;
        z-index: 100;
        transform: translate(0, 0px);
        transition: all var(--transition-time);
    }

        .carousel .list .item::after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 100%;
            background-color: rgba(33, 33, 33, 0.5);
            z-index: 1;
        }

        .carousel .list .item:nth-child(1),
        .carousel .list .item:nth-child(2) {
            bottom: 0px;
            left: 0;
            border-radius: 0;
            transform: translate(0, 0px);
            width: 100%;
            height: 100%;
        }

        .carousel .list .item:nth-child(3) {
            left: var(--left-position);
        }

        .carousel .list .item:nth-child(4) {
            transition-delay: 0.1s;
            left: calc(var(--left-position) + 200px);
        }

        .carousel .list .item:nth-child(5) {
            transition-delay: 0.2s;
            left: calc(var(--left-position) + 400px);
        }

        .carousel .list .item:nth-child(6) {
            transition-delay: 0.3s;
            left: calc(var(--left-position) + 600px);
        }

        .carousel .list .item:nth-child(n + 7) {
            transition-delay: 0.4s;
            left: calc(var(--left-position) + 800px);
        }

.list .item .content {
    position: absolute;
    text-align: left;
    color: #fff;
    z-index: 3;
    left: 0;
    top: 100%;
    transform: translateY(-100%);
    width: 100%;
    padding: 10px;
    transition: all var(--transition-time);
}

.content .title::before {
    content: "";
    display: block;
    height: 1px;
    width: 20px;
    background-color: #fff;
    margin-bottom: 10px;
}

.content .title {
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    transition: all var(--transition-time);
    position: relative;
}

    .content .title::after {
        content: attr(data-item);
        border-radius: 50%;
        color: #fff;
        font-size: 12px;
        position: absolute;
        top: -20px;
        left: 0px;
        z-index: 2;
        font-weight: 400;
    }

.content .name {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
    transition: all var(--transition-time);
    margin-bottom: 10px;
    color: #d36e10;
}

.content .des {
    font-size: 16px;
    font-weight: 400;
    transition: all var(--transition-time);
    opacity: 0;
    display: none;
}

.list .item:nth-child(1) .content,
.list .item:nth-child(2) .content {
    transform: translateY(-50%);
    left: 100px;
    width: 600px;
    top: 50%;
    padding: 0;
}

    .list .item:nth-child(1) .content .title::before,
    .list .item:nth-child(2) .content .title::before {
        width: 50px;
        height: 3px;
        margin-bottom: 20px;
    }

    .list .item:nth-child(1) .content .title::after,
    .list .item:nth-child(2) .content .title::after {
        font-size: 20px;
        top: -40px;
        left: 15px;
    }

    .list .item:nth-child(1) .content .title,
    .list .item:nth-child(2) .content .title {
        font-size: 35px;
        margin-bottom: 20px;
        /*-webkit-text-stroke: 2px #ffffff;
        color: black !important;
        text-shadow: 0px 0px 30px #000000;*/
    }

    .list .item:nth-child(1) .content .name,
    .list .item:nth-child(2) .content .name {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .list .item:nth-child(1) .content .des,
    .list .item:nth-child(2) .content .des {
        font-size: 20px;
        opacity: 1;
        display: block;
        /*width: 400px;*/
        width: 100%;
        background-color: #000000a3;
        padding: 15px;
        border-radius: 15px;
    }

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Carousel */

/* next prev arrows */

.arrows {
    position: absolute;
    bottom: 50px;
    left: var(--left-position);
    width: calc(100% - var(--left-position) - 2%);
    z-index: 100;
    display: flex;
    gap: 5%;
    align-items: center;
}

    .arrows button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
        border: 2px solid rgb(255, 255, 255);
        color: rgb(255, 255, 255);
        background-color: transparent;
        outline: none;
        font-size: 25px;
        font-weight: bold;
        transition: all var(--transition-time);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .arrows button:hover {
            border: 2px solid #ffffff;
            color: #ffffff;
            background-color: transparent;
        }

.slide-number {
    font-size: 25px;
    color: #ffffff;
    font-weight: 400;
    margin-left: auto;
    letter-spacing: 5px;
    opacity: 0;
    animation: animate 0.5s ease-in-out 0.3s 1 forwards;
}

.progress-bar-container {
    width: 60%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background-color: #d36e10;
    transition: all var(--transition-time);
}

/* time running */
.carousel .timeRunning {
    position: fixed;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: #87cc6e;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.youtube-button {
    left: 20px;
}
