body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000; /* Solid black */
  color: #e0e0e0; /* Light gray for better contrast */
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #e0e0e0;
  overflow-x: hidden; /*  Add here */
}

main {
  overflow: visible; /*  Add after body */
}


h1, h2 {
  text-align: center;
  margin-top: 20px;
  color: darkorange; /* Dark orange headers */
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #1c1c1c; /* Dark container background */
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
textarea {
  padding: 12px 15px;
  border: 1px solid #555;
  background-color: #2a2a2a;
  color: #f0f0f0;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

button {
  padding: 12px;
  background: darkorange;
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: orangered;
}

.output {
  margin-top: 25px;
  padding: 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: monospace;
  color: #e0e0e0;
}

#priceChart {
  width: 100% !important;
  max-width: 800px;
  height: 400px !important;
  background-color: #111;
  margin: 40px auto;
  display: block;
  border: 1px solid #444;
  border-radius: 10px;
}




/* Typing dots animation */
#typing-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  background-color: darkorange;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* AI response animation */
.output {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

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

/* Button hover pulse */
#ask-button:hover {
  animation: pulse 0.5s infinite alternate;
}
@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* Bot waving */
@keyframes wave {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

/* === 🎉 AI Decorative Animations === */

.circuit-wave {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    darkorange,
    darkorange 10px,
    transparent 10px,
    transparent 20px
  );
  animation: scrollwave 4s linear infinite;
  border-radius: 3px;
  margin: 15px 0;
}
@keyframes scrollwave {
  0% { background-position: 0 0; }
  100% { background-position: 100% 0; }
}

.orb-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: orange;
  box-shadow: 0 0 20px orange;
  animation: pulseBounce 2s infinite ease-in-out;
}
.orb:nth-child(2) { animation-delay: 0.3s; }
.orb:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulseBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.binary-rain {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-family: monospace;
  font-size: 14px;
  color: #00ffcc;
  animation: flicker 1s infinite alternate;
}
@keyframes flicker {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}
/* 🧠 AI Thinking Animation */
.thinking-brain {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: radial-gradient(circle at 30% 30%, orange, darkorange);
  border-radius: 50%;
  animation: throb 1s infinite alternate, rotateGlow 6s linear infinite;
  box-shadow: 0 0 20px orange;
}

@keyframes throb {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes rotateGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}



/* === Coin & News Animation for Summary page=== */
.coin-news-animation {
  margin-top: 60px;
  position: relative;
  height: 180px;     /* 🔁 was 120px */
  overflow: visible; /* ✅ allows floating elements */
}



.coin {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, gold, orange);
  border-radius: 50%;
  box-shadow: 0 0 15px gold;
  position: absolute;
  animation: floatCoin 5s infinite ease-in-out;
}
.coin:nth-child(1) { left: 20%; animation-delay: 0s; }
.coin:nth-child(2) { left: 50%; animation-delay: 1s; }
.coin:nth-child(3) { left: 80%; animation-delay: 2s; }

@keyframes floatCoin {
  0% { top: 100px; opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; }
  100% { top: 0px; opacity: 0; transform: scale(1.2); }
}






@keyframes scrollNews {
  from {
    transform: translateX(1%);
  }
  to {
    transform: translateX(-14%);
  }
}

/* ----for default index page------- */
.coin-bounce {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 30% 30%, gold, darkorange);
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(255, 165, 0, 0.5);
  margin: 0 auto;
  animation: bounce-homepage 2s infinite ease-in-out;
  position: relative;
}

@keyframes bounce-homepage {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-100px) scale(1.1);
  }
}

/* 🔁 Scrolling News Animation */




.news-ticker {
  position: relative;
  overflow: hidden;
  height: 30px;
  width: 100%;
  background: transparent;     /*  Transparent background */
  border: none;                /*  Remove all borders */
  margin-top: 80px;            /* ⬅ Pushes it down more */
  box-shadow: none;            /*  Ensures no visible box */
}


/*summary page animation sppeed */
.ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scrollNews 100s linear infinite;
}
/*---*/

#live-news {
  display: inline-block;
  padding-right: 100%;
  color: #00ffe1;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
}


#videoForward,
#videoReverse {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}
