book / src /components /LandingPage /AnimatedRobot.css
Ammar Ahmed Khan
Add Physical AI Humanoid Book Platform
e2eff86
.animated-robot-container {
display: flex;
justify-content: center;
align-items: center;
height: 300px;
position: relative;
}
.robot {
position: relative;
width: 150px;
height: 200px;
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-15px);
}
100% {
transform: translateY(0px);
}
}
.robot-head {
width: 70px;
height: 60px;
background: linear-gradient(135deg, var(--ai-accent-blue), var(--ai-accent-purple));
border-radius: 50% 50% 40% 40%;
margin: 0 auto;
position: relative;
border: 2px solid var(--ai-border);
}
.robot-eyes {
display: flex;
justify-content: space-around;
padding: 12px 15px 0;
}
.robot-eye {
width: 12px;
height: 12px;
background: white;
border-radius: 50%;
position: relative;
overflow: hidden;
}
.robot-eye::after {
content: '';
position: absolute;
width: 4px;
height: 4px;
background: var(--ai-primary-dark);
border-radius: 50%;
top: 2px;
left: 2px;
}
.robot-eye::before {
content: '';
position: absolute;
width: 6px;
height: 6px;
background: var(--ai-accent-cyan);
border-radius: 50%;
top: 1px;
left: 1px;
animation: blink 4s infinite;
}
@keyframes blink {
0%, 40%, 50%, 60%, 100% {
height: 6px;
top: 1px;
}
45%, 55% {
height: 1px;
top: 5px;
}
}
.robot-body {
width: 90px;
height: 100px;
background: linear-gradient(135deg, var(--ai-secondary-dark), var(--ai-tertiary-dark));
margin: -10px auto;
border-radius: 10px;
border: 2px solid var(--ai-border);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.robot-chest {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}
.robot-heart {
width: 20px;
height: 20px;
background: var(--ai-accent-purple);
border-radius: 50%;
position: relative;
animation: pulse 1.5s infinite;
}
.robot-heart::before,
.robot-heart::after {
content: '';
position: absolute;
width: 10px;
height: 10px;
background: var(--ai-accent-purple);
border-radius: 50%;
}
.robot-heart::before {
top: -8px;
left: 0;
}
.robot-heart::after {
top: 0;
left: -8px;
}
@keyframes pulse {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(166, 0, 255, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 12px rgba(166, 0, 255, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(166, 0, 255, 0);
}
}
.robot-arms {
display: flex;
justify-content: space-between;
width: 120px;
margin: 0 auto;
}
.robot-arm {
width: 15px;
height: 60px;
background: linear-gradient(to bottom, var(--ai-accent-blue), var(--ai-secondary-dark));
border-radius: 10px;
border: 1px solid var(--ai-border);
position: relative;
animation: wave 2s infinite alternate;
}
.left-arm {
transform-origin: top center;
animation-name: wave-left;
}
.right-arm {
transform-origin: top center;
animation-name: wave-right;
}
@keyframes wave-left {
0% { transform: rotate(-10deg); }
100% { transform: rotate(10deg); }
}
@keyframes wave-right {
0% { transform: rotate(10deg); }
100% { transform: rotate(-10deg); }
}
.robot-legs {
display: flex;
justify-content: space-between;
width: 100px;
margin: 0 auto;
position: relative;
top: -10px;
}
.robot-leg {
width: 15px;
height: 50px;
background: linear-gradient(to bottom, var(--ai-secondary-dark), var(--ai-primary-dark));
border-radius: 0 0 10px 10px;
border: 1px solid var(--ai-border);
}