/* New Header Styles */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.new-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Outfit', sans-serif;
}

.header-container {
    width: 100%;
}

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

/* Logo */
.header-logo img {
    height: 32px;
    display: block;
}

/* Navigation */
.header-nav {
    flex: 1;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    transition: color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.nav-link:hover {
    color: #ff8368;
}

.nav-link i {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-link i.fa-github {
    font-size: 16px;
    margin-right: 6px;
    margin-left: 0;
}

.nav-item.has-dropdown.active .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Styles */
.dropdown,
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    min-width: 220px;
    z-index: 100;
}

.nav-item.active .dropdown,
.nav-item.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Standard Dropdown */
.dropdown {
    padding: 12px 0;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: #ff8368;
}

/* Mega Dropdown for Products */
.mega-dropdown {
    min-width: 600px;
    left: -100px;
}

.dropdown-content {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.item-icon.orange {
    background: #fff4f0;
    color: #ff8368;
}

.item-icon.blue {
    background: #e3f9ff;
    color: #00b4d8;
}

.item-icon.pink {
    background: #ffe8f5;
    color: #e91e63;
}

.item-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.item-text {
    flex: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.item-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.badge-new {
    background: #ff8368;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-github {
    color: #333;
    font-size: 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-github:hover {
    color: #ff8368;
}

.btn-text {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-text:hover {
    color: #ff8368;
}

.user-link {
    color: #1a1a1a;
    font-size: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.user-link:hover {
    color: #ff8368;
}

.btn-demo {
    color: #ff8368;
    border: 2px solid #ff8368;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-demo:hover {
    background: #ff8368;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 20px;
    }

    .header-content {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 16px;
    }

    .header-content {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 960px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        gap: 12px;
    }

    .btn-text {
        font-size: 14px;
    }

    .btn-demo {
        padding: 6px 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .header-logo img {
        height: 30px;
    }

    .btn-text {
        display: none;
    }
}

/* Hide old header */
.menuBar {
    display: none !important;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-logo {
    height: 30px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-menu-link:hover {
    background: #f8f9fa;
}

.mobile-dropdown .mobile-menu-link i {
    transition: transform 0.2s ease;
}

.mobile-dropdown.active .mobile-menu-link i {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu-item {
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.mobile-submenu-item:hover {
    background: #e5e7eb;
}

.mobile-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.mobile-item-icon.orange {
    background: #fff4f0;
    color: #ff8368;
}

.mobile-item-icon.blue {
    background: #e3f9ff;
    color: #00b4d8;
}

.mobile-item-icon.pink {
    background: #ffe8f5;
    color: #e91e63;
}

.mobile-item-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.mobile-item-text {
    flex: 1;
}

.mobile-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-item-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.mobile-badge-new {
    background: #ff8368;
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 24px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mobile-submenu-link:hover {
    background: #e5e7eb;
}

.mobile-menu-link i.fa-github {
    font-size: 18px;
    margin-right: 8px;
}

.mobile-menu-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-btn-text {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: #333;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-btn-text:hover {
    border-color: #ff8368;
    color: #ff8368;
}

.mobile-btn-demo {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: white;
    background: #ff8368;
    border: 2px solid #ff8368;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-btn-demo:hover {
    background: #ff6b50;
    border-color: #ff6b50;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

@media (min-width: 961px) {
    .mobile-menu-overlay,
    .mobile-menu-panel {
        display: none;
    }
}
