@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://fonts.googleapis.com/css2?family=League+Gothic&display=swap');
:root{
    --w-column: 200px;
}
body{
    margin: 0;
    background-image: radial-gradient(#6ce0ff, #441980);
    color: #fff;
    font-size: 15px;
    font-family: Poppins;
    & *{
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    header{
        position: fixed;
        z-index: 10;
        width: min(1200px, 98vw);
        height: 70px;
        left: 50%;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: 1fr calc(var(--w-column) * 3);
        gap: 10%;
        align-items: center;
        & .logo{
            & img{
                width: 350px;
                margin: 20px 0 0 -20px;
            }
        }
        & nav{
            & ul{
                display: grid;
                grid-template-columns: repeat(1, var(--w-column));
                float: right;
            & li a{
                color: #fff;
                text-decoration: none;
            }
            }

        }
    }
    & .carousel{
      
        height: 100vh;
        overflow: hidden;
        position: relative;
        & .list{
            width: min(1200px, 98vw);
            margin: auto;
            height: 100%;
            position: relative;
            & .item{
                position: absolute;
                inset: 0;
                & figure{
                    position: absolute;
                    width: 70%;
                    top: 50%;
                    transform: translateY(-50%);
                    & img{
                        width: 100%;
                        transform: rotate(-30deg);
                    }
                    &::before{
                        content: '';
                        position: absolute;
                        background-color: #0b0b1b;
                        width: 100%;
                        height: 100px;
                        top: 150%;
                        left: 50px;
                        border-radius: 50%;
                        filter: blur(50px);
                    }
                }
                
                & .content{
                    position: absolute;
                    z-index: 20;
                    width: 100%;
                    height: 100%;
                    right: var(--w-column);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: end;
                    gap: 10px;
                    & .category{
                        font-weight: 500;
                    }
                    & h2{
                        font-family: 'League Gothic';
                        font-size: 9em;
                        line-height: 1em;
                    }
                    & .description{
                        
                        align-items: center;
                        color: #fff;
                        max-width: 400px;
                        font-size: small;
                        text-align: right;
                        & i{
                            height: 50px;
                            color: #cecc6e;
                            font-size: 2em;
                            border: 1px solid #cecc6e;
                            border-radius: 50%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }
                    
                    }
                }
                & .more{
                    display: grid;
                    grid-template-columns: repeat(1, 120px);
                    gap: 20px;
                    grid-template-rows: 35px;
                    text-align: right;
                    & button{
                        border-radius: 30px;
                        font-family: 'League Gothic';
                        text-transform: uppercase;
                        color: #441980;
                        background-color: transparent;
                        border: none;
                        position: relative;
                        &:nth-child(1){
                            background-image: linear-gradient(
                                to right, #cecc6e, #cecc6e
                            );
                        }
                        /*
                        &:nth-child(2){
                            border: 2px solid transparent;
                            background: linear-gradient(#441980, #441980) padding-box,
                            linear-gradient(to right, #cecc6e, #cecc6e) border-box;
                            color: #cecc6e;
                            & i{
                                margin-right: 10px;
                            }
                        }
                        */
                    }
                }
            }
            &::after{
                content: '';
                position: absolute;
                right: var(--w-column);
                width: var(--w-column);
                height: 100%;
                border-left: none;
                border-right: none;
                pointer-events: none;
            }
            &::before{
                content: '';
                position: absolute;
                z-index: 10;
                height: var(--w-column);
                width: 100%;
                top: 52%;
                border-top: none;
                border-bottom: none;
                pointer-events: none;
            }
        }
    & .arrows{
        width: min(1200px, 95vw);
        display: flex;
        justify-content: space-between;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -25px);
        pointer-events: none;
        z-index: 100;
        & button{
            top: 50%;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 1px solid #441980;
            background-color: #441980;
            color: #fff7;
            font-size: large;
            cursor: pointer;
            pointer-events: auto;
            transition: 0.5s;
            &:hover{
                border: 1px solid #659cdf;
                color: #659cdf;
            }
        }
    }
    & .indicators{
        position: absolute;
        top: 60%;
        height: var(--w-column);
        width: min(1200px, 90vw);
        left: 55%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        pointer-events: none;
        justify-content: end;
        gap: 20px;
        & .number{
            font-family: 'League Gothic';
            font-size: 7vw;
        }
        & ul{
            display: flex;
            gap: 10px;
            & li{
                width: 30px;
                height: 5px;
                background-color: #6ce0ff;
                border-radius: 10px;
                pointer-events: auto;
                cursor: pointer;
                transition: 0.5s;
                &.active{
                    background-color: #cecc6e;
                }
            }
            }
        }
    }
}

/* animation */
body{
    .carousel{
        --calculation: 1; /* 1 or -1 */
        & .list{
            & .item{
                transform: translateX(calc(80vw * var(--calculation)));
                transition:  0.5s;
                opacity: 0;
                & figure{
                    & img{
                        transform: rotate(0deg);
                        transition: transform 0.5s;
                        transition-delay: 0.3s;
                    }
                }
                & .content{
                    & .category, h2, .description, .more{
                        transform: translateX(calc(200px * var(--calculation)));
                        transition:  0.7s;
                        opacity: 0;
                        transition-delay: 0.3s;
                    }
                    & h2{ transition-delay: 0.5s; }
                    & .description{ transition-delay: 0.7s; }
                    & .more{ transition-delay: 0.9s; }
                }
                &.active{
                    opacity: 1;
                    transform: translateX(0);
                    & figure{
                        & img{
                            transform: rotate(-20deg);
                        }
                    }
                    & .content{
                        & .category, h2, .description, .more{
                            transform: translateX(0px);
                            opacity: 1;
                        }
                    }
                }
                &.activeOld{
                    transform: translateX(calc(-100vw * var(--calculation)));
                }
            }
        }
    }
}
@media screen and (max-width: 1023px) and (min-width: 768px){
    :root{
        --w-column: 100px;
    }
    body{
        & .carousel{
            height: 100vh;
            & .list{
                & .item{
                    & .content{
                        & h2{
                            font-size: 5em;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 767px){
    :root{
        --w-column: 50px;
    }
    body{
        header{
            position: fixed;
            z-index: 10;
            width: 90vw;
            height: 70px;
            left: 50%;
            transform: translateX(-50%);
            display: grid;
            grid-template-columns: 1fr calc(var(--w-column) * 2);
            gap: 20%;
            align-items: center;
            & .logo{
                & img{
                    width: 150px;
                    margin: 20px 0 0 0;
                }
            }
            & nav{
                & ul{
                    display: block;
                    grid-template-columns: repeat(1, var(--w-column));
                    float: right;
                & li a{
                    color: #fff;
                    text-decoration: none;
                }
                }
    
            }
        }
        & .carousel{
            height: 100vh;
            & .list{
                & .item{
                    & .content{
                        justify-content: end;
                        padding-bottom: 50px;
                        & h2{
                            font-size: 5em;
                        }
                    }
                    & figure
                    {
                        width: 100%;
                        transform: translateY(0);
                        top: 80px;
                        left: 0;
                    }
                    & figure.contact{
                        width: 100%;
                        transform: translateY(0);
                        top: 50px;
                        left: 90px;
                    }
                    & .content{
                        position: absolute;
                        z-index: 20;
                        width: 100%;
                        height: 100%;
                        right: var(--w-column);
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: end;
                        gap: 10px;
                        top:25%;
                        & .category{
                            font-weight: 500;
                        }
                        & h2{
                            font-family: 'League Gothic';
                            font-size: 5em;
                            line-height: 1em;
                        }
                        & .description{
                            
                            align-items: center;
                            color: #fff;
                            width: 80%;
                            font-size: small;
                            text-align: right;
                            & i{
                                height: 50px;
                                color: #cecc6e;
                                font-size: 2em;
                                border: 1px solid #cecc6e;
                                border-radius: 50%;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                            }
                        
                        }
                    }
                    & .more{
                        display: grid;
                        grid-template-columns: repeat(1, 120px);
                        gap: 20px;
                        grid-template-rows: 35px;
                        text-align: right;
                        & button{
                            border-radius: 30px;
                            font-family: 'League Gothic';
                            text-transform: uppercase;
                            color: #441980;
                            background-color: transparent;
                            border: none;
                            position: relative;
                            &:nth-child(1){
                                background-image: linear-gradient(
                                    to right, #cecc6e, #cecc6e
                                );
                            }
                            /*
                            &:nth-child(2){
                                border: 2px solid transparent;
                                background: linear-gradient(#441980, #441980) padding-box,
                                linear-gradient(to right, #cecc6e, #cecc6e) border-box;
                                color: #cecc6e;
                                & i{
                                    margin-right: 10px;
                                }
                            }
                            */
                        }
                    }
                }
                }
            }
            & .indicators{
                top:85% !important;
                & .number{
                    font-size: 7em;
                    transform: translateX(0px);
                    opacity: 0.5;
                }
                & ul{
                    & li{
                        width: 20px !important;
                    }
                    }
                }
            }
        }
    }
}