@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap');

:root {
  --ebird-blue: #385B75;
  --ebird-yellow: #F8E500;
  --ebird-text: #2E261F;
  --ebird-bg: #FFFFFF;
  --ebird-gray: #F4F4F4;
  --ebird-border: #E5E5E5;
  --ebird-green: #36824B;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
  color: var(--ebird-text);
  background: var(--ebird-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.top-bar {
  background: var(--ebird-blue);
  color: white;
  padding: 1rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.join-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ebird-green);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-btn::before {
  content: '🐦';
  font-size: 1.2rem;
}

.join-btn:hover {
  background: #2d6d3e;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.donate-bar {
  background: var(--ebird-green);
  color: white;
  text-decoration: none;
  padding: 0.85rem 0;
  display: block;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border-bottom: 3px solid rgba(0,0,0,0.1);
}

.donate-bar:hover {
  background: #2d7a42;
  filter: brightness(1.1);
  letter-spacing: 2px;
  transform: scale(1.02);
}

.donate-bar:active {
  transform: scale(0.98);
  filter: brightness(1.2);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

.logo span { color: white; }

/* Timeline Components */
.section {
  padding: 4rem 0;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--ebird-blue);
  margin-bottom: 3rem;
}

/* The Horizontal Timeline Track */
.timeline-viewer {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  overflow-y: visible; /* Allow magnification headroom */
}

/* THE LINE */
.timeline-viewer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ebird-border);
  z-index: 1;
}

.timeline-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0 45%; /* Padding to allow first/last items to center */
  scroll-snap-type: x mandatory;
  height: 100%;
  align-items: center;
  position: relative;
  z-index: 2;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.timeline-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.timeline-node {
  flex: 0 0 210px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0.3;
  transform: scale(0.8);
  cursor: pointer;
}

.timeline-node.active {
  opacity: 1;
  transform: scale(1.1);
}

/* THE DOT */
.dot {
  width: 12px;
  height: 12px;
  background: var(--ebird-blue);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ebird-border);
  margin: 15px 0;
  transition: var(--transition);
}

.active .dot {
  background: var(--ebird-green);
  box-shadow: 0 0 0 5px rgba(54, 130, 75, 0.2);
  transform: scale(1.3);
}

/* Content Box inside the Node */
.node-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-card {
  background: white;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--ebird-border);
  box-shadow: var(--shadow-sm);
  width: 155px;
  aspect-ratio: 1 / 1;
  pointer-events: auto;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.active .node-card {
  box-shadow: var(--shadow-md);
  border-color: var(--ebird-blue);
}

.node-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ebird-blue);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.node-card h3 {
  font-size: 0.9rem;
  color: var(--ebird-text);
  line-height: 1.2;
}

/* Nav Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid var(--ebird-border);
  border-radius: 50%;
  color: var(--ebird-blue);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  user-select: none;
}

.nav-btn:hover {
  background: var(--ebird-blue);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

/* Hide nav buttons on mobile */
@media (max-width: 768px) {
  .nav-btn {
    display: none;
  }
}

#instagram {
  padding: 4rem 0;
  background: var(--ebird-gray);
}

#affiliation {
  background: white;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ebird-border);
  text-align: center;
}

.affiliation-text {
  font-size: 1.1rem;
  color: var(--ebird-text);
  font-weight: 500;
  opacity: 0.9;
}

.affiliation-text a {
  color: var(--ebird-blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 91, 117, 0.3);
  transition: all 0.2s ease;
  font-weight: 600;
}

.affiliation-text a:hover {
  text-decoration-color: var(--ebird-blue);
}

.insta-container {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}
