/* Yash Bishnoi */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Space+Grotesk&display=swap');

* {
    margin: 0;
    /* Changed to 0 to remove default margins */
    padding: 0;
    /* Changed to 0 to remove default paddings */
    box-sizing: border-box;
}

body {
    background-color: white;
    /* Added background color for better visibility */
}

.main-slider {
    overflow: hidden;
    place-items: center;
    position: absolute;
    width: 80vw;
    height: 80%;
    box-shadow: 0 3px 10px #ff7200;
    display: grid;
    margin-left: 10%;


}

.slider {
    width: 100%;
    height: 100%;
    list-style-type: none;
}

.item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 20px 30px #ff7200 inset;
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;
}

.item:nth-child(1),
.item:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
}

.item:nth-child(3) {
    left: 85%;
}

.item:nth-child(4) {
    left: calc(85% + 220px);
}

.item:nth-child(5) {
    left: calc(85% + 440px);
}

.item:nth-child(6) {
    left: calc(85% + 660px);
    opacity: 0;
}

.content {
    width: min(30vw, 400px);
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    font: 400 0.85rem 'Space Grotesk', sans-serif;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: none;
}

.content .title {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2rem;
    font-display: bold;
}

.content .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 1.3rem;
    font-display: bold;
}

.content button {
    width: fit-content;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border: 2px solid #ff7200;
    border-radius: 0.25rem;
    padding: 10px 100px;
    cursor: pointer;
    font-size: 1.2rem;
}

.item:nth-of-type(2) .content {
    display: block;
    animation: show 0.75s ease-in-out 0.3s forwards;
}

@keyframes show {
    0% {
        filter: blur(5px);
        transform: translateY(calc(-50% + 75px));
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.content button:hover {
    background-color: #ff7200;
}

.arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    user-select: none;
}

.arrow .btn {
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 0, 0, 0.6);
    margin: 0 0.25rem;
    padding: .75rem;
    border-radius: 50%;
    cursor: pointer;
}

.arrow .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 950px) {

    .content .title {
        font-size: 1.3rem;
    }

    .content .description {
        font-size: 1rem;
    }

    .content button {
        font-size: 0.7rem;
        text-wrap: nowrap;
        padding: 10px 50px;
    }


    .item {
        width: 160px;
        height: 270px;

    }

    .item:nth-child(3) {
        left: 85%;
    }

    .item:nth-child(4) {
        left: calc(85% + 170px);
    }

    .item:nth-child(5) {
        left: calc(85% + 340px);
    }

    .item:nth-child(6) {
        left: calc(85% + 510px);
        opacity: 0;
    }

}

@media (width < 650px) {
    .content .title {
        font-size: 0.9rem;
    }

    .content .description {
        font-size: 0.65rem;
    }

    .content button {
        font-size: 0.7rem;
    }

    .item {
        width: 130px;
        height: 220px;
    }

    .item:nth-child(3) {
        left: 50%;
    }

    .item:nth-child(4) {
        left: calc(50% + 140px);
    }

    .item:nth-child(5) {
        left: calc(50% + 280px);
    }

    .item:nth-child(6) {
        left: calc(50% + 420px);
        opacity: 0;
    }
}