<?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 -->
    <div id="carouselExampleControls" class="carousel slide carousel-fade fade-gallery-wrapper" data-bs-ride="carousel">

        <div class="carousel-inner fade-gallery-slider">
            <?php
            while ($row = mysqli_fetch_assoc($sql)) {
            ?>
                <div class="carousel-item active">
                    <img src="<?php path(); ?>admin/assets/images/slider/<?php echo $row['Image']; ?>" class="d-block w-100 fade-gallery-img" alt="Slide 1">
                </div>
                <!-- <div class="carousel-item">
            <img src="assets/img/hero/slider-2.jpg" class="d-block w-100 fade-gallery-img" alt="Slide 2">
                </div>
         <div class="carousel-item">
            <img src="assets/img/hero/slider-3.jpg" class="d-block w-100 fade-gallery-img" alt="Slide 3">
         </div> -->
            <?php
            }
            ?>
        </div>

        <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
            <span class="carousel-control-prev-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Previous</span>
        </button>
        <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
            <span class="carousel-control-next-icon" aria-hidden="true"></span>
            <span class="visually-hidden">Next</span>
        </button>
    </div>


    <!-- hero area end -->




    <!-- about area -->
    <!--<div class="about-area pt-50 pb-50">-->
    <!--    <div class="container">-->
    <!--        <div class="row flex-row-reverse">-->

    <!--            <div class="col-lg-6">-->
    <!--                <div class="about-right wow fadeInUp" data-wow-delay=".25s">-->
    <!--                    <div class="site-heading mb-3">  -->
    <!--                        <h2 class="site-title"><span>Power Your Future with Clean Solar Energy</span>-->
    <!--                        </h2>-->
    <!--                    </div>-->
    <!--                    <p class="about-text" style="text-align: justify;">Gayatri Solar Power is the Best solar company in Uttarakhand, delivering high-quality solar solutions for homes, businesses, and industries. We help customers reduce electricity bills and switch to sustainable energy with reliable technology and expert support.</p>-->
    <!--                    <p class="about-text" style="text-align: justify;">At Gayatri Solar Power, we specialize in solar panel instalation in Uttarakhand with end-to-end services including consultation, design, installation, and maintenance. Our experienced team ensures smooth execution using premium-quality solar panels and advanced systems tailored to your energy needs.</p>-->
 
    <!--                </div>-->
    <!--            </div>-->

    <!--            <div class="col-lg-6">-->
    <!--                <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="<?php path(); ?>assets/img/about/01.jpg" alt="">-->
    <!--                            </div>-->
    <!--                            <div class="col-6">-->
    <!--                                <img class="img-2" src="<?php path(); ?>assets/img/about/02.jpg" alt="">-->
    <!--                            </div>-->
    <!--                        </div>-->
    <!--                    </div>-->
    <!--                </div>-->
    <!--            </div>-->
    <!--            <div class="col-lg-12">-->
    <!--                <h3>Our Services</h3>-->
    <!--                <p class="about-text" style="text-align: justify;">We provide complete Renewable energy solutions in Uttarakhand for residential, commercial, agricultural, and industrial sectors. From rooftop solar systems to on-grid and off-grid solutions, we are committed to building a greener and energy-efficient future.</p>-->
    <!--                <h3>Why Choose Us </h3>-->
    <!--                <p class="about-text" style="text-align: justify;">Gayatri Solar Power is a trusted Solar energy services provider known for quality workmanship, affordable pricing, government subsidy assistance, and long-term customer support. Our mission is to make solar energy accessible, efficient, and beneficial for every customer across Uttarakhand.</p>-->
    <!--            </div>-->
    <!--        </div>-->
    <!--    </div>-->
    <!--</div>-->
    <!-- about area end -->
    
    <section class="about-area py-100">
    <div class="container">

        <div class="row align-items-center">

            <!-- Images -->
            <div class="col-lg-6">
                <div class="about-image-wrapper">

                    <div class="experience-badge">
                        <span>500+</span>
                        Installations
                    </div>

                    <img src="<?php path(); ?>assets/img/about/01.jpg"
                         class="img-main" alt="Solar Installation">

                    <img src="<?php path(); ?>assets/img/about/02.jpg"
                         class="img-secondary" alt="Solar Panel">
                </div>
            </div>

            <!-- Content -->
            <div class="col-lg-6">

                <div class="section-title">
                    <span class="sub-title">About Gayatri Solar Power</span>

                    <h2>
                        Power Your Future With
                        <span>Clean Solar Energy</span>
                    </h2>
                </div>

                <p>Gayatri Solar Power is the Best solar company in Uttarakhand, delivering high-quality solar solutions for homes, businesses, and industries.</p>

                <p> We help customers reduce electricity bills and switch to sustainable energy with reliable technology and expert support.</p>

                <div class="about-features">
                    <div class="about-feature-item">
                        <i class="far fa-check-circle"></i>
                        Solar Consultation
                    </div>

                    <div class="about-feature-item">
                        <i class="far fa-check-circle"></i>
                        Rooftop Solar Installation
                    </div>

                    <div class="about-feature-item">
                        <i class="far fa-check-circle"></i>
                        On-Grid & Off-Grid Systems
                    </div>

                    <div class="about-feature-item">
                        <i class="far fa-check-circle"></i>
                        AMC & Maintenance Support
                    </div>
                </div>
 

            </div>
        </div>


        <!-- Services -->
        <div class="row mt-5">

            <div class="col-12 text-center my-4">
                <h2  class="mt-md-5">Our Services</h2>
                <p>We provide complete Renewable energy solutions in Uttarakhand for residential, commercial, agricultural, and industrial sectors. From rooftop solar systems to on-grid and off-grid solutions, we are committed to building a greener and energy-efficient future.</p>
            </div>

            <div class="col-lg-3 col-md-6">
                <div class="service-card">
                    <i class="fas fa-home"></i>
                    <h5>Residential Solar</h5>
                    <p>Efficient rooftop systems for homes.</p>
                </div>
            </div>

            <div class="col-lg-3 col-md-6">
                <div class="service-card">
                    <i class="fas fa-building"></i>
                    <h5>Commercial Solar</h5>
                    <p>Reduce business electricity costs.</p>
                </div>
            </div>

            <div class="col-lg-3 col-md-6">
                <div class="service-card">
                    <i class="fas fa-seedling"></i>
                    <h5>Agricultural Solar</h5>
                    <p>Solar pumping and farm solutions.</p>
                </div>
            </div>

            <div class="col-lg-3 col-md-6">
                <div class="service-card">
                    <i class="fas fa-industry"></i>
                    <h5>Industrial Solar</h5>
                    <p>Large-scale energy-saving systems.</p>
                </div>
            </div>

        </div>


        <!-- Why Choose Us -->
        <div class="why-choose mt-5">

            <div class="row align-items-center">
                <div class="col-md-12">
                     <h2>Why Choose Us?</h2>

                        <p class="mb-4">Gayatri Solar Power is a trusted Solar energy services provider known for quality workmanship, affordable pricing, government subsidy assistance, and long-term customer support. Our mission is to make solar energy accessible, efficient, and beneficial for every customer across Uttarakhand.</p>
        
                       <ul class="d-md-flex list-unstyled w-100">
                            <li class="w-md-50">✔ Affordable Pricing</li>
                            <li class="w-md-50">✔ Long-Term Support</li>
                        </ul>
                        
                        <ul class="d-md-flex list-unstyled w-100">
                            <li class="w-md-50">✔ Expert Installation Team</li>
                            <li class="w-md-50">✔ Government Subsidy Assistance</li>
                        </ul>
        
                        
                    
                </div>
               

            </div>
        </div>


        <!-- CTA -->
        <div class="solar-cta mt-5">

            <h2>Start Saving With Solar Today</h2>

            <p>
                Get expert solar consultation and installation services
                from Uttarakhand's trusted solar professionals.
            </p>

            <a href="tel:+919627249179" class="theme-btn">
                Contact Us For Free Quote
            </a>

        </div>

    </div>
