:root{
  /* Neon + holiday palette */
  --green: #00ff66;    /* neon accent (preserve) */
  --red:   #cc2222;    /* subtle red tone */
  --teal:  #0a5547;    /* deep teal */
  --burg:  #4b0013;    /* burgundy */
  --base:  #0a0f0c;    /* deep forest green-black */
  --text:  #eaffea;    /* readable pale green */
}

/* Slow breathing aurora gradient */
@keyframes auroraBreath {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Soft mist drift (left → right) */
@keyframes mistDrift {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-8%); }
}

/* Snowfall straight down with slight fade */
@keyframes snowFall {
  0%   { transform: translateY(-10px); opacity: 0.9; }
  100% { transform: translateY(calc(100vh - 24px)); opacity: 0.8; }
}

html, body {
  margin: 0;
  padding: 0;
}

body{
  font-family: "Trebuchet MS", serif;
  color: var(--text);
  line-height: 1.65;
  text-align: center;
  overflow-x: hidden;

  /* Dark forest green → deep teal → burgundy breathing aurora */
  background: linear-gradient(90deg, var(--teal), var(--base), var(--burg));
  background-size: 400% 400%;
  animation: auroraBreath 28s ease-in-out infinite;
  position: relative;
}

/* Foreground mist (in front of background, behind content) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at 75% 45%, rgba(255,120,120,0.05), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: mistDrift 100s linear infinite;
  opacity: 0.55;
}

/* Snowflakes: in front of everything (including slideshow), non-interactive */
.snowflake{
  position: fixed;
  top: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95); /* slightly brighter as requested */
  animation: snowFall linear infinite;
  z-index: 60;
  pointer-events: none;
}

/* Gentle accumulation at the bottom (JS will raise opacity over time) */
.snow-bottom{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
  z-index: 55;
  background: linear-gradient(to top, rgba(255,255,255,0.25), rgba(255,255,255,0.08) 45%, transparent 70%);
  opacity: 0; /* will increase slowly via JS */
}

/* Header */
header{
  padding: 70px 20px 10px;
  position: relative;
  z-index: 5;
}
h1{
  font-size: 48px;
  color: var(--green);
  text-shadow:
    0 0 6px var(--green),
    0 0 16px rgba(0,255,100,0.55);
  margin: 0;
}
.subtitle{
  margin-top: 10px;
  font-size: 18px;
  color: #caffca;
}

/* Slideshow stage */
.projector-stage{
  position: relative;
  z-index: 5; /* content above mist, below snow */
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Projector frame (cinematic glow preserved, no jitter/flicker) */
.slideshow{
  position: relative;
  margin: 40px auto 10px auto;
  width: 850px;
  max-width: 95%;
  height: 500px;
  background: #000;
  overflow: hidden;
  border: 10px solid rgba(0,255,102,0.10);
  border-radius: 8px;
  box-shadow:
    0 0 50px rgba(0,255,102,0.16),
    0 0 24px rgba(0,0,0,0.8);
}

/* Green‑tinted beam overlay (cinematic) */
.beam{
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(0,255,100,0.18),
    transparent 60%
  );
  z-index: 3;
  pointer-events: none;
}

.slide{
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* cinematic fill */
  background: #000;
  filter: contrast(1.06) brightness(0.96) saturate(1.02);
  user-select: none;
  -webkit-user-drag: none;
}

/* Prev/Next controls */
.nav-btn{
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 16px;
  border: 1px solid rgba(0,255,102,0.35);
  border-radius: 10px;
  background: rgba(0,255,100,0.16);
  color: var(--green);
  font-size: 20px;
  line-height: 1;
  z-index: 10;
  transition: 0.25s ease;
}
.prev{ left: 14px; }
.next{ right: 14px; }
.nav-btn:hover{
  background: rgba(0,255,100,0.28);
  box-shadow: 0 0 16px rgba(0,255,102,0.25);
}

/* Dots */
.dots{
  margin: 12px 0 32px 0;
  position: relative;
  z-index: 5;
}
.dot{
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.22);
  border: 1px solid rgba(0,255,102,0.35);
  border-radius: 50%;
  display: inline-block;
  transition: 0.2s ease;
}
.dot.active{
  background-color: var(--green);
  box-shadow: 0 0 10px rgba(0,255,102,0.35);
}

/* Bio */
.bio-section{
  max-width: 1000px;
  margin: 50px auto 40px auto;
  padding: 40px 26px;
  background: rgba(0, 60, 0, 0.22);
  border: 1px solid rgba(0,255,102,0.18);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0,255,100,0.12);
  text-align: left;
  position: relative;
  z-index: 5;
}
.bio-section h2{
  text-align: center;
  font-size: 34px;
  margin: 0 0 22px 0;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0,255,102,0.5);
  letter-spacing: 0.5px;
}
.bio-section p{
  margin: 0 0 18px 0;
  font-size: 17px;
  color: #d9ffd9;
}
.bio-section strong{ color: #eaffea; }

/* Investigators */
.investigators{ margin-top: 20px; }
.investigator{
  margin: 0 0 15px 0;
  padding: 0 0 15px 0;
  border-bottom: 1px solid rgba(0,255,100,0.18);
}
.investigator:last-child{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.investigator h3{
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #caffca;
}
.investigator h3 a{
  color: var(--green);
  text-decoration: none;
}
.investigator h3 a:hover{
  text-shadow: 0 0 10px rgba(0,255,102,0.75);
}
.investigator p{
  margin: 0;
  font-size: 16px;
  color: #caffca;
}

/* Social icons */
.social-icons{ margin-top: 10px; }
.social-icons a{
  color: var(--green);
  margin-right: 14px;
  font-size: 20px;
  transition: 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.social-icons a:hover{
  color: var(--red);
  text-shadow: 0 0 12px rgba(0,255,102,0.8);
  transform: translateY(-1px);
}

/* Back link */
.back-link{
  margin: 30px 0 80px 0;
  position: relative;
  z-index: 5; /* above mist, below snow */
}
.back-link a{
  text-decoration: none;
  font-size: 18px;
  padding: 10px 20px;
  border: 1px solid rgba(0,255,102,0.65);
  border-radius: 10px;
  color: var(--green);
  transition: 0.3s ease;
  display: inline-block;
  cursor: pointer;
}
.back-link a:hover{
  background-color: rgba(0,255,102,0.85);
  color: #000;
  box-shadow: 0 0 18px rgba(0,255,102,0.25);
}

/* Responsive */
@media (max-width: 768px){
  h1{ font-size: 40px; }
  .slideshow{ height: 420px; }
  .bio-section{ margin: 45px 14px 30px 14px; padding: 28px 18px; }
  .prev{ left: 10px; }
  .next{ right: 10px; }
  .nav-btn{ padding: 10px 12px; }
}
@media (max-width: 480px){
  .slideshow{ height: 360px; }
}