/* style.css */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: black;
}

#scroll-container {
  position: relative;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-overlay {
  position: relative;
  z-index: 1;
  color: white;
  padding: 2rem;
  max-width: 800px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  font-size: 1.25em;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1rem;
  transition: transform 0.5s ease, background-color 0.5s ease;
}

.text-overlay.hidden {
  background: rgba(30, 60, 120, 0.6);
}

.text-overlay-right {
  align-self: flex-end;
  margin-right: 2rem;
}

.text-overlay-left {
  align-self: flex-start;
  margin-left: 2rem;
}

.text-overlay-center {
  align-self: center;
  text-align: center;
  margin: 0 auto;
  padding: 1rem;
}

.text-overlay-center h1 {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
}

.text-overlay-center.hidden {
  transform: translateX(calc(50vw + 50%));
}

.text-overlay-right.hidden {
  transform: translateX(100%);
}

.text-overlay-left.hidden {
  transform: translateX(-100%);
}

.toggle-btn {
  position: absolute;
  top: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.text-overlay-right .toggle-btn { right: 0.5rem; left: auto; }
.text-overlay-left .toggle-btn { left: 0.5rem; right: auto; }

.site-footer {
  font-size: 1em;
  padding: 1rem;
  margin-top: 2rem;
}

.site-footer a {
  color: white;
  text-decoration: underline;
}
