<!-- Start Footer Section -->
<!-- Start Footer Section -->
<footer class="footer-section motor-footer">
    <div class="container">

        <div class="row g-5 mb-5">

            <!-- Brand Info -->
            <div class="col-lg-4">
                <div class="mb-4 footer-logo-wrap">
                    <a href="index.php" class="footer-logo">
                        Rotomax<span>Electric</span>
                    </a>
                </div>

                <p class="footer-text">
                    Rotomax Electric is a trusted manufacturer and supplier of
                    high-performance motors and industrial drive solutions.
                    Delivering quality, efficiency, and reliability.
                </p>
            </div>

            <!-- Footer Links -->
            <div class="col-lg-8">
                <div class="row links-wrap">

                    <div class="col-6 col-md-3">
                        <h6 class="footer-heading">Company</h6>
                        <ul class="list-unstyled">
                            <li><a href="about.php">About Us</a></li>
                            <li><a href="services.php">Services</a></li>
                            <li><a href="custom.php">Custom Solutions</a></li>
                            <li><a href="contact.php">Contact</a></li>
                        </ul>
                    </div>

                    <div class="col-6 col-md-3">
                        <h6 class="footer-heading">Products</h6>
                        <ul class="list-unstyled">
                            <li><a href="#">PMDC Motors</a></li>
                            <li><a href="#">DC Drives</a></li>
                            <li><a href="#">AC Motors</a></li>
                            <li><a href="#">Tacho Generators</a></li>
                        </ul>
                    </div>

                    <div class="col-6 col-md-3">
                        <h6 class="footer-heading">Support</h6>
                        <ul class="list-unstyled">
                            <li><a href="#">Technical Support</a></li>
                            <li><a href="#">Documentation</a></li>
                            <li><a href="#">FAQs</a></li>
                            <li><a href="#">Warranty</a></li>
                        </ul>
                    </div>

                    <div class="col-6 col-md-3">
                        <h6 class="footer-heading">Quick Links</h6>
                        <ul class="list-unstyled">
                            <li><a href="#">Industries</a></li>
                            <li><a href="#">Dealers</a></li>
                            <li><a href="#">Careers</a></li>
                            <li><a href="#">Privacy Policy</a></li>
                        </ul>
                    </div>

                </div>
            </div>

        </div>

        <!-- Copyright -->
        <div class="border-top footer-bottom">
            <div class="row pt-4">
                <div class="col-lg-12 text-center">
                    <p class="mb-0">
                        © <script>document.write(new Date().getFullYear())</script>
                        Rotomax Electric. All Rights Reserved.
                    </p>
                </div>
            </div>
        </div>

    </div>
</footer>

  <script src="js/bootstrap.bundle.min.js"></script>
    
    <!-- Custom JavaScript for smooth dropdown -->
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Initialize all dropdowns
            const dropdowns = document.querySelectorAll('.dropdown-toggle');
            
            dropdowns.forEach(dropdown => {
                dropdown.addEventListener('click', function(e) {
                    e.preventDefault();
                    const menu = this.nextElementSibling;
                    const isOpen = menu.classList.contains('show');
                    
                    // Close all other dropdowns
                    document.querySelectorAll('.dropdown-menu.show').forEach(openMenu => {
                        if (openMenu !== menu) {
                            openMenu.classList.remove('show');
                        }
                    });
                    
                    // Toggle current dropdown
                    if (!isOpen) {
                        menu.classList.add('show');
                        this.classList.add('show');
                    } else {
                        menu.classList.remove('show');
                        this.classList.remove('show');
                    }
                });
            });
            
            // Close dropdowns when clicking outside
            document.addEventListener('click', function(e) {
                if (!e.target.matches('.dropdown-toggle') && !e.target.closest('.dropdown-menu')) {
                    document.querySelectorAll('.dropdown-menu.show').forEach(dropdown => {
                        dropdown.classList.remove('show');
                    });
                    document.querySelectorAll('.dropdown-toggle.show').forEach(toggle => {
                        toggle.classList.remove('show');
                    });
                }
            });
            
            // For desktop hover
            const desktopDropdowns = document.querySelectorAll('.nav-item.dropdown');
            desktopDropdowns.forEach(item => {
                item.addEventListener('mouseenter', function() {
                    if (window.innerWidth >= 992) {
                        const menu = this.querySelector('.dropdown-menu');
                        menu.classList.add('show');
                        this.querySelector('.dropdown-toggle').classList.add('show');
                    }
                });
                
                item.addEventListener('mouseleave', function() {
                    if (window.innerWidth >= 992) {
                        const menu = this.querySelector('.dropdown-menu');
                        menu.classList.remove('show');
                        this.querySelector('.dropdown-toggle').classList.remove('show');
                    }
                });
            });
        });


<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/tiny-slider.js"></script>
<script src="js/custom.js"></script>
</body>

</html>