* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 40px;
  gap: 20px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.skip-intro {
  color: #aaaaaa;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-decoration: none;
}

.skip-intro:hover {
  color: #ffffff;
}

.sound-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #aaaaaa;
  transition: color 0.3s;
}

.sound-icon:hover {
  color: #ffffff;
}

/* Main content */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px 60px;
  gap: 60px;
}

/* Avatar section */
.avatar-section {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  /* border: 3px solid rgba(0, 200, 100, 0.3); */
}

/* Particle rings */
.particle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
}

.ring-1 {
  width: 260px;
  height: 260px;
  box-shadow: 0 0 0 1px rgba(0, 200, 100, 0.08);
}

.ring-2 {
  width: 300px;
  height: 300px;
  box-shadow: 0 0 0 1px rgba(0, 200, 100, 0.05);
  animation: rotate 100s linear infinite;
}

.ring-3 {
  width: 340px;
  height: 340px;
  box-shadow: 0 0 0 1px rgba(0, 200, 100, 0.03);
  animation: rotate 190s linear infinite reverse;
}

/* Dots */
.dots-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  z-index: 1;
}

.dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00c864;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(0, 200, 100, 0.6);
}

.dot:nth-child(1) {
  top: 0;
  left: 50%;
}

.dot:nth-child(2) {
  top: 7%;
  left: 75%;
}

.dot:nth-child(3) {
  top: 25%;
  left: 93%;
}

.dot:nth-child(4) {
  top: 50%;
  left: 100%;
}

.dot:nth-child(5) {
  top: 75%;
  left: 93%;
}

.dot:nth-child(6) {
  top: 93%;
  left: 75%;
}

.dot:nth-child(7) {
  top: 100%;
  left: 50%;
}

.dot:nth-child(8) {
  top: 93%;
  left: 25%;
}

.dot:nth-child(9) {
  top: 75%;
  left: 7%;
}

.dot:nth-child(10) {
  top: 50%;
  left: 0;
}

.dot:nth-child(11) {
  top: 25%;
  left: 7%;
}

.dot:nth-child(12) {
  top: 7%;
  left: 25%;
}

.dots-ring-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  z-index: 1;
  animation: rotate 25s linear infinite;
}

.dot-outer {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00c864;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(0, 200, 100, 0.4);
  opacity: 0.6;
}

.dot-outer:nth-child(1) {
  top: 0;
  left: 50%;
}

.dot-outer:nth-child(2) {
  top: 3%;
  left: 67%;
}

.dot-outer:nth-child(3) {
  top: 13%;
  left: 82%;
}

.dot-outer:nth-child(4) {
  top: 28%;
  left: 94%;
}

.dot-outer:nth-child(5) {
  top: 45%;
  left: 100%;
}

.dot-outer:nth-child(6) {
  top: 62%;
  left: 97%;
}

.dot-outer:nth-child(7) {
  top: 78%;
  left: 88%;
}

.dot-outer:nth-child(8) {
  top: 90%;
  left: 72%;
}

.dot-outer:nth-child(9) {
  top: 97%;
  left: 53%;
}

.dot-outer:nth-child(10) {
  top: 97%;
  left: 35%;
}

.dot-outer:nth-child(11) {
  top: 90%;
  left: 18%;
}

.dot-outer:nth-child(12) {
  top: 78%;
  left: 6%;
}

.dot-outer:nth-child(13) {
  top: 62%;
  left: 0;
}

.dot-outer:nth-child(14) {
  top: 45%;
  left: 0;
}

.dot-outer:nth-child(15) {
  top: 28%;
  left: 6%;
}

