.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 14px;
    transition: padding 0.3s ease;
}

.navbar.scrolled .nav-container {
    padding: 6px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo:hover .logo-icon {
    transform: rotate(8deg) scale(1.05);
}

.logo-text {
    display: flex;
    align-items: baseline;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.logo-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

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

.nav-link:hover i {
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

/* Mega Menu */
.mega-menu {
    position: relative;
}

.mega-menu-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: rgba(121, 105, 210, 0.08);
    border: 2px solid rgba(121, 105, 210, 0.15);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mega-menu-toggle:hover {
    background: rgba(121, 105, 210, 0.15);
    border-color: rgba(121, 105, 210, 0.3);
    transform: translateY(-1px);
}

.mega-menu-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mega-menu:hover .mega-menu-toggle i {
    transform: rotate(180deg);
}

.mega-menu-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 850px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 20px;
}

.mega-menu-section h4 {
    color: var(--dark);
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mega-menu-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
}

.mega-menu-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.mega-menu-section a i {
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0.7;
    font-size: 0.85rem;
}

.mega-menu-section a:hover i {
    opacity: 1;
}

.mega-menu-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text);
    margin: 0;
}

.contact-info i {
    color: var(--text);
    width: 12px;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search */
.search-container {
    position: relative;
}

.search-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.95rem;
    padding: 0;
    flex-shrink: 0;
}

.search-toggle:hover {
    color: var(--primary);
    background: rgba(121, 105, 210, 0.08);
    transform: scale(1.06);
}

.search-box {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-container.active .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(121, 105, 210, 0.02);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--primary);
}

/* ...existing search-results... */

/* Theme Toggle Fix */
.theme-toggle {
    width: 36px;
    height: 36px;
    background: var(--gray-light);
    border: none;
    border-radius: 6px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(18deg);
}

.theme-toggle i {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 0.9rem;
}

/* Sun icon - visible by default in light mode */
.theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Dark mode - show moon, hide sun */
body.dark-theme .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

body.dark-theme .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Theme toggle in dark mode */
body.dark-theme .theme-toggle {
    background: rgba(121, 105, 210, 0.15);
    color: #fff;
}

body.dark-theme .theme-toggle:hover {
    background: var(--primary);
}

/* ...existing theme-toggle icons... */

/* Notifications */
.notification-container {
    position: relative;
    flex-shrink: 0;
}

.notification-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
    overflow: visible;
}

.notification-toggle:hover {
    color: var(--primary);
    background: rgba(121, 105, 210, 0.08);
    transform: scale(1.06);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: pulse 2.5s infinite;
    border: 2px solid white;
    padding: 0 5px;
    height: 19px;
    min-width: 19px;
    line-height: 1;
    z-index: 2200;
    pointer-events: none;
}

/* Slightly smaller on small screens */
@media (max-width: 576px) {
    .notification-badge {
        top: -5px;
        right: -5px;
        font-size: 0.6rem;
        height: 18px;
        padding: 0 5px;
        min-width: 18px;
    }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.notification-container.active .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
    gap: 12px;
}

.notification-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 0;
}

.mark-all-read:hover {
    opacity: 0.8;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(121, 105, 210, 0.04);
}

.notification-item.unread {
    background: rgba(121, 105, 210, 0.08);
}

