/* Reset default margin and set dark background */
body {
  margin: 0;
  background-color: #0b0b0b;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 100vh;
  padding: 200px;
  padding-bottom: 40px;
  perspective: 800px;
}

/* Robot Head */
.robot-head {
  width: 400px;
  height: 250px;
  background: linear-gradient(145deg, #1a1a1a, #000000);
  border-radius: 30px;
  position: relative;
  box-shadow: 0 0 40px #0ff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: transform 0.5s ease;

}

.eye{
  position: relative;
  bottom: 10px;
  width: 60px;
  height: 100px;
  background: radial-gradient(circle, #00ccff 20%, #0ff 70%, #003366 100%);
  border-radius: 40%;
  box-shadow: 0 0 30px #00ccff, inset 0 0 20px #0ff;
  transition: all 0.3s ease-in-out;
}

/* Extra glowing effect on hover (optional) */
.eye:hover {
  box-shadow: 0 0 60px #00f0ff, inset 0 0 30px #00aaff;
  transform: scale(1.1);
}

.mouth {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 12px;
  background-color: #00f0ff;
  border-radius: 40px 40px;
  transition: all 0.4s ease;
}

.tag {
  margin-top: 20px;
  font-size: 40px;
  color: #00f0ff;
}

.controls {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  background-color: #1a1a1a;
  color: #00f0ff;
  border: 2px solid #00f0ff;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #00f0ff;
  color: black;
}

/* happy */
@keyframes happyHeadShake {
  0%, 100%   { transform: translateY(0) rotateX(0deg) scale(1); }
  20%        { transform: translateY(-30px) rotateX(-20deg) scale(1.05); }
  40%        { transform: translateY(0) rotateX(0deg) scale(1); }
  60%        { transform: translateY(-30px) rotateX(-20deg) scale(1.05); }
  80%        { transform: translateY(0) rotateX(0deg) scale(1); }
}

.robot-head.happy {
  animation: happyHeadShake 2s ease-in-out;
}

.eye.happy {
  height: 100px;
  width: 80px;
  background: radial-gradient(circle, #00ccff 20%, #0ff 70%, #003366 100%);
  border-radius: 40%;
  box-shadow: 0 0 30px #00ccff, inset 0 0 20px #0ff;
  transition: all 0.3s ease-in-out;
}

.mouth.happy {
  border-radius: 0 0 50px 50px;
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 100px;
  height: 12px;
  background-color: #00f0ff;
  transition: all 0.4s ease;
}

/* Sad */
.robot-head.sad {
  transform: translateY(20px) rotateX(-20deg) scale(0.95);
}

#leftEye.sad {
  width: 100px;
  height: 60px;
  background: radial-gradient(circle at center bottom, #00ccff 20%, #0ff 70%, #003366 100%);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  transform: rotate(-10deg);
  transform-origin: center center;
  box-shadow: 0 0 30px #00ccff, inset 0 0 15px #0ff;
  transition: all 0.6s ease-in-out;
}

#rightEye.sad {
  width: 100px;
  height: 60px;
  background: radial-gradient(circle at center bottom, #00ccff 20%, #0ff 70%, #003366 100%);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  transform: rotate(10deg);
  transform-origin: center center;
  box-shadow: 0 0 30px #00ccff, inset 0 0 15px #0ff;
  transition: all 0.6s ease-in-out;
}

.mouth.sad {
  border-radius: 50px 50px 0 0;
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 100px;
  height: 12px;
  background-color: #00f0ff;
  transition: all 0.4s ease;
}

/* love */
@keyframes lovePulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.05); }
  50%  { transform: scale(1); }
  75%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.robot-head.love {
  animation: lovePulse 1s infinite ease-in-out;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1.2); }
  50% { transform: scale(1.4); }
}

