<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NetPro ISP - High Speed Fiber Internet</title>
    <!-- CSS link -->
    <link rel="stylesheet" href="assets/css/style.css">
    <!-- Font Awesome for Icons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>

        /* টপ বার ডিজাইন */
        .top-bar {
            background-color: var(--topbar-bg);
            color: var(--white);
            padding: 8px 0;
            font-size: 14px;
        }

        .top-bar-container {
            max-width: 1400px;
            margin: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .top-bar-left {
            font-weight: 500;
            gap: 10px;
            display: flex;
        }

        .top-bar-left a {
            color: var(--white);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: 0.3s;
        }

        .top-bar-left a:hover {
            opacity: 0.9;
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .top-bar-right a {
            color: var(--white);
            text-decoration: none;
            transition: 0.3s;
        }

        .top-bar-right a:hover {
            opacity: 0.8;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            border-left: 1px solid rgba(255,255,255,0.3);
            padding-left: 15px;
        }

        /* মেইন হেডার */
        .main-header {
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 9999;
            width: 100%;
        }

        .menu-navbar {
            max-width: 1400px;
            margin: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0px 10px;
        }

        .logo h1 {
            font-size: 28px;
            margin: 0;
            font-weight: 800;
        }
        
        .logo a { text-decoration: none; }

        .menu-nav-links {
            list-style: none;
            display: flex;
            margin: 0;
            padding: 0;
            gap: 5px;
        }

        .menu-nav-links li {
            position: relative;
        }

        .menu-nav-links li a {
            text-decoration: none;
            color: var(--dark-gray);
            font-size: 16px;
            font-weight: 600;
            padding: 10px 7px;
            transition: 0.3s;
            display: flex;
            align-items: center;
        }

        .menu-nav-links li a:hover {
            color: var(--primary);
        }

        /* ড্রপডাউন মেনু */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--white);
            min-width: 190px;
            box-shadow: 0px 8px 24px rgba(0,0,0,0.12);
            z-index: 1000;
            list-style: none;
            padding: 10px 0;
            margin: 0;
            border-top: 3px solid var(--primary);
            border-radius: 0 0 8px 8px;
        }

        .dropdown-menu li a {
            padding: 10px 20px;
            font-size: 14px;
            display: block;
        }

        @media (min-width: 992px) {
            .has-dropdown:hover .dropdown-menu {
                display: block;
                animation: fadeIn 0.3s ease;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .menu-toggle {
            display: none;
            font-size: 22px;
            cursor: pointer;
            color: var(--dark-gray);
        }

        .client-portal .btn-portal {
            background: var(--primary-color);
            color: white;
            padding: 9px 20px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-portal:hover {
            background: var(--secondary-color);
        }

        @media (max-width: 991px) {
            .top-bar { display: none; } 
            .menu-toggle { display: block; }
            .client-portal { display: none; }

            nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--white);
                border-top: 1px solid #eee;
                max-height: 80vh;
                overflow-y: auto;
            }

            nav.active { display: block; }

            .menu-nav-links {
                flex-direction: column;
                padding: 10px 0;
            }

            .menu-nav-links li a {
                padding: 15px 25px;
                border-bottom: 1px solid #f5f5f5;
                justify-content: space-between;
            }

            .menu-nav-links li a:hover { color: var(--primary-color); }

            .dropdown-menu {
                position: static;
                display: none;
                box-shadow: none;
                background-color: #f9f9f9;
                border-top: none;
            }

            .has-dropdown.open .dropdown-menu { display: block; }
            .mobile-portal-btn { display: block !important; margin: 15px; }
            .mobile-portal-btn a {
                background: var(--primary) !important;
                color: white !important;
                border-radius: 4px;
                justify-content: center !important;
            }
        }
    </style>
</head>
<body>

<!-- টপ বার সেকশন -->
<div class="top-bar">
    <div class="top-bar-container">
        <div class="top-bar-left">
            <a href="tel:+8801900000000">
                <i class="fas fa-phone-alt"></i> ০১৯০০০০০০০০        </a>
            <a href="mailto:someone@example.com">
                <i class="fas fa-envelope"></i> someone@example.com      </a>
        </div>
        <div class="top-bar-right">
            <a href="#" target="_blank">
                <i class="fas fa-file-pdf"></i> BTRC Approved Tariff
            </a>
            <a href="https://wa.me/8801900000000" target="_blank">
                <i class="fab fa-whatsapp"></i> হোয়াটসঅ্যাপ
            </a>
            <div class="social-icons">
                <a href="#"><i class="fab fa-facebook-f"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
                <a href="#"><i class="fab fa-youtube"></i></a>
            </div>
        </div>
    </div>
</div>

<header class="main-header">
    <div class="menu-navbar">
        <div class="logo">
            <a href="/" style="text-decoration:none;">
                <img src="/assets/files/logo/NetPro-ISP-Theme-logo.png" style="height: 55px; vertical-align: middle;">
                <!--
                <h1><span style="color:var(--secondary);">Net</span><span style="color:var(--primary);">Pro</span></h1>
                -->
            </a>
        </div>

        <div class="menu-toggle" onclick="toggleMenu()">
            <i class="fas fa-bars"></i>
        </div>

        <nav id="mainNav">
            <ul class="menu-nav-links">
                <li><a href="/">হোম</a></li>
                <li><a href="packages.php">প্যাকেজ</a></li>
                <li><a href="coverage.php">কাভারেজ</a></li>
                <li><a href="blog.php">ব্লগ</a></li>
                
                <li class="has-dropdown" onclick="handleDropdown(event, this)">
                    <a href="javascript:void(0)">সাপোর্ট <i class="fas fa-chevron-down" style="font-size:10px; margin-left:8px;"></i></a>
                    <ul class="dropdown-menu">
                        <li><a href="support.php">সাপোর্ট সেন্টার</a></li>
                        <li><a href="check_status.php">টিকিট যাচাই</a></li>
                    </ul>
                </li>

                <li><a href="gallery.php">গ্যালারি</a></li>
                <li><a href="pay_bill.php">বিল পরিষোধ</a></li>
                <li><a href="about.php">সম্পর্কিত</a></li>
                <li><a href="contact.php">যোগাযোগ</a></li>
                
                <li class="mobile-portal-btn" style="display:none;">
                    <a href="portal.php"><i class="fas fa-user-circle"></i> কাস্টমার পোর্টাল</a>
                </li>
            </ul>
        </nav>

        <div class="client-portal">
            <a href="portal.php" class="btn-portal"><i class="fas fa-user-circle"></i> কাস্টমার পোর্টাল</a>
        </div>
    </div>
</header>

<script>
    function toggleMenu() {
        const nav = document.getElementById("mainNav");
        const icon = document.querySelector(".menu-toggle i");
        nav.classList.toggle("active");
        
        if (nav.classList.contains("active")) {
            icon.classList.replace("fa-bars", "fa-times");
        } else {
            icon.classList.replace("fa-times", "fa-bars");
        }
    }

    function handleDropdown(event, element) {
        if (window.innerWidth < 992) {
            event.stopPropagation();
            element.classList.toggle("open");
        }
    }

    document.addEventListener('click', function(event) {
        const nav = document.getElementById("mainNav");
        const menuToggle = document.querySelector(".menu-toggle");
        if (nav && !nav.contains(event.target) && !menuToggle.contains(event.target)) {
            nav.classList.remove("active");
            const icon = document.querySelector(".menu-toggle i");
            if(icon) icon.classList.replace("fa-times", "fa-bars");
        }
    });
</script>

</body>
</html>