.notification-icon {
    width: 36px;
    height: 36px;
    background: rgba(121, 105, 210, 0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0 0 4px 0;
    color: var(--dark);
    font-size: 0.85rem;
    line-height: 1.35;
    word-break: break-word;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.notification-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

.notification-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.notification-footer a:hover {
    opacity: 0.8;
}

/* CTA Button */
.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-sm i {
    font-size: 0.85rem;
}

.btn-sm span {
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 20px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

 

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    padding: 16px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
   /* color: var(--dark);*/
   color: transparent;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.8rem;
    /*color: var(--gray);*/
    color: transparent;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-nav-link.active {
    background: var(--gradient);
    color: white;
}

.mobile-nav-link:hover:not(.active) {
    background: rgba(121, 105, 210, 0.12);
    transform: translateX(5px);
    color: var(--primary);
}

.mobile-nav-link i:first-child {
    width: 18px;
    font-size: 0.95rem;
}

.mobile-nav-link i:last-child {
    font-size: 0.75rem;
}

.mobile-submenu {
    margin-top: 10px;
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: var(--gray-light);
    border: none;
    border-radius: 8px;
    color: var(--dark);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-submenu-toggle:hover {
    background: rgba(121, 105, 210, 0.12);
}

.mobile-submenu-toggle i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-submenu.active .mobile-submenu-toggle i:last-child {
    transform: rotate(180deg);
}

.mobile-submenu-content {
    padding: 10px;
    background: rgba(121, 105, 210, 0.05);
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.mobile-submenu.active .mobile-submenu-content {
    display: flex;
}

.mobile-submenu-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.mobile-submenu-content a:hover {
    background: rgba(121, 105, 210, 0.15);
    color: var(--primary);
}

.mobile-menu-footer {
    position: relative;
    padding: 16px 0;
    border-top: 1px solid var(--gray-light);
}

.mobile-actions {
    margin-bottom: 14px;
}

.mobile-actions .btn {
    width: 100%;
    justify-content: center;
}

.mobile-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.mobile-contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-contact a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-contact a i {
    font-size: 1.1rem;
}

/* Progress Bar */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 999;
}

#navProgress {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.2s ease;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-overlay-content {
    width: 100%;
    max-width: 750px;
    background: white;
    border-radius: 12px;
    padding: 36px;
    animation: slideUp 0.3s ease;
}

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

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 18px;
}

.search-header h3 {
    color: var(--dark);
    margin: 0;
    font-size: 1.2rem;
}

.close-search {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.search-input-large {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.search-input-large input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input-large input::placeholder {
    color: var(--gray);
}

.search-input-large input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(121, 105, 210, 0.1);
}

.search-btn-large {
    padding: 0 32px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(121, 105, 210, 0.3);
}

.search-suggestions h4 {
    color: var(--dark);
    margin: 0 0 14px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tags a {
    padding: 7px 16px;
    background: var(--gray-light);
    border-radius: 50px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.suggestion-tags a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(121, 105, 210, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .mega-menu-content {
        width: 780px;
        max-width: calc(100vw - 40px);
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .notification-dropdown {
        width: 280px;
        right: 0;
    }
    
    .search-box {
        width: 260px;
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 0;
        gap: 8px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-actions {
        gap: 7px;
    }
    
    .btn-sm span {
        display: none;
    }
    .btn-sm{
        display: none;
    }
    .search-toggle,
    .theme-toggle,
    .notification-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
    }
    
    .notification-dropdown {
        width: 270px;
        right: 0;
    }
    
    .search-box {
        width: 250px;
        right: 0;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 10px 0;
        gap: 6px;
    }
    
    .logo {
        gap: 5px;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
    }
    
    .nav-actions {
        gap: 5px;
    }
    
    .search-toggle,
    .theme-toggle,
    .notification-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .btn-sm{
        display: none;
    }
    
    .notification-badge {
        width: 17px;
        height: 17px;
        font-size: 0.55rem;
        top: -4px;
        right: -4px;
    }
    
    .notification-dropdown {
        width: 240px;
        right: 0;
    }
    
    .search-box {
        width: 230px;
        right: 0;
    }
}

/* Dark theme styles */
body.dark-theme .navbar {
    background: rgba(26, 26, 46, 0.95);
    color: white;
}

body.dark-theme .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active {
    color: white;
}

/* Logo text white in dark mode */
body.dark-theme .logo-text {
    color: white;
}

body.dark-theme .logo-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme .mega-menu-content,
body.dark-theme .notification-dropdown,
body.dark-theme .search-box,
body.dark-theme .search-overlay-content {
    background: #1a1a2e;
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .mobile-menu {
    background: #1a1a2e;
    color: white;
}

body.dark-theme .search-box input,
body.dark-theme .search-input-large input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-theme .search-box input:focus,
body.dark-theme .search-input-large input:focus {
    background: rgba(121, 105, 210, 0.1);
}

/* Improved Mobile Responsiveness */

/* Show hamburger from 992px instead of hiding nav menu */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: 8px;
    }
    
    .nav-actions {
        order: 3;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    /* Better spacing for mobile */
    .nav-container {
        gap: 12px;
    }
    
    /* Adjust notification dropdown for mobile */
    .notification-dropdown {
        position: fixed;
        top: 70px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    /* Adjust search box for mobile */
    .search-box {
        position: fixed;
        top: 70px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}

/* Tablet improvements */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px 0;
    }
    
    /* Hide "Get Quote" text, keep icon 
    .btn-sm span {
        display: none;
    }
    
    .btn-sm {
        padding: 8px;
        min-width: 36px;
    }
    
    .btn-sm i {
        margin: 0;
    }*/
    .btn-sm {
        display: none;
    }
    
    /* Adjust logo size */
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    /* Improve mobile menu toggle */
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: rgba(121, 105, 210, 0.08);
        border-radius: 6px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(121, 105, 210, 0.15);
    }
    
    .mobile-menu-toggle.active {
        display: none;
    }
    
    .mobile-menu-toggle.active .bar {
        background: white;
    }
    
    .mobile-menu-toggle .bar {
        width: 18px;
        height: 2px;
        background: var(--dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    body.dark-theme .mobile-menu-toggle .bar {
        background: white;
    }
    
    /* Mobile menu improvements */
    .mobile-menu {
        padding-top: 70px;
        padding-bottom: 20px;
    }
    
    .mobile-menu-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        margin-bottom: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-theme .mobile-menu-header {
        background: #1a1a2e;
    }
    
    .mobile-menu-content {
        margin-top: 60px;
        margin-bottom: 20px;
    }
    
    /* Better mobile navigation */
    .mobile-nav-link {
        padding: 14px 16px;
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .mobile-nav-link i:first-child {
        width: 22px;
        font-size: 1rem;
    }
    
    /* Mobile submenu improvements */
    .mobile-submenu-toggle {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .mobile-submenu-content a {
        padding: 12px 16px 12px 40px;
        font-size: 0.9rem;
    }
    
    /* Mobile footer improvements */
    .mobile-contact {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .mobile-contact a {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .mobile-contact a i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .nav-container {
        padding: 8px 0;
    }
    
    /* Hide logo text on very small screens */
    .logo-text {
        font-size: 1.1rem;
    }
    
    @media (max-width: 400px) {
        .logo-text {
            display: none;
        }
        
        .logo-icon {
            width: 38px;
            height: 38px;
        }
    }
    
    /* Smaller action buttons */
    .search-toggle,
    .theme-toggle,
    .notification-toggle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        /*width: 34px;
        height: 34px;
        padding: 0;
        justify-content: center;*/
        display: none;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: -4px;
        right: -4px;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .mobile-menu-header {
        padding: 12px;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-status {
        font-size: 0.75rem;
    }
    
    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .mobile-submenu-content a {
        padding: 10px 14px 10px 36px;
    }
    
    /* Search overlay improvements */
    .search-overlay-content {
        padding: 24px;
        margin: 20px;
    }
    
    .search-input-large {
        flex-direction: column;
    }
    
    .search-btn-large {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
    
    .suggestion-tags a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* Better touch targets for mobile */
@media (max-width: 768px) {
    .mobile-nav-link,
    .mobile-submenu-toggle,
    .mobile-contact a,
    .mobile-menu-close,
    .search-toggle,
    .theme-toggle,
    .notification-toggle {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Smooth animations for mobile menu */
    .mobile-menu {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Backdrop blur for iOS */
    @supports (-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px)) {
        .mobile-menu {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.95);
        }
        
        body.dark-theme .mobile-menu {
            background: rgba(26, 26, 46, 0.95);
        }
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Hide quick chat button on mobile devices */
@media (max-width: 992px) {
    #quickContactBtn {
        display: none !important;
    }
}
@media (max-width: 400px) {
    #quickContactBtn {
        display: none !important;
    }
    .btn-sm  {
        display: none;
    }
}
/* ==========================================================================
   CTA BUTTON MOBILE ADJUSTMENTS
   ========================================================================== */

/* Tablet and below - show icon only */
@media (max-width: 992px) {
    .btn-sm {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
    
    .btn-sm span {
        display: none !important;
    }
    
    .btn-sm i {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* Adjust spacing for icon-only button */
    .nav-actions {
        gap: 6px !important;
    }
}

/* Small mobile - hide completely */
@media (max-width: 576px) {
    .btn-sm {
        display: none !important;
    }
}
/* ==========================================================================
   NAVIGATION DROPDOWN
   ========================================================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--gray-light);
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 8px 0;
}

.dropdown-item.view-all {
    color: var(--primary);
    font-weight: 600;
    background: rgba(121, 105, 210, 0.05);
}

.dropdown-item.view-all:hover {
    background: rgba(121, 105, 210, 0.1);
}
/* Mobile Submenu for Pricing */
.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px 12px 40px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-sublink:hover {
    background: rgba(121, 105, 210, 0.05);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-nav-sublink i:first-child {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.mobile-nav-sublink.view-all {
    font-weight: 600;
    color: var(--primary);
    background: rgba(121, 105, 210, 0.08);
}
/* Mobile Menu Button Fixes */
#mobileStartProject {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#mobileStartProject:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(121, 105, 210, 0.3);
}

#mobileStartProject:active {
    transform: translateY(0);
}

/* Mobile contact buttons */
.mobile-contact a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: rgba(121, 105, 210, 0.08);
    border-radius: 10px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
}

.mobile-contact a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-contact a i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Ensure chat button works */
#mobileChatBtn {
    cursor: pointer;
}

/* Touch optimization for mobile buttons */
@media (max-width: 768px) {
    #mobileStartProject,
    .mobile-contact a {
        min-height: 50px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevent text selection on tap */
    #mobileStartProject,
    .mobile-contact a,
    .mobile-nav-link {
        user-select: none;
        -webkit-user-select: none;
    }
}