/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
}

.masonry-grid .gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-grid .gallery-item:hover {
    transform: scale(1.02);
}

.masonry-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.masonry-grid .gallery-item .category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(234, 179, 8, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

/* Lightbox transitions */
#lightbox {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.show {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

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

/* Custom animation for hero section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

/* Responsive video background */
video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}

/* Filter button active state */
.filter-btn.active {
    background-color: #f59e0b !important;
    color: #1f2937 !important;
}
/* Game NFT card effects */
.nft-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Game UI styles */
.game-message {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2937;
    border-radius: 0.5rem;
}

/* Service card hover effect */
.service-card:hover img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.service-card img {
    transition: transform 0.5s ease;
}