/* Design tokens & Force Light Theme */
:root {
  color-scheme: light !important;
  --primary: 218 70% 52%;
  --background: 0 0% 100% !important;
  --foreground: 0 0% 3.9% !important;
}

html, body {
  color-scheme: light !important;
  background-color: #ffffff !important;
  color: #0a0a0a !important;
  overscroll-behavior: none;
}

main,
main > div,
.min-h-screen {
  background-color: transparent !important;
}

/* Fluid simulation canvas placed right under the elements */
#fluid-canvas, canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Frosted glass: heavy blur + milky tint at rest, colours stay vivid, thin grey edge (from claude copy.html) */
button.backdrop-blur-lg, form .backdrop-blur-lg {
  position: relative !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .3) 55%, rgba(255, 255, 255, .44) 100%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(190%) !important;
  backdrop-filter: blur(40px) saturate(190%) !important;
  border: 1px solid rgba(229, 229, 229, .9) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 22px -14px rgba(15, 23, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 20px rgba(255, 255, 255, .14) !important;
  transition: border-color .15s, background-color .15s, transform .12s !important;
}

button.backdrop-blur-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 58%);
  opacity: .8;
}

/* smaller corner radius on Me / Projects / Skills / Contact / Resume only */
button.backdrop-blur-lg {
  border-radius: 10px !important;
}

/* search bar pill radius */
form .backdrop-blur-lg {
  border-radius: 9999px !important;
}

/* input styles */
input, input:focus, input:focus-visible, form input, form input:focus {
  outline: none !important;
  outline-style: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-focus-ring-color: transparent !important;
  -webkit-appearance: none !important;
}

/* hover: thin blue ring, colours behind diffuse a little more */
@media (hover: hover) {
  button.backdrop-blur-lg:hover {
    -webkit-backdrop-filter: blur(48px) saturate(210%) !important;
    backdrop-filter: blur(48px) saturate(210%) !important;
    border-color: hsl(var(--primary)) !important;
    transform: none !important;
  }
}

/* press effect only while tapping / clicking */
button.backdrop-blur-lg:active {
  transform: scale(.95) !important;
}

form .backdrop-blur-lg:focus-within {
  border-color: hsl(var(--primary)) !important;
}

/* send button: light blue glass while empty, normal blue once there is text */
form button[type=submit] {
  -webkit-backdrop-filter: blur(6px) saturate(160%) !important;
  backdrop-filter: blur(6px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55) !important;
  transition: background-color .2s, transform .12s, box-shadow .2s !important;
}

form button[type=submit]:disabled {
  opacity: 1 !important;
  background: hsl(var(--primary) / .5) !important;
  cursor: default !important;
}

form button[type=submit]:not(:disabled) {
  background: hsl(var(--primary)) !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px -4px hsl(var(--primary) / .55) !important;
}

form button[type=submit]:not(:disabled):active {
  transform: scale(.92) !important;
}

/* info (i) button: same glass on hover */
div:has(> .lucide-info) {
  border-radius: 9999px !important;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}

@media (hover: hover) {
  div:has(> .lucide-info):hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .1) 60%, rgba(255, 255, 255, .2)) !important;
    -webkit-backdrop-filter: blur(6px) saturate(160%) !important;
    backdrop-filter: blur(6px) saturate(160%) !important;
    border-color: rgba(255, 255, 255, .75) !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  }
}

/* Non-draggable avatar */
img, [alt="Hero avatar"] {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  pointer-events: none !important;
}

/* Entrance Animations: smooth, elegant cubic slide-down & slide-up */
@keyframes ff-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ff-slide-up {
  0% {
    top: 50px;
  }
  100% {
    top: 0;
  }
}

[style*="translateY(-60px)"] {
  will-change: transform, opacity;
  animation: ff-slide-down 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.ff-slide-up, [style*="translateY(80px)"] {
  position: relative !important;
  animation: ff-slide-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* Welcome popup modal */
#ff-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .8);
  animation: ff-fade .2s ease-out;
}

#ff-modal.open {
  display: flex;
}

#ff-modal.closing {
  display: flex;
  animation: ff-fade-out 0.22s ease-out forwards;
  pointer-events: none;
}

#ff-modal .ff-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 10px;
  padding: 48px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
  animation: ff-pop .25s cubic-bezier(.22, 1, .36, 1);
}

#ff-modal.closing .ff-card {
  animation: ff-pop-out 0.22s cubic-bezier(.22, 1, .36, 1) forwards;
}

#ff-modal h3 {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #000000;
}

#ff-modal p {
  margin: 0 0 16px;
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #737373;
}

#ff-modal .ff-go {
  display: block;
  margin: 0 auto;
  height: 36px;
  background: hsl(var(--primary));
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 0 21px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}

#ff-modal .ff-go:hover {
  filter: brightness(1.1);
}

#ff-modal .ff-go:active {
  transform: scale(.96);
}

#ff-modal .ff-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}

#ff-modal .ff-x:hover {
  background: #262626;
}

#ff-modal .ff-x:active {
  transform: scale(.92);
}

@keyframes ff-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ff-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ff-pop {
  from { opacity: 0; transform: scale(.95) translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ff-pop-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(.95) translateY(12px); }
}

/* ==========================================================================
   Chat View Styles & Transitions (from fastfol.io/lotusoutlook/chat)
   ========================================================================== */

#chat-view {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  color: #0a0a0a;
  z-index: 20;
  overflow-x: hidden;
  padding-bottom: 110px;
}

#chat-view.active {
  display: flex;
}

/* Chat top-right info button */
.chat-top-right {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 35;
}

/* Top feather effect on scroll - behind pfp, only active when scrolled */
.chat-scroll-feather {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chat-scroll-feather.active {
  opacity: 1;
}

/* Bottom feather effect - dissolves scrollable text behind bottom controls */
.chat-bottom-feather {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 18%,
    rgba(255, 255, 255, 0.98) 32%,
    #ffffff 44%,
    #ffffff 100%
  ) !important;
  pointer-events: none !important;
  z-index: 35 !important;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chat-bottom-feather.collapsed {
  height: 140px !important;
}

/* Avatar squircle */
.chat-avatar-wrapper {
  position: sticky;
  top: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 35;
  pointer-events: auto;
}

.chat-avatar-squircle {
  width: 100px;
  height: 100px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: #f3f4f6;
  transform: none;
  transition: none;
}

.chat-avatar-squircle:hover {
  transform: none;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.1);
}

.chat-avatar-squircle:active {
  transform: none;
}

.chat-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Query bubble container */
.chat-query-container {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 1rem;
  z-index: 10;
}

.chat-query-bubble {
  background-color: #0070f3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 24px;
  border-radius: 9999px;
  max-width: min(620px, 92vw);
  text-align: center;
  box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.32);
  animation: chatBubbleSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chatBubbleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Juggling 3 dots indicator */
