/* --- Variables --- */
:root {
    /* Light Mode */
    --bg-color: #fafafa; /* Softer than pure white */
    --text-color: #2d3436;
    --text-secondary: #636e72;
    --accent: #0984e3; /* Nice professional blue */
    --accent-hover: #74b9ff;
    --card-bg: #ffffff;
    --border: #e1e1e1;
    --nav-bg: rgba(250, 250, 250, 0.8); /* Translucent */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Emphasize inline links inside body paragraphs */
.about-content p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

/* subtle underline reveal */
.about-content p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.about-content p a:hover::after {
  transform: scaleX(1);
}


[data-theme="dark"] {
    /* Dark Mode - Soft Darks, not pitch black */
    --bg-color: #1a1a1a;
    --text-color: #f1f2f6;
    --text-secondary: #a4b0be;
    --accent: #74b9ff;
    --accent-hover: #0984e3;
    --card-bg: #2d2d2d;
    --border: #404040;
    --nav-bg: rgba(26, 26, 26, 0.8);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* --- Navbar (Glassmorphism) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px); /* The blur effect */
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin-left: auto;     /* ⬅ push container right */
  margin-right: 0;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-menu {
  gap: 1.5rem;   /* slightly tighter */
}



.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.2s;
}

#theme-toggle:hover { transform: rotate(15deg); }

/* --- Hero Section --- */
.hero {
    padding: 6rem 0 4rem;
    display: flex;
    flex-direction: column-reverse; /* Image top on mobile */
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 600px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.highlight { color: var(--accent); }

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    box-shadow: var(--shadow);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 600px) { .hero-buttons { justify-content: flex-start; } }

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn {
    background: var(--text-color);
    color: var(--bg-color);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 2rem;
}

.section-header h2 { font-size: 1.5rem; white-space: nowrap; }
.line { width: 100%; height: 1px; background: var(--border); }

/* --- Projects Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Project Card Hover Frame ===== */
.card {
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(116, 185, 255, 0.18);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; flex-grow: 1; margin-bottom: 1.5rem; }

.tags span {
    font-size: 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 5px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- About Grid --- */
.info-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item { display: flex; flex-direction: column; }
.label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.value { font-weight: 600; }

/* --- Footer --- */
footer {
    margin-top: 5rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.socials {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.socials a {
    margin: 0 0.8rem;
    color: var(--text-color);
    transition: color 0.2s;
}

.socials a:hover { color: var(--accent); }
/* --- Chat Page Styles --- */
.chat-section {
    max-width: 700px;
    margin: 4rem auto;
}

/* Key Input Box */
.key-input-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.key-input-box input {
    width: 100%;
    padding: 10px;
    margin: 1rem 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
}

.tiny-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Chat Window */
.chat-window {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message .text {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message .text {
    background: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-color);
}

.user-message .text {
    background: var(--accent);
    color: white;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Chat Input Area */
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg-color);
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-color);
}

.chat-input-area button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: var(--accent-hover);
}
/* --- Chat Widget Styling --- */
#chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;          /* Bigger size */
    height: 70px;         /* Bigger size */
    border-radius: 50%;
    background-color: var(--accent); /* Matches your blue theme */
    color: white;
    border: none;
    font-size: 35px;      /* Bigger icon */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;        /* CRITICAL: Force it to be the top layer */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#chat-launcher:hover {
    transform: scale(1.1);
}

#chat-window {
    position: fixed;
    bottom: 110px;        /* Sits above the button */
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 9999;        /* Keeps it on top */
    display: none;        /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
}
/* --- Chat Tooltip Bubble --- */
#chat-tooltip {
    position: fixed;
    bottom: 40px;          /* Aligns vertically with the button */
    right: 110px;          /* Pushes it to the left of the button */
    background-color: white;
    color: #333;           /* Dark text for readability */
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px; /* Rounded corners with one sharp edge */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9998;         /* Sits just underneath the button layer */
    opacity: 0;            /* Start invisible */
    animation: popIn 0.5s ease-out 1s forwards; /* Wait 1s, then pop in */
    pointer-events: none;  /* Allows clicking through it if needed */
}

/* The little triangle arrow pointing to the right */
#chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 0 10px;
    border-color: transparent transparent transparent white;
}

