/* 
 * Blue Whale Entertainment - Game Grid Background
 * Author: Blue Whale Team
 * Version: 1.0
 */

.hero-section {
    position: relative;
    overflow: hidden;
}

.game-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scale(2.2);
    transform-origin: center center;
}

.game-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 25, 80, 0.85));
    z-index: 1;
}

.game-grid-item {
    position: absolute;
    width: 16%;
    height: 16%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transform: rotate(-35deg); /* 调整为-35度，使图片正向显示 */
    margin: 0.5%;
}

/* 第一行 */
.game-grid-item:nth-child(1) { top: 2%; left: 2%; }
.game-grid-item:nth-child(2) { top: 2%; left: 20%; }
.game-grid-item:nth-child(3) { top: 2%; left: 38%; }
.game-grid-item:nth-child(4) { top: 2%; left: 56%; }
.game-grid-item:nth-child(5) { top: 2%; left: 74%; }

/* 第二行 */
.game-grid-item:nth-child(6) { top: 20%; left: 2%; }
.game-grid-item:nth-child(7) { top: 20%; left: 20%; }
.game-grid-item:nth-child(8) { top: 20%; left: 38%; }
.game-grid-item:nth-child(9) { top: 20%; left: 56%; }
.game-grid-item:nth-child(10) { top: 20%; left: 74%; }

/* 第三行 */
.game-grid-item:nth-child(11) { top: 38%; left: 2%; }
.game-grid-item:nth-child(12) { top: 38%; left: 20%; }
.game-grid-item:nth-child(13) { top: 38%; left: 38%; }
.game-grid-item:nth-child(14) { top: 38%; left: 56%; }
.game-grid-item:nth-child(15) { top: 38%; left: 74%; }

/* 第四行 */
.game-grid-item:nth-child(16) { top: 56%; left: 2%; }
.game-grid-item:nth-child(17) { top: 56%; left: 20%; }
.game-grid-item:nth-child(18) { top: 56%; left: 38%; }
.game-grid-item:nth-child(19) { top: 56%; left: 56%; }
.game-grid-item:nth-child(20) { top: 56%; left: 74%; }

/* 第五行 */
.game-grid-item:nth-child(21) { top: 74%; left: 2%; }
.game-grid-item:nth-child(22) { top: 74%; left: 20%; }

.game-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(1px) saturate(1.2);
    transform: scale(1.1);
    transition: all 0.5s ease;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        filter: blur(1px) saturate(1.2);
    }
    50% {
        opacity: 0.5;
        filter: blur(1px) saturate(1.4);
    }
    100% {
        opacity: 0.3;
        filter: blur(1px) saturate(1.2);
    }
}

/* Animation for subtle movement */
@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.1);
    }
}

.game-grid-item:nth-child(1) img { animation: slowZoom 20s infinite ease-in-out; }
.game-grid-item:nth-child(2) img { animation: slowZoom 25s infinite ease-in-out; animation-delay: 2s; }
.game-grid-item:nth-child(3) img { animation: slowZoom 22s infinite ease-in-out; animation-delay: 4s; }
.game-grid-item:nth-child(4) img { animation: slowZoom 28s infinite ease-in-out; animation-delay: 1s; }
.game-grid-item:nth-child(5) img { animation: slowZoom 24s infinite ease-in-out; animation-delay: 3s; }
.game-grid-item:nth-child(6) img { animation: slowZoom 26s infinite ease-in-out; animation-delay: 5s; }
.game-grid-item:nth-child(7) img { animation: slowZoom 23s infinite ease-in-out; animation-delay: 2s; }
.game-grid-item:nth-child(8) img { animation: slowZoom 27s infinite ease-in-out; animation-delay: 4s; }
.game-grid-item:nth-child(9) img { animation: slowZoom 21s infinite ease-in-out; animation-delay: 1s; }
