.robot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.robot {
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.head {
    position: relative;
    width: 300px;
    height: 300px;
    background: #ffc107;
    border-radius: 50px;
    border: 4px solid #1e1e1e;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.antenna {
    position: absolute;
    top: -30px;
    width: 15px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px 8px 0 0;
    border: 2px solid #1e1e1e;
    border-bottom: none;
    animation: sway 2s ease-in-out infinite;
}

.left-antenna {
    left: 60px;
    transform-origin: bottom center;
}

.right-antenna {
    right: 60px;
    transform-origin: bottom center;
}

.ear {
    position: absolute;
    top: 110px;
    width: 40px;
    height: 60px;
    background: #3b82f6;
    border-radius: 20px;
    border: 2px solid #1e1e1e;
    animation: wiggle 3s ease-in-out infinite;
}

.left-ear {
    left: -30px;
    transform-origin: center right;
}

.right-ear {
    right: -30px;
    transform-origin: center left;
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

@keyframes smile {

    0%,
    100% {
        transform: translateX(-50%) scaleY(1);
    }

    50% {
        transform: translateX(-50%) scaleY(1.1);
    }
}

.eye {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-eye {
    top: 70px;
    left: 50px;
}

.right-eye {
    top: 70px;
    right: 50px;
}

.pupil {
    width: 30px;
    height: 30px;
    background: #1e1e1e;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.nose {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid #1e1e1e;
}

.mouth {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
   background: linear-gradient(145deg, #7a0e0e, #c81e1e);
    border: 3px solid #1e1e1e;
    border-radius: 0 0 50px 50px;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2);
    animation: smile 2s ease-in-out infinite;
}

.mouth::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.status {
    font-size: 18px;
    color: #1e1e1e;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    text-align: center;
}

.status:hover {
    background: rgba(255, 255, 255, 1);
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: #64748b;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.control-btn:hover {
    background: #475569;
    transform: scale(1.05);
}

/* Tablet responsiveness (768px and below) */
@media (max-width: 768px) {
    .head {
        width: 240px;
        height: 240px;
    }

    .eye {
        width: 64px;
        height: 64px;
    }

    .pupil {
        width: 24px;
        height: 24px;
    }

    .left-eye {
        top: 56px;
        left: 40px;
    }

    .right-eye {
        top: 56px;
        right: 40px;
    }

    .nose {
        width: 24px;
        height: 24px;
        top: 120px;
    }

    .mouth {
        width: 80px;
        height: 40px;
        bottom: 48px;
        border-radius: 0 0 40px 40px;
    }

    .mouth::before {
        top: 8px;
    }

    .antenna {
        width: 12px;
        height: 32px;
        top: -24px;
    }

    .left-antenna {
        left: 48px;
    }

    .right-antenna {
        right: 48px;
    }

    .ear {
        width: 32px;
        height: 48px;
        top: 88px;
    }

    .left-ear {
        left: -24px;
    }

    .right-ear {
        right: -24px;
    }

    .status {
        font-size: 16px;
        padding: 8px 16px;
    }

    .control-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Mobile responsiveness (480px and below) */
@media (max-width: 480px) {
    .head {
        width: 200px;
        height: 200px;
    }

    .eye {
        width: 56px;
        height: 56px;
    }

    .pupil {
        width: 20px;
        height: 20px;
    }

    .left-eye {
        top: 48px;
        left: 32px;
    }

    .right-eye {
        top: 48px;
        right: 32px;
    }

    .nose {
        width: 20px;
        height: 20px;
        top: 100px;
    }

    .mouth {
        width: 64px;
        height: 32px;
        bottom: 40px;
        border-radius: 0 0 32px 32px;
    }

    .mouth::before {
        top: 6px;
    }

    .antenna {
        width: 10px;
        height: 28px;
        top: -20px;
    }

    .left-antenna {
        left: 40px;
    }

    .right-antenna {
        right: 40px;
    }

    .ear {
        width: 28px;
        height: 40px;
        top: 72px;
    }

    .left-ear {
        left: -20px;
    }

    .right-ear {
        right: -20px;
    }

    .status {
        font-size: 14px;
        padding: 6px 12px;
    }

    .control-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Small mobile responsiveness (360px and below) */
@media (max-width: 360px) {
    .head {
        width: 180px;
        height: 180px;
    }

    .eye {
        width: 48px;
        height: 48px;
    }

    .pupil {
        width: 18px;
        height: 18px;
    }

    .left-eye {
        top: 40px;
        left: 28px;
    }

    .right-eye {
        top: 40px;
        right: 28px;
    }

    .nose {
        width: 18px;
        height: 18px;
        top: 90px;
    }

    .mouth {
        width: 56px;
        height: 28px;
        bottom: 36px;
        border-radius: 0 0 28px 28px;
    }

    .mouth::before {
        top: 5px;
    }

    .antenna {
        width: 8px;
        height: 24px;
        top: -18px;
    }

    .left-antenna {
        left: 36px;
    }

    .right-antenna {
        right: 36px;
    }

    .ear {
        width: 24px;
        height: 36px;
        top: 64px;
    }

    .left-ear {
        left: -18px;
    }

    .right-ear {
        right: -18px;
    }

    .status {
        font-size: 12px;
        padding: 5px 10px;
    }

    .control-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}