/* ==========================================================================
   Header 2 Styles & Ambient Glowing Background Layer
   ========================================================================== */

body {
    position: relative;
}

.glowing-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.65;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Orb 1: Upper Left */
.glow-orb-1 {
    width: 620px;
    height: 620px;
    top: -80px;
    left: -120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(96, 165, 250, 0.20) 45%, transparent 70%);
    animation: orbFlow1 20s ease-in-out infinite alternate;
}

/* Orb 2: Upper Right */
.glow-orb-2 {
    width: 680px;
    height: 680px;
    top: 20px;
    right: -140px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.40) 0%, rgba(168, 85, 247, 0.18) 45%, transparent 70%);
    animation: orbFlow2 25s ease-in-out infinite alternate;
}

/* Orb 3: Upper Mid */
.glow-orb-3 {
    width: 600px;
    height: 600px;
    top: 180px;
    left: 30%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.38) 0%, rgba(56, 189, 248, 0.16) 45%, transparent 70%);
    animation: orbFlow3 28s ease-in-out infinite alternate;
}

@keyframes orbFlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 60px) scale(1.1); }
    100% { transform: translate(60px, 120px) scale(0.95); }
}

@keyframes orbFlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-130px, 80px) scale(1.08); }
    100% { transform: translate(-60px, 150px) scale(0.92); }
}

@keyframes orbFlow3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -60px) scale(1.12); }
    100% { transform: translate(-70px, 50px) scale(0.96); }
}

/* Header 2 Container & Elements */
.header-variant-2 {
    position: relative;
    width: 100%;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Top Row: Left Aligned Logo (Z-index 30 above search drawer) */
.header-variant-2 .header-top-bar {
    position: relative;
    z-index: 30;
    padding: 23px 0;
    background: #ffffff;
}

.header-variant-2 .header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-variant-2 .header-logo {
    display: flex;
    align-items: center;
}

.header-variant-2 .header-logo a {
    display: flex;
    align-items: center;
}

.header-variant-2 .header-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Second Row: Full Width Navbar (Z-index 20 above search drawer) */
.header-variant-2 .header-navbar {
    width: 100%;
    background-color: #f1f5f9;
    position: relative;
    z-index: 20;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.header-variant-2 .navbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 48px;
}

.header-variant-2 .header-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.header-variant-2 .navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-variant-2 .navbar-menu::-webkit-scrollbar {
    display: none;
}

.header-variant-2 .navbar-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border-right: 1px solid #e2e8f0;
}

.header-variant-2 .navbar-menu > li:first-child {
    border-left: 1px solid #e2e8f0;
}

.header-variant-2 .navbar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.header-variant-2 .navbar-menu > li > a:hover {
    background-color: #ffffff;
    color: #2563eb;
}

/* All-Tools Nav Item with Icon */
.header-variant-2 .navbar-menu > li > a[href*="all-tools"]::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Search Toggle Button on the far right (100% height, square/no border radius, no borders) */
.header-variant-2 .navbar-search-btn-wrap {
    margin-left: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.header-variant-2 .search-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    color: #475569;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.header-variant-2 .search-toggle-btn:hover,
.header-variant-2 .search-toggle-btn.is-active {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Slide-Down Search Drawer (Beneath entire header area in z-index, flying down with top property) */
.header-variant-2 .header-search-drawer {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    z-index: 5;
    top: 25%;
    visibility: hidden;
    pointer-events: none;
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    padding: 16px 0;
    box-sizing: border-box;
}

.header-variant-2 .header-search-drawer.is-open {
    top: 100%;
    visibility: visible;
    pointer-events: auto;
}

.header-variant-2 .search-form-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.header-variant-2 .search-input-field {
    flex: 1;
    height: 46px;
    padding: 0 22px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-radius: 9999px 0 0 9999px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.header-variant-2 .search-input-field:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 2;
}

.header-variant-2 .search-submit-button {
    height: 46px;
    padding: 0 28px;
    background-color: #2563eb;
    color: #ffffff;
    border: 1.5px solid #2563eb;
    border-radius: 0 9999px 9999px 0;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header-variant-2 .search-submit-button:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}
