/* css/styles.css — Robot Factory Lab v3.0 (Tema Mewah Futuristik) */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Palet Futuristik (Dark/Neon) */
  --bg: #050a14;
  --bg-grid: rgba(26, 82, 118, 0.1);
  --blue: #2980b9;
  --blue2: #16224a;
  --blue-glow: #2f8bff;
  --neon: #00f0ff;      /* Cyan Sci-Fi */
  --neon-dim: rgba(0, 240, 255, 0.2);
  --green: #39ff9e;     /* Sukses */
  --green-glow: rgba(57, 255, 158, 0.6);
  --pink: #ff2a6d;      /* Aksen / Error */
  --pink-glow: rgba(255, 42, 109, 0.6);
  --gold: #f8c822;      /* Prestasi */
  --ink: #eaf2ff;
  --ink-dim: #9fb3c8;
  --metal: #64748b;
  --stroke: rgba(0, 240, 255, 0.15);
  --glass: rgba(10, 15, 30, 0.6);
  --radius: 16px;
}

/* === RESET & IFP TOUCH PREP === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--bg);
  /* Latar belakang grid siber */
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(47,139,255,0.15) 0%, transparent 60%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  background-position: center center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === TYPOGRAPHY === */
.font-mono { font-family: 'Roboto Mono', monospace; letter-spacing: 1px; }
h1, h2, h3 { font-weight: 800; letter-spacing: 0.5px; }
.sci-fi-text { text-transform: uppercase; letter-spacing: 2px; color: var(--neon); }

/* === APP SHELL === */
#app {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle at top right, rgba(0,240,255,0.05), transparent 50%),
                    radial-gradient(circle at bottom left, rgba(255,42,109,0.05), transparent 50%);
  display: flex;
  flex-direction: column;
}

/* === GLASSMORPHISM CARDS === */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.mcard {
  background: linear-gradient(145deg, rgba(15,23,48,0.7), rgba(5,10,20,0.8));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
.mcard::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.1), transparent);
  transform: skewX(-20deg); transition: 0.5s;
}
.mcard:hover {
  transform: translateY(-5px);
  border-color: var(--neon);
  box-shadow: 0 10px 30px var(--neon-dim);
}
.mcard:hover::before { left: 150%; }

.mcard.locked { opacity: 0.5; filter: grayscale(1); pointer-events: none; border-color: rgba(255,255,255,0.05); }

/* === NEON BUTTONS === */
button { font-family: 'Outfit', sans-serif; min-height: 48px; touch-action: manipulation; }

.btn-primary {
  background: linear-gradient(90deg, #00b4d8, var(--neon));
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: 8px; /* Lebih kotak ala Sci-Fi */
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 15px var(--neon-dim);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: scale(1.02);
}

.btn-ghost {
  background: rgba(0,240,255,0.05);
  border: 1px solid var(--stroke);
  color: var(--neon);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(0,240,255,0.15);
  border-color: var(--neon);
  box-shadow: 0 0 15px var(--neon-dim);
}

.btn-danger {
  background: rgba(255,42,109,0.1);
  border: 1px solid rgba(255,42,109,0.3);
  color: var(--pink);
}
.btn-danger:hover {
  background: rgba(255,42,109,0.2);
  border-color: var(--pink);
  box-shadow: 0 0 15px var(--pink-glow);
}

/* === HUD & TOPBAR === */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 30px;
  background: linear-gradient(180deg, rgba(5,10,20,0.9), transparent);
  border-bottom: 1px solid rgba(0,240,255,0.1);
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; color: var(--ink); }
.hud { display: flex; gap: 15px; }
.hud-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--stroke);
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.hud-xp { color: var(--neon); }
.hud-level { color: var(--gold); }

/* === SCREENS === */
.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  padding: 20px; padding-top: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.screen.active { 
  display: flex; 
  animation: screenIn 0.35s ease-out;
}

/* === GRID MISI === */
.mission-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  padding: 20px 40px; margin-top: 20px;
}
.m-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.m-num { font-size: 13px; color: var(--neon); font-weight: 700; }
.m-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; flex-grow: 1; }
.m-stars { display: flex; gap: 4px; color: var(--gold); font-size: 14px; }

