The paper presents a novel single-phase phase-locked loop (PLL) algorithm designed to effectively reject DC offsets and specific harmonic components, which can impair system performance under various grid disturbances. The proposed method employs adaptive time-delay fictitious signal generation, enabling improved synchronization in power electronics applications related to distributed generation and smart grids. Comprehensive mathematical modeling and simulation results demonstrate the proposed PLL's superior performance compared to traditional filter-based single-phase PLLs.