/* ============================================
   Custom styles for The Edrington Team Recruiting
   ============================================ */

/* ---- Base ---- */
::selection {
  background-color: rgba(200, 168, 78, 0.3);
  color: #fff;
}

/* scroll-behavior handled by GSAP ScrollToPlugin to avoid conflicts */

/* ---- Navbar ---- */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar-scrolled {
  background: rgba(10, 10, 10, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---- Hero video fallback ---- */
#hero video {
  min-width: 100%;
  min-height: 100%;
}

/* If no video loads, show a dark gradient fallback */
#hero video:not([src]),
#hero video[src=""] {
  display: none;
}

#hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* ---- Bounce animation for scroll indicator ---- */
@keyframes bounce-slow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ---- Ticker ---- */
.ticker-wrapper {
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.ticker-track {
  will-change: transform;
}

/* ---- Stat card hover ---- */
.stat-card .stat-front {
  transition: opacity 0.15s ease;
}

.stat-card .stat-back {
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.stat-card:hover .stat-front {
  opacity: 0;
}

.stat-card:hover .stat-back {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Testimonial carousel ---- */
.testimonial-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testimonial-carousel:active {
  cursor: grabbing;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.testimonial-card {
  flex-shrink: 0;
  width: 480px;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(18, 18, 18, 1) 0%, rgba(12, 12, 12, 1) 100%);
  border: 1px solid rgba(200, 168, 78, 0.12);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.25), transparent);
}

.testimonial-card:hover {
  border-color: rgba(200, 168, 78, 0.3);
  box-shadow: 0 8px 40px rgba(200, 168, 78, 0.06), 0 0 0 1px rgba(200, 168, 78, 0.08);
}

.testimonial-card .testimonial-quote {
  color: rgba(200, 168, 78, 0.2);
}

.testimonial-card p.testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.75;
}

.testimonial-card .testimonial-divider {
  width: 2rem;
  height: 1px;
  background: linear-gradient(to right, rgba(200, 168, 78, 0.4), transparent);
}

/* ---- Step scroll section ---- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 0;
}

.step-indicator.active {
  opacity: 1;
}

.step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid rgba(200, 168, 78, 0.3);
  color: #C8A84E;
  transition: all 0.3s ease;
}

.step-indicator.active .step-dot {
  background: #C8A84E;
  color: #0A0A0A;
  border-color: #C8A84E;
  box-shadow: 0 0 20px rgba(200, 168, 78, 0.3);
}

.step-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  transition: color 0.3s ease;
}

.step-indicator.active .step-label {
  color: #fff;
}

/* Step card container */
.step-card {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(200, 168, 78, 0.1);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.step-slide {
  align-self: stretch;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.3), transparent);
}

/* Gold left accent bar */
.step-card-accent {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(200, 168, 78, 0.6), rgba(200, 168, 78, 0.1));
  border-radius: 0 2px 2px 0;
}

/* Step icon */
.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.15) 0%, rgba(200, 168, 78, 0.05) 100%);
  border: 1px solid rgba(200, 168, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C8A84E;
}

/* Highlight callout box */
.step-highlight-box {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.06) 0%, rgba(200, 168, 78, 0.02) 100%);
  border: 1px solid rgba(200, 168, 78, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

/* Mentor checklist box */
.step-mentor-box {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.06) 0%, rgba(200, 168, 78, 0.02) 100%);
  border: 1px solid rgba(200, 168, 78, 0.15);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* Skill cards in certification step */
.step-skill-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.step-skill-card:hover {
  border-color: rgba(200, 168, 78, 0.2);
  background: rgba(200, 168, 78, 0.03);
}

.step-skill-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(200, 168, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #C8A84E;
}

/* Large centered step icon */
.step-icon-lg {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.12) 0%, rgba(200, 168, 78, 0.04) 100%);
  border: 1px solid rgba(200, 168, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8A84E;
}

.step-icon-lg.graduated {
  background: linear-gradient(135deg, rgba(200, 168, 78, 0.2) 0%, rgba(200, 168, 78, 0.08) 100%);
  border-color: rgba(200, 168, 78, 0.35);
  box-shadow: 0 0 30px rgba(200, 168, 78, 0.1);
}

/* Mini badge flow (Discovery step) */
.step-mini-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.step-mini-badge.active {
  background: rgba(200, 168, 78, 0.1);
  border-color: rgba(200, 168, 78, 0.25);
  color: #C8A84E;
}

.step-flow-line {
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(200, 168, 78, 0.2));
}

/* Closing dots (Lead Flow step) */
.step-closing-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.step-closing-dot.filled {
  background: #C8A84E;
  border-color: #C8A84E;
}

