 @import url('https://fonts.cdnfonts.com/css/bebas-neue');
    @import url('https://fonts.cdnfonts.com/css/poppins');
    /* 1200 x 780 */


    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        list-style: none;
    }

    svg {
        color: #fff;
    }

    :root {
        --width-default: min(1200px, 90vw);
        --diameter: 1432px;
    }


    .slider {
        /* background-color: red; */
        color: #eee;
        width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
        margin-top: -70px;
    }

    .slider .list .item {
        position: absolute;
        inset: 0 0 0 0;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 1s;
    }

    .slider .list .item .content {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: 100%;
        text-align: center;
        display: grid;
        grid-template-columns: repeat(2, 400px);
        text-align: left;
        gap: 80px;
        font-size: 1.2em;
        text-transform: uppercase;
        font-family: Poppins;
        text-shadow: 0 0 80px #000;
    }

    .slider .list .item .content h2 {
        font-size: 10em;
        font-family: 'Bebas Neue', sans-serif;
        line-height: 0.9em;
        transform: translateY(-100%);
        transition: transform 1s;
        grid-row-start: 1;
        grid-row-end: 3;
    }

    .slider .list .item .content p {}

    .slider .list .item .content p:last-child {
        display: flex;
        justify-content: start;
        align-items: end;
        padding-bottom: 25px;
    }

    /* item default */
    .slider .list .item .image {
        flex-shrink: 0;
        width: var(--diameter);
        height: var(--diameter);
        background-image: var(--url);
        background-size: var(--diameter) var(--diameter);
        background-position: center;
        border-radius: 50%;
        transform: rotate(-60deg);
        position: relative;
        transition: 1s;
    }

    .slider .list .item .image::before,
    .slider .list .item .image::after {
        position: absolute;
        width: 70%;
        height: 70%;
        content: '';
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-120deg);
        background-image:
            linear-gradient(to right, #0004, #0004),
            var(--url);
        background-size: var(--diameter) var(--diameter);
        background-position: center;
        transition: 1s;
    }

    .slider .list .item .image::after {
        width: 30%;
        height: 30%;
        background-image: var(--url);
        border: 3px solid #fff2;
        transform: translate(-50%, -50%) rotate(-170deg);
    }

    /* default  */
    .slider .list .item .image {
        filter: blur(30px);
    }

    .slider .list .item {
        pointer-events: none;
        opacity: 0;
    }

    /* item active */
    .slider .list .item.active {
        pointer-events: auto;
        opacity: 1;
    }

    .slider .item.active .image {
        filter: blur(0px);
        transform: rotate(0deg);
    }

    .slider .item.active .image::before,
    .slider .item.active .image::after {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .slider .list .item.active .content h2 {
        transform: translateY(0);
    }

    /* item phía sau */
    .slider .list .item.active~.item {
        opacity: 0;
    }

    .slider .item.active~.item .image {
        transform: rotate(60deg);
    }

    .slider .item.active~.item .image::before {
        transform: translate(-50%, -50%) rotate(120deg);
    }

    .slider .item.active~.item .image::after {
        transform: translate(-50%, -50%) rotate(170deg);
    }

    .slider .list .item.active~.item .content h2 {
        transform: translateY(100%);
    }

    /* arrows */
    /* Ensure arrows are visible */
    .arrows {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
        /* Default position for desktop */
        width: var(--width-default);
        display: flex;
        justify-content: space-between;
        z-index: 10;
        /* Ensure arrows are above other elements */
    }

    .arrows button {
        all: unset;
        cursor: pointer;
        opacity: 1;
        /* Ensure visibility */
        pointer-events: auto;
        /* Ensure they are clickable */
        border-radius: 50%;
        /* Circular buttons */
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .arrows button:hover {
        transform: scale(1.1);
        /* Slight zoom on hover */
    }

    .arrows button svg {
        color: #000000;
        /* White arrow icons */
        width: 24px;
        height: 24px;
    }

    /* Ensure arrows are visible and adjusted for mobile */
    @media all and (max-width: 767px) {
        .arrows {
            bottom: 100px;
            /* Move arrows higher on mobile */
        }

        .arrows button {
            width: 40px;
            /* Slightly smaller for mobile */
            height: 300px;
        }
    }


    .slider .list::after {
        position: absolute;
        content: '';
        bottom: 0;
        width: min(1000px, 100vw);
        height: 70%;
        left: 50%;
        transform: translateX(-50%);
        /* FIXME: img/model.png does not exist in the project — reference removed to stop a 404.
           Restore with a valid path if this overlay image is added later. */
        /* background-image: url(img/model.png); */
        background-size: cover;
        background-position: top;
        pointer-events: none;
        animation: showModel 1s ease-in-out 1 forwards;
    }

    @keyframes showModel {
        from {
            transform: translateX(-50%) scale(1.3) translateY(88px);
        }
    }

    /* Show arrows on mobile */
    @media all and (max-width: 767px) {
        .arrows button {
            opacity: 1 !important;
            pointer-events: auto !important;
        }
    }

    @media all and (max-width: 1024px) {
        .slider .list .item .content {
            grid-template-columns: repeat(2, 300px);
        }

        .slider .list .item .content h2 {
            font-size: 8em;
        }
    }

    @media all and (max-width: 767px) {
        .slider .list .item .content {
            grid-template-columns: 80%;
            justify-content: center;
            gap: 20px;
            top: 70px;
        }

        .slider .list .item .content h2 {
            font-size: 4em;
        }

        .slider .list .item .content p {
            font-size: small;
        }
    }