.chat-typing-container {
  width: 100%;
  max-width: 620px;
  padding: 0 1rem;
  margin: 1.25rem auto 0 auto;
  display: flex;
  justify-content: flex-start;
  z-index: 10;
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
}

.chat-dot {
  width: 5.5px;
  height: 5.5px;
  background-color: #0a0a0a;
  border-radius: 50%;
  display: inline-block;
  animation: dotJuggle 1.2s infinite ease-in-out;
}

.chat-dot:nth-child(1) {
  animation-delay: 0s;
}

.chat-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.chat-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes dotJuggle {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Bottom bar: fixed at bottom of screen */
.chat-bottom-bar {
  position: fixed;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 40;
  padding: 0 1.25rem;
  pointer-events: none;
}

.chat-bottom-bar > * {
  pointer-events: auto;
}

/* Options row above the search bar */
.chat-options-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chat-pill-btn {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px 14px;
  height: 36px;
  box-sizing: border-box;
  font-size: 13.5px;
  font-weight: 500;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transform: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chat-pill-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  transition: stroke 0.15s;
}

.chat-pill-btn {
  background: #ffffff;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px;
  padding: 6px 14px;
  height: 36px;
  box-sizing: border-box;
  font-size: 13.5px;
  font-weight: 500;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transform: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.chat-pill-btn:hover {
  border-color: #d1d5db !important;
  background: #f3f4f6;
  color: #111827;
  transform: none;
}

.chat-pill-btn.active {
  border: 1.5px solid #2563eb !important;
  color: #2563eb !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

.chat-pill-btn.active svg {
  color: #2563eb !important;
  stroke: #2563eb !important;
}

/* More options menu button & spring bounce arrow */
.chat-more-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.chat-more-bounce-arrow {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #111827;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.chat-more-wrapper:hover .chat-more-bounce-arrow {
  opacity: 1;
  animation: springBounceArrow 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes springBounceArrow {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}

.chat-more-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  margin: 0;
}

.chat-more-btn svg {
  width: 18px;
  height: 18px;
}

/* Bottom sheet backdrop */
.chat-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.chat-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom sheet card modal - full width as shown in screenshot */
.chat-sheet-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  width: 100%;
  max-width: 100%;
  height: 52vh;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.14);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Extension skirt underneath modal to prevent any gap when stretching up */
.chat-sheet-modal::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 600px;
  background: #ffffff;
  pointer-events: none;
}

.chat-sheet-modal.open {
  transform: translateY(0);
}

.chat-sheet-handle-wrapper {
  padding: 12px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  width: 100%;
}

.chat-sheet-pill-handle {
  position: relative;
  width: 38px;
  height: 5px;
  border-radius: 9999px;
  background-color: #d1d5db;
  cursor: grab;
  touch-action: none;
  transition: background-color 0.15s ease;
}

.chat-sheet-pill-handle::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -20px;
  right: -20px;
  cursor: inherit;
}

.chat-sheet-pill-handle:hover {
  background-color: #9ca3af;
}

.chat-sheet-pill-handle:active,
.chat-sheet-modal.is-dragging .chat-sheet-pill-handle {
  background-color: #6b7280 !important;
  cursor: grabbing !important;
}

/* HTML, Body, and Chat View scroll lock when sheet modal is open */
html.chat-sheet-open,
body.chat-sheet-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.chat-sheet-open #chat-view,
body.chat-sheet-open #chat-view {
  overflow: hidden !important;
}

/* Outer scroll container centered to cards width so scrollbar sits right where cards end */
.chat-sheet-scroll-container {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  outline: none;
}

/* Sleek scrollbar located right at the edge of the cards */
.chat-sheet-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.chat-sheet-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-sheet-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 9999px;
}

.chat-sheet-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

.chat-sheet-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

/* Options list inside centered scroll container */
.chat-sheet-content {
  width: 100%;
  padding: 10px 12px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.chat-sheet-section {
  display: flex;
  flex-direction: column;
}

.chat-sheet-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 10px;
}

.chat-sheet-section-header svg {
  width: 16px;
  height: 16px;
}

.chat-sheet-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f9fafb;
  color: #1f2937;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.chat-sheet-item:hover {
  background: #f3f4f6;
}

.chat-sheet-item.is-black {
  background: #0a0a0a !important;
  color: #ffffff !important;
}

.chat-sheet-item.is-black:hover {
  background: #171717 !important;
}

.chat-sheet-item.is-black span {
  color: #ffffff !important;
}

.chat-sheet-item.is-black .chat-sheet-sparkle-icon {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.chat-sheet-item.is-black .chat-sheet-item-arrow {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.chat-sheet-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-sheet-sparkle-icon {
  stroke: #ffffff;
  color: #ffffff;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chat-sheet-item-arrow {
  stroke: currentColor;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-sheet-item:hover .chat-sheet-item-arrow {
  transform: translateX(5px);
}

/* AI Answer view container */
.chat-answer-container {
  width: 100%;
  max-width: 780px;
  margin: 1.5rem auto 16px;
  padding: 0 1rem;
  box-sizing: border-box;
  z-index: 10;
  display: none;
  animation: answerFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-answer-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.chat-answer-top-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .chat-answer-top-grid {
    flex-direction: column;
    align-items: center;
  }
}

.chat-answer-photo-wrapper {
  position: relative;
  width: 240px;
  max-width: 44%;
  aspect-ratio: 4 / 4.8;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .chat-answer-photo-wrapper {
    width: 220px;
    max-width: 80%;
  }
}

.chat-answer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.chat-photo-feather-overlay {
  display: none !important;
}

.chat-answer-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-answer-name-ghost {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.chat-answer-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.chat-answer-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-answer-meta-text {
  font-size: 13.5px;
  color: #9ca3af;
  font-weight: 400;
}

.chat-answer-intro-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: #111827;
  font-weight: 450;
  margin-bottom: 14px;
  white-space: pre-line;
}

.chat-answer-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 500;
}

.chat-answer-body-text {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #1f2937;
  white-space: pre-line;
}

/* ==========================================================================
   AI Chat Conversation View (ChatGPT / Claude / Gemini style)
   ========================================================================== */
.ai-chat-thread {
  width: 100%;
  max-width: 760px;
  margin: 1.5rem auto 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 16px;
  box-sizing: border-box;
}

/* User Message Row - Aligned to the RIGHT */
.ai-chat-user-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.ai-chat-user-bubble {
  max-width: 82%;
  background: #0070f3 !important;
  color: #ffffff !important;
  border-radius: 20px 20px 6px 20px;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 112, 243, 0.28) !important;
  word-break: break-word;
  text-align: left;
}

html.dark .ai-chat-user-bubble {
  background: #0070f3 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.35) !important;
}

/* AI Message Row - Aligned to the LEFT */
.ai-chat-bot-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.ai-chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  margin-bottom: 8px;
}

html.dark .ai-chat-typing-dots {
  background: rgba(255, 255, 255, 0.07);
}

