/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #e0f2fe, #ffffff);
  height: 100vh;
  overflow: hidden;
}

/* ===============================
   HOME SCREEN – BALANCED & BOLD
================================ */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
  text-align: center;
}

/* ✅ BALANCED IMAGE (NOT TOO BIG) */
.avatar {
  width: 420px;        /* perfect desktop size */
  max-width: 85vw;
  height: auto;
  margin-bottom: 20px;
}

/* TITLE */
h1 {
  margin: 8px 0;
  font-size: 38px;
  font-weight: 900;
  color: #020617;
}

/* SUBTITLE */
.subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 28px;
}

/* CTA BUTTON */
.button {
  padding: 20px 52px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  border: none;
  border-radius: 70px;
  cursor: pointer;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.5);
  transition: all 0.25s ease;
}

.button:hover {
  transform: scale(1.08);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.7);
}

/* ===============================
   CHAT OVERLAY – TRUE CENTER
================================ */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;

  /* ✅ FORCE PERFECT CENTER */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ CENTERED CHAT CARD (DESKTOP) */
.chat-wrapper {
  width: 88vw;
  max-width: 1200px;
  height: 80vh;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: zoomIn 0.3s ease;
}

/* ElevenLabs fills card */
elevenlabs-convai {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* CLOSE BUTTON */
.close-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  background: #020617;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10000;
}

/* ANIMATION */
@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   MOBILE – KEEP FULL SCREEN (GOOD)
================================ */
@media (max-width: 768px) {

  .avatar {
    width: 85vw;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .button {
    font-size: 18px;
    padding: 16px 32px;
  }

  .chat-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
