This paper introduces DGS-SCSO, a novel optimizer derived from Sand Cat Swarm Optimization (SCSO), aiming to overcome inherent limitations in the original SCSO algorithm. The proposed optimizer integrates Dynamic Pinhole Imaging and Golden Sine Algorithm to mitigate issues like local optima entrapment, premature convergence, and delayed convergence. By leveraging the Dynamic Pinhole Imaging technique, DGS-SCSO enhances the optimizer's global exploration capability, while the Golden Sine Algorithm strategy improves exploitation, facilitating convergence towards optimal solutions. The algorithm's performance is systematically assessed across 20 standard benchmark functions, CEC2019 test functions, and two practical engineering problems. The outcome proves DGS-SCSO's superiority over the original SCSO algorithm, achieving an overall efficiency of 59.66% in 30 dimensions and 76.92% in 50 and 100 dimensions for optimization functions. It also demonstrated competitive results on engineering problems. Statistical analysis, including the Wilcoxon Rank Sum Test and Friedman Test, validate DGS-SCSO efficiency and significant improvement to the compared algorithms.