

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
}

.image-card-container {
    perspective: 1000px;
}



.image-card {
   
    width: calc(70% - 20px);
    aspect-ratio: 1 / 1;
    margin: auto; 
    position: relative;
    transform-style: preserve-3d;
    animation: fadeInCard 0.8s ease-out forwards, continuousMixing 8s linear infinite;
    animation-play-state: paused;
    opacity: 0;
    background-color: #e0e0e0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

    
}

.image-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    backface-visibility: hidden;
}

@keyframes fadeInCard {
    0% {
        transform: rotateY(-90deg) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes continuousMixing {
    0%   { transform: translate(0px, 0px) rotate(0deg); }
    20%  { transform: translate(4px, -2px) rotate(1.5deg); }
    40%  { transform: translate(-3px, 3px) rotate(-1.5deg); }
    60%  { transform: translate(2px, 2px) rotate(1deg); }
    80%  { transform: translate(-2px, -3px) rotate(-1deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.custom-button {
    background: linear-gradient(135deg, #8A2BE2 0%, #C71585 100%);
    transition: all 0.3s ease;
}
.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(138, 43, 226, 0.6);
}
.custom-button:active {
    transform: translateY(0px);
    box-shadow: 0 5px 10px -5px rgba(138, 43, 226, 0.4);
}

.image-grid {
    display: grid;
    column-gap: 8px;  
    row-gap: 1rem;     
}

@media (min-width: 640px) {
    .image-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}