/* === AREA MISI INTERAKTIF === */
.stage-wrap {
  display: flex; flex: 1; gap: 24px; padding: 20px 40px; height: calc(100% - 100px);
}
.stage-left { flex: 1; display: flex; flex-direction: column; position: relative; }
.stage-right {
  width: 320px; display: flex; flex-direction: column; gap: 15px;
  border-left: 1px dashed var(--stroke); padding-left: 24px;
}
.stage-card {
  flex: 1; background: rgba(5,10,20,0.6);
  border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

/* === ROBOT MENTOR (ROBI) === */
.robi-box {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 12px; padding: 15px;
  display: flex; align-items: flex-start; gap: 12px;
  position: relative;
}
.robi-box::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px;
  background: var(--neon); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--neon);
}
.robi-ico { width: 44px; height: 44px; flex-shrink: 0; }
.robi-msg { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* === DRAG & DROP COMPONENTS === */
.drop-zone {
  background: rgba(0,240,255,0.03);
  border: 2px dashed rgba(0,240,255,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; position: relative;
}
.drop-zone:focus {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
  background: rgba(0,240,255,0.08);
}
.drop-zone.dnd-over {
  background: rgba(0,240,255,0.1);
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-dim);
}
.drag-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px; min-width: 100px;
  background: linear-gradient(145deg, #16224a, #0c152e);
  border: 1px solid var(--stroke);
  border-radius: 10px; cursor: grab;
  user-select: none; touch-action: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: outline 0.15s, transform 0.15s;
}
.drag-chip:focus {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}
.drag-chip:active { cursor: grabbing; transform: scale(0.95); }
.drag-chip svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
.drag-chip span { font-size: 12px; font-weight: 600; text-align: center; }

/* === TOAST / NOTIFIKASI === */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(50px);
  background: rgba(10,15,30,0.95); color: #fff;
  padding: 14px 24px; border-radius: 30px;
  border: 1px solid var(--neon);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,240,255,0.2);
  opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999; display: flex; align-items: center; gap: 10px;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* === MODAL / OVERLAY === */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  z-index: 5000; display: none; align-items: center; justify-content: center;
}
.modal-card {
  background: linear-gradient(135deg, rgba(20,30,60,0.95), rgba(10,15,30,0.95));
  border: 1px solid var(--neon);
  border-radius: 20px; padding: 40px; text-align: center; max-width: 500px; width: 90%;
  box-shadow: 0 0 50px rgba(0,240,255,0.15), inset 0 0 20px rgba(0,240,255,0.05);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-stars { font-size: 40px; letter-spacing: 5px; margin: 15px 0; color: var(--gold); text-shadow: 0 0 20px rgba(248,200,34,0.5); }
.modal-h { font-size: 28px; color: #fff; margin-bottom: 10px; font-weight: 800; }
.modal-p { color: var(--ink-dim); font-size: 16px; margin-bottom: 25px; line-height: 1.5; }

/* === PANEL PENJELASAN MATERI === */
.edu-modal {
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
  padding: 32px 38px;
}
.edu-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.edu-modal-head h2 {
  color: var(--neon);
  font-size: 26px;
  line-height: 1.2;
}
.edu-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.edu-section {
  margin-bottom: 22px;
  padding: 18px;
  background: rgba(0,240,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.edu-section h3 {
  color: var(--gold);
  font-size: 17px;
  margin-bottom: 10px;
}
.edu-section p,
.edu-section li {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
}
.edu-section ul,
.edu-section ol {
  padding-left: 20px;
}
.edu-flow,
.edu-objectives,
.edu-card-grid {
  display: grid;
  gap: 12px;
}
.edu-flow {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}
.edu-flow div,
.edu-objectives div {
  background: rgba(5,10,20,0.55);
  border: 1px solid rgba(0,240,255,0.12);
  border-radius: 10px;
  padding: 14px;
}
.edu-flow strong {
  display: block;
  color: var(--neon);
  margin-bottom: 6px;
}
.edu-flow span,
.edu-objectives div {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
}
.edu-objectives {
  grid-template-columns: repeat(2, 1fr);
}
.edu-card-grid {
  grid-template-columns: repeat(3, 1fr);
}
.edu-topic-card {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(15,23,48,0.72), rgba(5,10,20,0.82));
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.edu-topic-card:hover,
.edu-topic-card:focus {
  border-color: var(--neon);
  box-shadow: 0 0 18px var(--neon-dim);
  outline: none;
}
.edu-topic-card span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.edu-topic-card small {
  color: var(--ink-dim);
  font-size: 12px;
}
.edu-steps li {
  margin-bottom: 6px;
}
.edu-check {
  background: rgba(57,255,158,0.06);
  border-color: rgba(57,255,158,0.25);
}
.edu-credit {
  background: rgba(248,200,34,0.06);
  border-color: rgba(248,200,34,0.25);
}
.edu-credit h3 {
  color: var(--neon);
}
.edu-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(5,10,20,0.55);
}
.edu-hero-row h3 {
  color: var(--gold);
  font-size: 17px;
  margin-bottom: 8px;
}
.edu-hero-row p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
}
.edu-hero-icon {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,240,255,0.08);
  border: 1px solid var(--stroke);
}
.edu-analogy {
  margin-top: 8px;
  color: var(--ink);
}
.edu-spec p {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
}
.edu-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* === KONTROL SLIDER (Sci-Fi Range) === */
input[type=range] {
  -webkit-appearance: none; width: 100%; background: transparent; height: 30px;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 6px; background: rgba(0,240,255,0.1);
  border: 1px solid var(--stroke); border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 20px; width: 12px;
  background: var(--neon); border-radius: 3px;
  margin-top: -8px; cursor: pointer;
  box-shadow: 0 0 10px var(--neon);
}
input[type=range]:focus { outline: none; }

/* === ANIMATIONS === */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes screenIn { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes scanline { 0% { background-position: 0 -100vh; } 100% { background-position: 0 100vh; } }

/* Scanline Overlay Effect */
body::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px; pointer-events: none; z-index: -1;
  opacity: 0.3;
}

/* === RESPONSIVE IFP / TABLET === */
@media (max-aspect-ratio: 16/10) {
  #app { aspect-ratio: auto; }
  .mission-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
  .stage-wrap { flex-direction: column; overflow-y: auto; padding: 20px; }
  .stage-right { width: 100%; border-left: none; border-top: 1px dashed var(--stroke); padding-left: 0; padding-top: 20px; }
}
@media (max-width: 800px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 10px 15px; }
  .brand { font-size: 18px; }
  .hud-item { padding: 6px 12px; font-size: 13px; }
  .screen { padding-top: 60px; }
  .stage-wrap { padding: 10px; }
  .edu-modal { padding: 24px 20px; }
  .edu-modal-head { flex-direction: column; align-items: stretch; }
  .edu-flow,
  .edu-objectives,
  .edu-card-grid { grid-template-columns: 1fr; }
  .edu-hero-row { flex-direction: column; align-items: flex-start; }
}

