/* =========================================================
   Exordium 5.0 - Interactive Hero Robot CSS
   ========================================================= */

.hero-robot-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  min-height: 320px;
  user-select: none;
}

.hero-robot {
  width: 100%;
  max-width: 320px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 15px 35px rgba(14, 23, 38, 0.45)) drop-shadow(0 0 25px rgba(77, 163, 255, 0.25));
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-robot:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Floating animation for body / root */
.robot-float-group {
  will-change: transform;
}

/* Idle blink transition */
.robot-eye {
  transition: transform 0.12s ease-in-out, opacity 0.12s ease-in-out;
  transform-origin: center;
}

.robot-eye.blinking {
  transform: scaleY(0.08);
}

/* Pupils */
.robot-pupil {
  will-change: transform;
  fill: #4da3ff;
  filter: drop-shadow(0 0 6px #4da3ff);
}

/* Happy Eyes State */
.robot-happy-eyes {
  opacity: 0;
  transition: opacity 0.2s ease;
  fill: none;
  stroke: #3ecf8e;
  stroke-width: 4;
  stroke-linecap: round;
}

.hero-robot.happy .robot-normal-eyes {
  opacity: 0;
}

.hero-robot.happy .robot-happy-eyes {
  opacity: 1;
}

.hero-robot.happy .robot-chest-core {
  fill: #3ecf8e;
  filter: drop-shadow(0 0 10px #3ecf8e);
}

/* Wave Animation */
@keyframes robotWave {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-28deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-22deg); }
  80% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.robot-arm-right {
  transform-origin: 235px 230px;
  will-change: transform;
}

.hero-robot.waving .robot-arm-right {
  animation: robotWave 1.1s ease-in-out;
}

/* Thruster glow pulse */
@keyframes thrusterPulse {
  0%, 100% { opacity: 0.65; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

.robot-thruster-flame {
  transform-origin: 160px 320px;
  animation: thrusterPulse 1.8s ease-in-out infinite;
}

/* Antenna Beacon */
@keyframes beaconGlow {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 4px #4da3ff); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px #3ecf8e); fill: #3ecf8e; }
}

.robot-antenna-tip {
  animation: beaconGlow 2.5s ease-in-out infinite;
}

/* Responsive Scaling */
@media (max-width: 991px) {
  .hero-robot-wrapper {
    max-width: 280px;
    min-height: 260px;
    margin-top: 1.5rem;
  }
  .hero-robot {
    max-width: 260px;
  }
}

@media (max-width: 576px) {
  .hero-robot-wrapper {
    max-width: 220px;
    min-height: 210px;
  }
  .hero-robot {
    max-width: 220px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-robot,
  .robot-arm-right,
  .robot-thruster-flame,
  .robot-antenna-tip,
  .robot-float-group {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Exordium 5.0 - Floating Robot Contact Widget CSS
   ========================================================= */

.floating-contact-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Sora', 'Poppins', -apple-system, sans-serif;
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: linear-gradient(135deg, rgba(22, 35, 58, 0.95), rgba(14, 23, 38, 0.98));
  border: 1.5px solid rgba(77, 163, 255, 0.4);
  border-radius: 50px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(77, 163, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #4da3ff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 24px rgba(77, 163, 255, 0.4);
}

.floating-contact-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.floating-robot-icon {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 30% 30%, #2a3b57, #0e1726);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #4da3ff;
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.5);
  position: relative;
  transition: transform 0.3s ease;
}

.floating-contact-btn:hover .floating-robot-icon {
  transform: rotate(-10deg) scale(1.08);
}

.floating-contact-badge {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #e2e8f0;
  white-space: nowrap;
}

.floating-contact-badge span {
  color: #4da3ff;
  font-weight: 700;
}

/* Floating Contact Card Popup */
.contact-popup-card {
  position: absolute;
  bottom: 62px;
  right: 0;
  width: 320px;
  background: rgba(14, 23, 38, 0.96);
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(77, 163, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.94);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.contact-popup-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-popup-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.contact-popup-close:hover {
  color: #ff6b70;
  background: rgba(255, 107, 112, 0.15);
}

.contact-speech-bubble {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid #4da3ff;
}

.contact-person-card {
  background: rgba(26, 41, 66, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.contact-person-card:last-child {
  margin-bottom: 0;
}

.contact-person-card:hover {
  border-color: rgba(77, 163, 255, 0.45);
  background: rgba(26, 41, 66, 0.85);
  transform: translateY(-2px);
}

.contact-person-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.contact-person-role {
  font-size: 0.75rem;
  color: #d19e54;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.contact-action-row {
  display: flex;
  gap: 8px;
}

.contact-btn-call,
.contact-btn-wa {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.contact-btn-call {
  background: rgba(77, 163, 255, 0.15);
  color: #4da3ff;
  border: 1px solid rgba(77, 163, 255, 0.3);
}

.contact-btn-call:hover {
  background: #4da3ff;
  color: #0b1320;
  border-color: #4da3ff;
}

.contact-btn-wa {
  background: rgba(62, 207, 142, 0.15);
  color: #3ecf8e;
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.contact-btn-wa:hover {
  background: #3ecf8e;
  color: #0b1320;
  border-color: #3ecf8e;
}

@media (max-width: 576px) {
  .floating-contact-container {
    bottom: 16px;
    right: 16px;
  }
  .contact-popup-card {
    width: 290px;
    right: -8px;
  }
}