</section>

<style>
    .about-area{
    background:#fff;
}

.section-title .sub-title{
    color:#f4b400;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
}

.section-title h2{
    font-size:48px;
    font-weight:700;
    line-height:1.2;
    margin:15px 0;
}

.section-title h2 span{
    color:#0b5ed7;
}

.about-image-wrapper{
    position:relative;
    padding-right:80px;
}

.img-main{
    width:80%;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.img-secondary{
    width:55%;
    position:absolute;
    right:0;
    bottom:-40px;
    border:8px solid #fff;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
}

.experience-badge{
    position:absolute;
    left:-20px;
    top:40px;
    background:#f4b400;
    color:#fff;
    padding:15px 20px;
    border-radius:15px;
    z-index:2;
    text-align:center;
}

.experience-badge span{
    display:block;
    font-size:28px;
    font-weight:700;
}

.about-features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:25px;
}

.about-feature-item{
    color:#fff;
    padding:12px 15px;
    border-radius:10px;
    font-weight:600;
    background:#145d9d;
}

.service-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
    /* height: 100%; */
    margin-bottom: 20px;
}

.service-card:hover{
    transform:translateY(-8px);
}

.service-card i{
    font-size:40px;
    color:#0b5ed7;
    margin-bottom:15px;
}

.why-choose{
    background:#f8fbff;
    padding:60px;
    border-radius:20px;
}

