/* ============================================================
   VIVIANA LUCCIOLI — PORTFOLIO
   Dark editorial design | Neon palette on deep black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --purple:    #7462be;
  --magenta:   #93199f;
  --tangerine: #fd8660;
  --pink:      #f0658d;
  --coral:     #fb416d;
  --rose:      #d75ea5;
  --salmon:    #fe6967;

  --bg:        #06060a;
  --surface:   #0e0e18;
  --card:      #131320;
  --border:    #22223a;
  --border-hi: #363658;

  --text:      #eeeef6;
  --muted:     #8888a8;
  --faint:     #444460;

  --r:         12px;
  --r-lg:      20px;
  --ease:      0.28s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes beam {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes scan {
  0%   { top: -3px; opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

@keyframes pulse-pink {
  0%, 100% { box-shadow: 0 0 6px rgba(240,101,141,.5), 0 0 16px rgba(240,101,141,.2); }
  50%       { box-shadow: 0 0 14px rgba(240,101,141,.8), 0 0 36px rgba(240,101,141,.35); }
}

@keyframes pulse-purple {
  0%, 100% { box-shadow: 0 0 6px rgba(116,98,190,.5), 0 0 16px rgba(116,98,190,.2); }
  50%       { box-shadow: 0 0 14px rgba(116,98,190,.8), 0 0 36px rgba(116,98,190,.35); }
}

@keyframes grad-shift {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

@keyframes float-bob {
  0%, 100% { transform: translate(calc(-50% + var(--x-pos,0px)), calc(-50% + var(--y-pos,0px))) scale(1) translateY(0); }
  50%       { transform: translate(calc(-50% + var(--x-pos,0px)), calc(-50% + var(--y-pos,0px))) scale(1) translateY(-10px) rotate(3deg); }
}

@keyframes blink   { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes wave    { 0%,100%{transform:rotate(0)} 10%{transform:rotate(14deg)} 20%{transform:rotate(-8deg)} 30%{transform:rotate(14deg)} 40%{transform:rotate(-4deg)} 50%{transform:rotate(0)} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes scanlines { 0%{background-position:0 0} 100%{background-position:0 4px} }

/* ============================================================
   RESET / BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Quarto layout resets — kill all top gaps */
#quarto-content,
#quarto-document,
main.content,
.page-layout-full,
.page-layout-full > div,
#quarto-margin-sidebar,
div#quarto-content > div {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: var(--bg) !important;
}

/* Remove default body padding Quarto adds below fixed navbar */
body { padding-top: 0 !important; }

.quarto-title, #title-block-header, header#title-block-header { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--purple), var(--pink)); border-radius: 3px; }

::selection { background: rgba(116,98,190,.45); color: #fff; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: .5em;
  letter-spacing: -.2px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 1rem;    font-family: var(--font-sans); font-weight: 600; }

p { color: var(--text); line-height: 1.78; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--pink);
  text-decoration: none;
  transition: color var(--ease), text-shadow var(--ease);
}
a:hover { color: var(--tangerine); text-shadow: 0 0 8px rgba(253,134,96,.5); }

ul, ol { color: var(--text); }
li { margin-bottom: .4em; }
strong { color: var(--text); font-weight: 600; }
em { color: var(--muted); font-style: italic; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), var(--tangerine), transparent);
  margin: 2.5rem 0;
  opacity: .6;
}

pre, code {
  font-family: var(--font-mono);
  background: var(--card) !important;
  color: var(--tangerine) !important;
  border: 1px solid var(--border);
  border-radius: 6px;
}
pre  { padding: 1rem 1.25rem; overflow-x: auto; border-left: 2px solid var(--purple); }
code { padding: .15em .4em; font-size: .88em; }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar, #quarto-header {
  background: rgba(6,6,10,.95) !important;
  backdrop-filter: blur(16px);
  border-bottom: none !important;
  position: relative;
  z-index: 1000;
}

/* Animated laser bottom line */
.navbar::after, #quarto-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--purple) 20%, var(--pink) 50%, var(--tangerine) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: beam 7s linear infinite;
  opacity: .75;
}

.navbar .navbar-brand,
.navbar .navbar-nav .nav-link,
#quarto-header .navbar-brand,
#quarto-header .navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: .2px;
  transition: color var(--ease), text-shadow var(--ease);
}

.navbar .nav-link:hover,
#quarto-header .nav-link:hover {
  color: var(--pink) !important;
  text-shadow: 0 0 8px rgba(240,101,141,.55);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"],