.ai-chat-bot-response {
  width: 100%;
  font-size: 15.5px;
  line-height: 1.75;
  color: #1e293b;
  font-family: inherit;
  word-break: break-word;
}

html.dark .ai-chat-bot-response {
  color: #e2e8f0 !important;
}

.ai-chat-bot-response p {
  margin: 0 0 14px;
}

.ai-chat-bot-response p:last-child {
  margin-bottom: 0;
}

.ai-chat-bot-response strong {
  color: #0f172a;
}

html.dark .ai-chat-bot-response strong {
  color: #ffffff !important;
}

/* Blinking AI Cursor - Hidden as requested */
.ai-cursor {
  display: none !important;
}

.ai-chat-list {
  margin: 4px 0 16px 22px;
  padding: 0;
  list-style-type: disc;
}

.ai-chat-list li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: #1e293b;
}

html.dark .ai-chat-list li {
  color: #e2e8f0 !important;
}

.ai-chat-list li:last-child {
  margin-bottom: 0;
}

/* Chat Input Form & expanding animation */
.chat-input-form {
  width: 100%;
  max-width: 620px;
  display: flex;
  justify-content: center;
}

.chat-input-pill {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 5px 6px 5px 22px;
  min-height: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform-origin: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  animation: searchBarCenterExpand 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chat-input-pill:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 4px 18px -4px rgba(59, 130, 246, 0.2);
}

@keyframes searchBarCenterExpand {
  0% {
    width: 200px;
    opacity: 0.5;
    transform: scaleY(0.9);
  }
  100% {
    width: 100%;
    opacity: 1;
    transform: scaleY(1);
  }
}

.chat-input-pill input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px;
  color: #1e293b;
  width: 100%;
}

.chat-input-pill input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
}

.chat-send-btn:hover {
  background: #1d4ed8;
}

.chat-send-btn:active {
  background: #1e40af;
}

