body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
  color: #00f7ff;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
 background-image: url(jarvis2.jpg);
  background-repeat: no-repeat;
}

.container {
  font-size: 130px;
  text-align: center;
  margin-top: 5%;
}

h1 {
  font-size: 5rem;
  text-shadow: 0 0 20px #00f7ff;
}

#output {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  transition: all 0.3s ease;
  color: cyan;
  margin: 20px;
  font-size: 1.2rem;
  min-height: 50px;
  overflow-y: auto;  /* Agar text lamba ho toh scrollbar aa jaye */
    padding: 15px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth; /* Scrolling smooth hogi */
}

#output::-webkit-scrollbar {
    width: 5px;
}
#output::-webkit-scrollbar-thumb {
    background: #00ffcc;
    border-radius: 10px;
}

button {
  position: absolute;
  bottom: 40px;
  left: 40%;
  background: transparent;
  border: 2px solid #00f7ff;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  color: #00f7ff;
  box-shadow: 0 0 110px #00f7ff;
  cursor: pointer;
}

button:hover {
  box-shadow: 0 0 30px #00f7ff;
} 

:root {
  --neon-cyan: #0ff;
  --neon-cyan-dim: rgba(0, 255, 255, 0.3);
  --neon-magenta: #f0f;
  --neon-magenta-dim: rgba(255, 0, 255, 0.3);
}

.mic-btn-container {
  position: relative;
  width: 150px; /* Thoda bada space waves ke liye */
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* Piche ka background clear rakhein */
}

/* --- The Core Wave Structure --- */
.ring {
  position: absolute;
  /* Shuruat mein unique shape (gol nahi) */
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
  border: 5px solid var(--neon-cyan);
  box-shadow: 75px 75px 75px var(--neon-cyan-dim), inset 50 40 20px var(--neon-cyan-dim);
  background: transparent;
  box-shadow: 0 0 30px #00f7ff;
  opacity: 0.7;
  transform-origin: center center;
  transition: border-color 5s ease-in-out, box-shadow 5s ease-in-out;
  opacity: 0.6;
}

/* Inner Wave: Moves slightly differently */
.ring-1 {
  width: 80px;
  height: 80px;
  animation: liquid-wave 4s infinite ease-in-out;
  opacity: 0.6;
}

/* Middle Wave: Counter-rotates for more chaos */
.ring-2 {
  width: 105px;
  height: 105px;
  animation: liquid-wave-counter 6s infinite ease-in-out;
  opacity: 0.5;
}

/* Outer Wave: Slowest displacement */
.ring-3 {
  width: 130px;
  height: 130px;
  animation: liquid-wave 8s infinite ease-in-out;
  opacity: 0.4;
}

.ring-4 {
  width: 60px;
  height: 60px;
  animation: liquid-wave 2.5s infinite ease-in-out;
  opacity: 0.4;
}

.ring-5 {
  width: 40px;
  height: 40px;
  animation: liquid-wave 1.5s infinite ease-in-out;
  opacity: 0.4;
}

.ring-6 {
  width: 20px;
  height: 20px;
  animation: liquid-wave 0.8s infinite ease-in-out;
  opacity: 0.4;
}

.ring-7 {
  width: 5px;
  height: 5px;
  animation: liquid-wave 0.5s infinite ease-in-out;
  opacity: 0.4;
}


/* --- Liquid Wave Animations --- */

/* Normal Rotation with slight shape shifting */
@keyframes liquid-wave {
  0% {
    transform: rotate(0deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    /* Shape shifts mid-rotation for 'organic' feel */
    border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
  }
  100% {
    transform: rotate(360deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* Counter-rotation for overlapping wave effect */
@keyframes liquid-wave-counter {
  0% {
    transform: rotate(360deg);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  50% {
    border-radius: 30% 50% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    transform: rotate(0deg);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* Jab Jarvis bolega, waves tez aur magenta ho jayengi */
.reactive-speak .ring {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 20px var(--neon-magenta-dim), inset 0 0 15px var(--neon-magenta-dim);
  animation-duration: 2s; /* Super fast displacement */
}

/* Jab Jarvis sunega, waves thodi tez hongi but cyan rahengi */
.reactive-listen .ring {
  animation-duration: 3s; /* Slightly faster than idle */
   box-shadow: 0 0 20px cyan, 0 0 60px cyan;
}

.wake-word-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.8); /* Reddish warning theme */
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: none; /* Shuru mein chhupa rahega */
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transition: 0.5s ease;
}

.side-info {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Courier New', monospace; /* Futuristic look */
    font-size: 1.5rem;
    color: #00ffcc; /* Jarvis Cyan color */
    text-shadow: 0 0 10px #00ffcc;
    writing-mode: vertical-rl; /* Text ko top-to-bottom karega */
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

.dev-signature {
    position: fixed;
    top: 15px;
    left: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffcc;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.4; /* Isse ye subtle lagega, aankhon mein nahi chubhega */
    z-index: 100;
}

/* Hover karne par chamke ga */
.dev-signature:hover {
    opacity: 1;
    text-shadow: 0 0 10px #00ffcc;
    cursor: default;
}
