Unveiling Patterns: The Periodic Table Explained