.step-closing-dot.active {
  background: rgba(200, 168, 78, 0.3);
  border-color: #C8A84E;
  box-shadow: 0 0 8px rgba(200, 168, 78, 0.4);
}

/* Growth bars (Graduate step) */
.step-bar {
  width: 0.5rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: rgba(200, 168, 78, 0.15);
  border: 1px solid rgba(200, 168, 78, 0.1);
}

.step-bar.active {
  background: linear-gradient(to top, rgba(200, 168, 78, 0.3), rgba(200, 168, 78, 0.6));
  border-color: rgba(200, 168, 78, 0.4);
  box-shadow: 0 0 10px rgba(200, 168, 78, 0.2);
}

/* Mentor items (Lead Flow step) */
.step-mentor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
}

.step-connector {
  width: 2rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
}

.step-connector-fill {
  width: 0%;
  height: 100%;
  background: #C8A84E;
  transition: width 0.3s ease;
}

.step-slide {
  top: 0;
}

.step-line {
  opacity: 0;
  transform: translateY(12px);
}

/* ---- The Filter: particle canvas (Culture & Fit) ---- */
#filter-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#filter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#filter-overlays {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

#filter-trait-label {
  text-align: center;
  opacity: 0;
}

.filter-trait-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #C8A84E;
  margin-bottom: 0.75rem;
}

.filter-trait-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.filter-counter {
  font-size: 0.8rem;
  color: rgba(200, 168, 78, 0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#filter-closing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .filter-trait-name {
    font-size: 1.5rem;
  }

  .filter-trait-desc {
    font-size: 0.875rem;
    max-width: 320px;
  }

  .testimonial-card {
    width: 340px;
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 480px) {
  .filter-trait-name {
    font-size: 1.15rem;
  }

  .filter-trait-desc {
    font-size: 0.75rem;
    max-width: 280px;
  }

  .filter-counter {
    font-size: 0.7rem;
  }

  .testimonial-card {
    width: 280px;
    padding: 1.5rem;
  }
}

/* ---- The Stack: compensation chart ---- */
#stack-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 420px;
  margin-bottom: 1rem;
  overflow: hidden;
}

#stack-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#stack-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.stack-label {
  position: absolute;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.stack-label.visible {
  opacity: 1;
  transform: translateX(0);
}

#stack-total {
  position: absolute;
  left: 1.5rem;
  top: 8%;
  text-align: left;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#stack-total.visible {
  opacity: 1;
}

#stack-total.pulse {
  animation: totalPulse 2s ease-in-out infinite;
}

@keyframes totalPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}

.stack-total-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #C8A84E;
}

.stack-total-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#stack-x-axis {
  position: absolute;
  bottom: 0;
  left: 2%;
  right: 10%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.stack-x-marker {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  #stack-viewport {
    aspect-ratio: 4 / 3;
    max-height: 400px;
  }

  .stack-total-amount {
    font-size: 1.5rem;
  }

  .stack-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  #stack-viewport {
    aspect-ratio: 3 / 2;
    max-height: 220px;
  }

  .stack-total-amount {
    font-size: 1.2rem;
  }

  .stack-label {
    font-size: 0.55rem;
    padding: 3px 6px;
  }

  .stack-x-marker {
    font-size: 0.6rem;
  }
}

/* ---- Premium glow buttons ---- */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* ---- Section reveal lines ---- */
.reveal-line {
  overflow: hidden;
}

.reveal-line>* {
  transform: translateY(100%);
}

/* ---- Horizontal rule glow ---- */
.hr-glow {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 168, 78, 0.4), transparent);
  border: none;
  margin: 0;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hr-glow.visible {
  transform: scaleX(1);
}

/* ---- Lead Data-Stream Tree ---- */
.lead-stream {
  position: relative;
  width: 100%;
  height: 260px;
}

.lead-stream canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Source nodes along the top */
.lead-source {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.lead-source-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.lead-source-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Shimmer overlay on icons */
.lead-source-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.lead-source-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ---- Bottom layout: info+CTA (left) | notifications (right) ---- */
.lead-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  margin-top: 2rem;
}

/* Left column wrapper */
.lead-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Detail panel */
.lead-detail {
  min-height: 140px;
}

.lead-detail-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.lead-detail-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #C8A84E;
  margin-top: 0.75rem;
  line-height: 1.2;
}

.lead-detail-bar {
  height: 2px;
  width: 60px;
  border-radius: 1px;
  margin-top: 8px;
  opacity: 0.7;
}

