/* ── FUTURISTIC ANIMATIONS & STYLES ────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(85, 225, 92, 0.3); }
  50% { box-shadow: 0 0 40px rgba(85, 225, 92, 0.6); }
}

@keyframes slide-in-right {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(1px, -1px); }
}

@keyframes hologram {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* ── CHATBOT STYLES ──────────────────────────────────────── */
#tb-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 600px;
  background: rgba(17, 20, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 149, 130, 0.15);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slide-in-right 0.5s ease-out;
}

#tb-header {
  background: linear-gradient(135deg, rgba(85, 225, 92, 0.1), rgba(28, 181, 54, 0.1));
  padding: 16px;
  border-bottom: 1px solid rgba(85, 225, 92, 0.2);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

#tb-header .tb-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #55e15c, #1cb536);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 2s infinite;
}

#tb-header .tb-title {
  flex: 1;
}

#tb-header .tb-title h3 {
  color: #55e15c;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

#tb-header .tb-title p {
  color: #879582;
  font-size: 11px;
  margin: 0;
}

#tb-close {
  background: none;
  border: none;
  color: #879582;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s;
}

#tb-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#tb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tb-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  animation: hologram 0.3s ease-in-out;
}

.tb-bot {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(85, 225, 92, 0.1), rgba(28, 181, 54, 0.1));
  border: 1px solid rgba(85, 225, 92, 0.2);
  color: #e1e3df;
}

.tb-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e1e3df;
}

.tb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tb-quick button {
  background: rgba(85, 225, 92, 0.1);
  border: 1px solid rgba(85, 225, 92, 0.3);
  color: #55e15c;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s;
}

.tb-quick button:hover {
  background: rgba(85, 225, 92, 0.2);
  transform: translateY(-2px);
}

#tb-input-area {
  padding: 16px;
  border-top: 1px solid rgba(135, 149, 130, 0.15);
  display: flex;
  gap: 8px;
}

#tb-input {
  flex: 1;
  background: rgba(50, 53, 51, 0.5);
  border: 1px solid rgba(135, 149, 130, 0.2);
  border-radius: 24px;
  padding: 10px 16px;
  color: #e1e3df;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

#tb-input:focus {
  border-color: #55e15c;
  box-shadow: 0 0 15px rgba(85, 225, 92, 0.2);
}

#tb-send {
  background: linear-gradient(135deg, #55e15c, #1cb536);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

#tb-send:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(85, 225, 92, 0.5);
}

#tb-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #1cb536, #55e15c);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(85, 225, 92, 0.45), 0 0 0 0 rgba(85,225,92,0.4);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 999;
  animation: tb-pulse-ring 2.5s ease-out infinite;
}

@keyframes tb-pulse-ring {
  0%   { box-shadow: 0 8px 32px rgba(85,225,92,0.45), 0 0 0 0 rgba(85,225,92,0.35); }
  60%  { box-shadow: 0 8px 32px rgba(85,225,92,0.45), 0 0 0 16px rgba(85,225,92,0); }
  100% { box-shadow: 0 8px 32px rgba(85,225,92,0.45), 0 0 0 0 rgba(85,225,92,0); }
}

#tb-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 40px rgba(85, 225, 92, 0.6);
}

#tb-fab .material-symbols-outlined {
  color: #003909;
  font-size: 28px;
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

/* ── WELCOME BUBBLE ──────────────────────────────────────── */
#tb-welcome-bubble {
  position: fixed;
  bottom: 102px;
  right: 28px;
  background: rgba(17, 20, 18, 0.96);
  border: 1px solid rgba(85, 225, 92, 0.3);
  border-radius: 14px 14px 4px 14px;
  padding: 12px 18px;
  max-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(85,225,92,0.1);
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#tb-welcome-bubble.tb-bubble-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#tb-welcome-bubble p {
  color: #e1e3df;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 4px 0;
  font-family: 'Inter', sans-serif;
}

#tb-welcome-bubble .tb-bubble-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #55e15c;
  border-radius: 50%;
  margin-right: 6px;
  animation: tb-pulse-ring 1.5s infinite;
  vertical-align: middle;
}

#tb-welcome-bubble .tb-bubble-cta {
  color: #55e15c;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  pointer-events: auto;
}

/* ── FUTURISTIC UI ELEMENTS ─────────────────────────────── */
.hologram-card {
  background: linear-gradient(135deg, rgba(85, 225, 92, 0.05), rgba(28, 181, 54, 0.05));
  border: 1px solid rgba(85, 225, 92, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  animation: hologram 4s ease-in-out infinite;
}

.hologram-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(85, 225, 92, 0.1), transparent);
  animation: glitch 3s ease-in-out infinite;
}

.cyber-button {
  background: linear-gradient(135deg, #55e15c, #1cb536);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.cyber-button::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;
}

.cyber-button:hover::before {
  left: 100%;
}

.cyber-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(85, 225, 92, 0.3);
}

/* ── PARTICLES CANVAS ────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── HOVER EFFECTS ───────────────────────────────────────── */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(85, 225, 92, 0.2);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  #tb-window {
    width: 100%;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  
  #tb-fab {
    bottom: 80px;
  }
}