#quarto-header .nav-link.active,
#quarto-header .nav-link[aria-current="page"] {
  color: var(--tangerine) !important;
  text-shadow: 0 0 8px rgba(253,134,96,.45);
}

.navbar .navbar-nav .nav-item i,
#quarto-header .navbar-nav .nav-item i {
  color: var(--muted) !important;
  transition: color var(--ease), filter var(--ease);
}

.navbar .navbar-nav .nav-item:hover i,
#quarto-header .navbar-nav .nav-item:hover i {
  color: var(--pink) !important;
  filter: drop-shadow(0 0 4px rgba(240,101,141,.7));
}

.navbar-toggler { border-color: var(--border) !important; }
.navbar-toggler-icon { filter: invert(1); }

.navbar .dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
}
.navbar .dropdown-item { color: var(--text) !important; }
.navbar .dropdown-item:hover { background: var(--card) !important; color: var(--pink) !important; }

/* ============================================================
   HERO
   ============================================================ */

.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100vh;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

/* Deep dark overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6,6,10,.72) 0%,
      rgba(6,6,10,.45) 35%,
      rgba(6,6,10,.45) 65%,
      rgba(6,6,10,.82) 100%);
  z-index: 1;
}

/* Scanlines */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.06) 2px, rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanlines .2s linear infinite;
}

/* Laser sweep */
.laser-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(116,98,190,0) 8%,
    var(--pink) 38%, var(--tangerine) 62%,
    rgba(253,134,96,0) 92%, transparent 100%
  );
  z-index: 3;
  animation: scan 9s linear infinite;
  box-shadow: 0 0 10px var(--pink), 0 0 20px rgba(240,101,141,.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

/* ============================================================
   TYPEWRITER
   ============================================================ */

.typewriter-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 .4rem;
  line-height: 1.05;
  letter-spacing: -.5px;
  text-shadow: 0 0 30px rgba(240,101,141,.35), 0 4px 16px rgba(0,0,0,.6);
  min-height: 1.1em;
}

.cursor {
  display: inline-block;
  color: var(--tangerine);
  font-weight: 300;
  animation: blink 1s infinite;
  margin-left: 3px;
  text-shadow: 0 0 8px var(--tangerine), 0 0 18px rgba(253,134,96,.5);
}

.welcome-message {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(253,134,96,.95);
  margin: .5rem 0 0;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transition: all .5s cubic-bezier(.68,-.15,.265,1.15);
  text-shadow: 0 0 12px var(--tangerine), 0 0 24px rgba(253,134,96,.4);
}
.welcome-message.visible { opacity: 1; transform: translateY(0) scale(1); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(238,238,246,.88);
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
  margin-top: .8rem;
}
.hero-subtitle a { border-bottom: 1px solid rgba(240,101,141,.4); transition: all var(--ease); }
.hero-subtitle a:hover { text-shadow: 0 0 8px currentColor; border-bottom-color: currentColor; }

/* ============================================================
   HERO SOCIAL ICONS
   ============================================================ */

.hero-icons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(116,98,190,.4);
  transition: all var(--ease);
}
.hero-icons a:hover {
  background: rgba(116,98,190,.14);
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(240,101,141,.5), 0 0 28px rgba(240,101,141,.2), 0 10px 24px rgba(0,0,0,.5);
}
.hero-icons svg { width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 0 3px rgba(255,255,255,.3)); }

/* ============================================================
   FLOATING SYMBOLS
   ============================================================ */

.floating-symbols {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 5;
}

.float-symbol {
  position: absolute;
  top: 50%; left: 50%;
  width: 78px; height: 78px;
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%,-50%) scale(0);
  transition: all .5s cubic-bezier(.68,-.55,.265,1.55);
}
.float-symbol.active {
  opacity: 1;
  transform: translate(calc(-50% + var(--x-pos,0px)), calc(-50% + var(--y-pos,0px))) scale(1);
  animation: float-bob 3.5s ease-in-out infinite;
}

/* Ensure active transform uses the same vars as the animation keyframes */
.float-symbol:not(.active) {
  --x-pos: 0px;
  --y-pos: 0px;
}

