@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');


:root {
    --w-column: 200px;
}

.new-carousel {
    /* background-image: radial-gradient(#2b2e4f, #111126); */
    background-color: #000000;
    height: 100vh;
    overflow: hidden;
    color: white;
    position: relative;
}

.new-list {
    width: min(1200px, 90vw);
    margin: auto;
    height: 100%;
}

.new-item {
    position: absolute;
    inset: 0;
}

.new-item figure {
    position: absolute;
    width: 100%;
    bottom: -2%;
    left: 0%;
}

.new-item figure img {
    width: 100%;
    transform: rotate(0deg);
    opacity: 0.8;
    transition: transform 0.5s;
    transition-delay: 0.3s;
}

.new-item figure::before {
    content: '';
    position: absolute;
    background-color: #0b0b1b;
    width: 100%;
    height: 100px;
    top: 150%;
    left: 50px;
    border-radius: 50%;
    filter: blur(50px);
}

.new-content {
    position: absolute;
    z-index: 20;
    width: 70%;
    height: 100%;
    right: var(--w-column);
    top: -15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    gap: 20px;
}

.new-category {
    font-weight: 500;
}

.new-content h2 {
    font-family: 'Montserrat';
    font-weight: 900;
    font-size: 96px;
    line-height: 1em;
}

.new-description {
    align-items: center;
    color: #fff8;
    max-width: 400px;
    font-size: 20px;
    text-align: right;
}

.new-description i {
    height: 50px;
    color: #ffea7c;
    font-size: 2em;
    border: 1px solid #659cdf;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-more {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    gap: 20px;
    grid-template-rows: 35px;
}

.new-more button {
    border-radius: 30px;
    font-family: 'Montserrat';
    text-transform: uppercase;
    color: #fff;
    background-color: transparent;
    border: none;
    position: relative;
}

.new-more button:nth-child(1) {
    background-image: linear-gradient(to right, #81baa0, #46a39c);
}

.new-more button:nth-child(2) {
    border: 2px solid transparent;
    background: linear-gradient(#242745, #242745) padding-box, linear-gradient(to right, #81baa0, #46a39c) border-box;
}

.new-more button:nth-child(2) i {
    margin-right: 10px;
}

.new-list::after {
    content: '';
    position: absolute;
    right: var(--w-column);
    width: var(--w-column);
    height: 100%;
    /* border-left: 1px solid #324073;
    border-right: 1px solid #324073; */
    pointer-events: none;
}

.new-list::before {
    content: '';
    position: absolute;
    z-index: 10;
    height: var(--w-column);
    width: 100%;
    top: 52%;
    /* border-top: 1px solid #324073;
    border-bottom: 1px solid #324073; */
    pointer-events: none;
}

.new-arrows {
    width: min(1200px, 90vw);
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -25px);
    pointer-events: none;
    z-index: 100;
}

.new-arrows button {
    top: 60%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #659cdf55;
    background-color: #232442;
    color: #fff7;
    font-size: large;
    cursor: pointer;
    pointer-events: auto;
    transition: 0.5s;
}

.new-arrows button:hover {
    border: 1px solid #659cdf;
    color: #fff;
}

.new-indicators {
    position: absolute;
    top: 52%;
    height: var(--w-column);
    width: min(1200px, 90vw);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    justify-content: end;
    gap: 10px;
}

.new-number {
    font-family: 'Montserrat';
    font-size: 7vw;
}

.new-indicators ul {
    display: flex;
    gap: 10px;
}

.new-indicators ul li {
    width: 50px;
    height: 5px;
    background-color: transparent;
    border-radius: 10px;
    pointer-events: auto;
    cursor: pointer;
    transition: 0.5s;
    list-style: none;
}

.new-indicators ul li.new-active {
    background-color: transparent;
}

/* animation */
.new-carousel {
    --calculation: 1;
}

.new-item {
    transform: translateX(calc(100vw * var(--calculation)));
    transition: 0.5s;
    opacity: 0;
}



.new-category,
.new-content h2,
.new-description,
.new-more {
    transform: translateX(calc(200px * var(--calculation)));
    transition: 0.7s;
    opacity: 0;
    transition-delay: 0.3s;
}

.new-content h2 {
    transition-delay: 0.5s;
}

.new-content .new-description {
    transition-delay: 0.7s;
}

.new-content .new-more {
    transition-delay: 0.9s;
}

.new-item.new-active {
    opacity: 1;
    transform: translateX(0);
}

/* .new-item.new-active figure img {
    transform: rotate(-20deg);
} */

.new-item.new-active .new-content .new-category,
.new-item.new-active .new-content h2,
.new-item.new-active .new-content .new-description,
.new-item.new-active .new-content .new-more {
    transform: translateX(0px);
    opacity: 1;
}

.new-item.new-activeOld {
    transform: translateX(calc(-100vw * var(--calculation)));
}

@media (max-width: 1200px) {
    :root {
        --w-column: 100px;
    }

    .new-carousel {
        height: 60vh;
    }

    .new-content h2 {
        font-size: 32px;
    }

    .new-carousel {
        height: 100vh;
    }

    .new-content {
        justify-content: end;
        padding-bottom: 100px;
        translate: 50px 100px;
    }

    .new-item figure img {
        translate: 0px 100px;
    }

    .new-number {
        translate: 0px -300px;
    }

    .new-item figure {
        width: 110%;
        transform: translateY(0);
        top: 200px;
        left: -30px;
    }

    .new-number {
        font-size: 10em;
        transform: translateX(50px);
        opacity: 0.5;
    }
}