@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
  --bg-color: #0a0f1c;
  --container-bg: rgba(255, 255, 255, 0.05);
  --input-bg: rgba(255, 255, 255, 0.08);
  --chat-bubble-bg: rgba(255, 255, 255, 0.1);
  --primary-color: #2ecc71;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: rgba(255, 255, 255, 0.95);
  --border-color: rgba(255, 255, 255, 0.2);
  --chat-bubble-text: rgba(255, 255, 255, 0.9);
  --icon-color: rgba(255, 255, 255, 0.8);
  --shadow-color: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --font-family: "Poppins", sans-serif;
}

/* Reset & global settings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradientShift 20s ease infinite;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 20px 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(155, 89, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(255, 206, 84, 0.1) 0%, transparent 40%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

/* Floating Background Elements */
.floating-bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  backdrop-filter: blur(20px);
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  background: linear-gradient(45deg, rgba(255, 20, 147, 0.3), rgba(255, 105, 180, 0.2));
  box-shadow: 0 0 60px rgba(255, 20, 147, 0.4);
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 5%;
  background: linear-gradient(45deg, rgba(0, 191, 255, 0.3), rgba(30, 144, 255, 0.2));
  box-shadow: 0 0 50px rgba(0, 191, 255, 0.4);
  animation-delay: 5s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 80%;
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  animation-delay: 10s;
}

.orb-4 {
  width: 120px;
  height: 120px;
  bottom: 60%;
  right: 70%;
  background: linear-gradient(45deg, rgba(50, 205, 50, 0.3), rgba(144, 238, 144, 0.2));
  box-shadow: 0 0 45px rgba(50, 205, 50, 0.4);
  animation-delay: 15s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(-30px, -20px) rotate(270deg); }
}

@keyframes backgroundShift {
  0%, 100% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(-2px) translateY(-1px); }
  66% { transform: translateX(1px) translateY(-2px); }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  max-height: 96vh;
  overflow-y: auto;
}

.container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, 
    rgba(255, 20, 147, 0.05) 0%,
    rgba(0, 191, 255, 0.05) 25%,
    rgba(50, 205, 50, 0.05) 50%,
    rgba(255, 215, 0, 0.05) 75%,
    rgba(255, 69, 0, 0.05) 100%);
  background-size: 300% 300%;
  border-radius: 30px;
  z-index: -1;
  opacity: 0.6;
  animation: rainbow-border 8s linear infinite;
  filter: blur(30px);
}



}

