:root {
  --pc-yellow: #FFCC00;
  --pc-charcoal: #4A4A4F;
  --pc-white: #FFFFFF;
  --pc-light: #FFFFFF; /* main background */

  /* Typography tokens */
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =======================
   Global base styles
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--pc-charcoal);
  background-color: var(--pc-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  padding-top: 70px; /* prevent content behind fixed navbar */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =======================
   Navbar / Header
   ======================= */

header,
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--pc-charcoal) !important;
  color: var(--pc-white) !important;
  padding: 10px 0;
}

#mainNavbar.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

.navbar .nav-link,
.navbar-brand {
  font-family: var(--font-body);
  color: var(--pc-white) !important;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar-brand:hover {
  color: var(--pc-yellow) !important;
}

/* Navbar Logo */
.navbar-brand img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* =======================
   Typography
   ======================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--pc-charcoal);
  font-weight: 700;
  margin-bottom: 1rem;
}

.lead {
  font-family: var(--font-body);
  color: #555;
  font-size: 1.05rem;
}

/* Section titles (for story sections) */
.section-title {
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =======================
   Buttons
   ======================= */

.btn-primary,
button[type="submit"] {
  background-color: var(--pc-yellow);
  color: var(--pc-charcoal);
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover,
button[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Service Card "Learn More" Button */
.service-card .btn-learn {
  background-color: var(--pc-yellow);
  color: var(--pc-charcoal);
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card .btn-learn:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

/* =======================
   Cards / Service cards
   ======================= */

.card,
.service-card {
  border-radius: 10px;
  background-color: var(--pc-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 25px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  margin-bottom: 25px;
  cursor: pointer;
  position: relative;
}

.card:hover,
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 28px rgba(0,0,0,0.2);
  z-index: 10;
  background-color: #fff8e1;
}

.card h3, .card p,
.service-card h3, .service-card p {
  transition: all 0.4s ease;
  z-index: 2;
  position: relative;
}

/* =======================
   Contact form
   ======================= */

.contact-card h4.fw-bold {
  font-family: var(--font-heading);
  color: var(--pc-yellow);
}

.contact-card input,
.contact-card textarea {
  font-family: var(--font-body);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  transition: border 0.3s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border: 1.5px solid var(--pc-yellow);
}

.contact-card button[type="submit"] {
  background-color: var(--pc-yellow);
  color: var(--pc-charcoal);
  font-family: var(--font-body);
  font-weight: bold;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-card button[type="submit"]:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

/* =======================
   Sections
   ======================= */

section {
  padding: 70px 0;
}

section img {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* =======================
   Hero (full screen, no side gaps)
   ======================= */

.hero-section {
  width: 100vw;                /* full viewport width */
  margin-left: 50%;
  transform: translateX(-50%); /* kill any body/container margins */
  background:
    linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3)),
    url("/includes/assets/images/kem.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  min-height: calc(100vh - 70px); /* full height minus navbar */
  color: var(--pc-white);
}

.hero-section .hero-box {
  max-width: 900px;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-white);
  margin-bottom: 20px;
}

.hero-section p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: #f5f5f5;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Optional hero overlay variant if you use background image on container */
.hero-with-bg {
  position: relative;
  color: var(--pc-white);
}

.hero-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 0;
}

.hero-with-bg .hero-content {
  position: relative;
  z-index: 1;
}

/* =======================
   Story / scrolly sections
   ======================= */

.story-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 90px 20px;
}

.story-section-light {
  background-color: #FFFFFF;
}

.story-section-dark {
  background: radial-gradient(circle at top left, #60606a 0%, #2a2a32 60%, #17171d 100%);
  color: #f9fafb;
}

.story-section-dark h2,
.story-section-dark p {
  color: #f9fafb;
}

/* Make story-inner reusable */
.story-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* =======================
   Full-screen scenes
   ======================= */

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.scene-dark {
  color: #f9fafb;
}

.scene-layer {
  position: absolute;
  inset: 0;
}

.scene-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.scene-overlay {
  z-index: 1;
}

.scene-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: left;
}

/* Scene backgrounds (adjust image paths as needed) */
.scene-1 .scene-bg {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)),
    url("includes/assets/images/hero-apartment-night.jpg") center/cover no-repeat;
}

.scene-2 .scene-bg {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)),
    url("includes/assets/images/hero-apartment-night.jpg") center/cover no-repeat;
}

.scene-3 .scene-bg {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2)),
    url("includes/assets/images/scene-building-cctv.jpg") center/cover no-repeat;
}

/* Simple overlay elements */
.camera-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFCC00;
  box-shadow: 0 0 12px rgba(255,204,0,0.8);
}

.zone-highlight {
  width: 160px;
  height: 80px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 18px rgba(0,0,0,0.5);
}

/* Optional pulsing animation for cameras */
@keyframes pulseCam {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255,204,0,0.8);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 20px rgba(255,204,0,1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255,204,0,0.8);
  }
}

.camera-dot.is-visible {
  animation: pulseCam 1.8s ease-out infinite;
}

/* =======================
   Scroll animation
   ======================= */

.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-zoom {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.is-visible.scroll-fade-left,
.is-visible.scroll-fade-right,
.is-visible.scroll-zoom {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* =======================
   Responsive tweaks
   ======================= */

@media (max-width: 992px) {
  .hero-section {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 60px 20px;
    min-height: auto;
  }

  section {
    padding: 50px 0;
  }

  .scene {
    padding: 70px 16px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    letter-spacing: 0.04em;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .card,
  .service-card {
    padding: 20px;
  }
}