.float-symbol:nth-child(2n) { filter: drop-shadow(0 4px 12px rgba(253,134,96,.7)) drop-shadow(0 0 6px rgba(253,134,96,.4)); }
.float-symbol:nth-child(3n) { filter: drop-shadow(0 4px 12px rgba(147,25,159,.7)) drop-shadow(0 0 6px rgba(147,25,159,.4)); }
.float-symbol:nth-child(5n) { filter: drop-shadow(0 4px 12px rgba(116,98,190,.8)) drop-shadow(0 0 8px rgba(116,98,190,.5)); }
.float-symbol:nth-child(7n) { filter: drop-shadow(0 4px 12px rgba(240,101,141,.7)) drop-shadow(0 0 6px rgba(240,101,141,.4)); }

.float-symbol:nth-child(odd)  { width: 68px;  height: 68px; }
.float-symbol:nth-child(3n)   { width: 92px;  height: 92px; }
.float-symbol:nth-child(4n)   { width: 62px;  height: 62px; }
.float-symbol:nth-child(5n)   { width: 82px;  height: 82px; }

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */

.content-wrapper {
  max-width: 100%;
  margin: 0 auto;
  padding: 3rem 4vw;
  background: var(--bg);
}

/* ============================================================
   BIO SECTION
   ============================================================ */

.bio-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 5rem auto;
  padding: 3rem;
  background: rgba(255,255,255,.018);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.bio-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.bio-section:hover {
  border-color: rgba(116,98,190,.3);
  box-shadow: 0 0 24px rgba(116,98,190,.07), 0 12px 48px rgba(0,0,0,.45);
}

.bio-image img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(116,98,190,.18), 0 12px 48px rgba(0,0,0,.65);
  transition: box-shadow var(--ease);
}
.bio-image img:hover {
  box-shadow: 0 0 0 1px rgba(240,101,141,.38), 0 0 32px rgba(240,101,141,.14), 0 16px 56px rgba(0,0,0,.65);
}

.bio-text { font-size: 1.05rem; line-height: 1.8; }
.bio-text p { color: var(--text); margin-bottom: 1.1rem; }
.bio-text a { color: var(--pink); border-bottom: 1px solid rgba(240,101,141,.3); }
.bio-text a:hover { color: var(--tangerine); border-bottom-color: var(--tangerine); }

.greeting {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1.25rem !important;
  color: var(--text);
}

.gradient-name {
  background: linear-gradient(90deg, var(--purple), var(--magenta), var(--pink), var(--tangerine), var(--salmon), var(--purple));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 4.5s ease-in-out infinite;
}

.wave { display: inline-block; animation: wave 2.5s ease-in-out infinite; transform-origin: 70% 70%; }

/* ============================================================
   POSITIONS ROW
   ============================================================ */

.positions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 2.5rem auto 0;
}

.position-group-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .85rem;
}

.position-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: .6rem;
  transition: border-color var(--ease), transform var(--ease);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}
a.position-card:hover { color: inherit; text-shadow: none; }

.position-card img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  filter: brightness(.85) saturate(.9);
  transition: filter var(--ease);
}

.position-card:hover {
  border-color: rgba(116,98,190,.35);
  transform: translateX(3px);
}
.position-card:hover img { filter: brightness(1) saturate(1); }

.position-card.position-active {
  border-color: rgba(116,98,190,.3);
  background: rgba(116,98,190,.06);
}
.position-card.position-active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--pink));
  border-radius: 2px;
}
.position-card.position-active { position: relative; padding-left: 1.2rem; }

.position-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.position-org {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* Highlights — make items stand out more */
.highlights-container { margin: 2rem 0 .5rem; }
.highlights-container h2 { text-align: center; margin-bottom: 2rem; }

/* ============================================================
   ABOUT CARDS
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.about-card {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--rose), var(--purple));
}

.about-card:hover {
  border-color: rgba(240,101,141,.32);
  box-shadow: 0 0 24px rgba(240,101,141,.07), 0 8px 36px rgba(0,0,0,.5);
  transform: translateY(-2px);
}

.about-card h3 { margin-top: 0; color: var(--text); font-size: 1.2rem; margin-bottom: .9rem; }
.about-card ul,
.about-card .about-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.about-card ul li,
.about-card p {
  padding: .3rem 0 .3rem 1.2rem !important;
  color: var(--muted) !important;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
  margin-bottom: 0 !important;
}
.about-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-size: .7rem;
  top: .5rem;
}
.about-card a { color: var(--pink); border-bottom: 1px solid rgba(240,101,141,.3); }
.about-card a:hover { color: var(--tangerine); border-bottom-color: var(--tangerine); }

/* ============================================================
   HIGHLIGHTS
   ============================================================ */

.highlights-container { margin: 2rem 0; }
.highlights-container h2 { text-align: center; margin-bottom: 2rem; }

.content-wrapper ul li, .content-wrapper ol li { color: var(--muted); padding: .3rem 0; }
.content-wrapper ul li strong, .content-wrapper ol li strong { color: var(--text); }
.content-wrapper ul li a, .content-wrapper ol li a { color: var(--pink); }

/* Highlights section — larger, no bullet marker, generous spacing */
.highlights-container ~ ul,
.highlights-container + ul {
  list-style: none !important;
  padding: 0 !important;
}
.highlights-container ~ ul li,
.highlights-container + ul li {
  font-size: 1.02rem !important;
  padding: .7rem 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text) !important;
}
.highlights-container ~ ul li strong,
.highlights-container + ul li strong {
  color: var(--tangerine) !important;
}

