/* Section divider with beam effect */
.section-divider {
    position: relative;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: var(--z-section-divider);
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    opacity: 1;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-cyan);
    top: 1px;
    left: -50%;
    animation: moveBackAndForth 4s linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan),
                0 0 20px var(--accent-cyan);
}

/* Animation for the beam */
@keyframes moveBackAndForth {
    0% { left: -50%; }
    45% { left: 100%; }
    50% { left: 100%; }
    95% { left: -50%; }
    100% { left: -50%; }
}

/* Footer divider specific styles */
.footer-divider {
    position: relative;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: calc(var(--z-footer) + 1);
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    opacity: 1;
    line-height: 0;
    font-size: 0;
}

.footer-divider::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-cyan);
    top: 1px;
    left: -50%;
    animation: moveBackAndForth 4s linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan),
                0 0 20px var(--accent-cyan);
    opacity: 1;
}

/* Pre-footer divider */
.pre-footer-divider {
    position: relative;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: var(--z-section-divider);
    pointer-events: none;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    opacity: 1;
    line-height: 0;
    font-size: 0;
}

.pre-footer-divider::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-cyan);
    top: 1px;
    left: -50%;
    animation: moveBackAndForth 4s linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan),
                0 0 20px var(--accent-cyan);
}
