/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Tombol Menu Galeri */
.gallery-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 100px;
    justify-content: center;
}

.menu-btn i {
    font-size: 18px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-btn.active {
    background: white;
    color: #764ba2;
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.menu-btn.active i {
    color: #764ba2;
}

/* Container Galeri */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Item Galeri */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay pada gambar */
.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive untuk Mobile */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .gallery-menu {
        border-radius: 30px;
        padding: 12px;
        gap: 8px;
    }

    .menu-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 70px;
    }

    .menu-btn i {
        font-size: 14px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .overlay {
        padding: 15px;
    }

    .overlay h3 {
        font-size: 16px;
    }

    .overlay p {
        font-size: 12px;
    }
}

/* Responsive untuk Mobile Kecil */
@media screen and (max-width: 480px) {
    .gallery-menu {
        border-radius: 20px;
        padding: 10px;
    }

    .menu-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
    }

    .menu-btn i {
        font-size: 12px;
        margin-right: 4px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .overlay {
        bottom: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }

    .overlay h3 {
        font-size: 14px;
    }

    .overlay p {
        font-size: 11px;
    }
}

/* Landscape Mode untuk Mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animasi loading untuk gambar */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}