/* ============================================================
   TECH STACK (embedded in index.qmd as raw HTML)
   ============================================================ */

.tech-stack-container { padding: 2.5rem 0 3.5rem; }
.tech-stack-container h2 { text-align: center; margin-bottom: 2rem; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--muted); }
.legend-color { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 5px currentColor; }

.bubbles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 0 2vw;
  position: relative;
}
.bubbles-container:has(.bubble:hover) .bubble:not(:hover) { filter: blur(2px); opacity: .3; }

.bubble {
  padding: .8rem 1.35rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  text-align: center;
  font-size: .88rem;
  border: 1.5px solid rgba(255,255,255,.1);
  letter-spacing: .15px;
}
.bubble:hover { transform: scale(1.09); z-index: 1000; filter: none !important; opacity: 1 !important; }
.bubble.has-children:hover { transform: scale(1.13); }

.sub-bubbles {
  position: absolute;
  display: none;
  flex-wrap: wrap;
  gap: .45rem;
  z-index: 1001;
  max-width: 360px;
  padding: .9rem 1rem;
  background: #181828;
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  box-shadow: 0 0 20px rgba(116,98,190,.2), 0 10px 36px rgba(0,0,0,.7);
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: .4rem;
}
.bubble:hover .sub-bubbles { display: flex; }

.sub-bubble {
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1);
}

/* Category colors */
.cat-languages { background: rgba(116,98,190,.22); border-color: rgba(116,98,190,.52) !important; box-shadow: 0 0 7px rgba(116,98,190,.18); }
.cat-languages:hover { background: rgba(116,98,190,.38); box-shadow: 0 0 16px rgba(116,98,190,.5), 0 0 32px rgba(116,98,190,.2) !important; }
.sub-bubble.cat-languages { background: rgba(116,98,190,.32); border-color: rgba(116,98,190,.4) !important; }

.cat-ml { background: rgba(147,25,159,.22); border-color: rgba(147,25,159,.52) !important; box-shadow: 0 0 7px rgba(147,25,159,.18); }
.cat-ml:hover { background: rgba(147,25,159,.38); box-shadow: 0 0 16px rgba(147,25,159,.5), 0 0 32px rgba(147,25,159,.2) !important; }
.sub-bubble.cat-ml { background: rgba(147,25,159,.32); border-color: rgba(147,25,159,.4) !important; }

.cat-stats { background: rgba(253,134,96,.16); border-color: rgba(253,134,96,.48) !important; box-shadow: 0 0 7px rgba(253,134,96,.14); }
.cat-stats:hover { background: rgba(253,134,96,.3); box-shadow: 0 0 16px rgba(253,134,96,.45), 0 0 32px rgba(253,134,96,.2) !important; }
.sub-bubble.cat-stats { background: rgba(253,134,96,.26); border-color: rgba(253,134,96,.38) !important; }

.cat-data { background: rgba(240,101,141,.16); border-color: rgba(240,101,141,.48) !important; box-shadow: 0 0 7px rgba(240,101,141,.14); }
.cat-data:hover { background: rgba(240,101,141,.3); box-shadow: 0 0 16px rgba(240,101,141,.45), 0 0 32px rgba(240,101,141,.2) !important; }
.sub-bubble.cat-data { background: rgba(240,101,141,.26); border-color: rgba(240,101,141,.38) !important; }

.cat-cloud { background: rgba(251,65,109,.16); border-color: rgba(251,65,109,.48) !important; box-shadow: 0 0 7px rgba(251,65,109,.14); }
.cat-cloud:hover { background: rgba(251,65,109,.3); box-shadow: 0 0 16px rgba(251,65,109,.45), 0 0 32px rgba(251,65,109,.2) !important; }
.sub-bubble.cat-cloud { background: rgba(251,65,109,.26); border-color: rgba(251,65,109,.38) !important; }

