body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #121212;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.navbar .nav-item a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.3s;
}

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

.navbar .nav-item a {
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar .nav-item a:hover {
  transform: scale(1.1);
  color: #9061f9;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.text-gradient {
  background: linear-gradient(90deg, #9061f9, #ff6a88, #9061f9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s ease infinite;
}

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

.particles-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.navbar {
  padding: 1rem;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9061f9, #ff6a88);
  color: white;
  font-weight: bold;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-group-item {
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(5px);
}

.chat-container {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 60vh;
  max-height: 600px;
  position: relative;
  transition: all 0.3s ease;
}

.glass-card {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-out forwards;
}

.ai-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
}

.ai-message .message-content {
  background-color: rgba(144, 97, 249, 0.2);
  border: 1px solid rgba(144, 97, 249, 0.3);
}

.user-message .message-content {
  background-color: rgba(79, 79, 79, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(20, 20, 20, 0.5);
}

.form-control {
  border: none;
  color: white !important;
}

.form-control:focus {
  box-shadow: none;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-voice, .btn-send {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.btn-voice:hover, .btn-send:hover {
  color: #9061f9;
  transform: scale(1.1);
}

.btn-send {
  background: linear-gradient(135deg, #9061f9, #ff6a88);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .chat-container {
    height: 75vh;
  }

  .message-content {
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .chat-container {
    height: 70vh;
    padding: 10px;
  }

  .message-content {
    max-width: 90%;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .chat-container {
    height: 65vh;
    padding: 8px;
  }

  .message-content {
    max-width: 95%;
    font-size: 13px;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(144, 97, 249, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(144, 97, 249, 0.8);
}


.animated-profile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

#dynamicGreeting {
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite, blinkCursor 0.7s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
}

@keyframes shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes blinkCursor {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}