<?php

if ( !function_exists('mohi_enqueue_scripts') ){
    function mohi_enqueue_scripts(){

        // Enqueue Styles
        wp_enqueue_style('fontawesome', get_template_directory_uri() . '/css/all.min.css', array(), '6.5.1', 'all');
        wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '5.3.3', 'all');
        wp_enqueue_style('bootstrap-icons', get_template_directory_uri() . '/css/bootstrap-icons.css', array(), '1.11.1', 'all');

        // Theme assets: keep mohi- prefix
        wp_enqueue_style('mohi-fonts', get_template_directory_uri() . '/css/fonts.css', array(), '1.0', 'all');
        wp_enqueue_style('mohi-style', get_stylesheet_uri(), array('bootstrap'), '1.0.1', 'all');

        wp_enqueue_script('bootstrap-bundle', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', array(), '5.3.3', true);

        // Theme asset: keep theme handle
        $theme_version = wp_get_theme()->get('Version');
        wp_enqueue_script('main-js', get_template_directory_uri() . '/js/main.js', array(), $theme_version, true);
    }
}
add_action('wp_enqueue_scripts', 'mohi_enqueue_scripts');