/* ============================================
   Hamed Dhieb - Portfolio
   Dark theme, Orange accent #ff8c00, Poppins
   ============================================ */

:root {
  --bg-dark: #0d0d0d;
  --bg-charcoal: #141414;
  --bg-card: #1a1a1a;
  --accent: #ff8c00;
  --accent-hover: #ff9f1a;
  --accent-glow: rgba(255, 140, 0, 0.35);
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-charcoal) 50%, #0a0a0a 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-full {
  width: 100%;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition), background var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(13, 13, 13, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-bg-parallax {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 40%, rgba(255, 140, 0, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 400;
}

.hero-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-social {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-3px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-circle {
  position: absolute;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-image-inner {
  position: relative;
  z-index: 2;
  width: 85%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: float 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== Stats ========== */
.stats {
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
  border-color: rgba(255, 140, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== Section titles ========== */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ========== About ========== */
.about {
  padding: 80px 0;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ========== Services ========== */
.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

.service-card:hover {
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-6px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== Portfolio ========== */
.portfolio {
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.portfolio-card:hover {
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-6px);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.portfolio-placeholder-a {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.25) 0%, rgba(30, 30, 30, 0.9) 100%);
}

.portfolio-placeholder-b {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(25, 25, 25, 0.95) 100%);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 20px 24px 6px;
  color: var(--text);
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 24px 20px;
}

/* ========== Contact ========== */
.contact {
  padding: 80px 0 100px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.contact-item i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.12);
  color: var(--accent);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== Footer ========== */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrap {
    order: 0;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-charcoal);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    margin: 0 -24px;
  }

  .nav-cta.open {
    display: inline-flex;
    margin-top: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 100px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .container {
    padding: 0 16px;
  }
}

/* Intersection observer: animate on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal transition for sections that use it */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Tap bomb light layer + flying robot */
.fx-layer,
.tap-light,
.tap-bomb-wave,
.tap-bomb-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.fx-layer {
  inset: 0;
  overflow: hidden;
}

.tap-light {
  inset: -25vmax;
  opacity: 0;
  background:
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 245, 190, 0.95) 0%, rgba(255, 174, 62, 0.6) 12%, rgba(255, 140, 0, 0.14) 32%, rgba(255, 140, 0, 0) 60%),
    radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 35%);
  mix-blend-mode: screen;
}

.tap-light.active {
  animation: tapBombLight 620ms ease-out forwards;
}

.tap-bomb-wave {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 200, 120, 0.95);
  box-shadow: 0 0 42px rgba(255, 154, 32, 0.75);
  animation: tapBombWave 760ms cubic-bezier(0.16, 0.68, 0.43, 0.99) forwards;
}

.tap-bomb-spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, #ffe6b4 45%, #ff9a23 100%);
  box-shadow: 0 0 18px rgba(255, 166, 56, 0.95);
  animation: tapBombSpark var(--dur, 640ms) ease-out forwards;
}

.flying-robot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9998;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffdd9b;
  background: radial-gradient(circle at 30% 30%, rgba(255, 197, 96, 0.35) 0%, rgba(255, 140, 0, 0.16) 60%, rgba(255, 140, 0, 0) 100%);
  border: 1px solid rgba(255, 181, 83, 0.45);
  box-shadow: 0 0 24px rgba(255, 140, 0, 0.45), 0 0 70px rgba(255, 140, 0, 0.16);
  transform: translate(-120px, -120px);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: robotHover 2.8s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

.flying-robot i {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(255, 193, 91, 0.9));
}

.robot-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 4, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.robot-chat-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.robot-chat-card {
  width: min(92vw, 420px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 22, 22, 0.98), rgba(8, 8, 8, 0.99));
  border: 1px solid rgba(255, 176, 72, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.16);
  transform: scale(0.9);
  opacity: 0;
  animation: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.robot-chat-modal.open .robot-chat-card {
  animation: robotChatIn 0.28s ease-out forwards;
}

.robot-chat-close {
  border: none;
  background: transparent;
  color: #ffc987;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.robot-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 191, 111, 0.3);
  background: linear-gradient(145deg, rgba(255, 145, 12, 0.22), rgba(255, 100, 0, 0.14));
}

.robot-chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.robot-chat-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffedcf;
}

.robot-chat-status {
  margin-top: 2px;
  font-size: 0.78rem;
  color: #ffe0b5;
}

.robot-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffd79e;
  border: 1px solid rgba(255, 190, 102, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 110, 0.3), rgba(255, 140, 0, 0.12) 62%, rgba(255, 140, 0, 0) 100%);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
  transform: translateZ(16px);
}

.robot-chat-avatar i {
  font-size: 1.05rem;
}

.robot-chat-body {
  padding: 14px;
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(8, 8, 8, 0.92);
}

.robot-chat-msg {
  max-width: 88%;
  font-size: 0.97rem;
  line-height: 1.55;
  font-weight: 500;
  padding: 11px 13px;
  border-radius: 14px;
  letter-spacing: 0.01em;
}

.robot-chat-msg-bot {
  color: #fff4e3;
  background: linear-gradient(145deg, rgba(255, 152, 31, 0.3), rgba(255, 110, 0, 0.22));
  border: 1px solid rgba(255, 191, 111, 0.48);
  border-top-left-radius: 6px;
  align-self: flex-start;
}

.robot-chat-msg-user {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 171, 79, 0.96), rgba(255, 131, 6, 1));
  border: 1px solid rgba(255, 214, 155, 0.62);
  border-top-right-radius: 6px;
  align-self: flex-end;
  text-align: left;
}

.robot-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 191, 111, 0.2);
  background: rgba(12, 12, 12, 0.82);
}

.robot-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 191, 111, 0.36);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(18, 18, 18, 0.98);
  color: #ffecd0;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.robot-chat-input::placeholder {
  color: rgba(255, 216, 163, 0.62);
}

.robot-chat-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff9f1a, #ff7d00);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.28);
}

@keyframes tapBombLight {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

@keyframes tapBombWave {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(46);
  }
}

@keyframes tapBombSpark {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) translate(var(--dx), var(--dy));
  }
}

@keyframes robotHover {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes robotChatIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-light,
  .tap-bomb-wave,
  .tap-bomb-spark,
  .flying-robot,
  .robot-chat-card {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
