/**
 * Top Hill Bike Rental - Hero Intricate Animation & Motion Effects
 * Concentric depth stages, speedometer gauge physics, floating badges, and scroll parallax
 */

/* Hero Container Shell */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 48px 20px;
}

@media (min-width: 768px) {
  .hero-wrapper {
    padding: 56px 32px 72px 32px;
  }
}

.hero-card {
  position: relative;
  background-color: var(--bg-clay);
  border-radius: var(--radius-card);
  box-shadow: var(--neu-extruded);
  padding: 36px 20px;
  overflow: hidden;
  transition: box-shadow var(--trans-smooth);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 64px 48px;
  }
}

/* Ambient Topography Rings (Subtle Molded Contour Waves in Clay) */
.hero-topo-bg {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  box-shadow: var(--neu-inset-deep);
  opacity: 0.7;
  animation: heroRingsPulse 8s ease-in-out infinite alternate;
}

.hero-topo-inner {
  position: absolute;
  top: 90px;
  left: 90px;
  right: 90px;
  bottom: 90px;
  border-radius: 50%;
  box-shadow: var(--neu-extruded);
}

.hero-topo-center {
  position: absolute;
  top: 80px;
  left: 80px;
  right: 80px;
  bottom: 80px;
  border-radius: 50%;
  box-shadow: var(--neu-inset);
}

@keyframes heroRingsPulse {
  0% {
    transform: scale(0.96) rotate(0deg);
  }
  100% {
    transform: scale(1.04) rotate(12deg);
  }
}

/* Floating Ambient Badges */
.floating-altitude-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-clay);
  box-shadow: var(--neu-extruded-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-primary);
  animation: neuFloat 3.5s ease-in-out infinite;
  z-index: 2;
}

.floating-altitude-badge .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 10px rgba(56, 178, 172, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes neuFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

/* Hero Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg-primary);
  margin: 18px 0 14px 0;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent-violet) 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 18px;
  }
}

/* 3D Turntable Bike Showcase Stage */
.bike-stage-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  z-index: 2;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .bike-stage-container {
    min-height: 460px;
    margin-top: 0;
  }
}

/* Recessed Turntable Pedestal */
.bike-turntable {
  position: absolute;
  bottom: 30px;
  width: 88%;
  max-width: 480px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(163, 177, 198, 0.45) 0%, var(--bg-clay) 70%);
  box-shadow: var(--neu-inset-deep);
  transform: rotateX(68deg);
  z-index: 1;
}

.bike-turntable-ring {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  box-shadow: var(--neu-extruded-sm);
}

/* Hero Bike Image Container with Smooth Physics */
.bike-display-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transform-style: preserve-3d;
  transition: transform var(--trans-smooth);
}

@media (min-width: 768px) {
  .bike-display-frame {
    height: 340px;
  }
}

.bike-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(163, 177, 198, 0.85));
  transition: all var(--trans-smooth);
  user-select: none;
  pointer-events: none;
}

/* Bike Transition Animations */
.bike-main-img.is-entering {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
}

.bike-main-img.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Tactile Speedometer / Altitude HUD Gauge */
.hero-hud-gauge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--bg-clay);
  box-shadow: var(--neu-inset);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  user-select: none;
  transition: transform var(--trans-base);
}

@media (min-width: 768px) {
  .hero-hud-gauge {
    top: 20px;
    right: 20px;
    width: 116px;
    height: 116px;
  }
}

.hero-hud-gauge:hover {
  transform: scale(1.05);
}

.gauge-svg {
  width: 80%;
  height: 80%;
  transform: rotate(-135deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(163, 177, 198, 0.4);
  stroke-width: 6;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: var(--accent-violet);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 188;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-needle {
  position: absolute;
  width: 2px;
  height: 38px;
  background: var(--accent-violet);
  border-radius: 2px;
  bottom: 50%;
  left: calc(50% - 1px);
  transform-origin: bottom center;
  transform: rotate(45deg);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center-cap {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-clay);
  box-shadow: var(--neu-extruded-xs);
  z-index: 2;
}

.gauge-readout {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-primary);
  text-align: center;
}

.gauge-readout span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-muted);
}

/* Tactile Segmented Bike Switcher Dock */
.bike-switcher-dock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background-color: var(--bg-clay);
  box-shadow: var(--neu-inset);
  border-radius: var(--radius-pill);
  margin-top: 18px;
  z-index: 4;
}

.bike-tab-btn {
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--trans-base);
  user-select: none;
  white-space: nowrap;
}

.bike-tab-btn:hover {
  color: var(--fg-primary);
}

.bike-tab-btn.is-active {
  background-color: var(--bg-clay);
  box-shadow: var(--neu-extruded-sm);
  color: var(--accent-violet);
  transform: scale(1.02);
}

/* Quick Spec Pill Bar */
.quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-top: 20px;
  z-index: 3;
}

.spec-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background-color: var(--bg-clay);
  box-shadow: var(--neu-inset-sm);
  border-radius: var(--radius-btn);
  text-align: center;
  transition: transform var(--trans-base);
}

.spec-chip:hover {
  transform: translateY(-2px);
}

.spec-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--fg-primary);
}

/* Scroll-Driven Parallax Micro-interactions */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}
