/* ============================================================
   1. GLOBAL RESET & FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   2. NAVBAR MAIN CONTAINER
   ============================================================ */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 3000;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    position: relative; 
}

/* ============================================================
   3. LOGO STYLING
   ============================================================ */
.logo { 
    font-weight: 800; 
    color: #e5322d; 
    font-size: 24px; 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}
.logo i { font-size: 30px; }
.logo:hover { transform: scale(1.02); }

/* ============================================================
   4. NAVIGATION LINKS (CENTER)
   ============================================================ */
.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    margin: 0; 
    padding: 0;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 72px;
}

.nav-links a { 
    text-decoration: none; 
    color: #334155; 
    font-weight: 700; 
    font-size: 13px;
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav-links a:hover { color: #e5322d; }

/* ============================================================
   5. SPECIAL HIGHLIGHT (ALL PDF TOOLS BUTTON)
   ============================================================ */
.highlight-btn { 
    color: #e5322d !important; 
    background: #fff1f0; 
    padding: 10px 18px; 
    border-radius: 12px;
    border: 1px solid #fee2e2;
}
.highlight-btn:hover {
    background: #fee2e2;
}

/* ============================================================
   6. MEGA MENU LOGIC (HOVER AND CENTERING)
   ============================================================ */
.mega-dropdown-parent {
    position: static !important; /* Isse menu window width ke hisab se align hoga */
}

.dropdown { position: relative; } 

.mega-menu {
    display: none;
    position: absolute;
    top: 72px;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #e5322d;
    z-index: 4000;
    border-radius: 0 0 20px 20px;
    overflow: hidden; /* Banner ko corners par chipkane ke liye */
}

/* ALL PDF TOOLS - Poori Window width ke liye */
.full-width-menu {
    left: 0;
    right: 0;
    width: 100vw;
}

/* Content wrapper (Center grid) */
.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding: 40px 25px;
}

.dropdown:hover .mega-menu { display: block; }

/* ============================================================
   7. SECURITY BANNER (INSIDE MEGA MENU FOOTER)
   ============================================================ */
.mega-menu-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 12px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.3px;
}
.mega-menu-footer i { color: #3b82f6; margin-right: 8px; }

/* ============================================================
   8. MENU COLUMNS & TOOL LINKS
   ============================================================ */
.menu-column h4 { 
    color: #94a3b8; 
    font-size: 10px; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-column a { 
    display: flex; 
    align-items: center;
    padding: 10px 0; 
    font-size: 13.5px; 
    color: #1e293b; 
    font-weight: 600;
    text-transform: none; 
    transition: all 0.2s;
}

.menu-column a i { 
    width: 25px; 
    color: #ef4444; 
    font-size: 16px; 
    text-align: center;
    margin-right: 12px;
}

.menu-column a:hover { 
    color: #e5322d; 
    background: #fff8f8;
    padding-left: 10px;
    border-radius: 8px;
    transform: translateX(5px);
}

/* ============================================================
   9. CONVERT PDF DROPDOWN (COMPACT VERSION)
   ============================================================ */
.convert-dropdown-menu {
    width: 550px;
    left: auto;
    right: -50px; /* Isse ye button ke theek niche rahega */
    border-radius: 0 0 15px 15px;
}

.convert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
}

/* ============================================================
   10. RIGHT SECTION (LANG SELECT & HOME)
   ============================================================ */
.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-select { 
    padding: 8px 12px; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0; 
    font-family: 'Inter', sans-serif;
    font-weight: 700; 
    cursor: pointer; 
    font-size: 12px; 
    background: #fff;
    outline: none;
}
.lang-select:focus { border-color: #e5322d; }

.home-icon { 
    color: #64748b; 
    font-size: 22px; 
    text-decoration: none; 
    transition: color 0.2s;
}
.home-icon:hover { color: #e5322d; }

/* ============================================================
   11. RESPONSIVE DESIGN (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 1100px) {
    .nav-links { gap: 15px; }
    .mega-menu-content { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu ki zarurat baad mein padegi */
    .mega-menu-content { grid-template-columns: 1fr; }
    .full-width-menu { width: 95vw; left: 2.5vw; }
}