/* Aesthetically Pleasing Dark Theme - Multi-Color Accents (Sky, Indigo, Emerald, Amber) */

:root {
  --glow-sky: rgba(56, 189, 248, 0.15);
  --glow-indigo: rgba(99, 102, 241, 0.15);
  --glow-emerald: rgba(16, 185, 129, 0.15);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080d1a;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 5px;
}

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

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* Refined Skill Tags */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  background-color: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  border: 1px solid rgba(71, 85, 105, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-tag:hover {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.5);
  background-color: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 12px 30px -10px rgba(14, 165, 233, 0.12);
}

/* Refined Terminal Console */
#terminal-body {
  font-family: 'JetBrains Mono', monospace;
  background: #090e17;
}

.term-cmd {
  color: #38bdf8;
  font-weight: 600;
}

.term-res {
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.6;
}

/* Ambient Background Breathing Glow */
@keyframes ambientDrift {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1) translate(0, 0);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08) translate(15px, -10px);
  }
}

.glow-ambient {
  animation: ambientDrift 10s ease-in-out infinite;
}

/* Toast Active State */
.toast-active {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* AI Chat Widget Specific Styles */
#ai-chat-window {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform-origin: bottom right;
}

#ai-chat-window.chat-closed {
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
}

#ai-chat-window.chat-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Typing Indicator Animation */
.typing-dot {
  width: 6px;
  height: 6px;
  background-color: #38bdf8;
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chat Prompt Chips */
.chat-chip {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background-color: rgba(30, 41, 59, 0.7);
  color: #93c5fd;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.chat-chip:hover {
  background-color: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}
