/* ============================================
   QUILLEN — Upgrades v2
   Footer + Scroll Animations + Card Hovers
   ============================================ */

/* ----- SCROLL ANIMATIONS ----- */
.q-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.q-reveal.q-visible {
  opacity: 1;
  transform: translateY(0);
}
.q-reveal-delay-1 { transition-delay: 0.1s; }
.q-reveal-delay-2 { transition-delay: 0.2s; }
.q-reveal-delay-3 { transition-delay: 0.3s; }
.q-reveal-delay-4 { transition-delay: 0.45s; }

/* ----- CARD HOVER GLOW ----- */
.q-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.q-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(208,188,255,0.06) 0%, rgba(93,230,255,0.04) 100%);
  pointer-events: none;
  z-index: 0;
}
.q-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(208,188,255,0.18), 0 24px 60px rgba(0,0,0,0.45);
}
.q-card:hover::before {
  opacity: 1;
}

/* ----- CHAT MOCK ----- */
.q-chat-mock {
  background: rgba(19,19,27,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 480px;
  width: 100%;
}
.q-chat-titlebar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(27,27,35,0.8);
}
.q-chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.q-chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.q-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.q-msg.q-msg-visible {
  opacity: 1;
  transform: translateY(0);
}
.q-msg-user {
  flex-direction: row-reverse;
}
.q-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}
.q-msg-avatar-ai {
  background: linear-gradient(135deg, #a078ff, #5de6ff);
  color: #13131b;
}
.q-msg-avatar-user {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.q-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 75%;
  font-family: 'Manrope', sans-serif;
}
.q-msg-bubble-ai {
  background: rgba(160,120,255,0.12);
  border: 1px solid rgba(208,188,255,0.12);
  color: rgba(228,225,237,0.9);
}
.q-msg-bubble-user {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(228,225,237,0.7);
}
.q-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}
.q-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(208,188,255,0.5);
  animation: q-bounce 1.2s infinite;
}
.q-typing span:nth-child(2) { animation-delay: 0.2s; }
.q-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes q-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.q-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-family: 'Geist Mono', monospace;
  color: rgba(93,230,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.q-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5de6ff;
  animation: q-pulse 2s infinite;
}
@keyframes q-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ----- FOOTER REDESIGN ----- */
.q-footer {
  position: relative;
  background: #0a0a14;
  overflow: hidden;
}
.q-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,188,255,0.3), rgba(93,230,255,0.2), transparent);
}
.q-footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.q-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(208,188,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.q-footer-link {
  color: rgba(203,195,215,0.5);
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: color 0.2s ease;
  display: block;
  padding: 3px 0;
}
.q-footer-link:hover {
  color: rgba(255,255,255,0.9);
}
.q-footer-heading {
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(208,188,255,0.5);
  margin-bottom: 1rem;
}
.q-footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(208,188,255,0.2);
  color: rgba(208,188,255,0.8);
  font-size: 0.875rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s ease;
  background: rgba(208,188,255,0.04);
}
.q-footer-email-btn:hover {
  border-color: rgba(208,188,255,0.4);
  background: rgba(208,188,255,0.08);
  color: #fff;
}

/* ----- NAVBAR SCROLL EFFECT ----- */
.nav-scrolled {
  background: rgba(17,17,29,0.97) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.4) !important;
}
