@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.marquee-container {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
    padding: 5px 0;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 980px;
    margin: auto;
    border-radius: 12px;
    user-select: none;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-left: 120px;
    padding-right: 120px;
}

.marquee-line {
    display: block;
    text-align: center;
    white-space: normal;
    width: 100%;
}

.marquee-text {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    user-select: none;
    gap: 12px;
}

/* Digital 7-Segment LED Effect (Matching User Image) */
#visitorNumber,
#totalPageViews,
#onlineUsers {
    font-family: 'Digital Numbers', 'Orbitron', sans-serif !important;
    font-size: 22px;
    background: #000000;
    color: #00f2ff;
    padding: 2px 12px;
    border-radius: 10px;
    border: 1px solid #1a1a1a;
    box-shadow:
        inset 0 0 8px rgba(0, 242, 255, 0.2),
        0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow:
        0 0 5px rgba(0, 242, 255, 0.8),
        0 0 10px rgba(0, 242, 255, 0.4),
        0 0 15px rgba(0, 242, 255, 0.2);
    min-width: 80px;
    text-align: center;
    letter-spacing: 3px;
    display: inline-block;
}



/* --- AI Robot Assistant --- */
.ai-assistant-line {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: static;
}

.ai-robot-wrapper {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
    overflow: visible !important;
}

.ai-robot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.1) drop-shadow(0 0 10px rgba(0, 210, 255, 0.9));
    z-index: 2;
    display: block;
    animation: robotWalk 4s ease-in-out infinite;
}

@keyframes robotWalk {

    0%,
    100% {
        transform: translateX(-10px) rotate(-3deg) translateY(0);
    }

    50% {
        transform: translateX(10px) rotate(3deg) translateY(-8px);
    }
}

.ai-speech {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(15px, -50%);
    background: #ffffff !important;
    color: #222222 !important;
    padding: 10px 20px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    z-index: 99999 !important;
    border: 2px solid #00d2ff !important;
}

.ai-speech.show-hint {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(10px, -50%) !important;
}

.ai-speech::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #ffffff;
}

@media (hover: hover) {
    .ai-robot-wrapper:hover .ai-speech {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(10px, -50%) !important;
    }
}

/* Pulse glow behind robot */
.ai-robot-wrapper::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 210, 255, 0.4);
    border-radius: 50%;
    filter: blur(25px);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* --- Marquee Logo --- */
.marquee-logo-wrapper {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.marquee-logo {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    transition: transform 0.3s ease;
}

.logo-hint-bubble {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-right: 20px;
    transform: translate(-10px, -50%);
    background: #ffffff;
    color: #222222;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 15;
    border: 2px solid #00d2ff;
}

.logo-hint-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* Arrow pointing right */
.logo-hint-bubble::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #ffffff;
}

/* Desktop/Global Defaults */
.marquee-logo-wrapper-left {
    display: flex;
}

.ai-robot-wrapper-mobile {
    display: none;
    /* Hidden by default on desktop */
}

/* Mobile Adjustments */
@media screen and (max-width: 1024px) {
    .marquee-container {
        padding: 5px 0;
    }

    .marquee-content {
        padding-left: 90px;
        padding-right: 90px;
    }

    /* Hide the Left LOGO on mobile */
    .marquee-logo-wrapper-left {
        display: none !important;
    }

    /* Show the Robot on mobile with reduced size */
    .ai-robot-wrapper-mobile {
        display: flex !important;
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 75px;
        height: 75px;
        align-items: center;
        justify-content: center;
        padding: 5px;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.3), 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .ai-robot-mobile {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: robotWalk 4s ease-in-out infinite;
    }

    .logo-hint-bubble {
        font-size: 12px;
        padding: 6px 10px;
        margin-right: 10px;
    }
}

/* Specific Tablet/Mobile Styling for Counters (Remove Glow) */
@media screen and (max-width: 1366px) {

    #visitorNumber,
    #totalPageViews,
    #onlineUsers {
        text-shadow: none !important;
        box-shadow: inset 0 0 5px rgba(0, 242, 255, 0.1), 0 0 5px rgba(0, 0, 0, 0.5) !important;
        letter-spacing: 1px;
        padding: 2px 6px;
    }
}