.cat-tools { background: rgba(215,94,165,.16); border-color: rgba(215,94,165,.48) !important; box-shadow: 0 0 7px rgba(215,94,165,.14); }
.cat-tools:hover { background: rgba(215,94,165,.3); box-shadow: 0 0 16px rgba(215,94,165,.45), 0 0 32px rgba(215,94,165,.2) !important; }
.sub-bubble.cat-tools { background: rgba(215,94,165,.26); border-color: rgba(215,94,165,.38) !important; }

.cat-viz { background: rgba(254,105,103,.16); border-color: rgba(254,105,103,.48) !important; box-shadow: 0 0 7px rgba(254,105,103,.14); }
.cat-viz:hover { background: rgba(254,105,103,.3); box-shadow: 0 0 16px rgba(254,105,103,.45), 0 0 32px rgba(254,105,103,.2) !important; }
.sub-bubble.cat-viz { background: rgba(254,105,103,.26); border-color: rgba(254,105,103,.38) !important; }

/* ============================================================
   PHOTO GRID
   ============================================================ */

.full-bleed-grid {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  margin-top: 3rem;
  margin-bottom: 3rem;
  position: relative;
}

.full-bleed-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--tangerine), transparent);
  z-index: 2;
  opacity: .6;
}

.photo-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 0; padding: 0;
}

.photo-grid > p, .photo-grid > figure { margin: 0 !important; overflow: hidden; position: relative; }

.photo-grid img {
  display: block;
  width: 100% !important; height: auto !important;
  border-radius: 0;
  filter: saturate(.8) brightness(.85);
  transition: filter .4s ease, transform .4s ease;
}
.photo-grid > p:hover img,
.photo-grid > figure:hover img { filter: saturate(1.1) brightness(1); transform: scale(1.02); }

.photo-grid > p::after, .photo-grid > figure::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
  pointer-events: none;
}
.photo-grid > p:hover::after, .photo-grid > figure:hover::after {
  border-color: rgba(240,101,141,.38);
  box-shadow: inset 0 0 20px rgba(240,101,141,.1);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.band-rose {
  background: rgba(255,255,255,.018);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3.5rem 3rem;
  border-radius: var(--r-lg);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.band-rose::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--tangerine), var(--salmon), var(--purple));
  background-size: 200% 100%;
  animation: beam 5s linear infinite;
}

.band-rose::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--salmon), transparent);
  opacity: .4;
}

.band-rose:hover {
  border-color: rgba(240,101,141,.28);
  box-shadow: 0 0 32px rgba(240,101,141,.05), 0 8px 48px rgba(0,0,0,.45);
}

.band-rose h2 { color: var(--text); }
.band-rose p  { color: var(--muted); line-height: 1.8; }
.band-rose a  { color: var(--tangerine); border-bottom: 1px solid rgba(253,134,96,.3); font-weight: 500; }
.band-rose a:hover { color: var(--pink); border-bottom-color: var(--pink); text-shadow: 0 0 8px rgba(240,101,141,.5); }

/* ============================================================
   RESUME PAGE — EXPERIENCE TIMELINE
   ============================================================ */

/* Page title */
.resume-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
}

.resume-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: .5rem;
}

.resume-header::after {
  content: '';
  display: block;
  height: 2px;
  max-width: 480px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), var(--tangerine), transparent);
  animation: beam 6s linear infinite;
  background-size: 200% 100%;
}

/* Download links row */
.resume-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.resume-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 25px;
  font-size: .88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1.5px solid rgba(116,98,190,.5);
  background: rgba(116,98,190,.08);
  color: var(--text) !important;
  text-decoration: none;
  transition: all var(--ease);
  border-bottom: 1.5px solid rgba(116,98,190,.5) !important;
}
.resume-link-btn:hover {
  border-color: var(--pink) !important;
  background: rgba(240,101,141,.1);
  color: #fff !important;
  box-shadow: 0 0 14px rgba(240,101,141,.35), 0 0 28px rgba(240,101,141,.12);
  transform: translateY(-2px);
  text-shadow: none;
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.5rem 0 2rem;
}
.section-label-text {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240,101,141,.4), transparent);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--purple), var(--pink), var(--tangerine), transparent);
  opacity: .5;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: var(--r) var(--r) 0 0;
  opacity: 0;
  transition: opacity var(--ease);
}

