/* Custom styling beyond Tailwind */

/* Card flip effect */
.card-container {
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s;
}

.card-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Smooth scrolling for navigation links */
html {
    scroll-behavior: smooth;
}

/* Card image hover zoom effect */
.card-image {
    transition: transform 0.3s ease;
}

.card-container:hover .card-image {
    transform: scale(1.05);
}

/* Modal animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#card-modal {
    animation: fadeIn 0.3s ease-out;
}

#card-modal > div {
    animation: slideIn 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Card name badge */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
}
