/* ========================================
   MODERN HEADER STYLES - 2024
   Premium Design with Glassmorphism
   ======================================== */

/* Header Top - Modern Gradient */
.header-top {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            #6366f1 50%,
            #8b5cf6 100%);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.header-top>div>div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-top .navs {
    display: inline-flex;
    align-items: center;
    line-height: 45px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    gap: 5px;
}

.header-top .navs li {
    display: inline-block;
    margin: 0px 8px;
    position: relative;
}

.header-top .navs li a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.header-top .navs li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Social Icons - Modern Style */
.header-top .social {
    display: inline-flex;
    align-items: center;
    line-height: 45px;
    margin: 0;
    padding-left: 20px;
    gap: 8px;
}

.header-top .social li {
    display: inline-block;
    margin: 0;
}

.header-top .social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.header-top .social li a i {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
}

.header-top .social li a:hover i {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.h-border {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    width: 1px;
    height: 20px;
    margin: 0px 15px;
}

/* Header Bottom - Sticky & Premium */
.header-bottom {
    top: 0;
    width: 100%;
    height: 80px;
    position: sticky;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-bottom.scrolled {
    height: 65px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.99);
}

.header-bottom .logo {
    position: relative;
    margin-top: 0;
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.header-bottom .logo:hover {
    transform: scale(1.05);
}

.header-bottom .logo-box {
    height: 80px;
    display: flex;
    align-items: center;
    transition: height 0.4s ease;
}

.header-bottom.scrolled .logo-box {
    height: 70px;
}

.header-bottom.scrolled .logo {
    max-height: 50px;
}

/* Navigation - Modern Style */
.header-bottom .navs {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 80px;
    font-size: 15px;
    font-weight: 600;
    gap: 5px;
    transition: height 0.4s ease;
}

.header-bottom.scrolled .navs {
    height: 70px;
}

.header-bottom .navs li {
    display: inline-block;
    position: relative;
}

.header-bottom .navs li a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.header-bottom .navs li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.header-bottom .navs li a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.header-bottom .navs li a:hover::after {
    transform: scaleX(1);
}

/* Dropdown - Glassmorphism */
.header-item .header-dropdown {
    visibility: hidden;
    opacity: 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 85px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 0px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary-color);
}

.header-item:hover>.header-dropdown {
    visibility: visible;
    opacity: 1;
    height: auto;
    top: 80px;
}

.header-dropdown .link-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-dropdown .link-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.header-dropdown .link-box a {
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: var(--text-primary) !important;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 24px !important;
    transition: all 0.3s;
    font-weight: 600;
}

.header-dropdown .link-box:hover a {
    color: var(--primary-color) !important;
}

/* Small Dropdown - Modern */
.header-dropdown-small {
    visibility: hidden;
    opacity: 0;
    padding: 0;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.header-item2:hover>.header-dropdown-small {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.header-dropdown-small li {
    list-style: none;
}

.header-dropdown-small li a {
    color: var(--text-primary) !important;
    text-decoration: none;
    line-height: 24px !important;
    padding: 12px 20px !important;
    justify-content: flex-start !important;
    transition: all 0.3s;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-dropdown-small li:last-child a {
    border-bottom: none;
}

.header-dropdown-small li a:hover {
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    color: #fff !important;
    padding-left: 25px !important;
}

/* Search Box - Modern Button */
.header-bottom .search-box {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.header-bottom .search-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-bottom .search-box a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.header-bottom .search-box a i {
    font-size: 16px;
}

/* Trigger Link (Language) */
.trigger-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.trigger-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.trigger-link i {
    font-size: 14px !important;
}

/* Header Mobile - Modern */
.header-mobile {
    display: none;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    padding: 10px 0;
}

.header-mobile .logo {
    height: 50px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.header-mobile .logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-mobile .hamburger-box {
    display: flex;
    align-items: center;
}

.header-mobile .hamburger-box .icon {
    cursor: pointer;
    padding: 10px;
}

.header-mobile .hamburger {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.header-mobile .hamburger::before,
.header-mobile .hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-mobile .hamburger::before {
    top: -8px;
}

.header-mobile .hamburger::after {
    top: 8px;
}

.header-mobile .search-box a {
    color: #fff;
    font-size: 22px;
}

/* Mobile Menu - Modern Drawer */
#mobile-menu {
    background: linear-gradient(180deg, var(--primary-color) 0%, #4f46e5 100%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

#mobile-menu .sidebar-header h3 {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

#mobile-menu .components li a {
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#mobile-menu .components li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 35px;
}

#dismiss {
    color: #fff;
}

/* Animation for page load */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-top,
.header-bottom {
    animation: slideDown 0.6s ease-out;
}

/* Hover Bar Override */
.header-bottom .hover-bar:before {
    display: none;
}

/* Adjust body padding for fixed header */
body {
    padding-top: 0;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    body {
        padding-top: 0;
    }

    .header-bottom {
        display: none;
    }

    .header-mobile {
        display: block;
    }
}