/* Continuous Footer Ticker - Never Disappears Between Animations */

/* Footer ticker container - ensure always visible */
.main-footer .footer-ticker-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.9);
    padding: 0.5rem 0;
    z-index: 100;
    display: block;
    white-space: nowrap;
    visibility: visible;
    opacity: 1;
    min-height: 60px; /* Ensure consistent height */
}

/* Footer ticker text - Always visible approach */
.footer-ticker-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 2.4em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(57, 255, 20, 0.8),
        0 0 20px rgba(57, 255, 20, 0.6),
        0 0 30px rgba(57, 255, 20, 0.4);
    position: relative;
    z-index: 3;
    letter-spacing: 1px;
    animation: footerMarqueeContinuous 60s linear infinite;
    width: auto;
    min-width: 200%;
    margin: 0;
    padding: 0;
    word-spacing: normal;
    pointer-events: none;
    visibility: visible;
    opacity: 1;
    /* Use a continuous animation instead of fade in/out */
}

/* Continuous scrolling animation - no disappearing */
@keyframes footerMarqueeContinuous {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Alternative approach with duplicated content to ensure continuous visibility */
.footer-ticker-container::after {
    content: attr(data-text) " " attr(data-text) " " attr(data-text); /* Repeat content to ensure continuity */
    display: inline-block;
    white-space: nowrap;
    font-size: 2.4em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(57, 255, 20, 0.8),
        0 0 20px rgba(57, 255, 20, 0.6),
        0 0 30px rgba(57, 255, 20, 0.4);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    animation: footerMarqueeContinuous 60s linear infinite;
    width: auto;
    margin: 0;
    padding-left: 100px; /* Space between repetitions */
    pointer-events: none;
    vertical-align: top;
}

/* Ensure both ticker elements are always visible */
.footer-ticker-container::before,
.footer-ticker-container::after {
    content: attr(data-text);
    white-space: nowrap;
    display: inline-block;
}

/* Enhanced continuous animation */
.continuous-ticker {
    display: inline-block;
    animation: continuousScroll 60s linear infinite;
    padding-right: 100px; /* Space to the next repetition */
}

/* Ensure ticker never disappears during animation */
.main-footer .footer-ticker-text,
.main-footer .social-links {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    /* Use transform instead of opacity for better performance */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Add duplicate ticker for seamless loop */
.footer-ticker-duplicate {
    position: absolute;
    top: 0;
    left: 100%;
    white-space: nowrap;
    font-size: 2.4em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(57, 255, 20, 0.8),
        0 0 20px rgba(57, 255, 20, 0.6),
        0 0 30px rgba(57, 255, 20, 0.4);
    letter-spacing: 1px;
    animation: continuousScroll 60s linear infinite;
    pointer-events: none;
}

/* Continuous scroll animation that never stops */
@keyframes continuousScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Ensure parent container always has content */
.main-footer .social-links {
    display: inline-block;
    white-space: nowrap;
    width: auto;
    min-width: 100%;
}

/* Mobile responsive for continuous ticker */
@media (max-width: 768px) {
    .footer-ticker-text {
        font-size: 1.8em;
        animation-duration: 40s;
    }
    
    .footer-ticker-container {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .footer-ticker-text {
        font-size: 1.4em;
        animation-duration: 30s;
    }
    
    .footer-ticker-container {
        padding: 1rem 0;
    }
}