.eye.love {
  width: 60px;
  height: 60px;
  background-color: #ff4d88;
  position: relative;
  box-shadow: 0 0 20px #ff80b3, inset 0 0 10px #ff3399;
  clip-path: polygon(
    50% 80%, 
    0% 30%, 
    0% 10%, 
    20% 0%, 
    50% 20%, 
    80% 0%, 
    100% 10%, 
    100% 30%
  );
  transform: scale(1.2);
  animation: pulseHeart 1s infinite ease-in-out;
}

.mouth.love {
  width: 80px;
  height: 12px;
  background-color: #ff4fd4;
  border-radius: 0 0 50px 50px;
}

/* shocked */
.eye.shocked {
  background: radial-gradient(circle, #ffcc00 30%, #ff3300 100%);
  box-shadow: 0 0 10px #ff0;
  animation: pulseShock 0.5s infinite alternate;
}

@keyframes pulseShock {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

.mouth.shocked {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ff0;
}

/* angry */
#leftEye.angry {
  width: 100px;
  height: 60px;
  background: radial-gradient(circle at center bottom, #00ccff 20%, #0ff 70%, #003366 100%);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  transform: rotate(30deg);
  transform-origin: center center;
  box-shadow: 0 0 30px #00ccff, inset 0 0 15px #0ff;
  transition: all 0.6s ease-in-out;
}

#rightEye.angry {
  width: 100px;
  height: 60px;
  background: radial-gradient(circle at center bottom, #00ccff 20%, #0ff 70%, #003366 100%);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  transform: rotate(-30deg);
  transform-origin: center center;
  box-shadow: 0 0 30px #00ccff, inset 0 0 15px #0ff;
  transition: all 0.6s ease-in-out;
}

.mouth.angry {
  border-radius: 10px;
  height: 10px;
  width: 100px;
  background-color: red;
}

/* surprised */
.eye.surprised {
  height: 100px;
  width: 80px;
  background: radial-gradient(circle, #00ccff 20%, #0ff 70%, #003366 100%);
  border-radius: 40%;
  box-shadow: 0 0 30px #00ccff, inset 0 0 20px #0ff;
  transition: all 0.6s ease-in-out;
}

.mouth.surprised {
  border-radius: 50%;
  height: 50px;
  width: 50px;
  background-color: #00f0ff;
}

/* natural */
.eye.neutral {
  position: relative;
  bottom: 10px;
  width: 60px;
  height: 100px;
  background: radial-gradient(circle, #00ccff 20%, #0ff 70%, #003366 100%);
  border-radius: 40%;
  box-shadow: 0 0 30px #00ccff, inset 0 0 20px #0ff;
  transition: all 0.6s ease-in-out;
}

.mouth.neutral {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 12px;
  background-color: #00f0ff;
  border-radius: 40px;
  transition: all 0.4s ease;
}

/* curious */
#leftEye.curious {
  transform: rotate(-15deg) scale(1.1);
}

#rightEye.curious {
  transform: rotate(15deg) scale(1.1);
}

.mouth.curious {
  background-color: #00f0ff;
  width: 80px;
  height: 10px;
  border-radius: 50%;
  transform: rotate(5deg);
}

/* furious */
.eye.furious {
  background: radial-gradient(circle, #ff1e1e 20%, #ff4d4d 70%, #7a0000 100%);
  box-shadow: 0 0 25px #ff0000, inset 0 0 15px #ff1e1e;
  transform: rotate(20deg);
}

.mouth.furious {
  background-color: red;
  height: 6px;
  width: 80px;
  border-radius: 5px;
}

/* sleepy */
.eye.sleepy {
  width: 80px;
  height: 20px;
  background: linear-gradient(to bottom, #003366, #0ff);
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff;
}

.mouth.sleepy {
  width: 60px;
  height: 6px;
  background-color: #0ff;
  border-radius: 50%;
}

/* scared */
.eye.scared {
  background: radial-gradient(circle, #ccf 30%, #88f 80%);
  border-radius: 50%;
  animation: blink 0.6s infinite alternate;
}

@keyframes blink {
  0% { height: 100px; }
  100% { height: 60px; }
}

.mouth.scared {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #0ff;
}

/* flirty */
.eye.flirty {
  background: radial-gradient(circle, #ff69b4 25%, #ffc0cb 75%);
  box-shadow: 0 0 20px #ff69b4;
  border-radius: 50%;
}

.mouth.flirty {
  width: 90px;
  height: 10px;
  background-color: #ff69b4;
  border-radius: 0 0 50px 50px;
}

/* crying */
.eye.crying {
  background: radial-gradient(circle, #99ccff 30%, #3366cc 100%);
  position: relative;
}

.eye.crying::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 6px;
  height: 12px;
  background: #66ccff;
  border-radius: 50%;
  animation: tearDrop 1s infinite;
}

@keyframes tearDrop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.mouth.crying {
  border-radius: 50px 50px 0 0;
  width: 80px;
  height: 12px;
  background-color: #00f0ff;
}

/* glitch */
.eye.glitch {
  animation: glitchEye 0.2s infinite alternate;
}

@keyframes glitchEye {
  0% { background: #00f0ff; }
  100% { background: red; }
}

.mouth.glitch {
  width: 80px;
  height: 10px;
  background-color: #f0f;
  animation: glitchMouth 0.1s infinite alternate;
}

@keyframes glitchMouth {
  0% { border-radius: 50%; }
  100% { border-radius: 0; }
}

/* cool */
.eye.cool {
  width: 140px;
  height: 70px;
  background: black;
  border: 3px solid #00f0ff;
  border-radius: 10px 0px 30px 30px;
  box-shadow: 0 0 15px #00f0ff;
  position: relative;
}

/* Bridge connecting sunglasses */
.eye.cool::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 100%;
  width: 20px;
  height: 3px;
  background: #00f0ff;
  border-radius: 2px;
  box-shadow: 0 0 5px #00f0ff;
}

.eye.cool::after {
  box-shadow:
    0 0 5px #00f0ff,
    -75px 0 white,
    -45px 0 white;
  background: #00f0ff;
  content: "";
  position: absolute;
  top: 10px;
  left: 100%;
  width: 20px;
  height: 3px;
  border-radius: 2px;
}

.mouth.cool {
  width: 80px;
  height: 8px;
  background-color: #00f0ff;
  border-radius: 20px;
}

/* sick */
.eye.sick {
  background: radial-gradient(circle, #99ffcc, #009966);
  opacity: 0.7;
}

.mouth.sick {
  width: 80px;
  height: 10px;
  background: green;
  border-radius: 0 0 10px 10px;
}

/* celebration */
.eye.celebration {
  background: radial-gradient(circle, gold, orange, red);
  box-shadow: 0 0 20px yellow;
}

.mouth.celebration {
  width: 90px;
  height: 15px;
  background: linear-gradient(to right, red, orange, yellow);
  border-radius: 0 0 50px 50px;
}

/* nervous */
.eye.nervous {
  transform: scaleY(0.8);
  background: #0099cc;
}

.mouth.nervous {
  width: 80px;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 4px,
    #000 4px,
    #000 8px
  );
  border-radius: 4px;
}

/* blank */
.eye.blank {
  background: #333;
  opacity: 0.3;
}

.mouth.blank {
  width: 80px;
  height: 2px;
  background: #444;
}































/* ==============
expression icon
================= */

.expression-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: none; /* Hidden by default */
  z-index: 10; /* Ensure it's above other elements */
}

.expression-icon.happy {
  display: block;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/3/36/Emoji_u2764.svg/240px-Emoji_u2764.svg.png"); /* ❤️ Heart */
}

.expression-icon.sad {
  display: block;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Noto_Emoji_Pie_1f622.svg/240px-Noto_Emoji_Pie_1f622.svg.png"); /* 😢 Crying */
}

.expression-icon.angry {
  display: block;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Twemoji2_1f4a2.svg/240px-Twemoji2_1f4a2.svg.png"); /* 💢 Anger symbol */
}
