<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Fojomo Solar</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <style>
    body {
      background: linear-gradient(135deg, #065F46 0%, #1a1a2e 100%);
      color: #e0e0e0;
    }
    .nav-link {
      color: #1a1a2e;
      font-weight: 500;
    }
    .nav-link:hover {
      color: #10B981;
      text-shadow: none;
      transition: all 0.3s ease;
    }
    .glow-button {
      background: linear-gradient(45deg, #10B981, #6EE7B7);
      box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
      transition: all 0.3s ease;
    }
    .glow-button:hover {
      box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
      transform: scale(1.05);
    }
    .card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
    }
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    input, textarea {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid #10B981;
      color: #e0e0e0;
    }
    input:focus, textarea:focus {
      box-shadow: 0 0 10px #10B981;
      outline: none;
    }
    .badge {
      background: linear-gradient(45deg, #10B981, #6EE7B7);
      color: #fff;
      padding: 0.5rem 1rem;
      border-radius: 1rem;
      display: inline-block;
    }
    .whatsapp-float {
      position: fixed;
      width: 60px;
      height: 60px;
      bottom: 20px;
      right: 20px;
      z-index: 100;
    }
    .whatsapp-float img {
      width: 100%;
      height: auto;
    }
  </style>
</head>
<body class="font-sans">

  <!-- Navigation -->
  <nav class="bg-white text-black p-4 sticky top-0 shadow-md z-50">
    <div class="container mx-auto flex justify-between items-center">
      <div class="flex items-center space-x-3">
        <img src="fojomo-solar-logo.jpeg" alt="Fojomo Solar Logo" class="h-10">
      </div>
      <ul class="flex space-x-6">
        <li><a href="#home" class="nav-link">Home</a></li>
        <li><a href="#about" class="nav-link">About</a></li>
        <li><a href="#services" class="nav-link">Services</a></li>
        <li><a href="#solar-quest" class="nav-link">Solar Quest</a></li>
        <li><a href="#calculator" class="nav-link">Calculator</a></li>
        <li><a href="#contact" class="nav-link">Contact</a></li>
        <li><a href="#blog" class="nav-link">Blog</a></li>
      </ul>
    </div>
  </nav>

  <!-- Hero Section -->
<!-- Hero Section -->
<section class="bg-gradient-to-b from-black via-gray-900 to-gray-950 text-white py-24 text-center">
  <div class="container mx-auto px-6">
    <!-- Main Headline -->
    <h1 class="text-4xl md:text-5xl font-extrabold text-green-400 mb-4">
      Apni Chhat, Apni Bijli
    </h1>
    <!-- Bilingual Tagline -->
    <p class="text-md md:text-lg text-gray-400 italic mb-8">
      (Your roof, your electricity)
    </p>
    <!-- Emotional Subheadline -->
    <p class="text-lg md:text-xl text-gray-300 mb-12 max-w-2xl mx-auto leading-relaxed">
      अपने घर की छत को इनकम सोर्स बनाएं — Let your roof earn for you.<br>
      Join thousands of UP families powering a brighter future with Fojomo Solar.
    </p>
    <!-- CTA Button -->
    <a href="#contact" class="inline-flex items-center px-8 py-3 bg-green-400 hover:bg-green-500 text-black font-semibold rounded-full shadow-lg transition duration-300 ease-in-out">
      Get Started
      <svg class="ml-2 w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
        <path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/>
      </svg>
    </a>
  </div>
</section>

<!-- About Section -->
<section id="about" class="py-20 bg-gray-50">
  <div class="container mx-auto px-6">
    <div class="bg-white rounded-3xl shadow-lg p-10 md:p-16 max-w-5xl mx-auto text-center">
      <h3 class="text-4xl font-extrabold text-green-600 mb-6">Why Fojomo Solar?</h3>
      <p class="text-lg text-gray-700 leading-relaxed mb-4">
        <strong>Fojomo Solar</strong> is a leading solar energy solutions provider, proudly empanelled with 
        <strong>UPNEDA (Uttar Pradesh New & Renewable Energy Development Agency)</strong>. We specialize in complete 
        <strong>solar panel installation services</strong> for residential, commercial, and industrial clients across Uttar Pradesh.
      </p>
      <p class="text-lg text-gray-700 leading-relaxed mb-8">
        With a strong commitment to sustainability and customer satisfaction, we help customers benefit from the 
        <strong>PM Surya Ghar Muft Bijli Yojana</strong> through free site surveys, easy subsidy applications, and expert installations.
      </p>

      <div class="text-left grid grid-cols-1 md:grid-cols-2 gap-4 max-w-3xl mx-auto text-gray-700">
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span>UPNEDA Empanelled – Verified solar partner in UP</span>
        </div>
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span>Customized On-Grid & Hybrid Solutions</span>
        </div>
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span>Delivering Clean Energy with Reliable, Rated Service</span>
        </div>
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span><strong>Statewide Presence</strong> – Local teams in all major UP cities and towns</span>
        </div>
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span>Fast, Transparent Process with Government Support</span>
        </div>
        <div class="flex items-start space-x-3">
          <span class="text-green-500 text-xl">✔</span>
          <span>End-to-End Service – Survey, Subsidy, Installation, Support</span>
        </div>
      </div>

      <p class="text-lg text-gray-700 mt-10 leading-relaxed">
        Solar isn’t just a smart investment—it’s a step toward energy independence and a cleaner planet. Join the thousands of homeowners and businesses in UP who trust Fojomo Solar to power their future.
      </p>
    </div>
  </div>
</section>


  <!-- Services Section -->
  <section id="services" class="py-16 bg-gray-900">
    <div class="container mx-auto text-center">
      <h3 class="text-3xl font-bold mb-6 text-green-400">Our Services</h3>
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Advanced Solar Installation</h4>
          <p>State-of-the-art solar panel systems for all property types.</p>
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Smart Maintenance</h4>
          <p>AI-driven monitoring to keep your system at peak performance.</p>
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Consulting</h4>
          <p>Personalized solutions for your solar journey.</p>
        </div>
      </div>
    </div>
  </section>



  <!-- Solar Quest Section -->
  <section id="solar-quest" class="py-16 bg-gray-900">
    <div class="container mx-auto text-center">
      <h3 class="text-3xl font-bold mb-6 text-green-400">Solar Quest</h3>
      <p class="text-lg mb-6">Complete tasks to learn about solar energy and earn badges!</p>
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Task 1: Learn Benefits</h4>
          <p>Solar reduces your carbon footprint and saves on bills.</p>
          <span class="badge mt-2">Eco Warrior</span>
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Task 2: Explore Tech</h4>
          <p>Discover how AI optimizes solar efficiency.</p>
          <span class="badge mt-2">Tech Pioneer</span>
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Task 3: Go Solar</h4>
          <p>Contact us to start your solar journey.</p>
          <span class="badge mt-2">Solar Champion</span>
        </div>
      </div>
    </div>
  </section>

  <!-- Calculator Section -->
  <section id="calculator" class="py-16">
    <div class="container mx-auto text-center">
      <h3 class="text-3xl font-bold mb-6 text-green-400">AI-Powered Savings Calculator for India</h3>
      <div class="max-w-lg mx-auto">
        <input type="text" id="billInput" placeholder="Monthly Electric Bill (₹)" class="w-full p-3 mb-4 rounded-lg">
        <input type="text" id="pincodeInput" placeholder="Pincode" class="w-full p-3 mb-4 rounded-lg">
        <button onclick="calculateSavings()" class="glow-button text-white px-6 py-3 rounded-full font-semibold">Calculate Savings</button>
        <div id="results" class="text-lg mt-4">
          <p id="systemSize">Estimated System Size: -- kW</p>
          <p id="installCost">Installation Cost (after 30% subsidy): ₹--</p>
          <p id="monthlySavings">Monthly Savings: ₹--</p>
          <p id="paybackPeriod">Payback Period: -- years</p>
        </div>
      </div>
    </div>
  </section>

  <!-- Contact Section -->
  <section id="contact" class="py-16 bg-gray-900">
    <div class="container mx-auto text-center">
      <h3 class="text-3xl font-bold mb-6 text-green-400">Contact Us</h3>
      <div class="max-w-lg mx-auto">
        <input type="text" placeholder="Your Name" class="w-full p-3 mb-4 rounded-lg">
        <input type="email" placeholder="Your Email" class="w-full p-3 mb-4 rounded-lg">
        <textarea placeholder="Your Message" class="w-full p-3 mb-4 rounded-lg" rows="4"></textarea>
        <button class="glow-button text-white px-6 py-3 rounded-full font-semibold">Send Message</button>
      </div>
    </div>
  </section>

  <!-- Blog Section -->
  <section id="blog" class="py-16 bg-gray-800">
    <div class="container mx-auto text-center">
      <h3 class="text-3xl font-bold mb-6 text-green-400">Latest from Our Blog</h3>
      <div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-left">
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">5 Benefits of Solar for Homeowners</h4>
          <p class="mb-2">Explore how solar can cut your bills and boost your property's value.</p>
	  <a href="blog/solar-benefits.html" class="text-green-400 underline">Read more</a>
       
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">Understanding Net Metering in India</h4>
          <p class="mb-2">A guide to how net metering works and how it benefits you.</p>
          <a href="blog/net-metering-india.html" class="text-green-400 underline">Read more</a>
        </div>
        <div class="card p-6 rounded-lg">
          <h4 class="text-xl font-semibold mb-2 text-green-300">AI in Solar Energy</h4>
          <p class="mb-2">Discover how AI is making solar smarter and more efficient.</p>
          <a href="blog/ai-solar-india.html" class="text-green-400 underline">Read more</a>
        </div>
      </div>
    </div>
  </section>

  <!-- Footer -->
  <footer class="bg-black bg-opacity-50 text-white py-6 backdrop-blur-md">
    <div class="container mx-auto text-center">
      <p>© Fojomo Solar. All rights reserved.</p>
    </div>
  </footer>

  <!-- WhatsApp Floating Button -->
  <a href="https://wa.me/917521855600?text=Hello%2C%20I%20am%20interested%20in%20your%20services" 
     class="whatsapp-float" target="_blank">
    <img src="https://img.icons8.com/color/48/000000/whatsapp--v1.png" alt="WhatsApp Chat">
  </a>

  <!-- Improved Calculator Script with UPNEDA Subsidy -->
<script>
  function calculateSavings() {
    const bill = parseFloat(document.getElementById('billInput').value) || 0;
    const pincode = document.getElementById('pincodeInput').value;

    if (!bill || !pincode) {
      alert('Please enter your monthly bill and pincode.');
      return;
    }

    const electricityRate = 8; // ₹ per kWh
    const solarGenerationPerKW = 4.5; // Units per day
    const costPerKW = 60000; // ₹ per kW
    const daysPerMonth = 30;

    // Step 1: Estimate daily kWh requirement
    const dailyEnergyNeeds = bill / electricityRate / daysPerMonth;
    let systemSize = dailyEnergyNeeds / solarGenerationPerKW;
    systemSize = Math.max(1, Math.min(systemSize, 10)); // clamp between 1–10 kW
    const roundedSystemSize = Math.round(systemSize * 10) / 10;

    // Step 2: Calculate total cost before subsidy
    const totalCost = roundedSystemSize * costPerKW;

    // Step 3: Calculate subsidy
    let centralSubsidy = 0;
    if (roundedSystemSize >= 3) {
      centralSubsidy = 78000;
    } else if (roundedSystemSize >= 2) {
      centralSubsidy = 60000;
    } else if (roundedSystemSize >= 1) {
      centralSubsidy = 30000;
    }

    const stateSubsidyPerKW = 15000;
    const maxStateSubsidy = 30000;
    const stateSubsidy = Math.min(roundedSystemSize * stateSubsidyPerKW, maxStateSubsidy);

    const totalSubsidy = centralSubsidy + stateSubsidy;

    // Step 4: Post-subsidy cost
    const costAfterSubsidy = Math.max(totalCost - totalSubsidy, 0);

    // Step 5: Estimated monthly savings
    const monthlyEnergyGenerated = roundedSystemSize * solarGenerationPerKW * daysPerMonth;
    const monthlySavings = monthlyEnergyGenerated * electricityRate;

    // Step 6: Payback Period
    const paybackPeriod = costAfterSubsidy / (monthlySavings * 12);

    // Step 7: Output
    document.getElementById('systemSize').textContent = `Estimated System Size: ${roundedSystemSize.toFixed(1)} kW`;
    document.getElementById('installCost').textContent = `Installation Cost (after subsidy): ₹${costAfterSubsidy.toFixed(0)}`;
    document.getElementById('monthlySavings').textContent = `Monthly Savings: ₹${monthlySavings.toFixed(0)}`;
    document.getElementById('paybackPeriod').textContent = `Payback Period: ${paybackPeriod.toFixed(1)} years`;
  }
</script>


</body>
</html>
