.image-card {
    background: rgba(255, 255, 255, 0.2);

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 275px;
    height: 275px;
    padding: 12px;
    position: relative;
    animation: floatIn 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-sizing: content-box;
    overflow: hidden;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.image-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    animation: imageGlow 2s infinite ease-in-out;
}

@keyframes floatIn {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes imageGlow {
    0% {
        filter: brightness(100%) drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
    }

    50% {
        filter: brightness(110%) drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    }

    100% {
        filter: brightness(100%) drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
    }
}

.sparkle {
    position: absolute;
    width: 7px;
    height: 7px;

    background: rgba(59, 130, 246, 0.7);
    border-radius: 50%;
    animation: sparkle 2.5s infinite ease-in-out;
}

.sparkle:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 80%;
    left: 85%;
    animation-delay: 0.8s;
}

.sparkle:nth-child(3) {
    top: 20%;
    left: 80%;
    animation-delay: 1.6s;
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}