:root {
    --color-just-black: #0a0a0a;
    --color-surface50: #999;
    --gradient-orange-crush: linear-gradient(45deg, #ff9966, #ff5e62);
    --gradient-macha: linear-gradient(45deg, #a8e063, #56ab2f);
    --gradient-summer-fair: linear-gradient(45deg, #f6d365, #fda085)
}

* {
    box-sizing: border-box
}

.slider123 {
    font-family: system-ui;
    color: #fff;
        background: linear-gradient(to top right, rgb(0 0 0) 60%, rgba(255, 0, 0, 0.8) 100%);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 60vh
}

.slider123 h2 {
    font-size: 2rem;
    margin: .5rem 0 2.2rem;
    color: #fff
}

.button-cont {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem
}

.wrapper {
    height: 350px;
    max-height: 50vh;
    width: 70%;
    border-left: dashed 2px var(--color-surface50);
    border-right: dashed 2px var(--color-surface50);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center
}

.box {
    padding: .5rem;
    flex-shrink: 0;
    height: 100%;
    width: 20%;
    min-width: 150px;
    --gradient: var(--gradient-macha)
}

.box__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 21px;
    cursor: pointer;
    width: 100%;
    height: 100%
}

.show-overflow {
    overflow: visible
}

.box .box__inner {
    background: linear-gradient(to top right, #000000, #d71010);
    border: 5px solid #ffffff;
    border-radius: 10px;
}

.box:nth-child(3n+2) {
    --gradient: var(--gradient-summer-fair)
}

.box:nth-child(3n+1) {
    --gradient: var(--gradient-orange-crush)
}

.box p {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 3rem
}

.card.service-card {
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    width: 100%;
    height: 100%
}

.card.service-card img {
    width: 90%;
    height: 12rem;
    border-radius: 6px;
    object-fit: cover
}

.card-content h3 {
    font-size: 1.1rem;
    margin: .5rem 0 .2rem;
    color: #fff
}

.card-content p {
    font-size: .9rem;
    color: #ddd
}

.button-cont button {
    /* background: linear-gradient(to bottom left, #f9df7b, #b57e10); */
    color: #000000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: .7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background .3s, transform .2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3)
}

.button-cont button:hover {
    transform: translateY(-2px);
    color: #fff;
    background: linear-gradient(to bottom left, #d71010, #d71010)
}

.button-cont button:active {
    transform: scale(.96)
}

.button-cont .prev::before {
    content: "◀";
    margin-right: .5rem;
    font-size: 1.2rem
}

.button-cont .next::after {
    content: "▶";
    margin-left: .5rem;
    font-size: 1.2rem
}

@media (min-width:1025px) and (max-width:1440px) {
    .slider123 {
        height: auto;
        padding: 2rem 1rem
    }

    .slider123 h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem
    }

    .wrapper {
        width: 90%;
        height: 450px;
        max-height: none
    }

    .box {
        width: 30%;
        min-width: 120px
    }

    .box p {
        font-size: 1.2rem
    }

    .button-cont {
        flex-direction: row;
        gap: .8rem
    }

    .button-cont button {
        font-size: .9rem;
        padding: .6rem 1.2rem
    }

    .card.service-card img {
        width: 80%;
        height: 15rem;
        border-radius: 6px;
        object-fit: cover
    }
}

@media (min-width:768px) and (max-width:1024px) {
    .slider123 {
        height: auto;
        padding: 2rem 1rem
    }

    .slider123 h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem
    }

    .wrapper {
        width: 90%;
        height: 450px;
        max-height: none
    }

    .box {
        width: 40%;
        min-width: 120px
    }

    .box p {
        font-size: 1.4rem
    }

    .button-cont {
        flex-direction: row;
        gap: .8rem
    }

    .button-cont button {
        font-size: .9rem;
        padding: .6rem 1.2rem
    }

    .card.service-card img {
        width: 80%;
        height: 15rem;
        border-radius: 6px;
        object-fit: cover
    }
}

@media (max-width:480px) {
    .slider123 {
        height: auto;
        padding: 1.5rem 1rem
    }

    .slider123 h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem
    }

    .wrapper {
        width: 80%;
        height: 350px;
        border-left: none;
        border-right: none
    }

    .box {
        width: 70%;
        min-width: 90%;
        padding: .4rem
    }

    .box p,
    .box__inner {
        font-size: 1rem
    }
}