/* Gemini Wordmark Badge (Same Size Text, Cropped Star Logo, No Hover Shift) */
.fastfolio-badge {
  position: fixed;
  bottom: 22px;
  right: 24px;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  gap: 6px !important;
  text-decoration: none !important;
  z-index: 50 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  transition: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.fastfolio-badge:hover,
.fastfolio-badge:active,
.fastfolio-badge:focus {
  opacity: 1 !important;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.fastfolio-badge .powered-by-text {
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.fastfolio-badge .gemini-star-icon {
  height: 14px !important;
  width: 14px !important;
  display: inline-block !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin-left: 1px !important;
  margin-right: 1px !important;
}

.fastfolio-badge .gemini-brand-text {
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3.5px !important;
}

.fastfolio-badge .gemini-version-muted {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.fastfolio-badge .gemini-version-flash {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Chat top feather overlay */
.chat-top-feather {
  display: none !important;
}

/* ==========================================================================
   Quick Questions Toggle Button
   ========================================================================== */
.chat-toggle-questions-btn {
  background: none;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: color 0.15s, background-color 0.15s;
  user-select: none;
}

.chat-toggle-questions-btn:hover {
  color: #111827;
  background-color: rgba(0, 0, 0, 0.04);
}

.chat-toggle-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-options-row.collapsed {
  display: none !important;
}

/* ==========================================================================
   Section Views Common
   ========================================================================== */
.chat-section-view {
  width: 100%;
  animation: answerFadeIn 0.4s ease both;
}

/* ==========================================================================
   Me Section: Slide down names, word-by-word meta, popping chips, WebGL canvas
   ========================================================================== */
.chat-section-me {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.me-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.me-top-grid {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .me-top-grid {
    flex-direction: column;
    align-items: center;
  }
}

.me-photo-wrapper {
  position: relative;
  width: 270px;
  max-width: 42%;
  min-height: 330px;
  align-self: stretch;
  border-radius: 26px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .me-photo-wrapper {
    width: 240px;
    max-width: 85%;
    min-height: 288px;
    aspect-ratio: 4 / 4.8;
  }
}

.me-photo-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: 2 !important;
  border-radius: inherit;
  transition: opacity 0.8s ease;
  pointer-events: none !important;
}

.me-gen-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.me-gen-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  animation: genDotPulse 1.2s infinite ease-in-out;
}

@keyframes genDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.me-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 1;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.05);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.me-photo.loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.me-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.me-name-row {
  display: flex;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.me-name-part {
  display: inline-block;
  opacity: 0;
  transform: translateY(-24px);
}

.me-name-part.slide-in {
  animation: meSlideDown 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes meSlideDown {
  0% { opacity: 0; transform: translateY(-24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.me-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 450;
  flex-wrap: wrap;
}

.me-meta-comma {
  margin-left: -5px;
}

.me-meta-unit {
  display: inline-block;
  opacity: 0;
}

.me-meta-unit.slide-in {
  animation: meSlideDown 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.me-meta-unit.pop-in {
  animation: mePop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mePop {
  0% { opacity: 0; transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

.me-intro-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #111827;
  font-weight: 450;
  margin-bottom: 14px;
  min-height: 48px;
}

.me-token-word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-12px);
  margin-right: 4px;
}

.me-token-word.slide-in {
  animation: tokenSlideRight 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tokenSlideRight {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}

.me-token-punct {
  display: inline-block;
  opacity: 0;
  transform: scale(0);
  margin-left: -4px;
  margin-right: 4px;
}

.me-token-punct.pop-in {
  animation: mePop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wave-hand {
  display: inline-block;
  cursor: pointer;
  transform-origin: 70% 70%;
  margin-left: 2px;
  margin-right: 4px;
  transition: transform 0.2s;
}

.wave-hand:hover {
  animation: waveHandAnim 0.9s ease-in-out infinite;
}

@keyframes waveHandAnim {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(18deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(18deg); }
  80% { transform: rotate(-4deg); }
}

.me-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.me-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-weight: 500;
  opacity: 0;
  transform: scale(0);
  transform-origin: center center;
  cursor: default;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.me-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: none !important; /* No hover enlargement */
}

.me-chip.pop-in {
  animation: chipSpringPop 0.44s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chipSpringPop {
  0% {
    opacity: 0;
    transform: scale(0.12);
  }
  65% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utilized space: Credentials & Education Card on the right of avatar */
.me-credentials-card {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.me-credentials-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.me-cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-cred-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.me-cred-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.me-cred-details {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.me-cred-title {
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
}

.me-cred-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 450;
}

.me-bio-container {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.me-bio-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.me-bio-content {
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
}

.me-bio-content p {
  margin-bottom: 14px;
}

.me-bio-content strong {
  color: #111827;
  font-weight: 600;
}

/* ==========================================================================
   Projects Section: Carousel, Nav buttons, Grayscale Hover, Highlights
   ========================================================================== */
.chat-section-projects {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.projects-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-header-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.projects-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.8px;
  margin: 0;
}

.projects-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  outline: none;
}

.projects-arrow-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px) scale(1.04);
  box-shadow: none;
}

.projects-arrow-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.projects-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.projects-arrow-btn svg {
  width: 18px;
  height: 18px;
}

.projects-carousel-container {
  position: relative;
  width: 100%;
  padding: 4px 0 16px;
  overflow: hidden;
}

.projects-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.projects-carousel-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  width: calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px 14px;
  box-sizing: border-box;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(226, 232, 240, 0.9);
  user-select: none;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.22s ease,
              border-color 0.22s ease,
              box-shadow 0.22s ease;
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 720px) and (min-width: 480px) {
  .project-card {
    width: calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
    height: 380px;
  }
}

@media (max-width: 479px) {
  .project-card {
    width: 85%;
    min-width: 85%;
    max-width: 85%;
    height: 380px;
  }
}

.project-card:hover {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 10px 28px -4px rgba(15, 23, 42, 0.1) !important;
  transform: none !important;
}

/* Project Visual Artwork Banner - Monochrome in default, Vibrant Color on Hover */
.project-banner-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
  flex-shrink: 0;
  transform: none !important;
}

.project-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%) brightness(0.92) contrast(1.04);
  opacity: 0.9;
  transform: none !important;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.project-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(15, 23, 42, 0.08) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* On hover: bursting into rich, vibrant colors with ZERO enlargement / scale */
.project-card:hover .project-banner-img,
.project-banner-wrapper:hover .project-banner-img,
.project-banner-img:hover {
  filter: grayscale(0%) brightness(1.02) contrast(1.05) saturate(1.2) !important;
  opacity: 1 !important;
  transform: none !important;
}

.project-card:hover .project-banner-overlay,
.project-banner-wrapper:hover .project-banner-overlay {
  opacity: 0 !important;
}

/* Corner GitHub Octocat - Sized neatly for compact cards, NO hover enlargement */
.project-github-corner {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-top-right-radius: 20px;
  overflow: hidden;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transform: none !important;
}

.github-cat-svg {
  display: block;
  width: 44px;
  height: 44px;
}

/* Wiggle ONLY when directly hovering over the GitHub cat itself, and ONLY 1 time */
.project-github-corner:hover .octo-arm {
  animation: octocatWave 650ms ease-in-out 1 forwards;
}

@keyframes octocatWave {
  0%, 100% {
    transform: rotate(0);
  }
  20%, 60% {
    transform: rotate(-24deg);
  }
  40%, 80% {
    transform: rotate(10deg);
  }
}

.project-card-top {
  z-index: 2;
  position: relative;
  flex: 1 1 auto;
}

.project-category-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.22;
  margin: 0 0 4px;
  color: #0f172a;
}

.project-desc {
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-bottom {
  z-index: 2;
  position: relative;
  margin-top: auto;
  padding-top: 6px;
  flex-shrink: 0;
}

.project-tags-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 5px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-tags-row::-webkit-scrollbar {
  display: none;
}

.project-tag-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 550;
  letter-spacing: -0.1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bottom Action Row with Clean Button */
.project-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  min-height: 30px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.project-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 3.5px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.1px;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-visit-btn:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

.project-visit-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2.2;
  opacity: 0.85;
  transition: none !important;
}

.project-visit-btn:hover svg {
  transform: none !important;
  opacity: 1 !important;
}

.projects-highlights-card {
  padding: 8px 4px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #1f2937;
}

.projects-intro-text {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-intro-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.projects-numbered-list {
  padding-left: 20px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-numbered-list li {
  padding-left: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.projects-numbered-list li.revealed {
  opacity: 1;
  transform: translateY(0);
}

.projects-numbered-list a.proj-link {
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.projects-numbered-list a.proj-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.projects-outro-text {
  font-size: 14.5px;
  color: #4b5563;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-outro-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Skills Section: Categories with Icons, Dark Pills, Summary Breakdown
   ========================================================================== */
.chat-section-skills {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.skills-main-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-main-title.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skills-group {
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-group.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skills-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.skills-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #2563eb;
  flex-shrink: 0;
}

.skills-group-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.skills-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-badge {
  background: #171717;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: -0.2px;
  display: inline-block;
  user-select: none;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-badge.revealed {
  opacity: 1;
  transform: scale(1);
}

.skills-summary-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  font-size: 14.5px;
  line-height: 1.65;
  color: #1f2937;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-summary-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skills-summary-box .skills-intro {
  margin-bottom: 16px;
}

.skills-breakdown-section {
  margin-bottom: 18px;
}

.skills-breakdown-heading {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.skills-bullets-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skills-closing-text {
  margin-top: 18px;
  color: #4b5563;
}

/* ==========================================================================
   Contact Section: Simple, Clean Personal Business/Contact Card
   ========================================================================== */
.chat-section-contact {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  position: relative;
  background: linear-gradient(135deg, #f6f4ec 0%, #faf5ec 45%, #faece4 100%);
  border: 1px solid rgba(235, 230, 220, 0.85);
  border-radius: 28px;
  padding: 38px 46px;
  margin-bottom: 24px;
  box-shadow: 0 16px 36px -8px rgba(120, 100, 90, 0.08),
              0 2px 8px -2px rgba(120, 100, 90, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.contact-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Simple & Clean - NO hover motion on card */
.contact-card:hover {
  transform: none !important;
  box-shadow: 0 16px 36px -8px rgba(120, 100, 90, 0.08),
              0 2px 8px -2px rgba(120, 100, 90, 0.04) !important;
}

.contact-card-inner {
  display: flex;
  align-items: center;
  gap: 38px;
  width: 100%;
}

/* Left: Avatar & Socials */
.contact-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.contact-avatar-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.contact-social-btn:hover {
  opacity: 0.85;
  transform: none;
}

.contact-social-btn svg {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 5.33px;
}

/* Right: Person info */
.contact-card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  flex: 1;
}

.contact-person-name {
  font-size: 26px;
  font-weight: 750;
  color: #2e2b27;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.contact-person-role {
  font-size: 16.5px;
  font-weight: 500;
  color: #5c5750;
  margin: 0 0 6px;
  line-height: 1.4;
}

.contact-person-location {
  font-size: 14.5px;
  font-weight: 400;
  color: #7c776f;
  margin: 0 0 22px;
  line-height: 1.4;
}

.contact-person-email {
  font-size: 15px;
  margin: 0;
  color: #2e2b27;
  line-height: 1.4;
}

.email-label {
  color: #5c5750;
  margin-right: 4px;
  font-weight: 450;
}

.email-address-link {
  color: #2e2b27;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.email-address-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .contact-card {
    padding: 28px 22px;
  }
  .contact-card-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .contact-card-right {
    text-align: center;
    align-items: center;
  }
}

.contact-outro-message {
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  padding: 0 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.contact-outro-message.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Resume Section: Spinner morphs into interactive CV Document Card
   ========================================================================== */
.chat-section-resume {
  width: 100%;
  max-width: 760px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 3.5rem;
  position: relative;
}

.resume-loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.resume-loading-card.morphed-out {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  display: none !important;
}

/* Resume Loading Spinner Card */
.resume-spinner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  min-height: 180px;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.resume-spinner-card.visible {
  opacity: 1;
  transform: scale(1);
}

.resume-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: resumeSpin 0.75s linear infinite;
}

html.dark .resume-spinner {
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #22c55e;
}

@keyframes resumeSpin {
  to { transform: rotate(360deg); }
}

/* LatticeLoader Component (React Bits adaptation in pure HTML & CSS) */
.lattice-loader {
  --ll-n: 3;
  --ll-cell: 6px;
  --ll-gap: 2.5px;
  --ll-font: 14px;
  --ll-color: currentColor;
  --ll-mark: #22c55e;
  --ll-idle: 0.15;
  --ll-glow: currentColor;
  --ll-mark-glow: #22c55e;
  --ll-peak: 1;
  --ll-cycle: 864ms;
  --ll-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ll-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--ll-font) * 0.625);
  font-family: inherit;
  font-size: var(--ll-font);
  line-height: 1;
  color: #475569;
}

html.dark .lattice-loader {
  color: #cbd5e1;
}

.lattice-loader__grid {
  display: grid;
  flex: none;
}

.lattice-loader__layer {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(var(--ll-n), var(--ll-cell));
  gap: var(--ll-gap);
}

.lattice-loader__cell {
  width: var(--ll-cell);
  height: var(--ll-cell);
  border-radius: max(1px, calc(var(--ll-cell) * 0.25));
  background: var(--ll-color);
  opacity: var(--ll-idle);
}

.lattice-loader[data-shape='round'] .lattice-loader__cell {
  border-radius: 50%;
}

.lattice-loader[data-glow] .lattice-loader__run .lattice-loader__cell:not([data-hole]) {
  box-shadow: 0 0 calc(var(--ll-cell) * 1.2) calc(var(--ll-cell) * 0.12) var(--ll-glow);
}

.lattice-loader[data-glow] .lattice-loader__mark .lattice-loader__cell[data-on] {
  box-shadow: 0 0 calc(var(--ll-cell) * 1.2) calc(var(--ll-cell) * 0.12) var(--ll-mark-glow);
}

.lattice-loader__run {
  transition: opacity 200ms ease;
}

.lattice-loader__run .lattice-loader__cell {
  animation: lattice-on var(--ll-cycle) var(--ll-ease-in-out) infinite;
}

.lattice-loader__run .lattice-loader__cell[data-lit='45'] {
  animation-name: lattice-on-45;
}

.lattice-loader__run .lattice-loader__cell[data-lit='35'] {
  animation-name: lattice-on-35;
}

.lattice-loader__run .lattice-loader__cell[data-lit='25'] {
  animation-name: lattice-on-25;
}

.lattice-loader__run .lattice-loader__cell[data-hole] {
  animation: none;
  opacity: calc(var(--ll-idle) * 0.47);
}

.lattice-loader__mark {
  opacity: 0;
  transform: none !important;
  transform-origin: center;
  transition: opacity 160ms var(--ll-ease-out);
}

.lattice-loader__mark .lattice-loader__cell {
  transition:
    opacity 200ms ease,
    background-color 200ms ease;
}

.lattice-loader__cell.is-green {
  background: #22c55e !important;
  opacity: 1 !important;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.75) !important;
  animation: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

.lattice-loader__mark .lattice-loader__cell[data-on] {
  background: var(--ll-mark) !important;
  opacity: var(--ll-peak) !important;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.75) !important;
}

.lattice-loader:not([data-status='working']) .lattice-loader__run {
  opacity: 0;
}

.lattice-loader:not([data-status='working']) .lattice-loader__run .lattice-loader__cell {
  animation-play-state: paused;
}

.lattice-loader:not([data-status='working']) .lattice-loader__mark {
  opacity: 1;
  transform: none !important;
  transition: opacity 200ms ease;
}

.lattice-loader__label {
  position: relative;
  display: inline-grid;
  grid-template-areas: "stack";
  align-items: center;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  font-weight: 500;
  text-align: left;
}

.lattice-loader__text {
  grid-area: stack;
  white-space: nowrap;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 250ms ease,
    filter 250ms ease;
  pointer-events: none;
}

.lattice-loader__text[data-active] {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.lattice-loader__timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: calc(var(--ll-font) * 0.875);
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
  display: inline-block;
  width: 44px;
  min-width: 44px;
  text-align: left;
}

.lattice-loader__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes lattice-on {
  0%,
  100% {
    opacity: var(--ll-idle);
  }

  18%,
  42% {
    opacity: var(--ll-peak);
  }

  62% {
    opacity: var(--ll-idle);
  }
}

@keyframes lattice-on-45 {
  0%,
  100% {
    opacity: var(--ll-idle);
  }

  13%,
  31% {
    opacity: var(--ll-peak);
  }

  45% {
    opacity: var(--ll-idle);
  }
}

@keyframes lattice-on-35 {
  0%,
  100% {
    opacity: var(--ll-idle);
  }

  10%,
  24% {
    opacity: var(--ll-peak);
  }

  35% {
    opacity: var(--ll-idle);
  }
}

@keyframes lattice-on-25 {
  0%,
  100% {
    opacity: var(--ll-idle);
  }

  7%,
  17% {
    opacity: var(--ll-peak);
  }

  25% {
    opacity: var(--ll-idle);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lattice-loader__run {
    --ll-peak: 0.7;
  }

  .lattice-loader__run .lattice-loader__cell {
    animation-delay: 0ms !important;
    animation-duration: 1400ms !important;
  }

  .lattice-loader .lattice-loader__mark {
    transform: none;
  }

  .lattice-loader .lattice-loader__text {
    filter: none;
  }
}

/* Document Paper Card */
.resume-doc-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 32px -8px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.03);
  padding: 38px 42px;
  box-sizing: border-box;
  color: #1e293b;
  user-select: text !important;
  -webkit-user-select: text !important;
  display: none;
  opacity: 0;
  transform: scale(0.92) translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.resume-doc-card.morphed-in {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.resume-doc-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
  position: relative;
}

.resume-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.resume-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.resume-download-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12.5px;
  color: #475569;
}

.resume-contact-bar a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.resume-contact-bar a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.resume-divider {
  color: #94a3b8;
  font-weight: 300;
  user-select: none;
}

.resume-section {
  margin-bottom: 18px;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
  margin: 0 0 10px;
}

.resume-item {
  margin-bottom: 12px;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 3px;
}

.resume-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.resume-item-right {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  text-align: right;
  white-space: nowrap;
}

.resume-item-tech {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  font-style: italic;
  text-align: right;
  white-space: nowrap;
}

.resume-item-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.resume-item-date {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.resume-item-org {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.resume-item-score {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.resume-divider-pipe {
  color: #94a3b8;
  font-weight: 300;
  margin: 0 2px;
}

.resume-bullets {
  list-style: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #334155 !important;
}

.resume-bullets li {
  position: relative !important;
  display: block !important;
  padding-left: 18px !important;
  margin-bottom: 5px !important;
  list-style: none !important;
  color: #334155 !important;
}

.resume-bullets li::before {
  content: "•" !important;
  position: absolute !important;
  left: 2px !important;
  top: -1px !important;
  color: #475569 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  display: block !important;
}

.resume-bullets li:last-child {
  margin-bottom: 0 !important;
}

.resume-skills-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  text-align: left;
}

.resume-skill-row {
  text-align: left;
}

.resume-skill-row strong {
  color: #0f172a;
}

@media (max-width: 640px) {
  .resume-doc-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .resume-name {
    font-size: 22px;
  }
}

/* ==========================================================================
   Dark Mode Toggle Button & Global Dark Theme
   ========================================================================== */
.chat-sheet-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-sheet-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-dark-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 550;
  color: #64748b;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.chat-dark-mode-toggle:hover {
  color: #0f172a;
}

.chat-dark-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  background-color: #cbd5e1;
  border-radius: 9999px;
  transition: background-color 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.chat-dark-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

/* Dark mode active states */
html.dark .chat-dark-mode-toggle {
  color: #94a3b8;
}

html.dark .chat-dark-toggle-track {
  background-color: #3b82f6;
}

html.dark .chat-dark-toggle-thumb {
  transform: translateX(16px);
  background-color: #ffffff;
}

/* Dark Theme Overrides */
/* Dark Theme Overrides (Complete & Cohesive) */
html.dark {
  color-scheme: dark !important;
  --background: 222 47% 6% !important;
  --foreground: 210 40% 98% !important;
  background-color: #090d16 !important;
}

html.dark body {
  color-scheme: dark !important;
  background-color: #090d16 !important;
  color: #f1f5f9 !important;
}

/* Home / Hero View in Dark Mode */
html.dark #home-view h1 {
  color: #ffffff !important;
}

html.dark #home-view h2,
html.dark #home-view .text-foreground,
html.dark .text-foreground {
  color: #f1f5f9 !important;
}

html.dark #home-view svg text {
  fill: url(#lotusGrad) !important;
  opacity: 0.9 !important;
}

html.dark #lotusGrad stop:first-child {
  stop-color: rgba(255, 255, 255, 0.16) !important;
}

html.dark #lotusGrad stop:last-child {
  stop-color: rgba(255, 255, 255, 0.02) !important;
}

html.dark form .backdrop-blur-lg {
  background: rgba(17, 24, 39, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark form .backdrop-blur-lg:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

html.dark #home-search-input {
  color: #f8fafc !important;
}

html.dark #home-search-input::placeholder {
  color: #94a3b8 !important;
}

html.dark button.backdrop-blur-lg {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark button.backdrop-blur-lg::before {
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 58%) !important;
}

html.dark button.backdrop-blur-lg:hover {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.85) 0%, rgba(30, 41, 59, 0.92) 100%) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html.dark button.backdrop-blur-lg .text-gray-700 {
  color: #e2e8f0 !important;
}

html.dark button.backdrop-blur-lg .text-primary {
  color: #60a5fa !important;
}

html.dark .hover\:bg-secondary\/50 {
  color: #cbd5e1 !important;
}

/* Chat View Container & Header */
html.dark #chat-view {
  background-color: #090d16 !important;
  color: #f1f5f9 !important;
}

html.dark .chat-header {
  background: rgba(9, 13, 22, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .chat-title {
  color: #f8fafc !important;
}

/* Chat Feather Dissolves - Must fade to #090d16 in dark mode */
html.dark .chat-scroll-feather {
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 22, 1) 0%,
    rgba(9, 13, 22, 0.9) 45%,
    rgba(9, 13, 22, 0) 100%
  ) !important;
}

html.dark .chat-bottom-feather {
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 22, 0) 0%,
    rgba(9, 13, 22, 0.65) 18%,
    rgba(9, 13, 22, 0.98) 32%,
    #090d16 44%,
    #090d16 100%
  ) !important;
}

html.dark .chat-avatar-squircle {
  background-color: #1e293b !important;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.5) !important;
}

html.dark .chat-dot {
  background-color: #f1f5f9 !important;
}

/* Chat Quick Questions Toggle & Pills */
html.dark .chat-toggle-questions-btn {
  color: #94a3b8 !important;
}

html.dark .chat-toggle-questions-btn:hover {
  color: #f1f5f9 !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .chat-pill-btn {
  background: #111827 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

html.dark .chat-pill-btn svg {
  color: #94a3b8 !important;
  stroke: #94a3b8 !important;
}

html.dark .chat-pill-btn:hover {
  background: #1f2937 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html.dark .chat-pill-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

html.dark .chat-pill-btn.active {
  background: #ffffff !important;
  color: #090d16 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25) !important;
}

html.dark .chat-pill-btn.active svg {
  color: #090d16 !important;
  stroke: #090d16 !important;
}

html.dark .chat-more-btn {
  background: #111827 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

html.dark .chat-more-bounce-arrow {
  color: #f8fafc !important;
}

/* Chat Input Bar Pill */
html.dark .chat-input-pill {
  background: #111827 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.5) !important;
}

html.dark .chat-input-pill:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), 0 4px 18px -4px rgba(0, 0, 0, 0.7) !important;
}

html.dark .chat-input-pill input {
  color: #f8fafc !important;
}

html.dark .chat-input-pill input::placeholder {
  color: #94a3b8 !important;
}

html.dark .fastfolio-badge {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transform: none !important;
  opacity: 1 !important;
}

html.dark .fastfolio-badge:hover,
html.dark .fastfolio-badge:active,
html.dark .fastfolio-badge:focus {
  transform: none !important;
  opacity: 1 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

/* Info & Close Buttons Click Area Enlargement */
#home-info-btn,
#chat-info-btn,
.info-modal-trigger {
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  min-height: 48px !important;
  user-select: none !important;
}

#home-info-btn svg,
#chat-info-btn svg,
.info-modal-trigger svg {
  pointer-events: none !important;
}

#ff-modal .ff-x {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #000000 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 100 !important;
}

#ff-modal .ff-x svg {
  pointer-events: none !important;
}

#ff-modal .ff-x::before {
  content: '' !important;
  position: absolute !important;
  inset: -14px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}

html.dark #ff-modal .ff-x {
  background: #1f2937 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Section 1: Me View in Dark Mode */
html.dark .me-card {
  background: transparent !important;
}

html.dark .me-name-row {
  color: #f8fafc !important;
}

html.dark .me-meta-row {
  color: #94a3b8 !important;
}

html.dark .me-intro-text {
  color: #e2e8f0 !important;
}

html.dark .me-chip {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

html.dark .me-chip:hover {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

html.dark .me-credentials-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark .me-cred-icon {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #60a5fa !important;
}

html.dark .me-cred-title {
  color: #f8fafc !important;
}

html.dark .me-cred-sub {
  color: #94a3b8 !important;
}

html.dark .me-bio-content {
  color: #cbd5e1 !important;
}

html.dark .me-bio-content p {
  color: #cbd5e1 !important;
}

html.dark .me-bio-content strong {
  color: #ffffff !important;
}

/* Section 2: Projects in Dark Mode */
html.dark .projects-title {
  color: #f8fafc !important;
}

html.dark .projects-arrow-btn {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html.dark .projects-arrow-btn:hover:not(:disabled) {
  background: #334155 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

html.dark .project-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45) !important;
}

html.dark .project-card:hover {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.6) !important;
}

html.dark .project-title {
  color: #f8fafc !important;
}

html.dark .project-desc {
  color: #94a3b8 !important;
}

html.dark .project-banner-wrapper {
  background: #0b0f17 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .project-tag-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

html.dark .project-actions-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .project-visit-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
}

html.dark .project-visit-btn:hover {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #090d16 !important;
}

html.dark .project-category-tag {
  filter: brightness(1.25);
}

html.dark .projects-highlights-card {
  color: #cbd5e1 !important;
}

html.dark .projects-intro-text,
html.dark .projects-outro-text {
  color: #e2e8f0 !important;
}

html.dark .projects-highlights-card .proj-link {
  color: #60a5fa !important;
}

html.dark .projects-highlights-card .proj-desc {
  color: #94a3b8 !important;
}

/* Section 3: Skills in Dark Mode */
html.dark .skills-main-title {
  color: #f8fafc !important;
}

html.dark .skills-group-header {
  color: #f1f5f9 !important;
}

html.dark .skills-group-name {
  color: #f1f5f9 !important;
}

html.dark .skills-group-icon {
  color: #60a5fa !important;
}

html.dark .skill-badge {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
}

html.dark .skills-summary-box {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

html.dark .skills-intro,
html.dark .skills-closing-text {
  color: #e2e8f0 !important;
}

html.dark .skills-breakdown-heading {
  color: #f8fafc !important;
}

html.dark .skills-bullets-list li {
  color: #cbd5e1 !important;
}

html.dark .skills-bullets-list strong {
  color: #f8fafc !important;
}

/* Section 4: Contact in Dark Mode */
html.dark .contact-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6) !important;
}

html.dark .contact-avatar-wrap {
  background: #1e293b !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html.dark .contact-person-name {
  color: #f8fafc !important;
}

html.dark .contact-person-role {
  color: #cbd5e1 !important;
}

html.dark .contact-person-location {
  color: #94a3b8 !important;
}

html.dark .contact-person-email {
  color: #e2e8f0 !important;
}

html.dark .email-label {
  color: #94a3b8 !important;
}

html.dark .email-address-link {
  color: #60a5fa !important;
}

html.dark .contact-outro-message {
  color: #cbd5e1 !important;
}

/* Section 5: Resume in Dark Mode */
html.dark .resume-loading-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark .resume-doc-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.7) !important;
}

html.dark .resume-doc-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
}

