/* =========================================================
   INDEX PAGE ONLY
   Hero, contact icons, particles area, and journey timeline.
   ========================================================= */

.hero-full {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--hero-bg);
}

#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 50px 50px 90px;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(-15px);
}

.hero-card {
  background: color-mix(in oklab, var(--card) 86%, transparent);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--soft);
  transform: translateY(-7px);
}

.contact-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  transform: translateY(-1px);
}

.contact-icons .icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #9ca3af;
  background: var(--soft);
  color: #111111;
}

.contact-icons .icon-btn:hover {
  border-color: #6b7280;
  background: color-mix(in oklab, var(--soft) 84%, var(--brand) 16%);
}

.contact-icons .icon-btn i {
  font-size: 18px;
  color: #111111;
}

body.dark-mode .contact-icons .icon-btn {
  border-color: #4b5563;
  color: var(--text);
}

body.dark-mode .contact-icons .icon-btn i {
  color: var(--text);
}

.scholar-icon {
  width: 19px;
  height: 22px;
  display: inline-block;
  background: #111111;
  -webkit-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAWCAYAAAAinad/AAAB1klEQVR4nI3UTYhNYRwG8N+9xvhaKDNFE8liRkbCwkIiOwv52FAWMo0NK0tLGyk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OkUx2rEON9CTaU8oT0kpdqZTTmD1TBdVYRhfMdhM0KwARazBQrwVvbVK9NvyXFiVs1NYKio3hM8iZ/uS6Rg2+dcqpejEI4xiY0m8R4zcpLhZKjEoZq+7QrNHzPGDKqPd4rPuT7ej6LehIpEXoC5u1W7R6VWYj2vT7fhM5ONKheYMrudkWTW34rIYqXdiVEZFBedgrcjXwZmYEdfSdmzGlrT4pcjTBTwuW/QXOTJpLkGD7/IAAAAASUVORK5CYII=") center / contain no-repeat;
}

body.dark-mode .scholar-icon {
  background: var(--text);
}

.intro h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw + 12px, 36px);
}

.intro p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

body.dark-mode .intro p a strong {
  color: var(--brand);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-weight: 600;
  letter-spacing: .4px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.scroll-cue:hover {
  text-decoration: none;
  background: rgba(255,255,255,.25);
}

.scroll-cue::before {
  content: "↓ ";
  display: inline-block;
  animation: bob 1.6s ease-in-out infinite;
}

html:not(.dark-init) body:not(.dark-mode) .scroll-cue {
  background: rgba(200, 200, 210, 0.6);
  border-color: rgba(180, 180, 190, 0.7);
  color: #1b1f2a;
}

html:not(.dark-init) body:not(.dark-mode) .scroll-cue:hover {
  background: rgba(180, 180, 190, 0.8);
  color: #000;
}

@keyframes bob {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(2px); }
}

#updates {
  scroll-margin-top: 96px;
}

.vtimeline {
  position: relative;
  padding: 6px 0 6px;
  margin-top: 10px;
}

.vtimeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--soft);
  transform: translateX(-50%);
}

.vt-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 16px 0;
  opacity: 0;
  transform: translateY(8px);
}

.vt-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

.vt-dot {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent);
  border: 2px solid #fff;
}

.vt-dot:hover {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
  transition: transform 0.2s ease, background 0.3s ease;
}

.vt-card {
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.vt-date {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.vt-text {
  margin: 0;
  color: var(--text);
}

.vt-item:nth-child(odd) .vt-card { grid-column: 1 / 2; }
.vt-item:nth-child(even) .vt-card { grid-column: 2 / 3; }

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 90px;
  }

  .hero-media {
    transform: none;
  }

  .intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .avatar {
    margin: 0 auto;
  }

  .vtimeline::before {
    left: 24px;
    transform: none;
  }

  .vt-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 44px;
  }

  .vt-item .vt-card {
    grid-column: 1 / -1;
  }

  .vt-dot {
    left: 24px;
  }
}

.intro a {
  text-decoration: none;
}

.timeline-location {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--muted);
  opacity: 0.7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* Bio links: blue in dark mode */
html.dark-init .intro p a,
html.dark-init .intro p a strong,
html.dark-init .intro p a:visited,
body.dark-mode .intro p a,
body.dark-mode .intro p a strong,
body.dark-mode .intro p a:visited {
  color: var(--brand) !important;
}
