/* Technology Stack — service page */
.zidio-tech-stack {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(104, 92, 255, 0.18) 0%, transparent 62%),
        linear-gradient(180deg, #12162a 0%, #0a0c18 100%);
}

.zidio-tech-stack::before,
.zidio-tech-stack::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.35;
}

.zidio-tech-stack::before {
    width: 320px;
    height: 320px;
    top: 10%;
    left: -80px;
    background: rgba(104, 92, 255, 0.35);
}

.zidio-tech-stack::after {
    width: 280px;
    height: 280px;
    bottom: 8%;
    right: -60px;
    background: rgba(56, 189, 248, 0.22);
}

.zidio-tech-stack__inner {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.zidio-tech-stack__header {
    max-width: 760px;
    margin: 0 auto 52px;
    padding: 0 24px;
}

.zidio-tech-stack__header .sub-title {
    color: rgba(226, 232, 240, 0.92);
}

.zidio-tech-stack__title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.zidio-tech-stack__lead {
    color: rgba(226, 232, 240, 0.78);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    margin: 0;
}

.zidio-tech-stack__rows {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.zidio-tech-stack__row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    margin-bottom: 14px;
}

.zidio-tech-stack__row-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    white-space: nowrap;
}

.zidio-tech-stack__row-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(104, 92, 255, 0.45), rgba(104, 92, 255, 0));
}

.zidio-tech-stack__marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.zidio-tech-stack__marquee.is-paused .zidio-tech-stack__track {
    animation-play-state: paused;
}

.zidio-tech-stack__track {
    display: flex;
    width: max-content;
    will-change: transform;
    flex-wrap: nowrap;
}

.zidio-tech-stack__track.is-ready {
    animation: zidio-tech-marquee var(--marquee-duration, 38s) linear infinite;
}

.zidio-tech-stack__marquee--reverse .zidio-tech-stack__track.is-ready {
    animation-direction: reverse;
}

.zidio-tech-stack__group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
}

.zidio-tech-stack__item {
    flex-shrink: 0;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.zidio-tech-stack__icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.zidio-tech-stack__item:hover .zidio-tech-stack__icon,
.zidio-tech-stack__item:focus-within .zidio-tech-stack__icon {
    transform: translateY(-4px);
    background: rgba(104, 92, 255, 0.14);
    border-color: rgba(104, 92, 255, 0.45);
    box-shadow: 0 12px 28px rgba(104, 92, 255, 0.22);
}

.zidio-tech-stack__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.zidio-tech-stack__icon img.is-wide {
    width: 44px;
    height: auto;
    max-height: 28px;
}

.zidio-tech-stack__name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.55);
    line-height: 1.2;
    transition: color 0.25s ease;
}

.zidio-tech-stack__item:hover .zidio-tech-stack__name,
.zidio-tech-stack__item:focus-within .zidio-tech-stack__name {
    color: rgba(226, 232, 240, 0.95);
}

@keyframes zidio-tech-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-1 * var(--marquee-shift, 0px)), 0, 0);
    }
}

@media (max-width: 767px) {
    .zidio-tech-stack {
        padding: 72px 0 80px;
    }

    .zidio-tech-stack__header {
        margin-bottom: 36px;
    }

    .zidio-tech-stack__row-head {
        padding: 0 20px;
    }

    .zidio-tech-stack__item {
        width: 76px;
    }

    .zidio-tech-stack__icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .zidio-tech-stack__icon img {
        width: 30px;
        height: 30px;
    }

    .zidio-tech-stack__name {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zidio-tech-stack__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        max-width: 980px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 12px;
    }

    .zidio-tech-stack__group[aria-hidden="true"] {
        display: none;
    }

    .zidio-tech-stack__group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
        gap: 12px;
    }

    .zidio-tech-stack__marquee {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }
}
