/* ========== Base nav & layout (unchanged) ========== */
nav { background: #333; padding: 1em; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav ul li { margin-right: 1em; }
nav ul li a { color: #fff; text-decoration: none; }
.container { padding: 2em; }
.flashes { color: red; list-style: none; }

/* ========== Scanners (unchanged) ========== */
#scanner video, #scanner canvas,
#confirm-scanner video, #confirm-scanner canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.scanner-box {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid #ccc; z-index: 1;
}
.scanner-countdown-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; font-size: 1.2rem; font-weight: bold; color: #fff;
  background-color: rgba(0,0,0,.4); text-shadow: 0 0 3px #000;
}
.stop-scanner-btn { display: flex; justify-content: center; margin-top: 1rem; }

/* --- HOW IT WORKS (FINAL — LARGER VIDEOS) --- */

.step-card {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 520px; /* taller cards for larger videos */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  background: #fff;
}

/* Green header */
.step-header {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  right: 1rem;
  background-color: #198754;
  color: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 65px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step-header h6 {
  font-weight: 700;
  margin-bottom: 0;
}
.step-header small {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Video container */
.step-media {
  width: 100%;
  height: 380px; /* increased from 300px → bigger videos */
  margin-top: 6rem; /* space below green header */
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
  background: #fff; /* match card background */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05); /* subtle depth */
}

/* Video itself — show full frame, scaled nicely */
.step-media video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ensures full video is visible */
  border-radius: 0;
}

/* Active card highlight */
.step-card:not(.opacity-50) {
  transform: translateY(-10px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive: smaller height on mobile */
@media (max-width: 768px) {
  .step-card {
    min-height: 440px;
  }
  .step-media {
    height: 280px;
    margin-top: 5.5rem;
  }
}




/* HERO IMAGE HEIGHT FIX */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 75vh; /* taller view height for more image visibility */
  min-height: 480px;
  max-height: 820px;
  overflow: hidden;
}

/* Overlay - darker gradient for better text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) → rgba(0,0,0,.65) → rgba(0,0,0,.75) 100%);
  z-index: 1;
}


/* Center text */
.hero-center {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  z-index: 2;
  text-align: center;
}

/* Frosted glass text container */
.hero-text {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.55); /* was 0.25 — darker frosted glass */
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); /* slightly stronger shadow */
  border-radius: 1rem; /* optional: match rounded aesthetic */
  padding: 1.5rem 2rem; /* add breathing room */
  animation: heroFadeUp 900ms ease-out both;
}

/* Divider */
.hero-divider-wave {
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
}
.hero-divider-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* Buttons */
.hero .btn-lg {
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile scaling */
@media (max-width: 992px) {
  .hero-center { transform: translate(-50%, -50%); max-width: 720px; }
}
@media (max-width: 576px) {
  .hero-image-wrapper { height: 60vh; }
  .hero-text { padding: 1.25rem; }
  .hero .display-5 { font-size: 1.75rem; }
  .hero .lead { font-size: 1rem; }
}
/* Pointer cursor on desktop for clickable videos */
@media (min-width: 768px){
  .step-media video { cursor: pointer; }
}
/* === Section 3D Card Styling === */

/* Wraps each major section in a soft card look */
section {
  border-radius: 2rem;
  overflow: hidden;
  margin: 3rem auto;
  max-width: 1200px; /* keeps content centered */
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Optional: make white sections pop off gray backgrounds */
section.bg-white {
  background: #fff;
}

/* Hero section tweak — make image rounded too */
section.position-relative img {
  border-radius: 1.5rem;
}

/* Give green “On-Demand Pickup” section a floating effect */
#ondemand {
  border-radius: 1.5rem;
  box-shadow:
    0 10px 30px rgba(0, 100, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

/* “Make Recycling Effortless” final CTA */
section.bg-light.text-center {
  border-radius: 1.5rem;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

/* Add hover lift for interactivity */
section:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.08);
}
