/* =========================================
   HERO TECH BADGES - INFINITE SCROLL
   ========================================= */

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Wrapper - overflow hidden */
.intro-tech-scroll-wrapper {
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
}

/* Marquee container - flexbox for side-by-side badges */
.intro-tech-marquee {
    display: flex;
    width: fit-content;
    gap: 1.5rem;
    /* INCREASED GAP to prevent overlap */
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
    /* Performance optimization */
}

/* Pause on hover */
.intro-tech-marquee:hover {
    animation-play-state: paused;
}

/* Smooth infinite scroll animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
        /* Account for gap */
    }
}

/* Tech badges container */
.intro-tech-badges {
    display: flex;
    gap: 1.5rem;
    /* INCREASED GAP between badges */
    flex-shrink: 0;
    padding-right: 1.5rem;
    /* Extra padding to prevent overlap */
}

/* Individual badge styling */
.tech-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smooth easing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent shrinking */
}

.tech-mini-badge i {
    font-size: 1.15rem;
    color: var(--primary-accent);
    filter: drop-shadow(0 0 8px var(--primary-accent));
    flex-shrink: 0;
}

.tech-mini-badge:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(123, 44, 191, 0.15));
    border-color: var(--primary-accent);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.3);
}

/* Light Theme */
body.light-theme .tech-mini-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

body.light-theme .tech-mini-badge i {
    color: #6366f1;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

body.light-theme .tech-mini-badge:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .intro-tech-marquee {
        animation-duration: 20s;
        /* Faster on mobile */
        gap: 1rem;
    }

    .intro-tech-badges {
        gap: 1rem;
        padding-right: 1rem;
    }

    .tech-mini-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .tech-mini-badge i {
        font-size: 1rem;
    }
}