/* ========================= CRITICAL NAVBAR STYLES ========================= */
/* These load first to prevent FOUC */
#navbar-host {
    position: relative;
    z-index: 1000;
    height: 82px; /* Fixed height - prevents layout shift */
    width: 100%;
}

/* Premium Loading Animation */
#navbar-host:empty {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    overflow: hidden;
}

/* Animated gradient background */
#navbar-host:empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #667eea 0%,
        #764ba2 25%,
        #667eea 50%,
        #764ba2 75%,
        #667eea 100%
    );
    background-size: 400% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo skeleton */
#navbar-host:empty::after {
    content: '';
    width: 140px;
    height: 24px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.2) 25%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0.2) 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    position: relative;
    z-index: 1;
}

/* Menu button skeleton */
#navbar-host:empty .skeleton-menu {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    animation: pulse-opacity 1.5s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pulse opacity */
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Ensure real navbar has same height */
.navbar {
    height: 82px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    height: 100%;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Make sure mobile menu button shows immediately */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Hide desktop nav initially on mobile */
.desktop-nav {
    display: none;
}

/* Smooth transition when real navbar loads */
#navbar-host:not(:empty) {
    animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* =========================================================
   Rest of your existing CSS below (keep as is)
   ========================================================= */
.navbar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* NAVBAR MAIN */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 0; /* Professional height */
    width: 100% !important;
    overflow: visible !important;
}

/* CONTAINER */
.navbar .nav-container {
    width: 100%;
    padding: 6px 20px;
}

/* NAV CONTENT */
.navbar .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.navbar .logo-text {
    font-size: 1.25rem; 
    font-weight: 700;
    white-space: nowrap;
    margin-right: 12px; /* Space from action icons */
}

/* STYLISH ACTION ICON BUTTONS (TOP RIGHT) */
.navbar .icon-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px; /* Smaller box */
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: 0.25s ease;
    cursor: pointer;
}

.navbar .icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.navbar .icon-btn svg {
    width: 22px;
    height: 22px;
}

/* RIGHT ACTION WRAPPER FIX */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Compact spacing */
}

/* DESKTOP NAV */
.navbar .desktop-nav {
    display: none;
    gap: 20px;
    white-space: nowrap;
}

/* NAV LINK (DESKTOP + MOBILE ICON + TEXT BIGGER + BOLD) */
/* NAV LINK (DESKTOP + MOBILE – PROFESSIONAL SIZE) */
.navbar .nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.3s ease;
}

.navbar .nav-link svg {
    width: 28px !important;
    height: 28px !important;
    fill: white;
}

/* MOBILE MENU BUTTON */
.navbar .mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    margin-left: auto; /* Align to right */
}

/* MOBILE MENU */
.navbar .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100% !important;
    background: #ffffff;
    transform: translateX(-100%);
    transition: 0.3s ease;
    z-index: 99999;
    overflow-x: hidden !important;
    overflow-y: auto;
}

/* OPEN STATE */
.navbar .mobile-menu.open {
    transform: translateX(0);
}

/* MOBILE TOP BAR */
.mobile-menu-top {
    background: #f5f5f7;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MOBILE TOP LOGO */
.mobile-menu-top .logo-text {
    color: #000 !important;
    font-size: 1.15rem;
    font-weight: 700;
}

/* MOBILE SEARCH BAR (MENU INSIDE ONLY) */
.mobile-search {
    padding: 10px 18px;
    background: #f3f4f6;
    border-radius: 40px;
    margin: 20px;
    display: flex;
    gap: 8px;
}

.mobile-search input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 1rem;
}

/* MOBILE NAV – FULL AUTO SCROLL */
.mobile-nav {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-bottom: 40px;
}

.mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

/* MOBILE NAV LINKS – BIGGER + BOLD (UNIVERSAL) */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    font-size: 1.20rem !important;
    font-weight: 700 !important;
    color: #000000;
    text-decoration: none;
}

.mobile-nav-link svg {
    width: 28px !important;
    height: 28px !important;
}

/* MOBILE SOCIAL ICONS */
.mobile-social {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.mobile-social svg {
    width: 26px;
    height: 26px;
}

/* REMOVE MOBILE SEARCH TOP RIGHT ICON */
.nav-actions .search-container {
    display: none; /* Mobile search handled in menu only */
}

/* =========================================================
   DEFAULT (MOBILE + TABLET: 0px – 1024px)
   Hamburger visible, Desktop nav hidden
   ========================================================= */

/* Show mobile buttons */
.navbar .mobile-menu-btn,
.navbar .mobile-search {
    display: flex;
}

/* Action icons */
.nav-actions .action-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* =========================================================
   DESKTOP ONLY (1025px and above)
   ========================================================= */
@media (min-width: 1025px) {

    /* Show desktop nav */
    .navbar .desktop-nav {
        display: flex;
        gap: 24px;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Hide mobile buttons */
    .navbar .mobile-menu-btn,
    .navbar .mobile-search {
        display: none;
    }

    /* Action icons */
    .nav-actions .action-icons {
        gap: 12px;
        flex-wrap: nowrap;
    }

    /* Container width */
    .navbar .nav-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%;
    }
 /* Desktop typography boost */
    .navbar .nav-link {
        font-size: 1.12rem !important;
        font-weight: 650 !important;
        letter-spacing: 0.3px;
    }
    /* Logo */
    .navbar .logo-text {
        font-size: 1.45rem;
        font-weight: 800;
    }
}

/* =========================================================
   BASE NAV LINK STYLES
   ========================================================= */
.navbar .nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.navbar .nav-link svg {
    transition: fill 0.25s ease;
}


/* =========================================================
   HOVER EFFECT – DESKTOP DEVICES ONLY
   ========================================================= */
@media (hover: hover) {
    .navbar .nav-link:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
    }

    .navbar .nav-link:hover svg {
        fill: #dc2626;
    }
}
/* =========================================================
               SVG Icon style
   ========================================================= */