html.dark .resume-name {
  color: #ffffff !important;
}

html.dark .resume-download-btn {
  background: #1f2937 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #f8fafc !important;
}

html.dark .resume-download-btn:hover {
  background: #374151 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

html.dark .resume-contact-bar {
  color: #cbd5e1 !important;
}

html.dark .resume-contact-bar a {
  color: #60a5fa !important;
}

html.dark .resume-divider,
html.dark .resume-divider-pipe {
  color: #64748b !important;
}

html.dark .resume-section-title {
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.dark .resume-item-title {
  color: #ffffff !important;
}

html.dark .resume-item-org {
  color: #e2e8f0 !important;
}

html.dark .resume-item-date {
  color: #cbd5e1 !important;
}

html.dark .resume-item-right {
  color: #cbd5e1 !important;
}

html.dark .resume-item-tech {
  color: #cbd5e1 !important;
}

html.dark .resume-item-sub {
  color: #cbd5e1 !important;
}

html.dark .resume-item-score {
  color: #cbd5e1 !important;
}

html.dark .resume-bullets {
  color: #e2e8f0 !important;
}

html.dark .resume-bullets li {
  color: #e2e8f0 !important;
}

html.dark .resume-bullets li::before {
  color: #94a3b8 !important;
}

html.dark .resume-bullets li strong {
  color: #ffffff !important;
}

html.dark .resume-skills-list {
  color: #e2e8f0 !important;
}

html.dark .resume-skill-row {
  color: #e2e8f0 !important;
}

html.dark .resume-skill-row strong {
  color: #ffffff !important;
}

html.dark .resume-doc-card strong {
  color: #ffffff !important;
}

/* Info Welcome Modal in Dark Mode */
html.dark #ff-modal,
.dark #ff-modal {
  background: rgba(0, 0, 0, 0.75) !important;
}

html.dark #ff-modal .ff-card,
.dark #ff-modal .ff-card {
  background: #111827 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}

html.dark #ff-modal h3,
.dark #ff-modal h3 {
  color: #ffffff !important;
}

