/* ============ GLOBAL ============ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #080d1a;
}

/* ============ GLASS CARD ============ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.25);
}

/* ============ SKILL TAGS ============ */
.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: rgba(167, 139, 250, 0.4);
  color: #a78bfa;
}

/* ============ PROJECT TAGS ============ */
.proj-tag {
  background: rgba(124, 58, 237, 0.12);
  border: 0.5px solid rgba(124, 58, 237, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  color: #a78bfa;
}

/* ============ CHAT BUBBLES ============ */
.chat-bubble-bot {
  background: rgba(124, 58, 237, 0.12);
  border: 0.5px solid rgba(124, 58, 237, 0.2);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 85%;
}

.chat-bubble-user {
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px 4px 14px 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 85%;
  margin-left: auto;
}

.chat-bubble-bot.loading {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* ============ CONTACT LINKS ============ */
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.2s;
}

.contact-link:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

/* ============ FADE UP ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ FLOATING CHAT ============ */

/* FAB button */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(124, 58, 237, 0.6);
}

.chat-fab:active {
  transform: scale(0.95);
}

/* Chat window */
#chat-window {
  position: fixed;
  bottom: 92px;
  right: 28px;
  z-index: 998;
  width: 340px;
  height: 460px;
  background: #0e1425;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-window-closed {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.97) !important;
  pointer-events: none !important;
}

.chat-window-open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: all !important;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 2px;
}