/* === IFP LARGE SCREEN (65"+ Interactive Flat Panel) === */
@media (min-width: 1400px) and (min-height: 800px) {
  :root {
    --radius: 20px;
  }
  body { font-size: 18px; }
  .topbar { padding: 20px 40px; }
  .brand { font-size: 26px; gap: 16px; }
  .hud-item { padding: 12px 22px; font-size: 18px; border-radius: 40px; }
  .btn-primary { padding: 18px 36px; font-size: 18px; min-height: 56px; border-radius: 12px; }
  .btn-ghost { padding: 16px 26px; font-size: 17px; min-height: 54px; border-radius: 10px; }
  
  /* Touch targets lebih besar */
  .drag-chip {
    padding: 20px; min-width: 120px; min-height: 80px;
    border-radius: 14px; gap: 12px;
  }
  .drag-chip span { font-size: 15px; }
  .drag-chip svg { width: 56px; height: 56px; }
  .drop-zone { min-height: 80px; border-radius: 14px; border-width: 3px; }
  
  /* Mission cards */
  .mcard { padding: 24px; min-height: 150px; }
  .m-num { font-size: 15px; }
  .m-title { font-size: 20px; }
  .m-stars { font-size: 18px; gap: 6px; }
  .mission-grid { gap: 24px; padding: 24px 50px; }
  
  /* Screen spacing */
  .screen { padding-top: 110px; }

  /* Stage area */
  .stage-wrap { padding: 24px 50px; gap: 30px; }
  .stage-card { padding: 30px; }
  .stage-right { width: 380px; padding-left: 30px; }
  
  /* ROBI lebih besar */
  .robi-box { padding: 20px; gap: 16px; }
  .robi-ico { width: 56px; height: 56px; }
  .robi-msg { font-size: 18px; line-height: 1.6; }
  
  /* Modal */
  .modal-card { max-width: 650px; padding: 50px; border-radius: 24px; }
  .modal-h { font-size: 34px; }
  .modal-p { font-size: 19px; }
  .modal-stars { font-size: 52px; }
  
  /* Toast */
  #toast { padding: 18px 32px; font-size: 18px; border-radius: 40px; }
  
  /* Sliders lebih besar untuk jari */
  input[type=range] { height: 44px; }
  input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; }
  input[type=range]::-webkit-slider-thumb { height: 32px; width: 20px; margin-top: -12px; border-radius: 6px; }
  
  /* Select dropdowns */
  select { padding: 14px 18px !important; font-size: 16px !important; min-height: 50px; }
}

