/* Motion graphic layer – floating shapes over hero */

.motion-graphic-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.motion-graphic-layer .motion-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(60px);
    will-change: transform;
}

.motion-graphic-layer .motion-shape--1 {
    width: min(45vw, 420px);
    height: min(45vw, 420px);
    left: 5%;
    top: 15%;
    background: radial-gradient(circle, rgba(120, 180, 255, 0.5) 0%, transparent 70%);
    animation: motion-float-1 18s ease-in-out infinite;
}

.motion-graphic-layer .motion-shape--2 {
    width: min(35vw, 320px);
    height: min(35vw, 320px);
    right: 10%;
    top: 25%;
    background: radial-gradient(circle, rgba(200, 160, 255, 0.4) 0%, transparent 70%);
    animation: motion-float-2 22s ease-in-out infinite;
    animation-delay: -4s;
}

.motion-graphic-layer .motion-shape--3 {
    width: min(25vw, 220px);
    height: min(25vw, 220px);
    left: 35%;
    bottom: 20%;
    background: radial-gradient(circle, rgba(255, 220, 180, 0.35) 0%, transparent 70%);
    animation: motion-float-3 16s ease-in-out infinite;
    animation-delay: -8s;
}

.motion-graphic-layer .motion-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    opacity: 0.6;
    transform-origin: left center;
}

.motion-graphic-layer .motion-line--1 {
    width: 30%;
    left: 15%;
    top: 30%;
    animation: motion-line-drift 20s linear infinite;
}

.motion-graphic-layer .motion-line--2 {
    width: 25%;
    right: 20%;
    bottom: 35%;
    transform: rotate(-15deg);
    animation: motion-line-drift 24s linear infinite reverse;
    animation-delay: -6s;
}

.motion-graphic-layer .motion-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: motion-ring-pulse 12s ease-in-out infinite;
}

.motion-graphic-layer .motion-ring--1 {
    width: min(50vw, 500px);
    height: min(50vw, 500px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.motion-graphic-layer .motion-ring--2 {
    width: min(70vw, 680px);
    height: min(70vw, 680px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -3s;
    animation-duration: 16s;
}

@keyframes motion-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(8%, -5%) scale(1.05);
    }
    66% {
        transform: translate(-5%, 8%) scale(0.98);
    }
}

@keyframes motion-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10%, -8%) scale(1.08);
    }
}

@keyframes motion-float-3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(6%, 4%);
    }
    75% {
        transform: translate(-4%, -6%);
    }
}

@keyframes motion-line-drift {
    0% {
        opacity: 0.4;
        transform: translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateX(20px);
    }
    100% {
        opacity: 0.4;
        transform: translateX(0);
    }
}

@keyframes motion-ring-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .motion-graphic-layer .motion-shape,
    .motion-graphic-layer .motion-line,
    .motion-graphic-layer .motion-ring {
        animation: none;
        opacity: 0.5;
    }
}
