.scroll-space {
  height: 200vh; 
}

.first {
  background: var(--white);
  color: var(--black);
  z-index: 2;
  /* Critical mobile optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* will-change: transform; */
  transform: translateZ(0);
  /* backface-visibility: hidden; */
  height: 100dvh;
  /* Ensure consistent positioning */
  position: relative;
  width: 100%;
  overflow: hidden;
        /* -webkit-font-smoothing: subpixel-antialiased; */

}

.zoom-word {
  position: relative;
  display: inline-block;
  /* Ensure consistent spacing */
  white-space: nowrap;
        -webkit-font-smoothing: subpixel-antialiased;

}

.zoom-word span {
  /* Force GPU acceleration for each letter */
  /* transform: translateZ(0); */
  /* backface-visibility: hidden; */
  /* will-change: auto; */
  /* Ensure letters are positioned correctly */
  display: inline-block;
  position: relative;
      -webkit-font-smoothing: subpixel-antialiased;
}

/* Target the "y" letter specifically for debugging */
.zoom-word span:first-child {
  /* This is the "y" letter - ensure it's visible and properly positioned */
  position: relative;
  z-index: 1;
}

.headline {
  font-size: clamp(45px, 7vw, 120px);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  /* Optimize text rendering */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Ensure text doesn't shift during animations */
  position: relative;
        -webkit-font-smoothing: subpixel-antialiased;

}

/* Mobile specific font size adjustments for better letter visibility */
@media (max-width: 768px) {
  .headline {
    font-size: clamp(36px, 8.5vw, 60px);
    line-height: 1.3;
  }
}

.dimensions {
  color: var(--primary);
}

/* Journey Arrow Styles - Dimensional Theme */
.journey-arrow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  /* Optimize for mobile touch */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.journey-text {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--black);
  position: relative;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Layered Arrow - Multiple Dimensions */
.arrow-layers {
  position: relative;
  width: 60px;
  height: 60px;
  transform: translateZ(0);
}

.arrow-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* will-change: transform; */
  backface-visibility: hidden;
}

.arrow-layer-1 {
  background: rgba(241, 133, 74, 0.2);
  transform: translate(12px, 12px) translateZ(0);
  z-index: 1;
}

.arrow-layer-2 {
  background: rgba(241, 133, 74, 0.5);
  transform: translate(6px, 6px) translateZ(0);
  z-index: 2;
}

.arrow-layer-3 {
  background: var(--primary);
  transform: translate(0, 0) translateZ(0);
  z-index: 3;
  box-shadow: 0 0 20px rgba(241, 133, 74, 0.3);
}

.arrow-icon {
  width: 24px;
  height: 24px;
  border-left: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  transform: rotate(-45deg) translateY(-3px) translateZ(0);
  position: relative;
  z-index: 4;
}

/* Animations - Reduced motion for mobile */
@keyframes dimensionalFloat {
  0%, 100% {
    transform: translate(0, 0) translateZ(0);
  }
  33% {
    transform: translate(0, 8px) translateZ(0);
  }
  66% {
    transform: translate(0, 4px) translateZ(0);
  }
}

@keyframes layerShift1 {
  0%, 100% {
    transform: translate(12px, 12px) translateZ(0);
  }
  50% {
    transform: translate(14px, 16px) translateZ(0);
  }
}

@keyframes layerShift2 {
  0%, 100% {
    transform: translate(6px, 6px) translateZ(0);
  }
  50% {
    transform: translate(7px, 10px) translateZ(0);
  }
}
  .arrow-layer-1 {
    animation: layerShift1 2.5s ease-in-out infinite;
  }

  .arrow-layer-2 {
    animation: layerShift2 2.5s ease-in-out infinite;
  }

  .arrow-layer-3 {
    animation: dimensionalFloat 2.5s ease-in-out infinite;
  }


/* Hover Effects - Desktop only */
@media (hover: hover) and (pointer: fine) {
  .journey-arrow:hover .journey-text {
    opacity: 1;
    letter-spacing: 2px;
    color: var(--primary);
  }

  .journey-arrow:hover .arrow-layer-1 {
    transform: translate(16px, 16px) translateZ(0);
    background: rgba(241, 133, 74, 0.3);
  }

  .journey-arrow:hover .arrow-layer-2 {
    transform: translate(8px, 8px) translateZ(0);
    background: rgba(241, 133, 74, 0.6);
  }

  .journey-arrow:hover .arrow-layer-3 {
    transform: translate(-2px, -2px) translateZ(0);
    background: #FF6B47;
    box-shadow: 0 0 30px rgba(255, 107, 71, 0.5);
  }
}

/* Active State */
.journey-arrow:active .arrow-layer-1 {
  transform: translate(8px, 8px) translateZ(0);
}

.journey-arrow:active .arrow-layer-2 {
  transform: translate(4px, 4px) translateZ(0);
}

.journey-arrow:active .arrow-layer-3 {
  transform: translate(2px, 2px) translateZ(0);
  background: #D1743D;
}
  .arrow-layer-3 {
    animation: dimensionalFloat 2.5s ease-in-out infinite, 
               pulseGlow 2.5s ease-in-out infinite;
  }
/* Pulse glow effect - Desktop only */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(241, 133, 74, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(241, 133, 74, 0.6);
  }
}


.dim-holding-sign {
  position: absolute;
  width: 222px;
  top: 14%;
  right: 19%;
  cursor: pointer;
  transform: rotate(-5deg) translateZ(0);
  backface-visibility: hidden;
    animation: float 5s ease-in-out infinite;

}



@keyframes float {
  0% {
    transform: rotate(-5deg) translateY(0) translateZ(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-15px) translateZ(0);
  }
  100% {
    transform: rotate(-5deg) translateY(0) translateZ(0);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .scroll-space {
    /* Slightly longer scroll for smoother mobile experience */
    height: 250vh;
  }

  .headline {
    font-size: clamp(32px, 8vw, 60px);
    /* Optimize for mobile scrolling */
    transform: translateZ(0);
  }

  .journey-arrow {
    bottom: 30px;
    gap: 15px;
  }

  .journey-text {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .arrow-layers {
    width: 50px;
    height: 50px;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  .dim-holding-sign {
    width: 50%;
    max-width: 180px;
    /* Disable animation on mobile for performance */
  }


}

@media (max-width: 480px) {
  .headline {
    font-size: clamp(28px, 9vw, 50px);
  }

    .dim-holding-sign {
        width: 40%;
        top: 18%;
        right: 10%;
    }
}

/* Reduce motion for accessibility */
/* @media (prefers-reduced-motion: reduce) {
  .arrow-layer-1,
  .arrow-layer-2,
  .arrow-layer-3,
  .dim-holding-sign {
    animation: none !important;
  }

  .journey-arrow * {
    transition: none !important;
  }
} */


