:root {
    --eye-w: 120px;
    --eye-h: 80px;
    --iris-size: 50px;
    --pupil-size: 22px;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    overflow: hidden;
}

.face-container {
    display: flex;
    gap: 40px;
}

.eye-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Eyebrows */
.eyebrow {
    width: 80px;
    height: 10px;
    background-color: #333;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.1s ease-out;
}

/* Eye Socket & White */
.eye-white {
    width: var(--eye-w);
    height: var(--eye-h);
    background-color: #ffffff;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Keeps iris inside */
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.05);
}

/* Iris & Pupil */
.iris {
    width: var(--iris-size);
    height: var(--iris-size);
    border-radius: 50%;
    background: radial-gradient(circle, #4A90E2 0%, #2C6AB7 50%, #1C3F72 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out;
}

.pupil {
    width: var(--pupil-size);
    height: var(--pupil-size);
    background-color: #000;
    border-radius: 50%;
    position: relative;
}

.highlight {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    opacity: 0.8;
}

/* Eyelid (The Blink) */
.eyelid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Hidden by default */
    background-color: #f0f2f5; /* Match background color */
    border-bottom: 2px solid #D9D9D9;
    z-index: 10;
    transition: height 0.15s ease-in-out;
}

.eyelid.blinking {
    height: 100%;
}

/* Eyelashes */
.upper-lashes {
    position: absolute;
    top: -5px;
    width: 100%;
    height: 10px;
    border-top: 3px solid #333;
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
}
.iris, .eyebrow {
    transition: transform 0.15s ease-out; /* Smooths out the jitter */
    will-change: transform;
}

.eyelid {
    transition: height 0.1s ease-in-out;
}

/* The blink animation class used by your JS */
.blinking {
    height: 100% !important; /* Forces the eyelid shut */
}