/* Fold Effect Section */
:root {
  --step--2: clamp(3.13rem, 2.62rem + 2.51vw, 5.76rem);
  --step--1: clamp(3.75rem, 3.09rem + 3.29vw, 7.20rem);
  --step-0: clamp(4.50rem, 3.64rem + 4.29vw, 9.00rem);
}

#fold-effect {
  background-color: #F5F6F7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 600;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.marquee {
  border-bottom: 1px solid #0B0E13;
  color: #DADDE1;
  font-size: var(--step-0);
  font-weight: 700;
  height: calc(170px + 4rem);
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.marquee img {
  object-fit: cover;
  max-height: 150px;
}

.track {
  height: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: absolute;
  white-space: nowrap;
}

.track .text {
  animation: marquee 50000ms linear infinite;
  align-items: center;
  display: inline-flex;
  will-change: transform;
}

.-focus {
  color: #0B0E13;
  font-weight: 900;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

.wrapper-3d {
  position: relative;
  perspective: 20vw;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.fold {
  overflow: hidden;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
}

.fold-top {
  position: absolute;
  transform-origin: bottom center;
  left: 0;
  right: 0;
  bottom: 100%;
  max-height: 80vh;
}

.fold-center {
  width: 100%;
  max-height: 80vh;
}

.fold-bottom {
  position: absolute;
  transform-origin: top center;
  right: 0;
  left: 0;
  top: 100%;
  max-height: 80vh;
}

.fold-align {
  width: 100%;
  height: 100%;
}

.fold-bottom .fold-align {
  transform: translateY(-100%);
}

.fold-top .fold-align {
  transform: translateY(100%);
}

.fold-bottom {
  transform-origin: top center;
  transform: rotateX(120deg);
}

.fold-top {
  transform-origin: bottom center;
  transform: rotateX(-120deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee {
    font-size: var(--step--1);
    height: calc(120px + 3rem);
  }
  
  .fold {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .marquee {
    font-size: var(--step--2);
    height: calc(90px + 2rem);
  }
  
  .fold {
    height: 60vh;
  }
}

/* ========================================
   ENHANCED MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 375px) {
  .marquee {
    font-size: calc(var(--step--2) * 0.9);
    height: calc(80px + 1.75rem);
    padding: 1.5rem 0.75rem;
  }
  
  .fold {
    height: 55vh;
    min-height: 300px;
  }
}

@media (max-width: 320px) {
  .marquee {
    font-size: calc(var(--step--2) * 0.85);
    height: calc(70px + 1.5rem);
    padding: 1.25rem 0.5rem;
  }
  
  .fold {
    height: 50vh;
    min-height: 280px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .marquee {
    font-size: calc(var(--step--2) * 0.8);
    height: calc(60px + 1.5rem);
    padding: 1rem 0.75rem;
  }
  
  .fold {
    height: 70vh;
    min-height: 250px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .fold,
  .marquee {
    animation: none !important;
    transform: none !important;
  }
}
