/* 1. ТВОЙ ОРИГИНАЛЬНЫЙ ТЕКСТ И РАСПОЛОЖЕНИЕ */
.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    
    /* Настройки для эффекта полоски */
    position: relative !important;
    overflow: hidden !important; /* Чтобы полоска не выходила за границы меню */
    padding: 10px 0 !important;
}

/* Настройка самих пунктов меню */
.nav-item {
    margin: 0 2px !important; 
    position: relative !important;
    z-index: 2 !important; /* Текст всегда ПОВЕРХ полоски */
}

/* Твой стиль текста */
.nav-item .nav-link {
    font-size: 10px !important;
    padding: 5px 4px !important;
    white-space: nowrap !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px #000;
    transition: 0.2s ease-in-out;
}

/* Твой эффект наведения */
.nav-item .nav-link:hover {
    color: #ff4444 !important;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8) !important;
    transform: scale(1.05);
}

/* 2. ЭФФЕКТ СКАНИРУЮЩЕЙ ПОЛОСКИ НА ФОНЕ */
.navbar-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 25%; /* Ширина луча сканера */
    height: 100%;
    /* Красный лазерный луч с размытыми краями */
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(250, 82, 82, 0.1), 
        rgba(250, 82, 82, 0.4), 
        rgba(250, 82, 82, 0.1), 
        transparent
    );
    z-index: 1; /* Полоска под текстом */
    animation: scanLine 6s linear infinite; /* Повтор каждые 6 секунд */
}

/* Анимация движения луча слева направо */
@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Убираем маркеры списка и лишние отступы из темы */
ul.navbar-nav {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Если в теме есть точки перед пунктами, скрываем их */
.nav-item::before {
    display: none !important;
}