/* Cyborg Image Container & Animation */
.hero-visual {
    /* Ensure the container allows absolute positioning of children if needed, 
       though the image-wrapper will handle it. 
       Just ensuring existing styles don't conflict. 
    */
    position: relative;
    z-index: 10;
}

.cyborg-wrapper {
    position: relative;
    width: 650px;
    /* Increased from 600px */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyborg-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    animation: systemFailure 3s infinite;
    /* Whole image blinking/glitching */
}

/* The Glowing Eye */
.eye-glow {
    position: absolute;
    top: 25%;
    /* Micro-adjustment */
    left: 56%;
    /* Micro-adjustment */
    width: 18px;
    /* Slightly larger */
    height: 18px;
    background: radial-gradient(circle, #00f3ff 20%, rgba(0, 243, 255, 0.5) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px #00f3ff, 0 0 30px #00f3ff;
    mix-blend-mode: screen;
    animation: eyePulse 4s infinite ease-in-out, eyeGlitch 2s infinite;
    /* Combined pulse and glitch */
    opacity: 0.9;
}

/* Optional: Additional tech glow around the robotic parts */
.tech-aura {
    position: absolute;
    top: 15%;
    right: 35%;
    width: 100px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.1), transparent 70%);
    z-index: -1;
    animation: auraPulse 6s infinite alternate;
}

@keyframes systemFailure {

    0%,
    90% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
        transform: translateX(0);
    }

    91% {
        opacity: 0.8;
        filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4)) brightness(1.5);
        transform: translateX(-2px);
    }

    92% {
        opacity: 1;
        transform: translateX(2px);
    }

    93% {
        opacity: 0;
    }

    /* Blink out */
    94% {
        opacity: 1;
        transform: translateX(0);
    }

    96% {
        opacity: 0.5;
        filter: hue-rotate(90deg);
    }

    97% {
        opacity: 1;
        filter: none;
    }
}

@keyframes eyeGlitch {

    0%,
    95% {
        transform: translate(0, 0);
    }

    96% {
        transform: translate(-2px, 2px);
    }

    98% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes eyePulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
        box-shadow: 0 0 10px #00f3ff;
    }

    5%,
    15% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 25px #00f3ff, 0 0 50px #00f3ff;
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Scanning line effect over the cyborg */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
    opacity: 0.3;
    animation: scanDown 4s infinite linear;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanDown {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}