File: /var/www/html/web-custom-tools/header.php
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Text PDF Optimizer</title>
<link rel="stylesheet" href="assets/style.css">
</head>
<style>
/* ===== RESET ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", "Segoe UI", sans-serif;
}
/* ===== CONTAINER ===== */
.container {
max-width: 1200px;
margin: auto;
padding: 0 20px;
}
/* ===== HEADER ===== */
.pro-header {
position: sticky;
top: 0;
background: #ffffff;
border-bottom: 1px solid #eaeaea;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
z-index: 999;
}
.pro-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 72px;
}
/* ===== LOGO ===== */
.pro-logo a {
font-size: 22px;
font-weight: 700;
color: #111;
text-decoration: none;
}
/* ===== NAV ===== */
.pro-nav-list {
display: flex;
align-items: center;
list-style: none;
}
.pro-nav-list li {
position: relative;
margin-left: 30px;
}
.pro-nav-list a {
color: #333;
font-size: 15px;
font-weight: 500;
text-decoration: none;
padding: 8px 0;
transition: color 0.3s;
}
.pro-nav-list a:hover,
.pro-nav-list a.active {
color: #2563eb;
}
/* ===== CTA BUTTON ===== */
.btn-primary {
background: #2563eb;
color: #fff !important;
padding: 10px 18px;
border-radius: 6px;
font-size: 14px;
}
/* ===== DROPDOWN ===== */
.has-dropdown:hover .pro-dropdown {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.arrow {
display: inline-block;
margin-left: 6px;
border: solid #666;
border-width: 0 1.5px 1.5px 0;
padding: 3px;
transform: rotate(45deg);
}
.pro-dropdown {
position: absolute;
top: 45px;
left: 0;
background: #fff;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
min-width: 220px;
padding: 12px 0;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all 0.3s ease;
}
.pro-dropdown li {
margin: 0;
}
.pro-dropdown a {
padding: 10px 20px;
display: block;
font-size: 14px;
}
.pro-dropdown a:hover {
background: #f5f7ff;
color: #2563eb;
}
/* ===== HAMBURGER ===== */
.pro-hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.pro-hamburger span {
width: 26px;
height: 3px;
background: #111;
margin: 4px 0;
border-radius: 2px;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
.pro-hamburger {
display: flex;
}
.pro-nav {
position: fixed;
top: 72px;
left: -100%;
width: 100%;
height: calc(100vh - 72px);
background: #fff;
transition: left 0.3s ease;
}
.pro-nav.active {
left: 0;
}
.pro-nav-list {
flex-direction: column;
padding: 30px;
}
.pro-nav-list li {
margin: 15px 0;
}
.pro-dropdown {
position: static;
box-shadow: none;
opacity: 1;
visibility: visible;
transform: none;
display: none;
}
.has-dropdown.active .pro-dropdown {
display: block;
}
}
</style>
<body>
<header class="pro-header">
<div class="container pro-header-inner" style="background: unset">
<!-- Logo -->
<div class="pro-logo">
<a href="#"><img src="https://cccinfotech.com/wp-content/themes/CustomCloudCentricInfotech/assets/images/logo-1.png" alt=""></a>
</div>
<!-- Navigation -->
<nav class="pro-nav" id="proNav">
<ul class="pro-nav-list">
<li><a href="#" class="active">PDF Optimizer</a></li>
<!-- <li class="has-dropdown">
<a href="#">
Services
<span class="arrow"></span>
</a>
<ul class="pro-dropdown">
<li><a href="#">Web Development</a></li>
<li><a href="#">UI / UX Design</a></li>
<li><a href="#">Digital Marketing</a></li>
</ul>
</li>
<li><a href="#">About</a></li>
<li><a href="#">Case Studies</a></li>
<li><a href="#">Blog</a></li>
<li>
<a href="#" class="btn-primary">Contact Us</a>
</li> -->
</ul>
</nav>
<!-- Hamburger -->
<div class="pro-hamburger" id="proHamburger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</header>
<script>
const hamburger = document.getElementById("proHamburger");
const nav = document.getElementById("proNav");
hamburger.addEventListener("click", () => {
nav.classList.toggle("active");
});
// Mobile dropdown toggle
document.querySelectorAll(".has-dropdown > a").forEach(item => {
item.addEventListener("click", e => {
if (window.innerWidth <= 991) {
e.preventDefault();
item.parentElement.classList.toggle("active");
}
});
});
</script>