/* 
 * Animated Marquee Styling
 * Premium scrolling icons with glassmorphism and edge masking
 */

.animated-marquee-section {
    background: transparent;
    overflow: hidden;
    position: relative;
    padding: 60px 0;
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Masking effect to fade sides */
.mask-sides-transparent {
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: 200%;
    /* Enough space for two sets */
}

.marquee-content {
    display: flex;
    gap: 20px;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Animations */
.scroll-left .marquee-content {
    animation-name: scrollLeft;
}

.scroll-right .marquee-content {
    animation-name: scrollRight;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* Pause on hover (optional, but premium feel) */
.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

/* Icon Box Styling - Glassmorphism */
.icon-box-premium {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-box-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.4);
    transform: scale(1.1) translateY(-5px);
    color: var(--brand-cyan, #00D9FF);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

/* Light mode adjustments */
[data-bs-theme="light"] .icon-box-premium {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

[data-bs-theme="light"] .icon-box-premium:hover {
    background: rgba(0, 217, 255, 0.05);
    color: var(--brand-red, #E31B23);
}

/* Responsive */
@media (max-width: 768px) {
    .icon-box-premium {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        border-radius: 15px;
    }

    .marquee-content {
        animation-duration: 25s;
        /* Faster on mobile since less distance */
    }
}