body {
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
    text-align: center;
}

section {
    margin: 50px 0;
}

.box {
    width: 100px;
    height: 100px;
    background: crimson;
    margin: 40px auto;
    border-radius: 12px;

    animation: floatSpin 3s infinite ease-in-out;
}

@keyframes floatSpin {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        background: orange;
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.card {
    width: 150px;
    height: 200px;
    margin: auto;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    backface-visibility: hidden;
}

.card-front {
    background: #3498db;
}

.card-back {
    background: #e74c3c;
    transform: rotateY(180deg);
}

.svg-anim {
    width: 200px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.svg-anim:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 15px cyan);
}