/* SafePH walkthrough — custom styles on top of Tailwind */

html, body { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* Nav transitions between transparent (over hero) and solid */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
#nav.scrolled #navBrand,
#nav.scrolled .nav-link { color: #2D3142 !important; }
#nav.scrolled .nav-link:hover { color: #EF8354 !important; }
#nav.scrolled #themeToggle { background: rgba(45, 49, 66, 0.08); color: #2D3142; }

/* Dark mode nav */
html.dark #nav.scrolled {
  background: rgba(26, 27, 46, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.dark #nav.scrolled #navBrand,
html.dark #nav.scrolled .nav-link { color: #fff !important; }
html.dark #nav.scrolled #themeToggle { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Hero phones */
.phone-hero { position: relative; z-index: 2; transform: rotate(3deg); animation: floatY 6s ease-in-out infinite; }
.phone-hero-back { position: absolute; left: 10%; top: 12%; z-index: 1; transform: rotate(-8deg); opacity: .9; animation: floatY 7s ease-in-out infinite reverse; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Phone frame for steps */
.phone-frame {
  border: 8px solid #111; border-radius: 2.2rem; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(45, 49, 66, .35); background: #111;
}
.phone-frame img { display: block; width: 100%; }

/* Crop the phone status bar (time / battery / signal) off the top of screenshots.
   The negative margin pulls the image up and overflow:hidden clips the strip,
   shrinking the container by the same amount so there's no gap below. */
.crop-status { overflow: hidden; position: relative; }
.crop-status img { display: block; width: 100%; margin-top: -6.2%; }

/* Text overlays: mask original baked-in text and draw replacement text.
   The blurred dark tint blends into the app's call-screen background. */
.call-mask {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; line-height: 1.1;
  background: rgba(26, 27, 46, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap; overflow: hidden;
  pointer-events: none;
}

/* Step number badge */
.step-badge {
  width: 3rem; height: 3rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.1rem;
}

.gallery-thumb { cursor: pointer; transition: transform .2s ease; }
.gallery-thumb:hover { transform: translateY(-4px); }

#lightbox.open { display: flex; }
