/* Imaging Advantage Differentiator Overrides */

/* Grid abstract background */
.grid-overlay {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Background Scanner Line that sweeps down the hero */
.imaging-scanner-line {
    width: 100%;
    height: 3px;
    background: var(--color-accent-gold);
    box-shadow: 0 0 20px var(--color-accent-gold), 0 0 40px var(--color-accent-gold);
    position: absolute;
    top: 0;
    left: 0;
    animation: scanSweep 6s infinite linear;
    opacity: 0.4;
}

@keyframes scanSweep {
    0% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(100vh);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Text glow FX */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Data Stream animations mapping to hero image */
.imaging-data-stream {
    animation: typingPulse 3s infinite step-end;
}

@keyframes typingPulse {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}

/* 2D vs 3D CSS Comparison Overrides */
.image-comparison-slider {
    touch-action: pan-y;
    /* Prevent scrolling when swiping sideways on mobile */
    user-select: none;
    background: #000;
}

.comparison-before img {
    /* Critical to prevent skewed stretching, must match wrapper size natively */
    object-position: left center;
}

.slider-button {
    transition: transform 0.1s ease;
}

.slider-button:active {
    transform: scale(0.9);
}

.drop-shadow-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Tech Rings Microinteraction */
.tech-rings {
    width: 300px;
    height: 300px;
}

.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--color-accent-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.tr-1 {
    width: 100%;
    height: 100%;
    animation: spinRight 20s linear infinite;
}

.tr-2 {
    width: 70%;
    height: 70%;
    border-style: solid;
    opacity: 0.1;
    animation: spinLeft 15s linear infinite;
}

.tr-3 {
    width: 40%;
    height: 40%;
    opacity: 0.5;
    animation: spinRight 10s linear infinite;
}

@keyframes spinRight {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinLeft {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* CTA Scanner Match */
.imaging-cta-scanner {
    animation: ctaScanSweep 4s infinite ease-in-out;
}

@keyframes ctaScanSweep {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(100%);
        bottom: 0;
        top: auto;
    }
}