/* ============================================
   TREKKING JOURNEY EFFECTS
   Light-theme version with visible elements
   ============================================ */

/* Clean light background */
body {
  background: var(--color-bg, #ffffff);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Warm gradient that fades in on scroll */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 122, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(233, 196, 106, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s;
}

body.scrolling::before {
  opacity: 1;
}

/* Journey path indicator */
.journey-path {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 100vh;
  background: linear-gradient(to top, 
    rgba(255, 122, 0, 0.25) 0%,
    rgba(255, 122, 0, 0.12) 30%,
    rgba(255, 122, 0, 0.04) 70%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  animation: pathGlow 3s ease-in-out infinite;
}

@keyframes pathGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Waypoint markers */
.waypoint {
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-ember, #FF7A00);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
  opacity: 0;
  transition: all 0.5s;
  z-index: 2;
}

#waypoint1 { top: 25%; }
#waypoint2 { top: 50%; }
#waypoint3 { top: 75%; }
#waypoint4 { top: 90%; }

.waypoint.active {
  opacity: 1;
  animation: waypointPulse 2s ease-in-out infinite;
}

@keyframes waypointPulse {
  0%, 100% { 
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
  }
  50% { 
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.6);
  }
}

/* Section transitions — gate reveal */
.section-gate {
  position: relative;
  overflow: hidden;
}

.section-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
    rgba(255, 122, 0, 0.05) 0%,
    transparent 100%
  );
  transform: translateY(-100%);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.section-gate.revealed::before {
  transform: translateY(0);
}

/* Trail footsteps effect on cards */
.trail-footprint {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.25), transparent);
  border-radius: 50%;
  opacity: 0;
  animation: footprintFade 2s ease-out;
  pointer-events: none;
}

@keyframes footprintFade {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Trekking mountains container for parallax */
.trekking-mountains {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  pointer-events: none;
  z-index: 1;
}

.trekking-mountains::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top,
    rgba(255, 122, 0, 0.06) 0%,
    transparent 100%
  );
}

.trekking-mountains::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 180px;
  background-image:
    url('data:image/svg+xml,<svg width="1600" height="180" xmlns="http://www.w3.org/2000/svg"><path d="M0 180 L200 120 L400 140 L600 100 L800 130 L1000 90 L1200 110 L1400 80 L1600 100 L1600 180 L0 180 Z" fill="rgba(255,122,0,0.1)"/></svg>');
  background-size: 50% 100%;
  background-repeat: repeat-x;
}

/* Scroll time indicator */
.scroll-time-indicator {
  position: fixed;
  top: 50%;
  right: var(--space-sm, 1rem);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.scroll-time-indicator span {
  width: 3px;
  height: 16px;
  background: rgba(255, 122, 0, 0.2);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.scroll-time-indicator span.active {
  background: rgba(255, 122, 0, 0.6);
  height: 24px;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.3);
}

/* Compass navigation indicator */
.compass-indicator {
  position: fixed;
  bottom: var(--space-md, 1.5rem);
  right: var(--space-md, 1.5rem);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 122, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.compass-indicator::before {
  content: '→';
  color: var(--color-ember, #FF7A00);
  font-size: 1.2rem;
  animation: compassRotate 3s infinite;
}

@keyframes compassRotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}