.dot-outer:nth-child(16) {
  top: 13%;
  left: 18%;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Chat section */
/* .chat-section {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
} */

.chat-section {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;

  justify-content: center;
  min-height: 360px;
}


/* .bubble {
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  width: 86%;
  background: #7ab24c;
} */

.bubble {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  background: #7ab24c;
  width: 86%;
  margin-bottom: 12px;
}



/* .bubble-1 {
  background: #7ab24c;
  animation-delay: 0s;
}

.bubble-2 {
  background: #7ab24c;
  animation-delay: 1.8s;
}

.bubble-3 {
  background: #7ab24c;
  animation-delay: 4s;
} */

/* .bubble-1 { animation-delay: 0s;  background: #7ab24c;} */

/* .bubble-1 {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.6s;
  background: #7ab24c;
} */

.dots-part:nth-child(2) {
  animation-delay: 0.8s, 1.8s;
}

/* .bubble-2 { animation-delay: 2.2s;  background: #7ab24c;} */

/* .bubble-2 {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 3.8s;
  background: #7ab24c;
} */


.dots-part:nth-child(4) {
  animation-delay: 3.0s, 4.2s;
}

/* .bubble-3 { animation-delay: 4.6s;  background: #7ab24c;} */
/* .bubble-3 {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 5.2s;
  background: #7ab24c;
} */

/* .bubble-3 {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 5.2s;
  background: #7ab24c;
} */

.cta-container {
  animation-delay: 6.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* CTA Button */
.cta-button {
  display: inline-block;
  /* margin-top: 12px; */
  padding: 18px 40px;
  /* background: linear-gradient(135deg, #e8860c, #f5a623); */
  background-color: #FF7A00;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232, 134, 12, 0.4);
  letter-spacing: 0.3px;
  animation: fadeIn 0.6s ease-out 0.6s both;
  width: 86%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 134, 12, 0.6);
}

.cta-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  color: #555555;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .main {
    flex-direction: column;
    padding: 80px 30px 40px;
    gap: 40px;
  }

  .avatar-container {
    width: 260px;
    height: 260px;
  }

  .avatar-img {
    width: 170px;
    height: 170px;
  }

  .ring-1 {
    width: 210px;
    height: 210px;
  }

  .ring-2 {
    width: 240px;
    height: 240px;
  }

  .ring-3 {
    width: 270px;
    height: 270px;
  }

  .dots-ring {
    width: 240px;
    height: 240px;
  }

  .dots-ring-outer {
    width: 290px;
    height: 290px;
  }

  .chat-section {
    max-width: 100%;
  }

  .bubble {
    font-size: 15px;
    padding: 15px 20px;
  }

  .cta-button {
    font-size: 16px;
    padding: 16px 32px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 14px 20px;
  }

  .main {
    padding: 70px 16px 30px;
    gap: 30px;
  }

  .avatar-container {
    width: 200px;
    height: 200px;
  }

  .avatar-img {
    width: 130px;
    height: 130px;
  }

  .ring-1 {
    width: 160px;
    height: 160px;
  }

  .ring-2 {
    width: 185px;
    height: 185px;
  }

  .ring-3 {
    width: 210px;
    height: 210px;
  }

  .dots-ring {
    width: 185px;
    height: 185px;
  }

  .dots-ring-outer {
    width: 220px;
    height: 220px;
  }

  .bubble {
    font-size: 14px;
    padding: 13px 16px;
    border-radius: 14px;
  }

  .cta-button {
    font-size: 14px;
    padding: 14px 24px;
  }

  .footer {
    font-size: 11px;
  }
}

/* .dots-part{
  display: flex;
  width: 110px;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  animation: fadeIn 0.6s ease-out both;
  background: #7ab24c;
  animation-delay: 0s;
}


.dots-part span{
    width: 10px;
    height: 10px;
    display: block;
    background: #FFFF;
    border-radius: 50%;
    margin-right: 10px;
} */

.dots-part {
  display: flex;
  width: 110px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #7ab24c;
  opacity: 0;
}

.dots-part span {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: typing 1.4s infinite ease-in-out both;
}

.dots-part span:nth-child(1) {
  animation-delay: 0s;
}

.dots-part span:nth-child(2) {
  animation-delay: .2s;
}

.dots-part span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes typing {
  0% {
    opacity: .3;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: .3;
  }
}

/* First dots */
.chat-section>.dots-part:nth-child(2) {
  /* animation:
    showDots .3s ease forwards,
    hideDots .4s ease forwards;
  animation-delay: .8s, 1.8s; */
  animation:
    showDots 0.3s ease forwards,
    hideDots 0.4s ease forwards;
  animation-delay: 0.8s, 1.6s;
}

/* Second dots */
.chat-section>.dots-part:nth-child(4) {
  /* animation:
    showDots .3s ease forwards,
    hideDots .4s ease forwards;
  animation-delay: 3.0s, 4.2s; */

  animation:
    showDots 0.3s ease forwards,
    hideDots 0.4s ease forwards;
  animation-delay: 2.8s, 3.8s;
}

@keyframes showDots {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hideDots {
  to {
    opacity: 0;
    transform: translateY(-6px);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}


@media (max-width: 901px) {
  .bubble {
    width: 100%;
  }
}

.cta-container {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 5.5s;
  /* show after all chat bubbles */
}

.avatar-img {
  opacity: 0;
  animation: fadeInAvatar 0.8s ease forwards;
}

@keyframes fadeInAvatar {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bubble {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

/* .cta-button {
  opacity: 0;
} */

/* .cta-button {
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 8.8s;
} */

/* .cta-wrapper {
  opacity: 0;
  margin-top: 16px;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 6.4s;
} */

.cta-wrapper {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}


#audioGate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.audio-gate-content {
  padding: 18px 32px;
  border-radius: 40px;
  background: #FF7A00;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

#soundToggle {
  background: none;
  border: none;
}