/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #f9fbe7;
  color: #2e2e2e;
  min-height: 100vh;
}

/* ── Header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #c8e6c9;
}

.header-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-name:hover { color: #1b5e20; }

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

.nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: #4a4a4a;
  text-decoration: none;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: color 0.2s ease, background 0.25s ease, transform 0.2s ease,
              backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover {
  color: #1b5e20;
  transform: translateY(-1px);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  backdrop-filter: blur(6px) saturate(180%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Consistent pastel hover highlight across all nav items */
.nav-link:hover { background: #c8e6c9; } /* soft green */

/* ── Hero Text ── */
.hero-text {
  text-align: center;
  padding: 52px 20px 8px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #1b5e20;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-text .italic { font-style: italic; color: #388e3c; }

.hero-text p {
  font-size: 1rem;
  color: #888;
  letter-spacing: 1px;
}

/* ── Illustration Scene ── */
#scene {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px 0;
}

#scene-container {
  width: 100%;
  position: relative;
}

#scene-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Clickable layer groups */
.clickable {
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.clickable:hover {
  filter: brightness(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.22));
  transform: translateY(-4px) scale(1.04);
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: #1b5e20;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: opacity 0.15s;
  z-index: 10;
}
.tooltip.hidden { opacity: 0; }

/* Slow bee flying/hover animation */
@keyframes bee-float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(1.5px, -3px) rotate(1deg); }
  50%  { transform: translate(-1px, -1px) rotate(-1deg); }
  75%  { transform: translate(-2px, -4px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

#bee-left, #bee-center, #bee-right {
  transform-box: fill-box;
  transform-origin: center;
  animation: bee-float 6s ease-in-out infinite;
}

#bee-left   { animation-duration: 7s; animation-delay: 0s; }
#bee-center { animation-duration: 6s; animation-delay: -2s; }
#bee-right  { animation-duration: 6.5s; animation-delay: -4s; }

.hint {
  text-align: center;
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 6px;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

/* ── About Strip ── */
.about-strip {
  background: #fff;
  border-top: 2px solid #c8e6c9;
  border-bottom: 2px solid #c8e6c9;
  margin-top: 20px;
  padding: 52px 20px;
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 4px solid #c8e6c9;
  display: block;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1b5e20;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 24px;
}

/* Liquid-glass button: a translucent, frosted pill that lets the
   background show through, with a soft inner glow rather than a
   solid fill. Backdrop-filter gives the frosted-glass blur of
   whatever sits behind the button. */
.btn-green {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 60%),
    rgba(76,175,80,0.16);
  color: #1b5e20;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.7),
    inset 0 -6px 10px rgba(255,255,255,0.15),
    0 4px 16px rgba(46,125,50,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn-green:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08) 60%),
    rgba(76,175,80,0.24);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.8),
    inset 0 -6px 10px rgba(255,255,255,0.2),
    0 8px 22px rgba(46,125,50,0.18);
}

.btn-green:active { transform: translateY(0); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-tags span {
  background: #f1f8e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── Data Explorer ── */
.explorer-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.explorer-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #1b5e20;
  margin-bottom: 8px;
}

.explorer-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ── Research banner: simple, understated header ── */
.research-banner {
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #fff3c4;
}

.research-banner .explorer-title {
  margin-bottom: 0;
}

.explorer-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.explorer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: #fff;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explorer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.explorer-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f8e9;
}

.explorer-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.explorer-card:hover .explorer-card-photo img {
  transform: scale(1.05);
}

.explorer-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  flex-grow: 1;
}

.explorer-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #1b5e20;
  margin-bottom: 12px;
}

.explorer-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  flex-grow: 1;
}

@media (max-width: 700px) {
  .explorer-cards { grid-template-columns: 1fr; }
}

/* ── Workshops & Talks ── */
.talk-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.talk-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.talk-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f8e9;
}

