<?php
require_once __DIR__ . '/includes/database.php';

$announcement_1 = "";
$result = $conn->query("SELECT message FROM headers ORDER BY id DESC LIMIT 1");
if ($result && $row = $result->fetch_assoc()) {
    $announcement_1 = $row['message'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php
    $seo = [
        'title'       => 'About Etaxpay - India\'s Trusted Vehicle Tax & Insurance Platform',
        'description' => 'Etaxpay.in is India\'s trusted platform for online vehicle road tax payment and third-party insurance. Serving customers across Punjab, Haryana, UP, Gujarat and more.',
        'keywords'    => 'about etaxpay, vehicle tax payment company India, online insurance platform, road tax service India',
        'canonical'   => 'https://etaxpay.in/aboutus',
    ];
    include __DIR__ . '/includes/seo.php';
    ?>
    <!-- JSON-LD: AboutPage + BreadcrumbList -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "AboutPage",
      "name": "About Etaxpay",
      "url": "https://etaxpay.in/aboutus",
      "description": "Etaxpay.in is India's trusted platform for online vehicle road tax payment and third-party insurance.",
      "mainEntity": {
        "@type": "Organization",
        "name": "Etaxpay",
        "url": "https://etaxpay.in",
        "logo": "https://etaxpay.in/mainlogo.png",
        "telephone": "+917888832046",
        "address": {
          "@type": "PostalAddress",
          "addressCountry": "IN"
        },
        "foundingDate": "2023",
        "description": "India's trusted platform for online vehicle road tax payment and third-party bike & car insurance services across 14+ states."
      }
    }
    </script>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "BreadcrumbList",
      "itemListElement": [
        {"@type": "ListItem", "position": 1, "name": "Home", "item": "https://etaxpay.in/"},
        {"@type": "ListItem", "position": 2, "name": "About Us", "item": "https://etaxpay.in/aboutus"}
      ]
    }
    </script>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .scrolling-text { animation: scroll 25s linear infinite; }
        @keyframes scroll { 0% { transform: translateX(1%); } 100% { transform: translateX(-100%); } }
        .dropdown-content { display: none; position: absolute; background: #fff; min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,.2); z-index: 1000; border-radius: 4px; }
        .dropdown:hover .dropdown-content { display: block; }
        .dropdown-content a { color: #333; padding: 12px 16px; text-decoration: none; display: block; }
        .dropdown-content a:hover { background: #f0f0f0; }
    </style>
</head>
<body class="bg-gray-50">

    <!-- Top Notification Bar -->
    <div class="bg-[#1c366b] text-white text-sm py-1 px-4 flex justify-between items-center">
        <div class="overflow-hidden whitespace-nowrap w-[50%]">
            <div class="scrolling-text inline-block pl-[100%]">
                Please pay tax in advance to avoid any last-minute hassle.
            </div>
        </div>
        <div class="flex items-center space-x-3 ml-4">
            <a href="/" class="hover:text-blue-200 transition">Home</a>
            <span>|</span>
            <a href="https://api.whatsapp.com/send/?phone=9417178593" class="hover:text-blue-200 transition">Contact us</a>
            <span>|</span>
            <span class="flex space-x-1">
                <a href="#" class="hover:text-blue-200 transition">A+</a>
                <a href="#" class="hover:text-blue-200 transition">A</a>
                <a href="#" class="hover:text-blue-200 transition">A-</a>
            </span>
        </div>
    </div>

    <!-- Header -->
    <header class="bg-[#4A9DD0] shadow-md">
        <div class="container mx-auto px-4 flex items-center justify-between">
            <div class="flex items-center w-full relative">
                <div class="h-[5rem] flex justify-center items-center">
                    <a href="/"><img src="/mainlogo.png" alt="Etaxpay Logo" width="130px"></a>
                </div>
                <h1 class="hidden md:block text-2xl font-bold text-white absolute left-1/2 transform -translate-x-1/2">
                    Etaxpay
                </h1>
            </div>
            <div class="text-right">
                <div class="text-sm font-semibold text-white">AssistPortal</div>
                <div class="text-xs text-gray-200">By Etaxpay.in</div>
            </div>
        </div>
    </header>

    <!-- Navigation Bar -->
    <nav class="text-white shadow-lg" style="background-color: rgb(41, 88, 159);">
        <div class="container mx-auto px-4">
            <div class="flex items-center space-x-3">
                <a href="/" class="flex items-center px-2 py-2 rounded hover:bg-blue-600 transition">
                    <i class="fas fa-home mr-2"></i> Home
                </a>
                <div class="dropdown relative">
                    <a href="#" class="dropdown-toggle flex items-center px-3 py-2 rounded hover:bg-blue-600 transition">
                        <i class="fas fa-user mr-2"></i> Services <i class="fas fa-caret-down ml-1"></i>
                    </a>
                    <div class="dropdown-content hidden absolute left-0 mt-1 w-48 bg-white text-gray-800 rounded-md shadow-lg z-10">
                        <a href="/taxform" class="block px-4 py-2 hover:bg-gray-100 rounded-t-md">Tax Payment</a>
                        <a href="/bike" class="block px-4 py-2 hover:bg-gray-100">Bike Insurance</a>
                        <a href="/car" class="block px-4 py-2 hover:bg-gray-100">Car Insurance</a>
                    </div>
                </div>
                <div id="menu-list" class="flex items-center space-x-5"></div>
            </div>
        </div>
    </nav>
    <div class="border-t border-gray-800"></div>

    <?php if ($announcement_1): ?>
    <div class="bg-[#29589F] px-4 py-1">
        <div class="flex items-center overflow-hidden whitespace-nowrap">
            <div class="scrolling-text inline-block pl-[100%] text-white font-bold text-sm">
                <?= htmlspecialchars($announcement_1) ?>
            </div>
        </div>
    </div>
    <?php endif; ?>

    <!-- Main Content -->
    <main class="max-w-4xl mx-auto px-6 py-12">

        <h1 class="text-3xl font-bold text-[#29589f] mb-2">About Etaxpay</h1>
        <p class="text-gray-500 text-sm mb-8">India's trusted platform for online vehicle tax and insurance</p>

        <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-8 mb-8">
            <h2 class="text-xl font-semibold text-gray-800 mb-4">Who We Are</h2>
            <p class="text-gray-600 leading-relaxed mb-4">
                Etaxpay.in is a registered private platform dedicated to simplifying vehicle road tax payments and
                third-party motor insurance for vehicle owners across India. We are not affiliated with any government
                agency or government body.
            </p>
            <p class="text-gray-600 leading-relaxed">
                Our platform is designed to save you time and effort. Instead of visiting an RTO office or standing in
                queues, you can pay your road tax and get your insurance policy renewed from the comfort of your home,
                in just a few minutes.
            </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
            <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 text-center">
                <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-shield-alt text-[#29589f] text-xl"></i>
                </div>
                <h3 class="font-semibold text-gray-800 mb-2">Secure Payments</h3>
                <p class="text-gray-500 text-sm">All transactions are processed through certified payment gateways with SSL encryption.</p>
            </div>
            <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 text-center">
                <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-bolt text-[#29589f] text-xl"></i>
                </div>
                <h3 class="font-semibold text-gray-800 mb-2">Instant Processing</h3>
                <p class="text-gray-500 text-sm">Your payment is verified and confirmed within minutes, with instant WhatsApp notification.</p>
            </div>
            <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 text-center">
                <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4">
                    <i class="fas fa-map-marker-alt text-[#29589f] text-xl"></i>
                </div>
                <h3 class="font-semibold text-gray-800 mb-2">Pan India Service</h3>
                <p class="text-gray-500 text-sm">Serving vehicle owners across Punjab, Haryana, UP, Gujarat, Maharashtra and more.</p>
            </div>
        </div>

        <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-8 mb-8">
            <h2 class="text-xl font-semibold text-gray-800 mb-4">Our Services</h2>
            <ul class="space-y-3 text-gray-600">
                <li class="flex items-start gap-3">
                    <i class="fas fa-check-circle text-green-500 mt-1"></i>
                    <span><strong>Vehicle Road Tax Payment</strong> — Pay state road tax / border tax online for cars and trucks across all major states.</span>
                </li>
                <li class="flex items-start gap-3">
                    <i class="fas fa-check-circle text-green-500 mt-1"></i>
                    <span><strong>Two-Wheeler Insurance</strong> — Renew or apply for third-party bike insurance online instantly.</span>
                </li>
                <li class="flex items-start gap-3">
                    <i class="fas fa-check-circle text-green-500 mt-1"></i>
                    <span><strong>Four-Wheeler Insurance</strong> — Get car insurance quotes and apply online through our platform.</span>
                </li>
            </ul>
        </div>

        <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-8">
            <h2 class="text-xl font-semibold text-gray-800 mb-4">Contact Us</h2>
            <div class="space-y-3 text-gray-600">
                <p class="flex items-center gap-3">
                    <i class="fab fa-whatsapp text-green-500 text-xl w-6"></i>
                    <a href="https://api.whatsapp.com/send/?phone=7888832046" class="hover:text-[#29589f] transition">+91 78888 32046 (WhatsApp)</a>
                </p>
                <p class="flex items-center gap-3">
                    <i class="fas fa-phone text-[#29589f] text-xl w-6"></i>
                    <a href="tel:+919417178593" class="hover:text-[#29589f] transition">+91 94171 78593</a>
                </p>
                <p class="flex items-center gap-3">
                    <i class="fas fa-envelope text-[#29589f] text-xl w-6"></i>
                    <a href="mailto:etaxpay@gmail.com" class="hover:text-[#29589f] transition">etaxpay@gmail.com</a>
                </p>
            </div>
            <p class="text-gray-400 text-xs mt-6">
                Etaxpay is a registered business. GSTIN details available on request. We do not represent any
                government agency or affiliate to any government body.
            </p>
        </div>

    </main>

    <?php include __DIR__ . '/includes/footer.php'; ?>

    <script>
    document.addEventListener("DOMContentLoaded", function () {
        fetch("fetch_menus.php?t=" + new Date().getTime())
            .then(r => r.text())
            .then(data => {
                const el = document.getElementById("menu-list");
                if (el) el.innerHTML = data;
            })
            .catch(() => {});
    });
    </script>
</body>
</html>
