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

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background-color: #FC5201;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

section:not(.homepage) {
  min-height: 700px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
  scroll-snap-align: start;
  margin-bottom: 0px;
}

.aboutus, .features, .art, .history {
  margin: 0;
}

/* Homepage Section */
.homepage {
  margin: 50px;
  margin-top: 0px;
  margin-bottom: 200px;
  padding: 20px;
  height: 700px;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  border-bottom: 2px solid white;
}

.logo {
  width: 500px;
  height: auto;
}

.main-nav {
  position: relative;
  right: 75px;
  top: 300px;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 40px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  font-size: 20px;
}

.runner-icon {
  position: relative;
  top: 325px;
  width: 100px;
  height: auto;
  transform: scaleX(-1);
}

.main-nav a:hover {
  opacity: 0.7;
}

/* About Us Section */
.aboutus {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 0;
  z-index: 1;
  overflow: hidden;
}

.text-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(50px);
  opacity: 0;
  max-width: 800px;
  text-align: center;
  font-size: 24px;
  line-height: 1.8;
  color: white;
  transition: all 1.2s ease-in-out;
}

.text-layer.active {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.aboutus p {
  position: relative;
  font-size: 24px;
  max-width: 800px;
  line-height: 1.8;
}

/* Features Section */
.features {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.feature img {
  width: 40%;
  border-radius: 8px;
}

.feature .text {
  width: 50%;
  text-align: left;
}

.feature.reverse {
  flex-direction: row-reverse;
}

/* === ART SECTION === */
.art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 180vh;       /* gives enough scroll space */
  padding: 150px 0;        /* ensures scroll movement triggers JS */
  overflow: hidden;
}

/* Initial text (before scroll) */
.art-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  font-size: 24px;
  line-height: 1.8;
  color: white;
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.art-text.fade-out {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 40px));
}

/* The art grid (hidden by default) */
.art-grid {
  position: absolute;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -50%) scale(0.95);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 60px;
  max-width: 950px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}

/* Pyramid placement */
.art-grid .card:nth-child(1) { grid-column: 1; }
.art-grid .card:nth-child(2) { grid-column: 3; }
.art-grid .card:nth-child(3) { grid-column: 5; }
.art-grid .card:nth-child(4) { grid-column: 2; }
.art-grid .card:nth-child(5) { grid-column: 4; }

.art-grid.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Card styling */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 200px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: none;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card p {
  margin-top: 10px;
  color: #111;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Reveal animation */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card.show {
  animation: fadeUp 0.8s ease-out forwards;
}

.card:hover {
  transform: translateY(-5px);
}



/* History Section */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 0;
}

.history {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.event {
  position: relative;
  text-align: center;
  font-size: 24px;
  max-width: 700px;
  line-height: 1.6;
  color: white;
  z-index: 1;
  margin: 80px 0;
}

.event:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100px;
  background-color: white;
}

/* Footer Section */
.site-footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px;
  color: white;
  margin-top: 50px;
}

.end-logo {
  width: 150px;
  height: auto;
  margin: 0px;
}

.end-runner {
  width: 50px;
  height: auto;
  margin: 0px;
  transform: scaleX(-1);
}

.end-nav {
  font-size: 1