
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #111827;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.robot {
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
}

.face {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: auto;
  background: #050b18;
  border: 9px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px #00e5ff55;
}

.eyes {
  display: flex;
  gap: 35px;
  align-items: center;
}

.eye {
  width: 55px;
  height: 85px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 25px #00e5ff;
  animation: blink 5s infinite;
}

.mouth {
  width: 55px;
  height: 25px;
  margin-top: 22px;
  border-bottom: 5px solid #00e5ff;
  border-radius: 50%;
}

h2 {
  margin-top: 25px;
  letter-spacing: 4px;
  color: #00e5ff;
}

p {
  color: #9ca3af;
}

@keyframes blink {
  0%, 44%, 48%, 100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.05);
  }
}

/* Neo Bot - 12 Emotion Controls */

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
  max-width: 360px;
}

.controls button {
  background: #10283a;
  color: white;
  border: 1px solid #00e5ff;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}

.controls button:active {
  background: #00e5ff;
  color: #050b18;
}

/* Normal */
.normal .eye {
  height: 85px;
}

/* Happy */
.happy .eye {
  height: 35px;
  border-radius: 50% 50% 15% 15%;
}
.happy .mouth {
  width: 75px;
  height: 35px;
}

/* Sad */
.sad .eye {
  height: 65px;
}
.sad .mouth {
  border-bottom: none;
  border-top: 5px solid #00e5ff;
  margin-top: 35px;
}

/* Thinking */
.thinking .eye:last-child {
  height: 45px;
}
.thinking .mouth {
  width: 25px;
  border-radius: 0;
}

/* Sleeping */
.sleeping .eye {
  height: 8px;
  border-radius: 10px;
  animation: none;
}
.sleeping .mouth {
  width: 20px;
}

/* Kiss */
.kiss .eye {
  height: 35px;
}
.kiss .mouth {
  width: 22px;
  height: 18px;
  border: 5px solid #00e5ff;
  border-radius: 50%;
}

/* Angry */
.angry .eye {
  height: 50px;
  border-radius: 15px;
}
.angry .eye:first-child {
  rotate: 20deg;
}
.angry .eye:last-child {
  rotate: -20deg;
}
.angry .mouth {
  width: 45px;
  border-radius: 0;
}

/* Surprised */
.surprised .eye {
  width: 65px;
  height: 95px;
}
.surprised .mouth {
  width: 28px;
  height: 35px;
  border: 5px solid #00e5ff;
  border-radius: 50%;
}

/* Love */
.love .eye {
  background: #ff4d9d;
  box-shadow: 0 0 25px #ff4d9d;
}
.love .mouth {
  width: 75px;
  height: 35px;
}

/* Wink */
.wink .eye:first-child {
  height: 8px;
  animation: none;
}

/* Confused */
.confused .eye:first-child {
  height: 45px;
}
.confused .eye:last-child {
  height: 75px;
}
.confused .mouth {
  width: 35px;
  rotate: 15deg;
}

/* Excited */
.excited .eye {
  width: 60px;
  height: 100px;
  box-shadow: 0 0 40px #00e5ff;
}
.excited .mouth {
  width: 90px;
  height: 45px;
}

/* Neo Bot V2 - Smooth Facial Movement */

.eye {
  transition:
    width 0.35s ease,
    height 0.35s ease,
    background-color 0.35s ease,
    border-radius 0.35s ease,
    box-shadow 0.35s ease,
    rotate 0.35s ease;
}

.mouth {
  transition:
    width 0.35s ease,
    height 0.35s ease,
    border-radius 0.35s ease,
    rotate 0.35s ease;
}

/* Better touch response */
.controls button {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.controls button:active {
  transform: scale(0.94);
}

/* Neo Bot V2 - Heart Eyes */

.love .eye {
  width: 55px;
  height: 55px;
  background: #ff4d9d;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  position: relative;
  transform: rotate(-45deg);
  margin: 15px 5px;
}

.love .eye::before,
.love .eye::after {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  background: #ff4d9d;
  border-radius: 50%;
}

.love .eye::before {
  top: -27px;
  left: 0;
}

.love .eye::after {
  top: 0;
  left: 27px;
}

.love .mouth {
  border-bottom-color: #ff4d9d;
}

/* Neo Bot V2 - Flying Kiss */

.face {
  position: relative;
}

.flying-kiss {
  position: absolute;
  left: 50%;
  top: 60%;
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
  animation: flyKiss 1.5s ease-out forwards;
}

@keyframes flyKiss {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(50px, -130px) scale(1.6);
  }
}

/* Neo Bot V2 - Angry Eyebrows */

.angry .eyes {
  position: relative;
}

.angry .eyes::before,
.angry .eyes::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 65px;
  height: 10px;
  background: #00e5ff;
  border-radius: 10px;
  box-shadow: 0 0 15px #00e5ff;
}

.angry .eyes::before {
  left: -5px;
  transform: rotate(22deg);
}

.angry .eyes::after {
  right: -5px;
  transform: rotate(-22deg);
}

