/* Overlay covers the whole screen during transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(0);
    pointer-events: none;
  }
  
/* #pageTransition.hide {
  opacity: 0;
  pointer-events: none;
} */

  .page-transition.active {
    transform: translateY(0); /* slide up when active */
    pointer-events: all;
  }

  .page-transition .icon {
    width: 100px;
    height: 100px;
    background: url('../images/arrow1.png') no-repeat center/contain;
    animation: pulse 1.2s ease-in-out infinite;
  }
  
  /* Swipe overlay for second color */
  .page-transition::after {
    content: '';
    position: absolute;
    background-color: var(--orange); /* Second swipe color */
    top: 100%; /* Start off-screen at the bottom */
    left: 0;
    width: 100%;
    height: 100%;
    transition: top 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
  }
  
  /* Hide the overlay (animate up) */
  .page-transition.hide {
    transition-delay: 0.1s; /* Wait for the swipe to cover, then slide up */
    transform: translateY(-100%);
  }
  
  .page-transition.hide::after {
    transition-delay: 0s;
    top: 0; /* Slide up to cover the overlay */
  }
  
  /* Optional icon animation */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }

.scroll-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transform: translateY(100vh);
  transition: transform 0.8s cubic-bezier(.77,0,.18,1), opacity 0.8s cubic-bezier(.77,0,.18,1);
  z-index: 1;
  pointer-events: none;
  padding-top: 10rem;
}

.scroll-section.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
}

.scroll-section.up {
  opacity: 0;
  transform: translateY(-100vh);
  z-index: 1;
}

.scroll-section.down {
  opacity: 0;
  transform: translateY(100vh);
  z-index: 1;
}
  