.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fade-in-up.muncul {
    opacity: 1;
    transform: translateY(0);
}

.hero-galeri {
    background: linear-gradient(135deg, #0f766e 0%, #064e3b 100%);
    padding: 160px 20px 80px; 
    text-align: center;
    color: white;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-galeri h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-galeri p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.container-galeri {
    max-width: 1200px;
    margin: 50px auto 80px; 
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.grid-galeri {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.foto-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background: #ffffff;
    cursor: pointer;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Overlay Gelap Transparan */
.foto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 118, 110, 0.95), transparent);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 20px;
}

.overlay-content {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
    transition-delay: 0.1s;
    padding-bottom: 25px;
    color: white;
}

.overlay-content i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 10px;
    display: block;
}

.overlay-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Efek Hover */
.foto-item:hover img {
    transform: scale(1.1); /* Gambar membesar pelan */
}

.foto-item:hover .foto-overlay {
    height: 100%; /* Overlay naik dari bawah */
}

.foto-item:hover .overlay-content {
    opacity: 1; /* Teks muncul */
    transform: translateY(0);
}

/* ==========================================
   KONDISI KOSONG & ANIMASI FADE-IN
   ========================================== */
.galeri-kosong {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
}

.galeri-kosong i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.galeri-kosong p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Animasi Muncul dari Bawah (Dipicu JS) */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.muncul {
    opacity: 1;
    transform: translateY(0);
}