/* Base icon styles */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* Tool card specific styles */
.tool-card .icon {
  width: 36px;
  height: 36px;
  display: block;
  margin: 0 auto 0.5rem;
  fill: var(--primary-color); /* Prefer fill instead of color for SVG */
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  line-height: 1;
}
/* ✅ Mobile: Icon size small */
/* Navbar icon styles */
.tool-nav-link .icon {
    width: 26px;
    height: 26px;
    fill: var(--primary-color);
    margin-bottom: 4px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: visible;
}

/* ✅ Hover effect */
.tool-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tool-nav-link:hover .icon {
    fill: var(--accent-color);
}

/* ✅ Text under icon */
.tool-nav-link span {
    font-size: 0.90rem;
    font-weight: 600; 
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}
/* ✅ Desktop View */
@media (min-width: 768px) {
    .tool-nav-links {
        justify-content: center;
        gap: 20px;
    }

    .tool-nav-link {
        flex-direction: row;
        padding: 10px 15px;
        flex: 0 0 auto;
    }

    .tool-nav-link .icon {
        width: 30px;
        height: 30px;
        margin: 0 10px 0 0;
    }

    .tool-nav-link span {
        font-size: 1.1rem;
        font-weight: 630;
    }
}
/* Large icon variant */
.icon-lg {
  width: 40px;
  height: 40px;
}

/* color variants */
.icon-primary {
  fill: #4A90E2;
}
.icon-primary {
  fill: #4A90E2;
}
.icon-gold {
  fill: #FFD700;
}
.icon-accent {
  fill: #FF6B6B;
}

/* Hover Effect */
.icon:hover {
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}
/* =========================================================
   ✅ Hard-Isolated Footer (No parent effect possible) 
   ========================================================= */

   #site-footer {
    position: relative;
    bottom: 0;
    width: 100% !important; /* full width within viewport */
    max-width: 100vw !important; /* no overflow from auto margin pages */
    margin: 0 !important;
    padding: 4rem 1.5rem 0 !important;
    background-color: #111 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    z-index: 9999;
}


/* ✅ Reset every inherited style globally for this footer */
#site-footer * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    color: #fff; 
}
/* ✅ Footer structure */
#site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

#site-footer .footer-logo h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

#site-footer .footer-logo p {
    color: #bbb;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

#site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

#site-footer .footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    white-space: nowrap;
}

#site-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-footer .footer-column ul li {
    margin-bottom: 0.75rem;
}

#site-footer .footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
}

#site-footer .footer-column ul li a:hover {
    color: #00A8FF;
}

#site-footer .footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* Footer credit */
/* Base footer text */
#site-footer .footer-bottom .footer-credit {
    font-size: 14px;
    color: #fff; /* all normal text white */
    opacity: 0.95;
    line-height: 1.5;
}

/* CEO & Founder role - keep white */
#site-footer .footer-bottom .footer-credit .role {
    color: #fff;
    font-weight: 600;
}

/* Ahtisham Ali link - golden */
#site-footer .footer-bottom .footer-credit .ceo-link {
    color: #FFD700;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect - glow + lift */
#site-footer .footer-bottom .footer-credit .ceo-link:hover {
    text-shadow:
        0 0 8px rgba(255,215,0,0.8),
        0 0 16px rgba(255,215,0,0.6),
        0 0 24px rgba(255,215,0,0.4);
    transform: translateY(-2px);
    cursor: pointer;
}


/* ✅ Responsive */
@media (max-width: 600px) {
    #site-footer .footer-content {
        text-align: center;
    }
}


/* =========================================================
   ACTION BUTTONS FIX - HORIZONTAL ON ALL DEVICES
   ========================================================= */
/* ✅ FIXED: Action icons - Always horizontal with perfect size */
.nav-actions .action-icons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important; /* Gap thoda kam */
    align-items: center !important;
    justify-content: flex-end !important;
}

/* Individual icon buttons - Perfect size */
.nav-actions .icon-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    padding: 6px 8px !important; /* Padding kam ki (8px 10px se 6px 8px) */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}

/* Icon SVG - perfect size */
.nav-actions .icon-btn svg {
    width: 20px !important;
    height: 20px !important;
}

/* Small devices - same perfect size */
@media screen and (max-width: 768px) {
    .nav-actions .action-icons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }
    
    .nav-actions .icon-btn {
        width: auto !important;
        height: auto !important;
        padding: 6px 8px !important; /* Same padding */
    }
    
    .nav-actions .icon-btn svg {
        width: 20px !important;
        height: 20px !important; /* Mobile par bhi 20px */
    }
}
/* [Logo]        [Centered Nav Links]        [Icons] */
@media (min-width: 1025px) {

    .navbar .nav-content {
        justify-content: space-between;
        position: relative;
    }

    .navbar .desktop-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
