body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: url(https://images.unsplash.com/photo-1472214103451-9374bd1c798e?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    margin-bottom: 100px; 
}

.image-container span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
}

.image-container span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px; 
}

.btn {
    background-color: slateblue;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: darkslateblue;
}

h1 {
    font-size: 2.5em;
    color: yellow;
    position: relative;
    top: -30px;
    animation: textAnimate 2s ease-in-out infinite alternate;
}


h3 {
    font-size: 1.5em;
    color: white;
    margin-top: 20px;
    position: relative;
    bottom: -400px;
    animation: textAnimate 3s ease-in-out infinite alternate;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.heart-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.heart-container span {
    background: url(https://cdn4.iconfinder.com/data/icons/small-n-flat/24/heart-1024.png);
    height: 60px;
    width: 60px;
    background-size: cover;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: animate 10s linear infinite;
    opacity: 0.7;
}


@keyframes animate {
    0% {
        transform: translate(-50%, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -120vh) scale(1.5);
        opacity: 0;
    }
}


@keyframes textAnimate {
    0% {
        transform: scale(1);
        color: orange;
    }
    50% {
        transform: scale(1.1);
        color: white;
    }
    100% {
        transform: scale(1);
        color: blue;
    }
}