.angry .mouth {
  border-bottom: none;
  border-top: 5px solid #00e5ff;
  border-radius: 50%;
  margin-top: 35px;
}

/* Neo Bot V2 - Natural Eye Movement */

.face.normal .eyes {
  animation: lookAround 8s ease-in-out infinite;
}

@keyframes lookAround {
  0%, 15%, 85%, 100% {
    transform: translateX(0);
  }

  25%, 40% {
    transform: translateX(-18px);
  }

  55%, 70% {
    transform: translateX(18px);
  }
}

/* Neo Bot V2 - Touch Reactive Eyes */

.face.normal.touching .eyes {
  animation: none;
  transform: translate(
    var(--look-x, 0px),
    var(--look-y, 0px)
  );
  transition: transform 0.15s ease;
}

.face {
  touch-action: none;
}

/* Neo Bot V2 - Talking Animation */

.face.talking .mouth {
  width: 38px;
  height: 32px;
  border: 5px solid #00e5ff;
  border-radius: 50%;
  animation: neoTalk 0.3s ease-in-out infinite alternate;
}

@keyframes neoTalk {
  from {
    height: 8px;
    width: 30px;
  }

  to {
    height: 38px;
    width: 45px;
  }
}

.controls button.talk-button {
  border-color: #ffcc00;
  color: #ffcc00;
}

/* NEO BOT MODEL 02 - CLEAN DASHBOARD */
/* Step 24.2 - Hide old testing controls */

.robot > .controls {
  display: none !important;
}

.robot > p:not(:first-of-type) {
  display: none !important;
}

/* NEO BOT MODEL 02 - DIGITAL CLOCK */
/* Step 24.2C */

#neo-clock-box {
  margin: 25px auto 10px;
  padding: 15px 20px;
  width: fit-content;
  max-width: 95%;
  background: #0b2030;
  border: 1px solid #00e5ff55;
  border-radius: 18px;
  box-shadow: 0 0 18px #00e5ff22;
  text-align: center;
}

#neo-clock-time {
  color: #00e5ff;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 2px;
}

#neo-clock-date {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

/* NEO BOT - INDIA & UAE DUAL CLOCK */
/* Step 24.3B */

#neo-world-clock {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #00e5ff44;
}

#neo-world-clock > div {
  background: #102b3c;
  color: #e5faff;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #00e5ff44;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

/* NEO BOT - STANDBY STATUS */
/* Step 24.4B */

#neo-standby {
  margin: 18px auto 25px;
  padding: 12px 18px;
  width: fit-content;
  max-width: 95%;
  background: #0b2030;
  border: 1px solid #00e5ff44;
  border-radius: 16px;
  text-align: center;
}

#neo-standby-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #00e5ff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

#neo-status-dot {
  width: 9px;
  height: 9px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff;
  animation: neoPulse 2s infinite;
}

#neo-standby-message {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

@keyframes neoPulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* NEO BOT - TOP LEFT LOCAL CLOCK */
/* Step 24.5A */

/* Hide India & UAE dual clocks */
#neo-world-clock {
  display: none !important;
}

/* Move local clock to top left */
#neo-clock-box {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  margin: 0;
  padding: 8px 12px;
  max-width: 65%;
  background: #0b2030;
  border: 1px solid #00e5ff44;
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
}

/* Small digital time */
#neo-clock-time {
  font-size: 19px;
  letter-spacing: 0.5px;
}

/* Small date */
#neo-clock-date {
  margin-top: 3px;
  font-size: 10px;
  white-space: nowrap;
}

/* Keep robot centered below the clock */
.robot {
  padding-top: 75px;
}

/* NEO BOT - CLOCK OVERLAP FIX */
/* Step 24.5B */

/* Reserve space above Neo's face */
.robot {
  padding-top: 145px;
}

/* Keep clock at top left */
#neo-clock-box {
  top: 12px;
  left: 12px;
}

/* Prevent face from touching the clock */
.face {
  margin-top: 10px;
}

/* NEO BOT - MOBILE SCREEN OPTIMIZATION */
/* Step 24.6 - Medium Face */

body {
  min-height: 100dvh;
  align-items: flex-start;
}

.robot {
  padding: 100px 12px 15px;
  min-height: 100dvh;
}

/* Medium robot face */
.face {
  width: min(250px, 68vw);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-width: 7px;
}

/* Medium animated eyes */
.eye {
  width: 42px;
  height: 65px;
}

.eyes {
  gap: 28px;
}

/* Mouth */
.mouth {
  width: 45px;
  height: 20px;
  margin-top: 18px;
}

/* Robot title */
.robot > h2 {
  margin: 14px 0 6px;
  font-size: 23px;
  letter-spacing: 3px;
}

/* Subtitle */
.robot > p:first-of-type {
  margin: 0;
  font-size: 13px;
}

/* Compact standby */
#neo-standby {
  margin: 16px auto 10px;
  padding: 10px 14px;
}

/* Compact top-left clock */
#neo-clock-box {
  top: 10px;
  left: 10px;
  padding: 7px 10px;
}

#neo-clock-time {
  font-size: 18px;
}

#neo-clock-date {
  font-size: 10px;
}
