/* About Game Section */
.about-game {
    background: url('hellix-background.webp') no-repeat center / contain;
    background-color: #111;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vw, 6rem) 15px;
    margin-top: clamp(60px, 10vw, 70px);
}

.about-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-game .container {
    position: relative;
    z-index: 2;
}

.about-game h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

.game-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.game-content h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
}

.game-cover {
    width: 100%;
    max-width: clamp(250px, 60vw, 400px);
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin: 1.5rem auto;
    display: block;
}

.game-description {
    text-align: left;
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin: 1.5rem 0;
}

.game-details {
    text-align: left;
    margin-top: 2rem;
}

.game-details h4 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #5f5f5f;
    margin-bottom: 0.75rem;
}

.game-details p {
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Gallery Section */
.gallery {
    padding: clamp(4rem, 10vw, 5rem) 15px;
    text-align: center;
}

.gallery h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

.galeri-slider-container {
    position: relative;
    max-width: 100%;
    margin: 1.5rem auto;
    overflow: hidden;
}

.galeri-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 2rem);
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a transparent;
    touch-action: pan-x;
}

.galeri-slider::-webkit-scrollbar {
    height: 0.5rem;
}

.galeri-slider::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.galeri-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.galeri-card:hover {
    transform: translateY(-5px);
}

.galeri-card img {
    width: 100%;
    height: clamp(100px, 25vw, 150px);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.galeri-info {
    padding: 1rem;
}

.galeri-info h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 0.5rem;
}

.galeri-date {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    color: #aaa;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.galeri-info p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.slider-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #d8d8d8;
    border: none;
    padding: 0 clamp(0.5rem, 2vw, 0.75rem);
    cursor: pointer;
    font-size: clamp(1rem, 3vw, 1.5rem);
    transition: background 0.3s;
    border-radius: 50%;
    z-index: 10;
    width: clamp(2rem, 8vw, 2.5rem);
    height: clamp(2rem, 8vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #2c2c2c;
}

.slider-btn.left {
    left: -1rem; /* Position outside the slider, aligned with the card edge */
}

.slider-btn.right {
    right: -1rem; /* Position outside the slider, aligned with the card edge */
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-game {
        min-height: 80vh;
        padding: clamp(3rem, 8vw, 4rem) 15px;
    }

    .game-cover {
        max-width: clamp(200px, 80vw, 350px);
    }

    .galeri-slider {
        grid-auto-columns: calc(80% - 1rem);
    }

    .galeri-card img {
        height: clamp(80px, 20vw, 120px);
    }

    .slider-btn.left {
        left: 0; /* Adjust for smaller screens */
    }

    .slider-btn.right {
        right: 0; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .about-game {
        min-height: 70vh;
        padding: clamp(2rem, 6vw, 3rem) 15px;
    }

    .about-game h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .game-content h3 {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .game-details h4 {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .game-cover {
        max-width: clamp(150px, 90vw, 300px);
    }

    .galeri-slider {
        grid-auto-columns: calc(90% - 1rem);
    }

    .galeri-card img {
        height: clamp(60px, 18vw, 100px);
    }

    .slider-btn {
        width: clamp(1.5rem, 6vw, 2rem);
        height: clamp(1.5rem, 6vw, 2rem);
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }

    .slider-btn.left {
        left: 0;
    }

    .slider-btn.right {
        right: 0;
    }
}