/* Psychedelic Index Page Styles */

.index-page {
  overflow-x: hidden;
}

.index-page .intro-page:not(.fade-out) ~ * {
  overflow: hidden;
}

.intro-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to top, #F5F5F5, #F5F5F5);
  background-attachment: fixed;
  z-index: 100000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 1s ease-out, visibility 1s ease-out;
}

.intro-page.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-text-container {
  min-height: 300vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 5vw;
  box-sizing: border-box;
  padding-bottom: 50vh;
}

.intro-text {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(20px, 5vw, 80px);
  line-height: 1.3;
  text-align: justify;
  color: #111;
  max-width: 1600px;
  width: 100%;
  transform-origin: top center;
  transition: transform 0.05s linear;
  will-change: transform;
  word-spacing: 0.15em;
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Squash effect at top when scrolling */
.intro-text.squash {
  transform: scaleY(0.3) scaleX(1);
}

/* Normal scrolling at bottom */
.intro-text.normal {
  transform: scale(1);
}

.main-content-wrapper {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.main-content-wrapper.show {
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 800px) {
  .intro-text {
    font-size: clamp(18px, 6vw, 60px);
    padding: 5vh 4vw;
  }
  
  .intro-text-container {
    padding: 5vh 4vw;
  }
}