html.dark #ff-modal p,
.dark #ff-modal p {
  color: #cbd5e1 !important;
}

html.dark #ff-modal .ff-x,
.dark #ff-modal .ff-x {
  background: #1f2937 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

html.dark #ff-modal .ff-x:hover,
.dark #ff-modal .ff-x:hover {
  background: #374151 !important;
  color: #ffffff !important;
}

/* Custom Answers / General Queries in Dark Mode */
html.dark .chat-answer-intro-text {
  color: #e2e8f0 !important;
}

html.dark .chat-answer-body-text {
  color: #cbd5e1 !important;
}

html.dark .chat-answer-body-text strong {
  color: #ffffff !important;
}

html.dark .chat-answer-chip {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

/* Options Bottom Sheet Modal */
html.dark .chat-sheet-modal {
  background: #111827 !important;
  color: #f8fafc !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6) !important;
}

html.dark .chat-sheet-modal::after {
  background: #111827 !important;
}

html.dark .chat-sheet-pill-handle {
  background: #374151 !important;
}

html.dark .chat-sheet-section-header {
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .chat-sheet-item {
  background: #1f2937 !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .chat-sheet-item:hover {
  background: #374151 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html.dark .chat-sheet-item.is-black {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
}

html.dark .chat-sheet-item.is-black:hover {
  background: #f1f5f9 !important;
  color: #000000 !important;
}

html.dark .chat-sheet-item.is-black span {
  color: #000000 !important;
}

html.dark .chat-sheet-item.is-black .chat-sheet-sparkle-icon {
  stroke: #000000 !important;
  color: #000000 !important;
}

html.dark .chat-sheet-item.is-black .chat-sheet-item-arrow {
  color: #000000 !important;
  stroke: #000000 !important;
}

html.dark .chat-sheet-item-arrow {
  color: #9ca3af !important;
}

/* ==========================================================================
   Mobile Optimization & Responsive Layout Enhancements
   ========================================================================== */

/* 1. Home View on Mobile (< 640px) */
@media (max-width: 640px) {
  #home-view {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    height: auto !important;
  }

  #home-view > .z-40.mt-24 {
    margin-top: 2.75rem !important;
    margin-bottom: 1rem !important;
  }

  #home-view h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    padding: 0 0.5rem !important;
    max-width: 340px !important;
  }

  #home-view h2 {
    font-size: 1.05rem !important;
  }

  #home-view .relative.z-10.h-44 {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
  }

  /* Home search bar */
  #home-search-form {
    max-width: 92vw !important;
    padding: 0 4px !important;
  }

  /* Make the 5 category buttons on mobile wrap gracefully into compact responsive tiles */
  #home-view .mt-4.flex.flex-col,
  .home-category-pills {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    max-width: 360px !important;
    padding: 0 8px !important;
  }

  #home-view [data-home-key] {
    width: calc(33.333% - 6px) !important;
    min-width: 90px !important;
    max-width: 110px !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  #home-view [data-home-key] > div {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  #home-view [data-home-key] svg {
    width: 16px !important;
    height: 16px !important;
  }

  #home-view [data-home-key] span {
    font-size: 12.5px !important;
    font-weight: 600 !important;
  }

  /* Home info button */
  #home-view .absolute.top-6.right-8 {
    top: 1rem !important;
    right: 1rem !important;
  }

  /* Watermark SVG position on mobile */
  #home-view .pointer-events-none.absolute.bottom-0 {
    opacity: 0.55 !important;
  }
}

