/* eyes/eyes.css – FINAL: REALISTIC HEAD TILT + NOD (NO FLOATING) */
#photoreal-eyes-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 110px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#photoreal-eyes-container.visible {
    opacity: 1;
}

/* Realistic head container – acts like a real head on neck */
.css-eyes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Gentle breathing sway like a real head */
    animation: gentleSway 12s ease-in-out infinite;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes gentleSway {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) translateY(0); }
    25%      { transform: translate(-50%, -50%) rotate(1.5deg) translateY(-2px); }
    75%      { transform: translate(-50%, -50%) rotate(-1.5deg) translateY(-2px); }
}

/* Head states – REALISTIC */
.css-eyes.nod-down    { transform: translate(-50%, -50%) rotate(0deg) translateY(20px) !important; }     /* Reading */
.css-eyes.nod-up      { transform: translate(-50%, -50%) rotate(0deg) translateY(-12px) !important; }    /* Speaking */
.css-eyes.tilt-left   { transform: translate(-50%, -50%) rotate(-8deg) !important; }                    /* Sad/thinking */
.css-eyes.tilt-right  { transform: translate(-50%, -50%) rotate(8deg) !important; }                     /* Excited/happy */

.eye {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

.pupil {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle at 30% 30%, #000 25%, #111 100%);
    border-radius: 50%;
    position: absolute;
    top: 22px;
    left: 22px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.eyelid {
    position: absolute;
    width: 100%;
    height: 50%;
    background: #f4c2c2;
    transition: transform 0.2s ease;
}
.eyelid.top { top: 0; transform: translateY(-100%); }
.eyelid.bottom { bottom: 0; transform: translateY(100%); }
.eyelid.blink { transform: translateY(0) !important; }

/* Mobile */
@media (max-width: 768px) {
    #photoreal-eyes-container { width: 160px; height: 88px; top: 10px; }
    .css-eyes { width: 144px; height: 72px; }
    .eye { width: 64px; height: 64px; }
    .pupil { width: 28px; height: 28px; top: 18px; left: 18px; }
}