<?php
include("admin/connection.php");
include('include/header.php');
$query = "SELECT * FROM `slider` ORDER BY id DESC";
$sql = mysqli_query($con, $query);
?>


<main class="main">

    <!-- hero area -->
    <?php
    // Fetch slider data
    $query = "SELECT * FROM `slider` ORDER BY id DESC";
    $sql = mysqli_query($con, $query);
    ?>

    <!-- Hero Section Start -->
    <div class="hero-section">
        <div class="hero-slider owl-carousel">
            <?php while ($row = mysqli_fetch_assoc($sql)) { ?>
                <div class="hero-single" style="background-image: url('<?php echo path(); ?>admin/assets/images/slider/<?php echo $row['Image']; ?>');">
                    <div class="container">
                        <div class="row align-items-center">
                            <div class="col-md-12 col-lg-8 mx-auto">
                                <div class="hero-content text-center">
                                    <h6 class="hero-sub-title" data-animation="fadeInUp" data-delay=".25s">
                                        <i class="far fa-solar-panel"></i> Welcome To Voltaic Power
                                    </h6>
                                    <h1 class="hero-title" data-animation="fadeInRight" data-delay=".50s">
                                        <?php echo !empty($row['heading']) ? $row['heading'] : 'Your Heading Here'; ?>
                                    </h1>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    </div>
    <!-- Hero Section End -->

    <!-- hero area end -->


    <!-- feature area -->
    <div class="feature-area fa-negative">
        <div class="container">
            <div class="feature-wrap">
                <div class="row g-4">
                    <div class="col-md-6 col-lg-4">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="assets/img/icon/staff.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Experts Staff</h4>
                                <p style="text-align: justify;">Our expert staff in solar and renewable energy
                                    are highly trained professionals with deep technical
                                    knowledge and hands-on experience in sustainable solutions.
                                    They specialize in system design, installation, and maintenance
                                    to ensure maximum efficiency and reliability. With certifications
                                    and continuous training in the latest green technologies, our team
                                    delivers projects that meet global energy standards. Committed to
                                    innovation and excellence.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-4">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="assets/img/icon/money.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Affordable Pricing</h4>
                                <p style="text-align: justify;">We offer affordable pricing for solar and
                                    renewable energy solutions without compromising
                                    on quality or performance. Our cost-effective
                                    packages are designed to fit various budgets,
                                    making clean energy accessible to everyone. By
                                    leveraging advanced technology and efficient
                                    installation practices, we help reduce overall
                                    project costs. With flexible financing and
                                    transparent pricing, we ensure customers get
                                    the best value for their investment in sustainable
                                    energy.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-4">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="assets/img/icon/support.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>24/7 Support</h4>
                                <p style="text-align: justify;">Our dedicated team provides 24/7 support for
                                    all solar and renewable energy systems to ensure
                                    uninterrupted performance. Whether it’s system
                                    monitoring, maintenance, or emergency assistance,
                                    we’re always available to keep your energy flowing
                                    smoothly. With round-the-clock service, we quickly
                                    address any issues to minimize downtime. Our commitment
                                    to reliability means you can count on us anytime for
                                    expert help and guidance.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- feature area end -->


    <!-- about area -->
    <div class="about-area py-120">
        <div class="container">
            <div class="row d-flex flex-row-reverse">

                <div class="col-lg-7">
                    <div class="about-right wow fadeInUp" data-wow-delay=".25s">
                        <div class="site-heading mb-3">
                            <span class="site-title-tagline"><i class="far fa-solar-panel"></i> About Us</span>
                            <h2 class="site-title">Voltaic Power Private Limited</h2>
                            <h6 class="mt-2">Brightening Lives, Empowering Communities </h6>
                        </div>
                        <p class="about-text">Founded in 2015, Voltaic Power Private
                            Limited has emerged as a trusted name in the field of
                            energy-efficient and sustainable lighting solutions.
                            What began as a vision to harness the power of innovation
                            and renewable energy has grown into a mission-driven
                            enterprise dedicated to transforming the nation’s
                            lighting and power infrastructure. Over the years,
                            Voltaic Power has built a strong reputation through
                            consistent quality, advanced technology, and customer-centric
                            solutions. The company proudly serves Government Departments,
                            Private Organizations, PSUs, and MSMEs across India, offering
                            a wide range of reliable and high-performance products such
                            as solar street lights, AC LED street lights, high bay lights,
                            high mast lights, octagonal poles, designer poles, and solar
                            power plants. Each product is designed with a strong focus on
                            durability, energy efficiency, and modern aesthetics, ensuring
                            long-term performance and sustainability.</p>

                        <a href="about.php" class="theme-btn mt-3">Read More<i class="fas fa-arrow-right"></i></a>
                    </div>
                </div>
                <div class="col-lg-5">
                    <div class="about-left wow fadeInLeft" data-wow-delay=".25s">
                        <div class="about-img">
                            <div class="row">
                                <div class="col-6">
                                    <img class="img-1" src="assets/img/about/01.jpg" alt="">
                                </div>
                                <div class="col-6">
                                    <img class="img-2" src="assets/img/about/02.jpg" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="about-experience">
                            <h5>10<span>+</span></h5>
                            <p>Years Of Experience</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- about area end -->


    <!-- service area -->
    <div class="service-area sa-bg pt-60 pb-60">
        <div class="container">
            <div class="row g-4">
                <div class="col-lg-12 text-center">
                    <div class="site-heading mb-0">
                        <!-- <span class="site-title-tagline"><i class="far fa-solar-panel"></i> Services</span> -->
                        <h2 class="site-title text-white">Our services</h2>
                        <div class="heading-divider"></div>

                    </div>
                </div>
                <div class="col-lg-12 pt-20">
                    <div class="service-slider owl-carousel">
                        <?php
                        $ser = mysqli_query($con, "SELECT * FROM `service`");

                        while ($row = mysqli_fetch_array($ser)) {
                            $title = $row['title'];
                            $description = $row['description'];
                            $slug = $row['slug'];
                            $Image = $row['Image'];
                        ?>
                            <div class="service-item">
                                <div class="service-img">
                                    <img src="<?php path(); ?>admin/assets/images/service/<?php echo $Image; ?>" alt="">
                                </div>

                                <div class="service-content">
                                    <h4 class="service-title">
                                        <a href="<?php path(); ?>service-details.php?slug=<?php echo $slug; ?>">
                                            <?php echo $title; ?>
                                        </a>
                                    </h4>
                                    <p class="service-text">
                                        <?php echo $description; ?>
                                    </p>

                                </div>
                                <a href="<?php path(); ?>service-details.php?slug=<?php echo $slug; ?>" class="theme-btn mt-3">
                                    Read More <i class="fas fa-arrow-right"></i>
                                </a>
                            </div>
                        <?php
                        }
                        ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- service area end -->



    <!-- choose area -->
    <div class="choose-area pt-60 pb-60">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="site-heading mb-0">
                        <!-- <span class="site-title-tagline"><i class="fas fa-solar-panel"></i> Why Choose Us</span> -->
                        <h2 class="site-title">Why Choose Voltaic Power? </h2>
                        <div class="heading-divider"></div>
                        <p>
                            At Voltaic Power Private Limited, we believe that true progress begins with reliable energy and
                            responsible innovation. Since 2015, we have been delivering lighting and power solutions that combine
                            advanced technology, durability, and sustainability — all crafted to serve our nation’s growing energy
                            needs.
                        </p>
                    </div>
                </div>
                <div class="col-lg-8">
                    <div class="choose-content wow fadeInUp" data-wow-delay=".25s">

                        <div class="choose-content-wrap">
                            <div class="choose-item">

                                <div class="choose-item-info">

                                    <p class="mb-2"><b style="color: black;">Proven Experience:</b> With nearly a decade of expertise, we
                                        have successfully completed numerous projects
                                        across government departments, PSUs, private sectors, and MSMEs. </p>

                                    <p class="mb-2"><b style="color: black;">Comprehensive Solutions:</b> From Solar Street Lights to High Mast Lighting, Octagonal Poles, and Solar
                                        Power Plants, we provide complete energy and lighting solutions under one roof. </p>

                                    <p class="mb-2"><b style="color: black;">Quality & Reliability:</b> Every Voltaic product is designed with precision and built to last, ensuring superior
                                        performance even in the toughest conditions. </p>

                                    <p class="mb-2"><b style="color: black;">Innovation-Driven Approach:</b> We continually invest in new technologies and design advancements to
                                        deliver smart, efficient, and future-ready lighting systems. </p>

                                    <p class="mb-2"><b style="color: black;">Commitment to Sustainability:</b> Guided by our mission — “Brightening Lives, Empowering
                                        Communities” — we focus on clean, renewable, and eco-friendly energy solutions that create lasting
                                        impact. </p>

                                    <p class="mb-2"><b style="color: black;">Customer-Centric Values:</b> Our success is measured by our clients’ satisfaction. We ensure timely project
                                        execution, personalized support, and long-term service reliability. </p>

                                    <p class="mb-2">Choose Voltaic Power — where innovation meets integrity, and every light we install becomes a step
                                        toward a brighter, greener tomorrow.</p>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="col-lg-4 mt-2">
                    <div class="choose-img wow fadeInRight" data-wow-delay=".25s">
                        <img class="img-1" src="assets/img/choose/01.jpg" alt="">
                        <!-- <img class="img-2" src="assets/img/choose/02.jpg" alt=""> -->
                        <!-- <img class="shape" src="assets/img/shape/06.png" alt=""> -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- choose area end -->

    <!-- portfolio area -->
    <div class="portfolio-area sa-bg pt-60 pb-60">
        <!-- <div class="pa-bg" style="background-image: url(assets/img/portfolio/bg.jpg);"></div> -->
        <div class="container">
            <div class="row">
                <div class="col-lg-6 mx-auto">
                    <div class="site-heading text-center">

                        <h2 class="site-title text-white"> Our Project</h2>
                        <div class="heading-divider"></div>
                    </div>
                </div>
            </div>
            <div class="row popup-gallery">
                <div class="portfolio-slider owl-carousel">
                    <?php
                    $gallery = mysqli_query($con, "SELECT * FROM media WHERE page_name = 'Project'");
                    while ($row = mysqli_fetch_array($gallery)) {
                        $photo = $row['photo'];
                    ?>
                        <div class="portfolio-item">
                            <div class="portfolio-img">
                                <img class="img-fluid" src="<?php echo path(); ?>admin/assets/images/gallery/<?php echo $photo; ?>" alt="">
                                <a class="popup-img portfolio-link" href="<?php echo path(); ?>admin/assets/images/gallery/<?php echo $photo; ?>">
                                    <i class="far fa-plus"></i>
                                </a>
                            </div>
                        </div>
                    <?php } ?>
                </div>
            </div>

        </div>
    </div>
    <!-- portfolio area end -->



    <!-- quote area -->
    <div class="quote-area bg">
        <div class="shape">
            <img src="assets/img/shape/05.png" alt="">
        </div>
        <div class="container-fluid">
            <div class="quote-content">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="quote-img">
                            <video class="no-controls-video" autoplay muted loop playsinline>
                                <source src="assets/img/about/video.mp4" type="video/mp4">
                            </video>



                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="quote-form">
                            <div class="quote-header">
                                <h4>Request A Quote</h4>
                                <p class="mt-10">There are many variations of passages available but the majority have suffered alteration
                                    in some form by injected humour words look even believable.</p>
                            </div>
                            <form action="#">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-user-tie"></i>
                                                <input type="text" class="form-control" placeholder="Name">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-envelope"></i>
                                                <input type="email" class="form-control" placeholder="Email">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-phone"></i>
                                                <input type="text" class="form-control" placeholder="Phone">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-box"></i>
                                                <select class="select">
                                                    <option value="">Choose Product</option>
                                                    <option value="Solar Power Plants">Solar Power Plants</option>
                                                    <option value="Solar Street light with CCTV Cameras"> Solar Street light with CCTV Cameras</option>
                                                    <option value="High Mast Lights">High Mast Lights</option>
                                                    <option value="AC LED Street Lights">AC LED Street Lights</option>
                                                    <option value="High Bay Lights">High Bay Lights</option>
                                                    <option value="Octagonal Poles">Octagonal Poles</option>
                                                    <option value="Designer Poles">Designer Poles</option>
                                                    <option value="Poles and Accessories">Poles and Accessories</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-comment-lines"></i>
                                                <textarea class="form-control" cols="30" rows="4" placeholder="Your Message"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 mt-2">
                                        <button type="submit" class="theme-btn"><span
                                                class="far fa-paper-plane"></span> Request A Quote</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <style>
        .no-controls-video {
            width: 100%;
            height: auto;
            pointer-events: none;
          
        }

       
        .no-controls-video::-webkit-media-controls {
            display: none !important;
            opacity: 0 !important;
        }

        .no-controls-video::-webkit-media-controls-enclosure {
            display: none !important;
            opacity: 0 !important;
        }

        
        .no-controls-video::-moz-controls {
            display: none !important;
        }
    </style>
    <!-- quote area end -->
    <?php
    $query = "SELECT * FROM `client`";
    $sql = mysqli_query($con, $query);
    ?>

    <!-- partner area -->
    <div class="choose-area pt-60 pb-60">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 text-center">
                    <div class="site-heading mb-0">
                        <!-- <span class="site-title-tagline"><i class="fas fa-solar-panel"></i> Why Choose Us</span> -->
                        <h2 class="site-title ">Our Clients</h2>
                        <div class="heading-divider"></div>

                    </div>
                </div>
            </div>
        </div>

        <div class="partner-area pt-20 pb-20">

            <div class="partner-slider owl-carousel owl-theme">
                <?php while ($row = mysqli_fetch_assoc($sql)) { ?>
                    <img src="<?php echo path(); ?>/admin/assets/images/client/<?php echo htmlspecialchars($row['Image']); ?>" alt="Client Logo">
                <?php } ?>

            </div>

        </div>
    </div>
    <!-- partner area end -->

    <?php
    // testimonial
    $queryt = "SELECT * FROM `testimonial` ORDER BY id DESC";
    $sqlt = mysqli_query($con, $queryt);
    // end testimonial
    ?>
    <!-- testimonial-area -->
    <div class="testimonial-area tm-bg pt-60 pb-60">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 text-center">
                    <div class="site-heading wow fadeInDown" data-wow-delay=".25s">
                        <span class="site-title-tagline"><i class="fas fa-solar-panel"></i> Testimonials</span>
                        <h2 class="site-title text-white">What Our Client Say?</h2>
                        <div class="heading-divider"></div>

                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="testimonial-slider owl-carousel owl-theme wow fadeInUp" data-wow-delay=".25s">
                        <?php
                        while ($rowt = mysqli_fetch_assoc($sqlt)) { ?>

                            <div class="testimonial-item">
                                <div class="testimonial-quote">

                                    <?php
                                    $para = trim($rowt['para']);
                                    $words = explode(' ', $para);
                                    ?>

                                    <div class="testimonial-para" id="para-<?php echo $rowt['id']; ?>">

                                        <span class="short-text">
                                            <?php echo implode(' ', array_slice($words, 0, 15)); ?>
                                        </span>

                                        <?php if (count($words) > 15): ?>
                                            <span class="more-text d-none">
                                                <?php echo ' ' . implode(' ', array_slice($words, 15)); ?>
                                            </span>

                                            <a href="javascript:void(0)" class="read-more-btn"
                                                onclick="toggleReadMore(<?php echo $rowt['id']; ?>)">
                                                Read More
                                            </a>
                                        <?php endif; ?>
                                    </div>

                                </div>

                                <div class="testimonial-content">
                                    <div class="testimonial-author-info">
                                        <h4><?php echo $rowt['cus_name']; ?></h4>

                                        <div class="testimonial-rate">
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        <?php } ?>


                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- testimonial-area end -->


    <style>
        /* LINE CLAMP FOR SHORT TEXT */
        .short-text {
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            /* show 2 lines only */
            line-clamp: 3;
            -webkit-box-orient: vertical;
        }

        .more-text {
            display: inline;
        }

        .read-more-btn {
            display: inline-block;
            margin-top: 8px;
            color: #f60417;
            font-weight: 500;
            cursor: pointer;

        }
    </style>






    <!-- blog-area -->
    <div class="blog-area pt-60 pb-60">
        <div class="container">
            <div class="row">
                <div class="col-lg-6 mx-auto">
                    <div class="site-heading text-center wow fadeInDown" data-wow-delay=".25s">
                        <!-- <span class="site-title-tagline"><i class="fas fa-solar-panel"></i> Our Blog</span> -->
                        <h2 class="site-title">Our Latest News & Blog</h2>
                        <div class="heading-divider"></div>
                    </div>
                </div>
            </div>
            <div class="row g-4">
                <div class="col-12">
                    <div class="blog-slider owl-carousel">
                        <?php
                        $blogs = mysqli_query($con, "SELECT * FROM `blog` ORDER BY id DESC LIMIT 3");
                        while ($row = mysqli_fetch_array($blogs)) {
                            $title = $row['title'];
                            $description = $row['description'];
                            $slug = $row['slug'];
                            $Image = $row['Image'];
                        ?>
                            <div class="blog-item wow fadeInUp" data-wow-delay=".25s">
                                <div class="blog-item-img">
                                    <img src="<?php path(); ?>admin/assets/images/blog/<?php echo $Image; ?>" alt="Thumb">
                                </div>

                                <div class="blog-item-info">
                                    <h4 class="blog-title">
                                        <a href="<?php path(); ?>blog-details.php?slug=<?php echo $slug; ?>">
                                            <?php echo $title; ?>
                                        </a>
                                    </h4>



                                    <a class="theme-btn" href="<?php path(); ?>blog-details.php?slug=<?php echo $slug; ?>">
                                        Read More <i class="fas fa-arrow-right"></i>
                                    </a>
                                </div>
                            </div>
                        <?php } ?>
                    </div>
                </div>
            </div>


        </div>
    </div>
    </div>
    <!-- blog-area end -->

</main>


<?php
include("include/footer.php");
?>