/*
==========================
Modern Header Styles
Professional UI/UX Design
==========================
*/

/* ===================================
   MODERN HEADER - BASE STYLES
=================================== */

.modern-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}

/* ===================================
   TOP BAR
=================================== */

.modern-topbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 0;
    border-bottom: 1px solid rgba(242, 148, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.topbar-item i {
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.topbar-item:hover {
    color: var(--primary);
}

.topbar-item:hover i {
    transform: scale(1.1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-link {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.topbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-link:hover {
    color: var(--primary);
}

.topbar-link:hover::after {
    width: 100%;
}

/* ===================================
   MAIN NAVBAR
=================================== */

.modern-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

/* ===================================
   LOGO
=================================== */

.navbar-logo {
    flex-shrink: 0;
    z-index: 10;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* ===================================
   NAVIGATION MENU
=================================== */

.navbar-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--title-family);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(242, 148, 0, 0.1) 0%, rgba(242, 148, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    opacity: 1;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary);
}

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ===================================
   DROPDOWN MENU
=================================== */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.dropdown-link:hover {
    background: rgba(242, 148, 0, 0.08);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown-link:hover::before {
    width: 3px;
}

/* ===================================
   NAVBAR ACTIONS
=================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid rgba(242, 148, 0, 0.2);
    border-radius: 10px;
    color: var(--secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 148, 0, 0.3);
}

/* ===================================
   SOCIAL LINKS
=================================== */

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--secondary-light);
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(242, 148, 0, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===================================
   CTA BUTTON
=================================== */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8800 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(242, 148, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 148, 0, 0.4);
    color: #ffffff;
}

.cta-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* ===================================
   MOBILE TOGGLE
=================================== */

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid rgba(242, 148, 0, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    gap: 5px;
}

.mobile-toggle:hover {
    background: rgba(242, 148, 0, 0.1);
    border-color: var(--primary);
}

.toggle-line {
    width: 20px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ===================================
   SEARCH OVERLAY
=================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    padding: 20px;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: searchSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes searchSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.search-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-icon {
    font-size: 24px;
    color: var(--secondary-light);
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    padding: 12px 0;
    background: transparent;
}

.search-input::placeholder {
    color: var(--secondary-light);
}

.search-submit {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8800 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 148, 0, 0.4);
}

.search-suggestions {
    text-align: center;
}

.suggestions-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ===================================
   MOBILE MENU
=================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(242, 148, 0, 0.1);
    border: none;
    border-radius: 10px;
    color: var(--primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 24px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-item.active .mobile-nav-link {
    background: rgba(242, 148, 0, 0.1);
    color: var(--primary);
}

.submenu-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.has-submenu.open .submenu-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-item.has-submenu.open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 16px;
    color: var(--secondary-light);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-submenu-link:hover {
    background: rgba(242, 148, 0, 0.08);
    color: var(--primary);
    padding-left: 24px;
}

.mobile-menu-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-contact {
    margin-bottom: 20px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mobile-contact-item:hover {
    background: rgba(242, 148, 0, 0.08);
    color: var(--primary);
}

.mobile-contact-item i {
    font-size: 18px;
    color: var(--primary);
}

.mobile-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(242, 148, 0, 0.1);
    border-radius: 10px;
    color: var(--primary);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===================================
   MOBILE MENU OVERLAY
=================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */

@media (max-width: 1199px) {
    .navbar-menu {
        display: none;
    }
    
    .social-links {
        display: none;
    }
    
    .cta-btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 991px) {
    .modern-topbar {
        display: none;
    }
    
    .navbar-content {
        padding: 12px 0;
    }
    
    .logo-img {
        height: 38px;
    }
}

@media (max-width: 575px) {
    .action-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .mobile-toggle {
        width: 38px;
        height: 38px;
    }
    
    .toggle-line {
        width: 18px;
    }
    
    .search-input-wrapper {
        padding: 6px 6px 6px 16px;
    }
    
    .search-input {
        font-size: 16px;
    }
    
    .search-submit {
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu {
        max-width: 100%;
    }
}

/* ===================================
   ANIMATIONS & EFFECTS
=================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.action-btn:focus,
.cta-btn:focus,
.mobile-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