/* Dot on timeline */
.timeline-item::after {
  content: '';
  position: absolute;
  left: -2.9rem;
  top: 1.75rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink), 0 0 16px rgba(240,101,141,.4);
}

.timeline-item:hover {
  border-color: rgba(116,98,190,.35);
  box-shadow: 0 0 20px rgba(116,98,190,.07), 0 8px 32px rgba(0,0,0,.45);
  transform: translateX(4px);
}
.timeline-item:hover::before { opacity: 1; }

.timeline-org {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  filter: brightness(.85) saturate(.9);
  transition: filter var(--ease);
}
.timeline-item:hover .org-logo { filter: brightness(1) saturate(1); }

.org-meta { flex: 1; }
.org-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .1rem;
}
.org-role {
  font-size: .9rem;
  color: var(--pink);
  font-weight: 500;
}
.org-date {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .5px;
  margin-top: .1rem;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}
.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-size: 1.1rem;
  line-height: 1.4;
}
.timeline-bullets li a { color: var(--pink); }
.timeline-bullets li a:hover { color: var(--tangerine); }
.timeline-bullets li strong { color: var(--text); }

/* Sub-role divider inside a card */
.sub-role {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.sub-role .org-role { color: var(--tangerine); }

/* Publication item */
.pub-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(116,98,190,.06);
  border: 1px solid rgba(116,98,190,.25);
  border-radius: var(--r);
  margin-bottom: 1.25rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pub-item:hover {
  border-color: rgba(116,98,190,.45);
  box-shadow: 0 0 18px rgba(116,98,190,.12), 0 8px 28px rgba(0,0,0,.4);
}
.pub-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(116,98,190,.15);
  border: 1px solid rgba(116,98,190,.35);
  border-radius: 6px;
  padding: .3rem .6rem;
  white-space: nowrap;
  margin-top: .15rem;
}
.pub-content .pub-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
}
.pub-content .pub-title a { color: var(--tangerine); border-bottom: 1px solid rgba(253,134,96,.3); }
.pub-content .pub-title a:hover { color: var(--pink); }
.pub-meta { font-size: .84rem; color: var(--muted); }

/* ============================================================
   TABLE OVERRIDES (kept for any legacy tables)
   ============================================================ */

table { width: 100%; border-collapse: collapse; color: var(--text); }
td, th { border: none !important; color: var(--text); vertical-align: top; }
table img { border-radius: 8px; border: 1px solid var(--border); filter: brightness(.88) saturate(.9); transition: filter var(--ease); }
table img:hover { filter: brightness(1) saturate(1); }

/* ============================================================
   SECTION H2 ACCENT (resume page content headings)
   ============================================================ */

main > h1, main > h2, main > h3 { color: var(--text); }
main > h3 { color: var(--pink); text-shadow: 0 0 10px rgba(240,101,141,.28); border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-top: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */

footer, #quarto-footer {
  background: var(--surface) !important;
  border-top: 1px solid var(--border);
  color: var(--faint) !important;
  padding: 1.5rem;
  text-align: center;
  font-size: .82rem;
  position: relative;
}
footer::before, #quarto-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
  opacity: .35;
}
footer a, #quarto-footer a { color: var(--faint); }
footer a:hover, #quarto-footer a:hover { color: var(--pink); }

/* ============================================================
   MISC QUARTO
   ============================================================ */

::selection { background: rgba(116,98,190,.45); color: #fff; }

#TOC { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; padding: 1rem !important; }
#TOC a { color: var(--muted) !important; }
#TOC a:hover, #TOC a.active { color: var(--pink) !important; }

.callout { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .bio-section { grid-template-columns: 260px 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .bio-section { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .bio-image img { max-width: 340px; margin: 0 auto; display: block; }
}

@media (max-width: 768px) {
  .floating-symbols { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .band-rose { padding: 2.5rem 1.75rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item::after { left: -1.9rem; }
  .timeline-item { padding: 1.25rem 1.25rem; }
  .timeline-org { flex-direction: column; gap: .75rem; }
}

@media (max-width: 540px) {
  .content-wrapper { padding: 2rem 5vw; }
  .typewriter-name { font-size: clamp(2.4rem, 9vw, 3.5rem); }
}

@media print {
  .hero-section { min-height: unset; }
  .floating-symbols, .laser-beam { display: none; }
  body { background: #fff !important; color: #000 !important; }
}