/* Glass Card Base */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 20, 147, 0.1),
    0 0 80px rgba(0, 191, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 20, 147, 0.4), rgba(0, 191, 255, 0.4), transparent);
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Header Card */
.header-card {
  padding: 25px;
  min-height: 400px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.nav-buttons {
  display: flex;
  gap: 8px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  border: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateZ(0) perspective(1000px) rotateX(0deg);
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff1493, #00bfff, #32cd32, #ffd700);
  background-size: 300% 300%;
  border-radius: 17px;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  animation: rainbow-border 3s linear infinite;
  transition: opacity 0.3s ease;
}

.nav-btn:hover {
  background: linear-gradient(145deg, rgba(255, 20, 147, 0.4), rgba(0, 191, 255, 0.4));
  color: white;
  transform: translateY(-4px) translateZ(20px) perspective(1000px) rotateX(-5deg);
  box-shadow: 
    0 15px 30px rgba(255, 20, 147, 0.4),
    0 8px 16px rgba(0, 191, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn.active {
  background: linear-gradient(145deg, #ff1493, #00bfff);
  transform: translateY(-2px) translateZ(10px) perspective(1000px) rotateX(-3deg);
}

.nav-btn:active {
  transform: translateY(0px) translateZ(0px) perspective(1000px) rotateX(0deg);
  transition: all 0.1s ease;
}
  color: white;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.card-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff1493, #ff4500, #ff6347);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 8px 20px rgba(255, 20, 147, 0.4),
    0 4px 12px rgba(255, 69, 0, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0) perspective(1000px) rotateX(0deg);
}

.profile-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ff1493, #ff4500, #ffd700, #32cd32, #00bfff);
  background-size: 300% 300%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  animation: rainbow-border 2.5s linear infinite;
  transition: opacity 0.3s ease;
}

.profile-btn:hover {
  transform: translateY(-5px) translateZ(25px) perspective(1000px) rotateX(-8deg) scale(1.1);
  background: linear-gradient(145deg, #ff69b4, #ff6347, #ffa500);
  box-shadow: 
    0 20px 40px rgba(255, 20, 147, 0.5),
    0 12px 25px rgba(255, 69, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 3px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.profile-btn:hover::before {
  opacity: 1;
}

.profile-btn:active {
  transform: translateY(-1px) translateZ(5px) perspective(1000px) rotateX(-2deg) scale(1.05);
  transition: all 0.1s ease;
}

.profile-btn:hover {
  transform: translateY(-1px) scale(1.05);
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.logo-3d {
  position: relative;
  margin-bottom: 20px;
}

.logo-3d img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.logo-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(45deg, #ff1493, #00bfff, #32cd32, #ffd700, #ff4500);
  background-size: 300% 300%;
  border-radius: 30px;
  filter: blur(20px);
  opacity: 0.8;
  animation: glow-rotate 3s linear infinite, glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes rainbow-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
}

.stat-change.positive {
  color: #2ecc71;
}

.stat-change.negative {
  color: #e74c3c;
}

.feature-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pill.active {
  background: linear-gradient(145deg, #9b59b6, #8e44ad);
  color: white;
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.feature-card.small {
  padding: 20px;
  min-height: 120px;
  transition: all 0.3s ease;
}

.feature-card.small:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.feature-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.feature-value {
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.feature-chart {
  font-size: 32px;
  text-align: center;
  opacity: 0.7;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Large Desktop - 4K and Ultra-wide */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
  }
  
  .header-card {
    padding: 40px;
    min-height: 500px;
  }
  
  .logo-3d img {
    width: 120px;
    height: 120px;
  }
  
  .liquid-title {
    font-size: 5rem;
  }
  
  .tagline {
    font-size: 2rem;
  }
  
  .developer-info {
    font-size: 1.2rem;
  }
}

/* Standard Desktop */
@media (min-width: 1200px) and (max-width: 2559px) {
  .container {
    max-width: 1200px;
  }
  
  .header-card {
    padding: 30px;
    min-height: 450px;
  }
  
  .logo-3d img {
    width: 100px;
    height: 100px;
  }
  
  .liquid-title {
    font-size: 4rem;
  }
  
  .tagline {
    font-size: 1.5rem;
  }
}

/* Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 1000px;
    width: 92%;
  }
  
  .header-card {
    padding: 25px;
    min-height: 400px;
  }
  
  .logo-3d img {
    width: 90px;
    height: 90px;
  }
  
  .liquid-title {
    font-size: 3.5rem;
  }
  
  .tagline {
    font-size: 1.3rem;
  }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    width: 95%;
    gap: 18px;
  }
  
  .header-card {
    padding: 22px;
    min-height: 380px;
  }
  
  .logo-section {
    margin-bottom: 25px;
  }
  
  .logo-3d img {
    width: 80px;
    height: 80px;
  }
  
  .liquid-title {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  .developer-info {
    font-size: 1rem;
  }
  
  .chat-area {
    padding: 18px;
    max-height: 350px;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  body {
    align-items: flex-start;
    padding: 10px 0;
  }
  
  .container {
    width: 98%;
    gap: 12px;
    max-height: 90vh;
  }
  
  .header-card {
    padding: 15px 20px;
    min-height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  
  .logo-section {
    margin-bottom: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  .logo-3d {
    margin-bottom: 0;
  }
  
  .logo-3d img {
    width: 50px;
    height: 50px;
  }
  
  .liquid-title {
    font-size: 1.8rem;
    margin: 0;
    text-align: left;
  }
  
  .tagline {
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    text-align: center;
  }
  
  .developer-info {
    font-size: 0.8rem;
  }
  
  .chat-area {
    padding: 12px;
    max-height: 200px;
  }
  
  .floating-bg-elements .bg-orb {
    opacity: 0.3;
  }
}

/* Mobile Portrait */  
@media (max-width: 767px) and (orientation: portrait) {
  .container {
    width: 95%;
    gap: 15px;
  }
  
  .header-card {
    padding: 20px;
    min-height: 350px;
  }
  
  .logo-section {
    margin-bottom: 20px;
  }
  
  .logo-3d img {
    width: 70px;
    height: 70px;
  }
  
  .liquid-title {
    font-size: 2.5rem;
  }
  
  .tagline {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .developer-info {
    font-size: 0.9rem;
  }
  
  .chat-area {
    padding: 15px;
    max-height: 400px;
  }
}

/* Small Mobile Portrait */
@media (max-width: 480px) and (orientation: portrait) {
  .container {
    width: 96%;
    gap: 12px;
    padding: 15px 0;
  }
  
  .header-card {
    padding: 18px;
    min-height: 320px;
  }
  
  .logo-section {
    margin-bottom: 18px;
  }
  
  .logo-3d img {
    width: 60px;
    height: 60px;
  }
  
  .logo-glow {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    filter: blur(12px);
  }
  
  .liquid-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .tagline {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .developer-info {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .chat-area {
    padding: 12px;
    max-height: 350px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .container {
    width: 98%;
    gap: 10px;
  }
  
  .header-card {
    padding: 15px;
    min-height: 300px;
  }
  
  .logo-3d img {
    width: 50px;
    height: 50px;
  }
  
  .liquid-title {
    font-size: 1.7rem;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  .developer-info {
    font-size: 0.8rem;
  }
  
  .chat-area {
    padding: 10px;
  }
}

/* Floating orbs responsive adjustments */
@media (max-width: 768px) {
  .orb-1 {
    width: 150px;
    height: 150px;
  }
  
  .orb-2 {
    width: 100px;
    height: 100px;
  }
  
  .orb-3 {
    width: 80px;
    height: 80px;
  }
  
  .orb-4 {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .orb-1 {
    width: 100px;
    height: 100px;
  }
  
  .orb-2 {
    width: 80px;
    height: 80px;
  }
  
  .orb-3 {
    width: 60px;
    height: 60px;
  }
  
  .orb-4 {
    width: 70px;
    height: 70px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass-card::before {
    height: 0.5px;
  }
  
  .logo-glow {
    filter: blur(20px);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Navigation buttons responsive adjustments */
@media (max-width: 768px) {
  .nav-btn, .profile-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .card-header {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .nav-btn, .profile-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  .card-header {
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  .nav-btn, .profile-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* Enhanced responsive chat area */
@media (max-width: 767px) and (orientation: landscape) {
  .chat-area {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  
  .chat-area::-webkit-scrollbar {
    width: 4px;
  }
  
  .chat-area::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .chat-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-bg-elements {
    display: none;
  }
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding: 25px 35px;

}


@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

.logo img {
  height: 120px;
}

.logo h1.liquid-title {
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 800;
  margin: 10px 0;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -1px;
}

.word-root {
  background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #00ff80 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

.word-source {
  background: linear-gradient(135deg, #00ff80 0%, #0080ff 50%, #8000ff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 3s ease-in-out infinite 1s;
  text-shadow: 0 0 30px rgba(0, 255, 128, 0.5);
}

.word-ai {
  background: linear-gradient(135deg, #8000ff 0%, #ff0080 50%, #ff8c00 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 4s ease-in-out infinite 2.6s;
  position: relative;
}

.word-ai::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
  border-radius: 2px;
  animation: glow-line 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { 
    background-position: 0% 50%; 
    transform: scale(1);
  }
  50% { 
    background-position: 100% 50%;
    transform: scale(1.02);
  }
}

@keyframes glow-line {
  0%, 100% { 
    opacity: 0.3;
    transform: scaleX(0.5);
  }
  50% { 
    opacity: 1;
    transform: scaleX(1);
  }
}

.tagline {
  font-size: clamp(0.9rem, 1.2vw, 1.5rem);
  margin-bottom: 15px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, rgba(255, 255, 255, 0.9) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.6;
  animation: tagline-gradient 6s ease-in-out infinite;
  position: relative;
}

.tagline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
  border-radius: 15px;
  z-index: -1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes tagline-gradient {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse {
  0%, 100% { 
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% { 
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Universal 3D Button Styling */
.btn-3d {
  position: relative;
  background: linear-gradient(145deg, #4ecdc4, #45b7d1);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 12px rgba(78, 205, 196, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  overflow: hidden;
}

.btn-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-3d:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 10px 20px rgba(78, 205, 196, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #5dd4cb, #4db8d8);
}

.btn-3d:hover::before {
  left: 100%;
}

.btn-3d:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 3px 6px rgba(78, 205, 196, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* 3D Button Variants */
.btn-3d.btn-danger {
  background: linear-gradient(145deg, #ff6b6b, #e74c3c);
  box-shadow: 
    0 6px 12px rgba(231, 76, 60, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d.btn-danger:hover {
  background: linear-gradient(145deg, #ff7979, #eb5757);
  box-shadow: 
    0 10px 20px rgba(231, 76, 60, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-3d.btn-success {
  background: linear-gradient(145deg, #2ecc71, #27ae60);
  box-shadow: 
    0 6px 12px rgba(39, 174, 96, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d.btn-success:hover {
  background: linear-gradient(145deg, #58d68d, #2ecc71);
  box-shadow: 
    0 10px 20px rgba(39, 174, 96, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-3d.btn-purple {
  background: linear-gradient(145deg, #9b59b6, #8e44ad);
  box-shadow: 
    0 6px 12px rgba(142, 68, 173, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d.btn-purple:hover {
  background: linear-gradient(145deg, #af7ac5, #9b59b6);
  box-shadow: 
    0 10px 20px rgba(142, 68, 173, 0.4),
    0 5px 10px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.developer-info {
  font-size: clamp(0.7rem, 0.9vw, 1rem);
  color: var(--border-color);
  margin-bottom: 20px;
  text-align: center;
}

.chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 5px;
  margin-bottom: 20px;
}

.input-box {
  position: relative;
  width: 100%;
  border-radius: 25px;
  display: flex;
  gap: 10px;
}

.chat-area .input-box .message {
  width: 100%;
  padding: 15px 20px;
  word-wrap: break-word;
  border-radius: 12px 12px 0 12px;
  background: var(--input-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  word-wrap: break-word;
  text-wrap: wrap;
  display: flex;
  justify-content: end;
}
.chat-area .input-box .message p {
  margin: 0;
  padding: 0;
  text-align: justify;
}

.input-box svg {
  color: var(--icon-color);
  height: 20px;
  width: 20px;
}

.input-box input {
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.95);
  flex-grow: 1;
  font-size: 1em;
  padding: 0;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, 
    rgba(255, 20, 147, 0.7) 0%,
    rgba(0, 191, 255, 0.7) 50%,
    rgba(138, 43, 226, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.chat-bubble {
  background: var(--chat-bubble-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 15px 20px;
  border-radius: 20px 20px 20px 0;
  max-width: 100%;
  text-align: left;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  word-wrap: break-word;
  position: relative;
}

.chat-bubble-ai {
  background-color: var(--input-bg);
  border-radius: 20px 20px 0 20px;
  align-self: flex-end;
  margin-left: auto;
}

.chat-bubble-user {
  background-color: var(--primary-color);
  border-radius: 20px 20px 20px 0;
  align-self: flex-start;
}

.chat-message {
  position: relative;
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.icon-wrapper {
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  padding: 10px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 6px 12px rgba(31, 38, 135, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.icon-wrapper:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 
    0 8px 16px rgba(31, 38, 135, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.input-box .icon-wrapper {
  margin-right: 0;
  margin-left: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  background-color: #fecd50;
}

.icon-wrapper svg {
  height: 20px;
  width: 20px;
  color: var(--text-color);
}

.message-content {
  flex-grow: 1;
  position: relative;
}

.chat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.chat-header span {
  font-size: 0.9em;
  color: var(--border-color);
}

.chat-header .label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.chat-header .label svg {
  height: 16px;
  width: 16px;
}

.chat-header .label.translated {
  color: var(--primary-color);
  text-align: justify;
}

.chat-header .label.detected {
  color: #f1c40f;
}

/* Fixed bottom input */
.main-input-container {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 5;
  
}

.main-input-container input {
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1em;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
  resize: none;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.main-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, 
    rgba(255, 20, 147, 0.7) 0%,
    rgba(0, 191, 255, 0.7) 50%,
    rgba(138, 43, 226, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

.main-input-container .input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--container-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 4px 8px 4px 16px;
  min-height: 50px;
  max-height: 150px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  word-wrap: break-word;
  z-index: 2;
}

.main-input-container .input-box:first-child{
 position: absolute;
 top:0;
 left: 0;
  z-index: 1;
  filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.5);
  
}
.main-input-container .input-box button {
  background: linear-gradient(145deg, #ff6b35, #f7931e, #ffcc02, #32cd32);
  color: white;
  border: none;
  border-radius: 50%;
  height: 45px;
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 12px 24px rgba(255, 107, 53, 0.4),
    0 8px 16px rgba(247, 147, 30, 0.3),
    0 4px 12px rgba(255, 204, 2, 0.2),
    0 2px 8px rgba(50, 205, 50, 0.1),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0) perspective(1000px) rotateX(0deg);
  overflow: hidden;
}

.main-input-container .input-box button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc02, #32cd32, #ffd700, #ff4500);
  background-size: 400% 400%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  animation: rainbow-border 2s linear infinite;
  transition: opacity 0.3s ease;
}

.main-input-container .input-box button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 1;
}

.main-input-container .input-box button:hover {
  transform: translateY(-3px) translateZ(30px) perspective(1000px) rotateX(-10deg);
  box-shadow: 
    0 25px 45px rgba(255, 107, 53, 0.6),
    0 15px 30px rgba(247, 147, 30, 0.5),
    0 8px 20px rgba(255, 204, 2, 0.4),
    0 4px 12px rgba(50, 205, 50, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 3px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, #ff8c5a, #ffa500, #ffd700, #3cb371);
}

.main-input-container .input-box button:hover::before {
  opacity: 1;
}

.main-input-container .input-box button:hover::after {
  width: 30px;
  height: 30px;
}

.main-input-container .input-box button:active {
  transform: translateY(-2px) translateZ(10px) perspective(1000px) rotateX(-3deg) scale(1.05);
  transition: all 0.1s ease;
}

.main-input-container .input-box button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 4px 8px rgba(78, 205, 196, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.main-input-container .input-box button::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 50%;
  pointer-events: none;
}

.main-input-container button svg {
  height: 20px;
  width: 20px;
}

/* Scrollbar styling */
/* WebKit browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Firefox */
* {
    scrollbar-width: none; /* hides scrollbar */
    -ms-overflow-style: none; /* IE 10+ */
}


/* Media Queries for multiple devices */

/* Large screens 4K / desktop */
@media (min-width: 2560px) {
  .container {
    max-width: 1600px;
    padding: 60px;
  }
  .logo h1.liquid-title {
    font-size: 4rem;
  }
  .tagline {
    font-size: 2rem;
  }
}

/* Laptops / Desktops */
@media (min-width: 1200px) and (max-width: 2559px) {
  .container {
    max-width: 1000px;
    padding: 50px;
  }
  .logo h1.liquid-title {
    font-size: 3rem;
  }
  .tagline {
    font-size: 1.5rem;
  }
}

/* Tablets landscape */
@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    max-width: 90%;
    padding: 30px;
  }
  .logo h1.liquid-title {
    font-size: 2.5rem;
  }
  .tagline {
    font-size: 1.2rem;
  }
}

/* Tablets portrait / large phones */
@media (min-width: 480px) and (max-width: 767px) {
  .container {
    width: 95%;
    padding: 20px;
  }
  .logo h1.liquid-title {
    font-size: 2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .main-input-container {
    bottom: 15px;
    width: 95%;
  }
}

/* Small phones */
@media (max-width: 479px) {
  .container {
    width: 95%;
    padding: 15px;
  }
  .logo h1.liquid-title {
    font-size: 1.5rem;
  }
  .tagline {
    font-size: 0.9rem;
  }
  .main-input-container {
    bottom: 10px;
    width: 95%;
  }
}

.mic-icon {
  background: linear-gradient(145deg, #ff6b35, #f7931e, #ffcc02);
  color: white;
  border: none;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-left: 12px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 20px rgba(255, 107, 53, 0.4),
    0 4px 12px rgba(247, 147, 30, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  transform: translateZ(0) perspective(1000px) rotateX(0deg);
}

.mic-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc02, #32cd32, #1e90ff);
  background-size: 300% 300%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  animation: rainbow-border 2.8s linear infinite;
  transition: opacity 0.3s ease;
}

.mic-icon:hover {
  background: linear-gradient(145deg, #ff8c5a, #ffa500, #ffd700);
  transform: translateY(-4px) translateZ(20px) perspective(1000px) rotateX(-6deg) scale(1.1);
  box-shadow: 
    0 15px 35px rgba(255, 107, 53, 0.5),
    0 8px 20px rgba(247, 147, 30, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 3px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.mic-icon:hover::before {
  opacity: 1;
}

.mic-icon:active {
  transform: translateY(-1px) translateZ(5px) perspective(1000px) rotateX(-2deg) scale(1.05);
  transition: all 0.1s ease;
}

.mic-icon i {
  font-size: 24px;
  color: #ffffff;
}

.commonBtn span {
  position: absolute;
  bottom: 0;
  background-color: rgba(48, 48, 48, 0.5);
  padding: 6px;
  width: 100px;
  height: 52px;
  border-radius: 5px;
  color: rgb(139, 139, 139);
  transition: 0.3s;
  display: none;
}

.commonBtn:hover span {
  top: -56px;
  display: block;
}

#microphone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 21;
}

#microphone.visible {
  display: flex;
}

#microphone .recoder {
  position: relative;
  width: 90%;
  max-width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#microphone .close {
  position: absolute;
  top: 8px;
  left: 12px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: ;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff6b6b, #e74c3c);
  box-shadow: 
    0 6px 12px rgba(231, 76, 60, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#microphone .close:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 
    0 8px 16px rgba(231, 76, 60, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #ff7979, #eb5757);
}

#microphone .close:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 
    0 3px 6px rgba(231, 76, 60, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

#microphone .close span::before,
#microphone .close span::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(241, 241, 241, 0.6);
  border-radius: 2px;
  left: 16px;
  top: 7px;
}

#microphone .close span::before {
  transform: rotate(-45deg);
}
#microphone .close span::after {
  transform: rotate(45deg);
}

#recoredText {
  font-size: 16px;
  font-weight: 700;
  color: #fdfdfd;
  text-align: center;
  margin: 20px 0;
}

#microphone select {
  position: absolute;
  top: 8px;
  right: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(15px);
  color: #fdfdfd;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 35px 8px 15px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  width: 280px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#microphone select option {
  color: black;
  background: rgba(255, 255, 255, 0.9);
}

#microphone select:hover,
#microphone select:focus {
  transform: translateY(-1px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

#microphone select:active {
  transform: translateY(1px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

#speakBtn {
  position: relative;
  background: linear-gradient(145deg, #ff6b35, #f7931e, #ffcc02);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 
    0 12px 25px rgba(255, 107, 53, 0.4),
    0 8px 16px rgba(247, 147, 30, 0.3),
    0 4px 12px rgba(255, 204, 2, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 0 3px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(0) perspective(1000px) rotateX(0deg);
  overflow: hidden;
}

#speakBtn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc02, #32cd32, #1e90ff, #ff1493);
  background-size: 400% 400%;
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  animation: rainbow-border 2.2s linear infinite;
  transition: opacity 0.3s ease;
}

#speakBtn:hover {
  transform: translateY(-6px) translateZ(30px) perspective(1000px) rotateX(-10deg) scale(1.15);
  box-shadow: 
    0 25px 45px rgba(255, 107, 53, 0.5),
    0 15px 30px rgba(247, 147, 30, 0.4),
    0 8px 20px rgba(255, 204, 2, 0.3),
    0 0 0 4px rgba(255, 255, 255, 0.2),
    inset 0 4px 0 rgba(255, 255, 255, 0.4),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, #ff8c5a, #ffa500, #ffd700);
}

#speakBtn:hover::before {
  opacity: 1;
}

#speakBtn:active {
  transform: translateY(-2px) translateZ(10px) perspective(1000px) rotateX(-3deg) scale(1.05);
  transition: all 0.1s ease;
}

#speakBtn i {
  font-size: 32px;
  color: #ffffff;
  transition: all 0.3s ease;
}

/* Microphone recognizing animation */
#speakBtn.recognizing {
  background: linear-gradient(145deg, #ff1493, #00bfff, #32cd32, #ffd700);
  background-size: 300% 300%;
  animation: 
    rainbow-pulse 1.5s ease-in-out infinite,
    mic-glow 2s ease-in-out infinite,
    mic-bounce 0.8s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(255, 20, 147, 0.6),
    0 0 50px rgba(0, 191, 255, 0.4),
    0 0 70px rgba(50, 205, 50, 0.3),
    0 12px 25px rgba(255, 107, 53, 0.4),
    0 8px 16px rgba(247, 147, 30, 0.3),
    0 4px 12px rgba(255, 204, 2, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.2),
    inset 0 4px 0 rgba(255, 255, 255, 0.4),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

#speakBtn.recognizing i {
  animation: 
    mic-shake 0.5s ease-in-out infinite,
    mic-scale 1s ease-in-out infinite;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

#speakBtn.recognizing::before {
  opacity: 1;
  animation: rainbow-border 1s linear infinite;
  filter: blur(20px);
}

@keyframes rainbow-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes mic-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(0, 191, 255, 0.8));
  }
}

@keyframes mic-bounce {
  0%, 100% { transform: translateY(-6px) translateZ(30px) perspective(1000px) rotateX(-10deg) scale(1.15); }
  50% { transform: translateY(-10px) translateZ(35px) perspective(1000px) rotateX(-12deg) scale(1.2); }
}

@keyframes mic-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotateZ(-2deg); }
  75% { transform: translateX(2px) rotateZ(2deg); }
}

@keyframes mic-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

#speakBtn.active {
  background: linear-gradient(145deg, #ff6b6b, #e74c3c);
  box-shadow: 
    0 8px 16px rgba(231, 76, 60, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

#speakBtn.active:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(145deg, #ff7979, #eb5757);
  box-shadow: 
    0 12px 20px rgba(231, 76, 60, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

#speakBtn.active::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid #333;
  border-radius: 50%;
  animation: zoomin 1s infinite;
}

@keyframes zoomin {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 8px;
  }
  .nav-middle .search-box input {
    width: 100%;
    font-size: 14px;
  }
  #microphone .recoder {
    width: 90%;
    height: 350px;
    padding: 20px;
  }
  #speakBtn {
    width: 50px;
    height: 50px;
  }
  #speakBtn i {
    font-size: 28px;
  }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(202, 246, 25, 0.9),
    rgba(1, 205, 205, 0.8)
  );
  animation: bounce 1.2s infinite ease-in-out;
}

/* Staggered animation for each dot */
.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.dot:nth-child(4) {
  animation-delay: 0.6s;
}

/* The bouncing animation keyframes */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.fourdot .message-content {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 16px 6px;
}


/* Voice Response Indicators - Enhanced 3D Design */
.voice-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(118, 75, 162, 0.3),
        0 4px 12px rgba(240, 147, 251, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    animation: voicePulse 2s ease-in-out infinite, voiceGradient 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0) perspective(1000px) rotateX(-3deg);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.voice-indicator::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    animation: rainbow-border 3s linear infinite;
    transition: opacity 0.3s ease;
}

.voice-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.voice-indicator.active {
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-2px) translateZ(15px) perspective(1000px) rotateX(-5deg);
}

.voice-indicator.active::before {
    opacity: 1;
}

.voice-indicator.active::after {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(102, 126, 234, 0.4) 70%, transparent 100%);
    animation: voiceDot 1.5s ease-in-out infinite;
}

.voice-indicator:hover {
    transform: translateY(-5px) translateZ(25px) perspective(1000px) rotateX(-8deg) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(102, 126, 234, 0.5),
        0 15px 30px rgba(118, 75, 162, 0.4),
        0 8px 20px rgba(240, 147, 251, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.voice-indicator .voice-icon {
    width: 20px;
    height: 20px;
    animation: voiceSpin 2s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes voicePulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateZ(0) perspective(1000px) rotateX(-3deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateZ(5px) perspective(1000px) rotateX(-4deg) scale(1.02);
    }
}

@keyframes voiceGradient {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    25% { 
        background-position: 100% 25%;
        filter: brightness(1.1);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.2);
    }
    75% { 
        background-position: 0% 75%;
        filter: brightness(1.1);
    }
}

@keyframes voiceSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes voiceDot {
    0%, 100% { 
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

/* Voice conversation status in chat bubble */
.voice-conversation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.voice-conversation-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Enhanced microphone button when voice conversation is active */
#voice_search.voice-active {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    animation: voiceActivePulse 1.5s infinite;
}

@keyframes voiceActivePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(46, 204, 113, 0.8);
    }
}


.volume-container {
    position: absolute;   
    top: 10px;            
    right: 10px;        
    z-index: 1000;
}

.volume-icon {
    font-size: 32px;
    background: linear-gradient(145deg, #00ff87, #60efff, #ff6b9d, #c471ed, #f064a3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0) perspective(1000px) rotateX(-2deg);
    animation: volume-pulse 3s ease-in-out infinite;
}

.volume-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #00ff87, #60efff, #ff6b9d, #c471ed, #f064a3, #ffd700);
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    animation: rainbow-border 2.5s linear infinite;
    transition: opacity 0.4s ease;
}

.volume-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.volume-icon:hover {
    transform: translateY(-5px) translateZ(20px) perspective(1000px) rotateX(-8deg) scale(1.1) rotateZ(5deg);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: volume-glow 1s ease-in-out infinite, volume-pulse 1.5s ease-in-out infinite;
}



.volume-icon:active {
    transform: translateY(-2px) translateZ(8px) perspective(1000px) rotateX(-3deg) scale(1.2) rotateZ(2deg);
    transition: all 0.1s ease;
}

@keyframes volume-pulse {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1);
    }
    25% { 
        background-position: 50% 0%;
        filter: brightness(1.2);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.4);
    }
    75% { 
        background-position: 50% 100%;
        filter: brightness(1.2);
    }
}

@keyframes volume-glow {
    0%, 100% { 
        filter: brightness(1) saturate(1);
    }
    50% { 
        filter: brightness(1.5) saturate(1.3);
    }
}



#scrollToBottomBtn {
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #32cd32, #228b22, #006400);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 
        0 10px 25px rgba(50, 205, 50, 0.4),
        0 6px 15px rgba(34, 139, 34, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0) perspective(1000px) rotateX(0deg);
    align-items: center;
    justify-content: center;
    position: fixed;
}

#scrollToBottomBtn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #32cd32, #ffd700, #ff4500, #ff1493, #00bfff);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    animation: rainbow-border 3s linear infinite;
    transition: opacity 0.3s ease;
}

#scrollToBottomBtn:hover {
    background: linear-gradient(145deg, #3cb371, #2e8b57, #228b22);
    transform: translateY(-5px) translateZ(25px) perspective(1000px) rotateX(-8deg) scale(1.1);
    box-shadow: 
        0 20px 40px rgba(50, 205, 50, 0.5),
        0 12px 25px rgba(34, 139, 34, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

#scrollToBottomBtn:hover::before {
    opacity: 1;
}

#scrollToBottomBtn:active {
    transform: translateY(-1px) translateZ(5px) perspective(1000px) rotateX(-2deg) scale(1.05);
    transition: all 0.1s ease;
}

/* Only show on desktop */
@media screen and (max-width: 768px) {
    #scrollToBottomBtn {
        display: none !important;
    }
}


.tts-spin {
  display: inline-block;
  animation: ttsRotate 1s linear infinite;
  font-size: 20px; /* adjust as needed */
  vertical-align: middle;
}

@keyframes ttsRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}