/* === IFP EXTRA LARGE (75"+ layar) === */
@media (min-width: 1800px) and (min-height: 1000px) {
  body { font-size: 20px; }
  .brand { font-size: 30px; }
  .hud-item { font-size: 20px; padding: 14px 26px; }
  .screen { padding-top: 130px; }
  .drag-chip { padding: 24px; min-width: 140px; min-height: 90px; }
  .drag-chip span { font-size: 17px; }
  .drop-zone { min-height: 90px; }
  .mcard { padding: 28px; min-height: 170px; }
  .m-title { font-size: 22px; }
  .robi-msg { font-size: 20px; }
  .btn-primary { padding: 20px 40px; font-size: 20px; }
}

/* === Ripple touch effect === */
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}
.touch-ripple {
  position: absolute; border-radius: 50%;
  width: 40px; height: 40px;
  background: var(--neon); opacity: 0;
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}


/* === MODE PRESENTASI (GURU) === */
body.presentation-mode {
  font-size: 22px;
}
body.presentation-mode .topbar { padding: 20px 40px; }
body.presentation-mode .screen { padding-top: 120px; }
body.presentation-mode .brand { font-size: 30px; }
body.presentation-mode .hud-item { font-size: 20px; padding: 14px 24px; }
body.presentation-mode .mcard { padding: 28px; min-height: 160px; }
body.presentation-mode .m-title { font-size: 22px; }
body.presentation-mode .m-num { font-size: 16px; }
body.presentation-mode .m-stars { font-size: 20px; }
body.presentation-mode .drag-chip { padding: 22px; min-width: 130px; min-height: 90px; }
body.presentation-mode .drag-chip span { font-size: 16px; }
body.presentation-mode .drop-zone { min-height: 85px; }
body.presentation-mode .robi-msg { font-size: 20px; }
body.presentation-mode .stage-card { padding: 30px; }
body.presentation-mode .btn-primary { padding: 20px 36px; font-size: 20px; }
body.presentation-mode .btn-ghost { padding: 16px 28px; font-size: 18px; }
body.presentation-mode .modal-card { max-width: 700px; }
body.presentation-mode .modal-h { font-size: 36px; }
body.presentation-mode .modal-p { font-size: 20px; }
body.presentation-mode h2 { font-size: 30px; }
body.presentation-mode h3 { font-size: 24px; }
body.presentation-mode p { font-size: 18px; line-height: 1.7; }


/* === ANIMASI ROBOT SVG === */
@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes armSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
@keyframes antennaBlink {
  0%, 90% { opacity: 1; }
  95% { opacity: 0.2; }
  100% { opacity: 1; }
}
@keyframes eyeGlow {
  0%, 100% { filter: drop-shadow(0 0 4px currentColor); }
  50% { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor); }
}
@keyframes robotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes robotIdle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(0.5deg); }
  75% { transform: translateY(-1px) rotate(-0.5deg); }
}

/* Robot animated state — ditambahkan via class */
.robot-animated .robot-wheel {
  animation: wheelSpin 2s linear infinite;
  transform-origin: center;
}
.robot-animated .robot-arm {
  animation: armSwing 3s ease-in-out infinite;
  transform-origin: 0 -10px;
}
.robot-animated .robot-full {
  animation: robotBounce 2s ease-in-out infinite;
}

/* Robot idle breathing */
.robot-idle .robot-full {
  animation: robotIdle 4s ease-in-out infinite;
}

/* Antenna blink */
.robot-animated circle[filter*="drop-shadow"],
.robot-idle circle[filter*="drop-shadow"] {
  animation: antennaBlink 3s ease-in-out infinite;
}
