:root {
  --max: 980px;
  --pad: 24px;
}

html { 
    scroll-behavior: smooth; /* smooth anchor clicks */
    scroll-snap-type: y proximity;
} 

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0b0c; /* match your landing */
}

.section {
  scroll-snap-align: start;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 64px 0;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  overflow-x: hidden; /* prevent accidental horizontal page scroll */
}


.container {
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.landing {
  /* swap this for your image background if you want */
  background: #0b0b0c;
  color: #fff;
}

/* Landing should be true full-bleed (no section padding bands) */
.section.landing {
  padding: 0;
}

/* Landing hero background */
.landing-bg{
  display: flex;
  min-height: 100svh;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30vh;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
}

.landing-overlay{
  background: rgba(0,0,0,0.68);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  width: min(560px, calc(100% - 2rem));
  padding: 1.25rem 1.5rem;
  line-height: 1.35;
  color: white;
}

/* About section with background image + overlay */
.about {
  padding: 0; /* remove .section padding bands */
  color: #fff;
}

.about-bg{
  width: 100%;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;      /* center the overlay on this section */
  background-image: url("images/about-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 64px 0;          /* give breathing room inside the image */
}

.about-overlay{
  background: rgba(0,0,0,0.68);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  width: min(760px, calc(100% - 2rem));
  padding: 1.25rem 1.5rem;
  line-height: 1.5;
}

.about a{
  color: #fff;
  text-underline-offset: 0.2em;
}

.timeline {
  background: #0b0b0c;
  color: #eee;
}

.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes nudgeDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}


.cta-arrow{
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  animation: nudgeDown 1.6s ease-in-out infinite;
}

/* Timeline should not inherit the "centered grid" layout */
.section.timeline{
  display: block;
  min-height: auto;
  padding-bottom: 24px; /* reduce bottom breathing room if it feels too tall */
}

.section.timeline .container{
  text-align: center;
}

.timeline-wrap {
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.timeline-track {
  display: flex;
  gap: 18px;
  padding: 8px 24px 16px;
}

.timeline-card {
  flex: 0 0 clamp(260px, 34vw, 420px);
  background: #1a1a1b;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.timeline-card:visited {
  color: inherit;
}

a.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.timeline-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #2a2a2b;
}

.timeline-card .meta {
  padding: 16px 18px;
}

.timeline-card .date {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.timeline-card .desc {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Prevent the page from side-scrolling; only timeline can scroll horizontally */
html, body { overflow-x: hidden; }

/* Give the timeline a clear vertical "zone" so it feels intentional */
.timeline-wrap { scrollbar-gutter: stable; }

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  background: #0b0b0c;
}

.site-footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: rgba(255,255,255,0.65);
}

.site-footer span {
  color: rgba(255,255,255,0.2);
  font-size: 0.85rem;
  margin: 0 6px;
}