.why-choose ul{
    list-style:none;
    padding:0;
}

.why-choose li{
    margin-bottom:15px;
    font-size:18px;
}

.solar-cta {
    background: url(assets/img/cta-bg.png);
    color: #2d2929;
    text-align: center;
    padding: 70px 40px;
    border-radius: 20px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.solar-cta h2{
    color:#2d2929;
    margin-bottom:15px;
}

.solar-cta .theme-btn{
    margin-top:15px;
}
@media (min-width: 767px) {
    .w-md-50{
        width:50%;
    }
}

@media (max-width: 767px) {
   .why-choose{ 
        padding:20px; 
    }
    
    .about-features { 
        grid-template-columns: repeat(1, 1fr); 
        text-align:center;
    }

}
</style>

    <!-- feature area-->
    <div class="feature-area fa-negative mb-3">
        <div class="container">
            <div class="feature-wrap">
                <div class="row g-4">
                    <div class="col-md-6 col-lg-3">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="<?php path(); ?>assets/img/icon/staff.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Experts Staff</h4>
                                <p>Our expert staff combines skill, experience,
                                    and dedication to deliver exceptional service,
                                    ensuring quality, reliability, and customer
                                    satisfaction always.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-3">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="<?php path(); ?>assets/img/icon/money.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Affordable Pricing</h4>
                                <p>We offer affordable pricing without compromising
                                    quality, ensuring every customer receives exceptional
                                    value, transparency.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-3">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="<?php path(); ?>assets/img/icon/install.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Easy Installation</h4>
                                <p>Our products are designed for easy installation,
                                    requiring minimal tools, saving time, and ensuring
                                    a smooth, hassle-free setup experience.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-3">
                        <div class="feature-item">

                            <div class="feature-icon">
                                <img src="<?php path(); ?>assets/img/icon/material.svg" alt="">
                            </div>
                            <div class="feature-content">
                                <h4>Quality Material</h4>
                                <p>We use only premium, durable, and high-quality
                                    materials to ensure long-lasting performance, reliability,
                                    and superior satisfaction for every customer.</p>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <!-- feature area end -->


    <!-- service area -->
    <div class="service-area sa-bg pt-50 pb-50">
        <div class="container">
            <div class="row g-4">
                <div class="col-lg-12">
                    <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 text-center"> Our Product</h2>
                        <!-- <p class="text-white mb-4">
                                There are many variations available but the majority have alteration
                                some form by injected humour randomised repeat predefined chunks as making
                                words even slightly believable.
                            </p>
                            <a href="service.html" class="theme-btn">All Services<i class="fas fa-arrow-right"></i></a> -->
                    </div>
                </div>

                <div class="col-lg-12">
                    <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 echo path(); ?>service/<?php echo $slug; ?>">
                                            <?php echo $title; ?>
                                        </a>
                                    </h4>
                                    <!--<p class="service-text">-->
                                    <!--    <php echo $description; ?>-->
                                    <!--</p>-->

                                </div>
                                <a href="<?php echo path(); ?>service/<?php echo $slug; ?>" class="theme-btn mt-3">
                                    Learn More <i class="fas fa-arrow-right"></i>
                                </a>
                            </div>
                        <?php
                        }
                        ?>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!-- service area end -->

    <!-- Flow Process -->

    <!-- end flow proces -->
    <!-- process area -->
    <div class="process-area pt-50 pb-50">
        <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">

                        <h2 class="site-title">Work Flow Process</h2>
                        <div class="heading-divider"></div>
                    </div>
                </div>
            </div>
            <div class="process-wrap wow fadeInUp" data-wow-delay=".25s">
                <div class="row g-4 text-center">
                    <div class="col-md-6 col-lg-4 col-xl-3">
                        <div class="process-item">
                            <span class="count">Step - 01</span>
                            <div class="icon">
                                <img src="<?php path(); ?>assets/img/icon/1.png" alt="">
                            </div>
                            <div class="content">
                                <h4>Project Planing</h4>
                                <p>Project planning ensures structured execution, resource
                                    optimization, timelines.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-4 col-xl-3">
                        <div class="process-item">
                            <span class="count">Step - 02</span>
                            <div class="icon">
                                <img src="<?php path(); ?>assets/img/icon/2.png" alt="">
                            </div>
                            <div class="content">
                                <h4>Research & Analysis</h4>
                                <p>Research and analysis provide insights, guiding strategies with informed decisions.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-4 col-xl-3">
                        <div class="process-item">
                            <span class="count">Step - 03</span>
                            <div class="icon">
                                <img src="<?php path(); ?>assets/img/icon/3.png" alt="">
                            </div>
                            <div class="content">
                                <h4>Execute Project</h4>
                                <p>Execute project with precision, ensuring timely delivery and desired outcomes.</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-lg-4 col-xl-3">
                        <div class="process-item">
                            <span class="count">Step - 04</span>
                            <div class="icon">
                                <img src="<?php path(); ?>assets/img/icon/4.png" alt="">
                            </div>
                            <div class="content">
                                <h4>Make it Happen</h4>
                                <p>Make it happen with determination, focus, strategy, and consistent action.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- process area end -->

    <!-- testimonial-area -->
    <?php
    // testimonial
    $queryt = "SELECT * FROM `testimonial` ORDER BY id DESC";
    $sqlt = mysqli_query($con, $queryt);
    // end testimonial
    ?>
    <div class="testimonial-area tm-bg pt-80 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">
                        <h2 class="site-title text-white">Clients Testimonials</h2>
                    </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">
                                    <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>

                                    <p><?php echo $rowt['para']; ?></p>
                                </div>
                                <div class="testimonial-content">
                                    <div class="testimonial-author-info">
                                        <h4><?php echo $rowt['cus_name']; ?></h4>
                                    </div>
                                </div>
                            </div>
                        <?php } ?>
                    </div> <!-- .testimonial-slider -->
                </div>
            </div>
        </div>
    </div>
    <!-- testimonial-area end -->

    <!-- quote area -->
    <div class="quote-area bg">
        <div class="shape">
            <img src="assets/img/shape/05.png" alt="">
        </div>
        <div class="container">
            <div class="quote-content">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="quote-img">
                            <img src="<?php path(); ?>assets/img/quote/01.jpg" alt="">
                            
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div class="quote-form">
                            <div class="quote-header">
                                <h4>Get In Touch</h4>

                            </div>
                            <form id="contact_form" action="mails" method="post">
                                <input type="text" name="website_url" id="website_url" style="display:none !important;">
                                <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" name="name" placeholder="Name" 
                                                oninput="this.value = this.value.replace(/[^a-zA-Z\s]/g, '')" required>
                                            </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" name="email" placeholder="Email">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-phone"></i>
                                                <input type="text" class="form-control" name="phone" placeholder="Phone"
                                                maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '')" required>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-7">
                                        <div class="form-group">
                                            <div class="form-icon">
                                                <i class="far fa-box"></i>
                                                <select class="select" name="service">
                                                    <option value="">Choose Service</option>
                                                    <option value="Solar Rooftop Power Plant">Solar Rooftop Power Plant</option>
                                                    <option value="Solar Street Light">Solar Street Light</option>
                                                    <option value="Solar hot water heater manufacturer">Solar hot water heater manufacturer</option>
                                                    <option value="Grount Mounted Solar Power Plant">Grount Mounted Solar Power Plant</option>
                                                    <option value="Solar Water Pump">Solar Water Pump</option>
                                                    <option value="Rooftop Solar Panel">Rooftop Solar Panel</option>
                                                    <option value=" Solar Panel Subsidy"> Solar Panel Subsidy</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" name="message" cols="30" rows="4"
                                                    placeholder="Your Message"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-12 mb-3">
                                        <div class="g-recaptcha" data-sitekey="6LdBzsUsAAAAAOdJlswaspRR9JVqruYh6mw5i2bk"></div>
                                    </div>
                                    <div class="col-md-12 mt-2">
                                        <button type="submit" class="theme-btn"><span
                                                class="far fa-paper-plane"></span> Submit Now</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- blog-area -->
   <!-- blog-area -->
    <div class="blog-area pt-50 pb-50">
        <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 Blog</h2>
                        <div class="heading-divider"></div>
                    </div>
                </div>
            </div>
            <div class="row g-4">
                <?php
                $blogs = mysqli_query($con, "SELECT * FROM `blog` ORDER BY id DESC LIMIT 3");
                $counter = 0;
                $isActive = true;
                while ($row = mysqli_fetch_array($blogs)) {
                    $title = $row['title'];
                    $description = $row['description'];
                    $slug = $row['slug'];
                    $Image = $row['Image'];
                ?>
                    <div class="col-md-6 col-lg-4">
                        <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(); ?>blogs/<?php echo $slug; ?>"><?php echo $title; ?></a>
                                </h4>
                                <p>
                                    <?php echo $description; ?>
                                </p>

                            </div>
                            <a class="theme-btn" href="<?php path(); ?>blogs/<?php echo $slug; ?>">Read More<i
                                    class="fas fa-arrow-right"></i></a>
                        </div>
                    </div>
                <?php
                }
                ?>

            </div>
        </div>
    </div>
    <!-- blog-area end -->
    <!-- blog-area end -->


</main>


<?php
include('include/footer.php');
?>