.lead-detail-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* CTA below detail */
.lead-cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #C8A84E, #A88A3E);
  color: #0A0A0A;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 78, 0.25);
}

/* Right column — standalone notifications */
.lead-notifications {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 320px;
}

/* Notification card */
.lead-notification {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lead-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.lead-notif-content {
  flex: 1;
  min-width: 0;
}

.lead-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-notif-app {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lead-notif-when {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  line-height: 1;
}

.lead-notif-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  line-height: 1.3;
  margin-top: 4px;
}

.lead-notif-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .lead-stream {
    height: 220px;
  }

  .lead-source-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .lead-source-name {
    font-size: 0.55rem;
  }

  .lead-bottom {
    gap: 2rem;
  }

  .lead-detail-name {
    font-size: 1.1rem;
  }

  .lead-detail-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .lead-stream {
    height: 180px;
  }

  .lead-source-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .lead-source-name {
    display: none;
  }

  .lead-bottom {
    grid-template-columns: 1fr;
  }

  .lead-left {
    order: 2;
    text-align: center;
  }

  .lead-detail-badge {
    margin: 0 auto;
  }

  .lead-detail-bar {
    margin: 8px auto 0;
  }

  .lead-cta {
    text-align: center;
  }

  .lead-notifications {
    order: 1;
    min-height: 200px;
  }

  .lead-bottom {
    gap: 1rem;
    margin-top: 1rem;
  }
}

/* ---- Gold border sheen on scroll ---- */
.border-sheen {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(200, 168, 78, 0.2);
  border-bottom: 1px solid rgba(200, 168, 78, 0.2);
}

.border-sheen::before,
.border-sheen::after {
  content: '';
  position: absolute;
  left: -100%;
  height: 3px;
  width: 50%;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(200, 168, 78, 0.4) 15%,
      rgba(255, 223, 120, 0.9) 40%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 223, 120, 0.9) 60%,
      rgba(200, 168, 78, 0.4) 85%,
      transparent 100%);
  filter: blur(1px);
  box-shadow: 0 0 12px 4px rgba(200, 168, 78, 0.5),
    0 0 30px 8px rgba(200, 168, 78, 0.2);
  pointer-events: none;
  z-index: 10;
}

.border-sheen::before {
  top: -1px;
}

.border-sheen::after {
  bottom: -1px;
}

.border-sheen.sheen-active::before,
.border-sheen.sheen-active::after {
  animation: sheen-sweep 1.4s cubic-bezier(0.25, 0, 0.3, 1) forwards;
}

@keyframes sheen-sweep {
  0% {
    left: -50%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}


/* ---- Image zoom on hover ---- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* ---- Gold underline draw effect ---- */
.underline-draw {
  position: relative;
  display: inline-block;
}

.underline-draw::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8A84E;
  transition: width 0.4s ease;
}

.underline-draw:hover::after {
  width: 100%;
}

/* ---- Parallax depth layers ---- */
.parallax-slow {
  will-change: transform;
}

/* ---- Floating particles ---- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(200, 168, 78, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Ensure particles stay within pinned container */
#steps-pin {
  overflow: hidden;
}

/* ---- Form input focus ring ---- */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(200, 168, 78, 0.2);
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---- Map stats section ---- */
#stats-map .mapboxgl-ctrl-logo,
#stats-map .mapboxgl-ctrl-attrib {
  display: none !important;
}

.map-stat-card {
  height: 200px;
  position: relative;
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.map-stat-card:hover {
  border-color: rgba(200, 168, 78, 0.4);
  box-shadow: 0 0 40px rgba(200, 168, 78, 0.08);
}

.map-stat-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Front: visible by default, slides up + fades on hover */
.map-stat-front {
  opacity: 1;
  transform: translateY(0);
}

.map-stat-card:hover .map-stat-front {
  opacity: 0;
  transform: translateY(-20px);
}

/* Back: hidden below, slides up + fades in on hover */
.map-stat-back {
  opacity: 0;
  transform: translateY(20px);
}

.map-stat-card:hover .map-stat-back {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-marker {

  0%,
  100% {
    box-shadow: 0 0 16px rgba(200, 168, 78, 0.6), 0 0 32px rgba(200, 168, 78, 0.3);
  }

  50% {
    box-shadow: 0 0 24px rgba(200, 168, 78, 0.9), 0 0 48px rgba(200, 168, 78, 0.5);
  }
}

/* ---- Loading state for submit button ---- */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---- Responsive typography tuning ---- */
@media (max-width: 640px) {
  .stat-card {
    padding: 1.5rem;
  }
}

/* ---- Parallax-like subtle movement on sections ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    will-change: opacity, transform;
  }
}