/* 2. Chat View - Bottom Bar, Gemini Badge & Avoid Overlaps (<= 768px) */
@media (max-width: 768px) {
  #chat-view {
    padding-bottom: 200px !important;
  }

  .chat-bottom-bar {
    bottom: 0.5rem !important;
    padding: 0 0.75rem !important;
    max-width: 100vw !important;
  }

  .chat-input-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .chat-input-pill {
    height: 46px !important;
    padding: 0 6px 0 16px !important;
  }

  .chat-send-btn {
    width: 34px !important;
    height: 34px !important;
  }

  /* FIX: Gemini badge on mobile sits neatly centered below search bar, never overlapping */
  .fastfolio-badge,
  html.dark .fastfolio-badge {
    position: static !important;
    margin: 6px auto 0 !important;
    display: inline-flex !important;
    transform: none !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    z-index: 45 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }

  .fastfolio-badge .powered-by-text,
  .fastfolio-badge .gemini-brand-text {
    font-size: 11px !important;
  }

  .fastfolio-badge .gemini-star-icon {
    width: 12px !important;
    height: 12px !important;
  }

  .chat-bottom-feather {
    height: 140px !important;
  }

  .chat-bottom-feather.collapsed {
    height: 85px !important;
  }
}

/* 3. Chat Quick Questions Row (Scrollable Horizontal Carousel on Mobile) */
@media (max-width: 640px) {
  .chat-options-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 4px 4px 6px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 6px !important;
  }

  .chat-options-row::-webkit-scrollbar {
    display: none !important;
  }

  .chat-pill-btn {
    flex-shrink: 0 !important;
    height: 32px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }

  .chat-pill-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .chat-more-btn,
  .chat-more-wrapper {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .chat-toggle-questions-btn {
    font-size: 11px !important;
    margin-bottom: 2px !important;
    padding: 2px 8px !important;
  }

  /* Compact Avatar and Header on Mobile */
  .chat-avatar-wrapper {
    top: 0.6rem !important;
    margin-top: 0.6rem !important;
  }

  .chat-avatar-squircle {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
  }

  .chat-top-right {
    top: 0.6rem !important;
    right: 0.75rem !important;
  }

  .chat-query-container {
    margin-top: 0.75rem !important;
    padding: 0 0.75rem !important;
  }

  .chat-query-bubble {
    font-size: 13.5px !important;
    padding: 8px 16px !important;
    max-width: 90vw !important;
  }

  .chat-answer-container {
    padding: 0 0.75rem !important;
    margin: 1rem auto 12px !important;
  }

  /* Me Tab on Mobile */
  .me-card {
    padding: 0 !important;
  }

  .me-photo-wrapper {
    width: 180px !important;
    max-width: 65% !important;
    min-height: 216px !important;
    aspect-ratio: 4 / 4.8 !important;
    border-radius: 18px !important;
  }

  .me-name-row {
    font-size: 22px !important;
    justify-content: center !important;
  }

  .me-meta-row {
    font-size: 12.5px !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
  }

  .me-intro-text {
    font-size: 13.5px !important;
    text-align: center !important;
  }

  .me-tags-row {
    justify-content: center !important;
  }

  /* Projects Carousel on Mobile */
  .projects-carousel-container {
    padding: 2px 0 8px !important;
  }

  .projects-carousel-track {
    gap: 12px !important;
    padding: 4px 2px 10px !important;
  }

  .project-card {
    width: 86% !important;
    min-width: 86% !important;
    max-width: 86% !important;
    height: 360px !important;
  }

  .project-banner-wrapper {
    height: 140px !important;
  }

  .project-content {
    padding: 12px 14px !important;
  }

  .project-title {
    font-size: 16px !important;
  }

  .project-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  .projects-outro-text {
    font-size: 13px !important;
    padding: 0 4px !important;
  }

  /* Skills Section on Mobile */
  .skills-main-title {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }

  .skills-group {
    margin-bottom: 16px !important;
  }

  .skill-badge {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }

  /* Contact Card on Mobile */
  .contact-card {
    padding: 20px 14px !important;
    border-radius: 18px !important;
  }

  .contact-person-name {
    font-size: 20px !important;
  }

  .contact-person-role {
    font-size: 14px !important;
  }

  .contact-person-location {
    font-size: 12.5px !important;
    margin-bottom: 14px !important;
  }

  .contact-person-email {
    font-size: 13px !important;
    word-break: break-all !important;
  }

  .social-circle-btn {
    width: 42px !important;
    height: 42px !important;
  }

  .contact-outro-message {
    font-size: 13.5px !important;
  }

  /* Resume on Mobile */
  .resume-doc-card {
    padding: 18px 12px !important;
    border-radius: 14px !important;
  }

  .resume-name {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .resume-contact-line {
    font-size: 11px !important;
    gap: 2px 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .resume-item-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  .resume-item-right,
  .resume-item-tech {
    text-align: left !important;
    font-size: 11px !important;
    white-space: normal !important;
  }

  .resume-bullets {
    font-size: 12px !important;
  }

  .resume-bullets li {
    padding-left: 14px !important;
  }

  /* Options Bottom Sheet on Mobile */
  .chat-sheet-modal {
    height: 68vh !important;
    max-height: 85vh !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .chat-sheet-content {
    padding: 0 14px 28px !important;
  }

  .chat-sheet-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  /* Welcome Info Modal on Mobile */
  #ff-modal {
    padding: 12px !important;
  }

  #ff-modal .ff-card {
    padding: 22px 18px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}





