/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: #fff;
}

/* Header Galeri */
.gallery-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #222;
}

.gallery-header h1 {
    font-size: 3rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.gallery-header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #ccc;
}

/* Galeri */
.gallery {
    padding: 50px 20px;
    background-color: #333;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
}

/* Animasi Hover */
.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Modal Fullscreen */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 60px 20px;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Animasi Zoom In pada Gambar Modal */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

.modal img {
    animation: zoomIn 0.3s ease-in-out;
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-button:hover {
    transform: scale(1.2);
}

.nav-button:focus {
    outline: none;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f00;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Efek Fade-in untuk Seluruh Halaman */
body {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animasi Slide untuk Galeri atau Konten */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
    animation-delay: 0.2s; /* Delay untuk setiap item */
}

/* Slide-Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tambahkan efek slide untuk teks atau elemen lain */
h1, p, .cta-button {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
    animation-delay: 0.4s; /* Delay untuk teks dan tombol */
}
