body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

 .heart {
    position: relative;
    width: 100px;
    height: 100px;
    background-color:red;
    transform: rotate(-45deg);
    animation: heartbeat 1s infinite ease-in-out;
 }

 .heart::before, .heart::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: red;
    border-radius:50%;
 }

 .heart::before {
    top: -50px;
    left:0;
 }

 .heart::after {
    left: 50px;
    top:0;
 }

 @keyframes heartbeat {
    0%, 100% { transform: scale(1) rotate(-45deg); }
    50% {transform: scale(1.2) rotate(-45deg); }
 }

.pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    animation: pulseEffect 1.5s infinite;
}
@keyframes pulseEffect {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
