.card {
    width: 190px;
    height: 254px;
    background: #07182E;
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
}

.card h2 {
    z-index: 1;
    color: white;
    font-size: 2em;
}

.card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 200%;
    background-image: linear-gradient(
        180deg,
        rgb(255, 210, 0),
        rgb(255, 96, 0)
    );

    /* این سه خط باعث وسط شدن میشه */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);

    animation: rotBGimg 3s linear infinite;
    transition: all 0.2s linear;
}


@keyframes rotBGimg {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.card::after {
    content: "";
    position: absolute;
    background: #07182e;
    inset: 5px;
    border-radius: 15px;
}