.photo-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.talk-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talk-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.talk-card-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: #2e7d32;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.talk-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #1b5e20;
  margin-bottom: 12px;
  line-height: 1.35;
}

.talk-card-subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: #7a8c7a;
  margin-bottom: 12px !important;
  line-height: 1.4;
  flex-grow: 1;
}

.talk-card-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
  flex-grow: 1;
}

.talk-card-body .btn-green,
.talk-card-body .btn-outline {
  align-self: flex-start;
}

.talk-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Outline variant of the glass button, for secondary actions */
.btn-outline {
  display: inline-block;
  background: rgba(255,255,255,0.4);
  color: #2e7d32;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #c8e6c9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: #f1f8e9;
  transform: translateY(-2px);
}

/* ── Contact ── */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.contact-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #1b5e20;
  margin-bottom: 8px;
}

.contact-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a4a4a;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  background: #fff;
  color: #2e2e2e;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.contact-form button {
  margin-top: 20px;
  align-self: flex-start;
  cursor: pointer;
}

.contact-alt {
  margin-top: 32px;
  font-size: 0.9rem;
  color: #888;
}

.contact-email {
  margin-top: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
}

.contact-email a {
  color: #2e7d32;
  text-decoration: none;
  border-bottom: 2px solid #c8e6c9;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email a:hover {
  color: #1b5e20;
  border-color: #1b5e20;
}

/* ── About Page ── */
.about-page-section {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 20px 60px;
  overflow: hidden;
}

/* Subtle drifting gradient blobs behind the About content.
   Soft, slow, and low-contrast so it reads as ambience rather
   than a focal element. */
.about-page-section::before,
.about-page-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  pointer-events: none;
}

.about-page-section::before {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, #c8e6c9 0%, rgba(200,230,201,0) 70%);
  animation: about-blob-a 14s ease-in-out infinite;
}

.about-page-section::after {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, #fff9c4 0%, rgba(255,249,196,0) 70%);
  animation: about-blob-b 18s ease-in-out infinite;
}

@keyframes about-blob-a {
  0%, 100%  { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(120px, 90px) scale(1.25); }
  66%       { transform: translate(60px, -40px) scale(0.9); }
}

@keyframes about-blob-b {
  0%, 100%  { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-110px, -70px) scale(1.2); }
  66%       { transform: translate(-50px, 50px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .about-page-section::before,
  .about-page-section::after {
    animation: none;
  }
}

.about-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.about-page-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid #c8e6c9;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.about-page-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: #1b5e20;
  margin-bottom: 4px;
}

.about-page-role {
  font-size: 1.05rem;
  color: #2e7d32;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-bullets li {
  font-size: 0.98rem;
  color: #444;
  padding-left: 26px;
  position: relative;
}

.about-bullets li::before {
  content: "🐝";
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

.about-page-body {
  border-top: 2px solid #c8e6c9;
  padding-top: 36px;
}

.about-page-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 22px;
  max-width: 700px;
}

@media (max-width: 700px) {
  .about-page-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .about-page-photo img { max-width: 280px; margin: 0 auto; }
  .about-bullets { align-items: center; }
  .about-bullets li { text-align: left; }
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.85rem;
  color: #999;
}

footer a { color: #2e7d32; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Social / academic links ── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2e7d32;
  background: #f1f8e9;
  border: 1px solid #c8e6c9;
  transition: transform 0.2s ease, background 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: #c8e6c9;
  color: #1b5e20;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(46,125,50,0.18);
}

.social-links a:focus-visible {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  header { padding: 14px 20px; }
  nav { gap: 4px; }
  .nav-link { font-size: 0.92rem; padding: 5px 10px; }
  .header-name { font-size: 1.7rem; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Click ripple ── */
.click-ripple {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
  animation: click-ripple-anim 0.6s ease-out forwards;
}

@keyframes click-ripple-anim {
  to {
    transform: translate(-50%, -50%) scale(14);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .click-ripple { display: none; }
}
