@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');

.banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-color: black;
}

.banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    bottom: 35%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
    animation-play-state: running;
    pointer-events: none;
}

/* .banner .slider:hover > * {
    animation-play-state: paused;
} */

.banner .slider:hover {
    animation-play-state: paused;
}

@keyframes autoRun {
    from {
        transform: perspective(1300px) rotateX(-10deg) rotateY(0deg);
    }

    to {
        transform: perspective(1300px) rotateX(-10deg) rotateY(360deg);
    }
}

.banner .slider .item {
    pointer-events: all;
    position: absolute;
    inset: 0 0 0 0;
    border-radius: 3%;
    overflow: hidden;
    transform:
        rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(520px);
}

/* .banner .slider .item:hover {
    padding: 10px;
    animation-play-state: paused;
} */

.banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .slider .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition: opacity 0.3s;
}

.banner .slider .item:hover::before {
    opacity: 0;
}

.banner .content {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    /* align-items: center; */
    z-index: 5;
}

.banner .content h1 {
    position: absolute;
    font-family: 'ICA Rubrik';
    font-size: 8em;
    line-height: 1em;
    color: #fe5967;
    /* color: #25283B; */
    position: relative;
}

.banner .content h1::after {
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}

.author {
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
    position: absolute;
    color: #fff;
    bottom: 10%;
    left: 10%;
    z-index: 10;
    font-size: larger;
    text-shadow: 2px 2px 4px #fe5967;
}

.banner .content h2 {
    font-size: 3em;
}

.banner .content .model {
    /* background-image: url(http://localhost:8002/storage/images/model.png); */
    width: 100%;
    height: 40vh;
    position: absolute;
    top: -20%;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1023px) {
    .banner .slider {
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }

    .banner .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(300px);
    }

    .banner .content h1 {
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }

    .author {
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}

@media screen and (max-width: 767px) {
    .banner .slider {
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }

    .banner .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)) translateZ(180px);
    }

    .banner .content h1 {
        font-size: 5em;
    }
}