/* Animation to make it slide in */
@keyframes popIn {
    from { opacity: 0; transform: translateY(10px) translateX(-10px); }
    to { opacity: 1; transform: translateY(0) translateX(0); }
}
.cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(148, 163, 184, 0.04) 0%, transparent 45%);
  filter: blur(40px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='60' cy='40' r='1'/%3E%3Ccircle cx='90' cy='80' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.data-divider {
  height: 60px;
  margin: 4rem 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.15),
    rgba(34, 197, 94, 0.15),
    transparent
  );
  mask-image: repeating-linear-gradient(
    to right,
    black 0px,
    black 4px,
    transparent 6px,
    transparent 10px
  );
}
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(56,189,248,0.08), transparent 60%);
  animation: float 30s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-4%, 3%); }
  100% { transform: translate(0, 0); }
}
.timeline-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 100;
}

.timeline-nav a {
  position: relative;
  padding-left: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.5);
  text-decoration: none;
  transition: color 0.25s ease;
}

/* dot */
.timeline-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: rgba(203, 213, 225, 0.4);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

/* active section */
.timeline-nav a.active {
  color: var(--accent);
}

.timeline-nav a.active::before {
  background: var(--accent);
  transform: translateY(-50%) scale(1.4);
}
.scrollbar-nav {
  position: fixed;              /* LOCKED to viewport */
  left: 28px;                   /* horizontal position */
  top: 50%;                     /* vertical center */
  transform: translateY(-50%);  /* true centering */
  z-index: 120;
  width: 18px;
  pointer-events: auto;
}


.scrollbar-track {
  position: relative;
  width: 4px;
  height: 320px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: visible;
}


.scrollbar-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: height 0.15s ease-out;
}

/* ticks */
.scrollbar-tick {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: var(--pos);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 2px rgba(0,0,0,0); /* placeholder for smoothness */
  cursor: pointer;
}

.scrollbar-tick span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.55);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

/* show labels on hover */
.scrollbar-tick:hover span {
  opacity: 1;
  color: rgba(203, 213, 225, 0.9);
}

/* active tick */
.scrollbar-tick.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.12);
}

.scrollbar-tick.active span {
  opacity: 1;
  color: var(--accent);
}

/* hide on smaller screens */
@media (max-width: 600px) {
  .scrollbar-nav { display: none; }
}
/* =====================================
   Minimal Research-Grade Scrollbar
   ===================================== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

*::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.6);
}
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(
    to right,
    rgba(148, 163, 184, 0.4),
    var(--accent)
  );
  z-index: 1000;
  pointer-events: none;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.toc {
  position: fixed;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.25rem;
  z-index: 50;
}

/* vertical timeline */
.toc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.25);
}

/* moving dot */
.toc-indicator {
  position: absolute;
  left: -0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #e5e7eb;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(148, 163, 184, 0.45);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.toc a.active {
  color: #e5e7eb;
  opacity: 1;
}
/* Base TOC links */
.toc a {
  position: relative;
  opacity: 0.55;
  transform: translateX(-6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    color 220ms ease;
}

/* Active / revealed label */
.toc a.active {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
  font-weight: 600;
}

/* Make anchor jumps account for sticky header / floating UI */
section[id]{
  scroll-margin-top: 120px; /* tweak: try 90–160 */
}


.card-image {
  width: 100%;
  height: 100px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08); /* subtle neutral backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* ← KEY CHANGE */
}
/* ===============================
   Featured Project (Spotify-style)
   =============================== */

.featured-project {
  display: flex;
  gap: 1.6rem;
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 20%, rgba(56,189,248,0.10), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(34,197,94,0.08), transparent 45%),
    var(--card-bg);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.featured-project:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.featured-project {
  margin-bottom: 2.5rem; /* increase this if you want more air */
}


/* Thumbnail */
.fp-thumb {
  flex: 0 0 220px;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(148,163,184,0.08);
}

.fp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Content */
.fp-content {
  flex: 1;
  min-width: 0;
}

.fp-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.fp-arrow {
  font-size: 1.1rem;
  opacity: 0.6;
  margin-left: 0.4rem;
}

.fp-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* Tags */
.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fp-tags span {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.2);
  font-weight: 600;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 700px) {
  .featured-project {
    flex-direction: column;
  }

  .fp-thumb {
    width: 100%;
    height: 180px;
  }

  .fp-title {
    font-size: 1.4rem;
  }
}
.publication-card {
  padding: 1.25rem;
  border-radius: 12px;
}
/* === Publications match Project cards === */

#publications .card {
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid var(--border);

  /* Match the project-card wash */
  background:
    radial-gradient(circle at 12% 20%, rgba(56,189,248,0.10), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(34,197,94,0.08), transparent 45%),
    var(--card-bg);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

#publications .card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}



/* Author + title text */
#publications li {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Emphasized paper titles */
#publications em {
  color: var(--text-secondary);
  font-style: normal;
}

