body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Header container */
.header {
  position: relative;
  width: 100%;
  height: 130vh; /* shortened */
  overflow: hidden;
}

/* Responsive header height */
@media (max-width: 900px) {
  .header {
    height: 160vh;
  }
}

@media (max-width: 600px) {
  .header {
    height: 130vh;
  }
}

/* Subtle bottom-only blur */
.header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh; /* only the bottom 20% of the header */
  pointer-events: none;
  z-index: 1;

  /* Transparent gradient mask for smoothness */
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(255, 255, 255, 0) 100%
  );

  /* The subtle diffusion effect */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Softer, longer gradient blend */
.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.00) 45%,
    rgba(255,255,255,0.03) 50%,
    rgba(255,255,255,0.06) 54%,
    rgba(255,255,255,0.10) 58%,
    rgba(255,255,255,0.16) 62%,
    rgba(255,255,255,0.23) 66%,
    rgba(255,255,255,0.32) 70%,
    rgba(255,255,255,0.42) 74%,
    rgba(255,255,255,0.52) 77%,
    rgba(255,255,255,0.62) 80%,
    rgba(255,255,255,0.72) 83%,
    rgba(255,255,255,0.80) 85%,
    rgba(255,255,255,0.86) 87%,
    rgba(255,255,255,0.90) 89%,
    rgba(255,255,255,0.93) 91%,
    rgba(255,255,255,0.95) 93%,
    rgba(255,255,255,0.965) 94%,
    rgba(255,255,255,0.975) 95%,
    rgba(255,255,255,0.985) 96%,
    rgba(255,255,255,0.99) 97%,
    rgba(255,255,255,0.995) 98%,
    rgba(255,255,255,0.998) 99%,
    rgba(255,255,255,1.00) 100%   
  );
}


/* Text overlay */
.header-content {
  position: absolute;
  top: 40%; /* Moved slightly upward */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 0 1rem;
}

/* Heading text */
.header-content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.2;
  background: none;
}

/* Subtext */
.subtext {
  font-size: 1rem;
  font-weight: 200;
  opacity: 0.85;
  margin-top: 12px;
  text-align: center;
}

/* Links inside subtext */
.subtext a {
  color: inherit;
  text-decoration: underline;
}

/* --- Solid continuation section --- */
.transition-section {
  background-color: #ffffff;
  min-height: 120vh; /* can be adjusted later as you add content */
}

/* --- Responsive text scaling --- */
@media (max-width: 900px) {
  .header-content {
    top: 30%; /* Slightly lower for tablets */
  }
  .header-content h1 {
    font-size: 2.2rem;
  }
  .subtext {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .header-content {
    top: 40%; /* Keep text vertically balanced */
  }
  .header-content h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  .subtext {
    font-size: 0.85rem;
    opacity: 0.9;
  }
}

@media (max-width: 400px) {
  .header-content {
    top: 42%;
  }
  .header-content h1 {
    font-size: 1.6rem;
  }
  .subtext {
    font-size: 0.8rem;
  }
}

/* Last updated timestamp */
#last-updated {
  position: fixed;
  top: 10px;
  left: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.5px;
  z-index: 1000;
  user-select: none;
  pointer-events: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
