/* ============================================
   Shared custom styles — used alongside Tailwind CDN
   on every page. Edit colors/fonts here to re-theme.
   ============================================ */

.glass-card {
  background: rgba(13, 27, 30, 0.6);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("https://www.transparenttextures.com/patterns/p6.png");
}

.glow-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.glow-spot {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 219, 231, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}

/* ===== Reaction-pathway timeline (Work History / Education) ===== */
.rxn-timeline {
  position: relative;
  padding-left: 6px;
}

.rxn-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 27px;
  bottom: 27px;
  width: 1px;
  background: linear-gradient(#00dbe7, rgba(132, 148, 149, 0.2) 90%);
  opacity: 0.5;
}

.rxn-item {
  display: grid;
  grid-template-columns: 56px 68px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
}

.rxn-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #101415;
  border: 1.5px solid #00dbe7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 0 16px rgba(0, 219, 231, 0.3);
}

.rxn-node svg {
  width: 22px;
  height: 22px;
}

.inst-logo {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: #b9cacb;
  text-align: center;
  line-height: 1.25;
  padding: 0.35rem;
}

.rxn-role {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e3e4;
  margin-bottom: 0.2rem;
}

.rxn-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #e9c349;
  text-transform: uppercase;
}

.rxn-org {
  color: #b9cacb;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

/* ===== timeline pulse dot (used sparingly) ===== */
.timeline-node::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #00dbe7;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px #00dbe7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ===== Publication / research / people cards ===== */
.pub-card {
  padding: 1.5rem 1.75rem;
}

.pub-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #00dbe7;
  border: 1px solid rgba(0, 219, 231, 0.4);
  border-radius: 2px;
  padding: 0.1rem 0.45rem;
  display: inline-block;
  margin-bottom: 0.7rem;
}

.pill-gold {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(233, 195, 73, 0.12);
  color: #e9c349;
  margin-right: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 219, 231, 0.08);
  border: 1px solid rgba(0, 219, 231, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #00dbe7;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
