body {
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f8ff;
    overflow: hidden;
}

.doraemon-container {
    position: relative;
    width: 500px;
    height: 600px;

    transform: scale(
        clamp(0.55, 0.08vw + 0.6, 1)
    );
}
/* --- HEAD --- */
.head {
    position: absolute;
    width: 320px;
    height: 310px;
    background-color: #009FE3;
    border-radius: 45% 45% 40% 40% / 50% 50% 50% 50%;
    border: 2px solid #333;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 2;
    /* Head above body */
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1);
}

.face-white {
    position: absolute;
    width: 260px;
    height: 220px;
    background-color: white;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    border: 2px solid #333;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* --- EYES --- */
.eyes {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 80px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.eye {
    width: 72px;
    height: 82px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.eye.left {
    margin-right: -2px;
}

.pupil {
    width: 16px;
    height: 20px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    top: 40px;
}

.eye.left .pupil {
    right: 15px;
}

.eye.right .pupil {
    left: 15px;
}

.pupil::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 4px;
    left: 4px;
}

/* --- NOSE --- */
.nose {
    position: absolute;
    width: 45px;
    height: 45px;
    background-color: #C9041A;
    border: 2px solid #333;
    border-radius: 50%;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}

.nose::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    top: 8px;
    left: 10px;
    opacity: 0.8;
}

/* --- MOUTH & WHISKERS --- */
.philtrum {
    position: absolute;
    width: 2px;
    height: 90px;
    background-color: #333;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouth {
    position: absolute;
    width: 200px;
    height: 100px;
    border-bottom: 2px solid #333;
    border-radius: 0 0 100px 100px;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

}

.whiskers {
    position: absolute;
    width: 260px;
    height: 100px;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
}

.whisker {
    position: absolute;
    width: 80px;
    height: 2px;
    background-color: #333;
}

.w-left-1 {
    top: 20px;
    left: 0;
    transform: rotate(15deg);
}

.w-left-2 {
    top: 45px;
    left: -5px;
}

.w-left-3 {
    top: 70px;
    left: 0;
    transform: rotate(-15deg);
}

.w-right-1 {
    top: 20px;
    right: 0;
    transform: rotate(-15deg);
}

.w-right-2 {
    top: 45px;
    right: -5px;
}

.w-right-3 {
    top: 70px;
    right: 0;
    transform: rotate(15deg);
}


/* --- BODY --- */
.body-group {
    position: absolute;
    top: 290px;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 200px;
    z-index: 0;
    /* Behind head */
}

.body-torso {
    position: absolute;
    width: 230px;
    height: 190px;
    background-color: #009FE3;
    border: 2px solid #333;
    border-radius: 30% 30% 20% 20%;
    /* Rounded top */
    top: 0;
    left: 0;
    z-index: 1;
}

/* --- BELLY --- */
.belly {
    position: absolute;
    width: 170px;
    height: 140px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    top: -10px;
    /* Relative to body-group */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    clip-path: circle(80% at 50% 50%);
}

.pocket {
    position: absolute;
    width: 130px;
    height: 65px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 5px 5px 65px 65px;
    top: 55px;
    /* Relative to belly top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* --- ARMS --- */
.arm {
    position: absolute;
    width: 85px;
    height: 50px;
    background-color: #009FE3;
    border: 2px solid #333;
    z-index: 0;
    /* Behind torso slightly */
    top: 310px;
}

.arm.left {
    left: 90px;
    /* Adjust to connect to body */
    transform: rotate(145deg);
    border-radius: 50% 50% 0 0;
}

.arm.right {
    right: 90px;
    transform: rotate(-145deg);
    border-radius: 50% 50% 0 0;
}

.hand {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    z-index: 2;
    top: 350px;

}

.hand.left {
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
}

.hand.right {
    box-shadow: inset 5px -5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
}

.hand.left {
    left: 60px;
}

.hand.right {
    right: 60px;
}

/* --- FEET & LEGS --- */
/* To create the 'legs', we cut a small arch at the bottom of the body */
.leg-gap {
    position: absolute;
    bottom: 0px;
    /* Inside the body torso */
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 30px;
    background-color: #f0f8ff;
    /* Same as background to simulate gap */
    border: 2px solid #333;
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    z-index: 4;
}

/* Feet */
.foot {
    position: absolute;
    width: 115px;
    height: 45px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 25px 15px 15px 10px;
    /* Asymmetric oval shape */
    top: 468px;
    z-index: 3;
}

.foot.left {
    left: 135px;
    transform: rotate(-1deg);
    border-radius: 20px 30px 20px 20px;
}

.foot.right {
    right: 135px;
    transform: rotate(-1deg) translateX(10px);
    /* Mirror */
    border-radius: 30px 20px 20px 20px;
}

/* --- COLLAR & BELL --- */
.collar {
    position: absolute;
    width: 230px;
    height: 25px;
    background-color: #C9041A;
    border: 2px solid #333;
    border-radius: 15px;
    top: 285px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.bell {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #F1C40F;
    border: 2px solid #333;
    border-radius: 50%;
    top: 295px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    overflow: hidden;
}

.bell-line-top {
    position: absolute;
    width: 100%;
    height: 4px;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    top: 12px;
}

.bell-hole {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.bell-line-vertical {
    position: absolute;
    width: 2px;
    height: 15px;
    background-color: #333;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}


@media (max-width: 420px) {
    body {
        align-items: flex-start;
    }
}

/* --- POCKET INTERACTION --- */
.pocket {
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* idle breathing animation */
@keyframes pocketPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.03); }
}

.pocket {
    animation: pocketPulse 3s ease-in-out infinite;
}

/* hover intent */
.pocket:hover {
    animation-play-state: paused;
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* click feedback */
.pocket:active {
    transform: translateX(-50%) scale(0.95);
}

/* --- EYE BLINK --- */
.eye {
    transform-origin: center;
    animation: blink 6s infinite;
}

@keyframes blink {
    0%, 95%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.1); }
}
.pupil {
    animation: pupilMove 4s ease-in-out infinite;
}

@keyframes pupilMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(2px, -1px); }
    50% { transform: translate(-2px, 1px); }
    75% { transform: translate(1px, 2px); }
    100% { transform: translate(0, 0); }
}

.bio {

    text-align: center;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    z-index: 20;
    user-select: none;
}

/* Name */
.bio h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    color: #0a0a0a;
    text-transform: uppercase;
    text-shadow: 
        0 2px 0 rgba(0,0,0,0.1),
        0 0 12px rgba(0,159,227,0.15);
}

/* Subtitle */
.bio h3 {
    margin-top: 0.4rem;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    color: #444;
    opacity: 0.85;
}

/* Subtle entrance animation */


@keyframes bioFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tweak */
@media (max-width: 480px) {
    .bio {
        top: 2%;
    }
}