/* Your name */
#publications strong {
  color: var(--accent);
  font-weight: 600;
}

/* Journal / links */
#publications a {
  color: var(--accent);
  font-weight: 500;
}

#publications a:hover {
  opacity: 0.85;
}

#publications .more-projects-link {
  color: #ffffff !important;
}
#publications .more-projects-link {
  font-weight: 700; /* visibly bold */
}


/* Assistant canvas under hero */
#assistant-canvas {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.assistant-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

/* Search bar */
#assistant-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

#assistant-bar i {
  opacity: 0.7;
}

#assistant-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

#assistant-bar button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Answer canvas */
#assistant-panel {
  margin-top: 1rem;
  max-height: 260px;
  overflow-y: auto;
}

/* Messages already exist — just constrain them */
#assistant-panel .messages {
  padding-right: 6px;
}
.assistant-icon {
  opacity: 0.65;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#assistant-bar:focus-within .assistant-icon {
  opacity: 0.9;
  color: var(--accent);
}

.assistant-submit {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.assistant-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0.4rem 0 0.6rem;
  text-align: left;
}
.hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 0.1rem;
  margin-top: 0.75rem;

  margin-left: -2.5rem; /* ⬅ move left by 1rem */
}


/* --- Smooth Hero Socials --- */
.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.hero-socials a:hover {
  transform: translateY(-2px) scale(1.05);
  opacity: 1;
  color: var(--accent);
  background-color: rgba(148, 163, 184, 0.12); /* subtle hover halo */
}

.hero-socials a:active {
  transform: translateY(0) scale(0.98);
}


.hero-image {
  position: relative;
}

.hero-socials {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* If you have any hero background overlay element, ensure it cannot block clicks */
.hero::before,
.hero::after,
.hero-overlay,
.hero-bg,
.hero-figure,
.hero-image::before,
.hero-image::after {
  pointer-events: none;
}
.hero::before { z-index: 0; }
.hero-text, .hero-image { position: relative; z-index: 1; }

#floating-profile {
  position: fixed;
  left: 3rem;            /* aligned with toc */
  top: 1.25rem;
  z-index: 300;          /* ABOVE section navigation */

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;

  padding: 1rem 1.25rem;
  border-radius: 18px;

background: color-mix(in srgb, var(--card-bg) 75%, transparent);
border: 1px solid var(--border);

  backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

#floating-profile.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#floating-profile .fp-name {
  font-weight: 800;
  font-size: 2.5rem;     /* SAME as hero h1 */
  line-height: 1.2;      /* SAME as hero h1 */
  letter-spacing: -1px;  /* SAME as hero h1 */

  color: var(--accent);  /* blue */
}






#floating-profile .fp-socials a {
  color: var(--text-color);     /* adapts to dark/light */
  font-size: 1.2rem;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

#floating-profile .fp-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--accent);

}



/* Avoid clutter on small screens */
@media (max-width: 600px) {
  #floating-profile { display: none; }
}
/* TOC indicator */
.toc-indicator {
  z-index: 50;
}

#floating-profile {
  position: fixed;
  left: 3rem;
  top: 10rem;
  z-index: 300;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  background: none;
  border: none;
  box-shadow: none;
  padding: 0;

  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.985);
  filter: blur(6px);
  pointer-events: none;

  will-change: transform, opacity, filter;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

#floating-profile.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  #floating-profile {
    transition: none;
    transform: none;
    filter: none;
  }
}


#floating-profile .fp-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;

}

#floating-profile .fp-socials {
  margin-left: 0.2rem;
}

.project-card .fp-socials {
  margin-left: 0.5rem;
}





.toc {
  position: fixed;
  left: 3rem;
  top: 17.25rem;        /* ⬅ moved DOWN */
  transform: none;     /* no vertical centering */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.25rem;
  z-index: 50;

  max-height: calc(100vh - 10.5rem);
  overflow: auto;
}

/* --- More Projects link --- */
.more-projects {
    margin-top: 2.5rem; /* increase spacing from cards */
    text-align: center;
}

.more-projects-link {
    font-weight: 700;              /* bold by default */
    color: #ffffff;                /* white */
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    transition: 
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* underline effect */
.more-projects-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.more-projects-link:hover {
    transform: translateX(4px);    /* subtle motion like Full List */
    opacity: 0.9;
}

.more-projects-link:hover::after {
    transform: scaleX(1);
}


.pub-list em a {
  color: var(--accent);   /* same blue used site-wide */
  font-style: italic;
  text-decoration: none;
}

.pub-list em a:hover {
  text-decoration: underline;
}
.hero-identity {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-top: 0.5rem;
}
