/* ==========================================
   GLOBAL STYLES – Miami-Dade Sheriff's Office PAL
   ========================================== */

/* Base layout */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

/* ==========================================
   NAVBAR
   ========================================== */

/* Default: transparent until scroll */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* ensures on top of hero & overlays */
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* When scrolled */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar links */
.navbar a {
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10000; /* ensures full clickability */
}

/* ==========================================
   HERO & SECTIONS
   ========================================== */

/* Prevent hero overlay from blocking navbar */
section[style*="background-image"],
section[style*="url("] {
  position: relative;
  z-index: 1;
}

section[style*="background-image"]::before,
section[style*="url("]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* background stays behind navbar */
}

/* Ensure all main content sits above the watermark */
main, header, section {
  position: relative;
  z-index: 10;
}

/* ==========================================
   WATERMARK
   ========================================== */

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: url("./pal_logo.png") no-repeat center center;
  background-size: contain;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  z-index: 0; /* stays behind absolutely everything */
  pointer-events: none;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background-color: #0C7C59;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  z-index: 0 !important;
}

/* ==========================================
   UTILITIES
   ========================================== */

/* Brand palette */
.text-palGreen { color: #0C7C59; }
.bg-palGreen { background-color: #0C7C59; }

.text-palLime { color: #B8E986; }
.bg-palLime { background-color: #B8E986; }

/* Generic transition helper */
.transition { transition: all 0.3s ease-in-out; }

/* Prevent image dragging */
img {
  user-select: none;
  -webkit-user-drag: none;
}


/* Christmans Lights */

body {
  background: #000;
}

.lightrope {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  position: fixed;     /* stick to top of screen */
  top: -15px;       /* place directly at top edge */
  left: 0;
  width: 100%;
  z-index: 10000;      /* above navbar */
  margin: 0;
  padding: 0;
  pointer-events: none;
}


.lightrope li {
  position: relative;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  width: 8px;
  height: 20px;
  border-radius: 50%;
  margin: 20px;
  display: inline-block;
  background: red;
  box-shadow: 0px 3.3333333333px 16px 7px red;
  -webkit-animation-name: flash-1;
          animation-name: flash-1;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

/* alternate color pattern across bulbs */
.lightrope li:nth-child(2n+1) {
  background: #00ff00; /* green */
  box-shadow: 0px 3.3333333333px 16px 7px rgba(0, 255, 0, 0.8);
  -webkit-animation-name: flash-2;
          animation-name: flash-2;
  -webkit-animation-duration: 0.6s;
          animation-duration: 0.6s;
}
.lightrope li:nth-child(3n+2) {
  background: #ffff00; /* yellow */
  box-shadow: 0px 3.3333333333px 16px 7px rgba(255, 255, 0, 0.8);
  -webkit-animation-name: flash-3;
          animation-name: flash-3;
  -webkit-animation-duration: 1.2s;
          animation-duration: 1.2s;
}
.lightrope li:nth-child(4n+3) {
  background: #007bff; /* blue */
  box-shadow: 0px 3.3333333333px 16px 7px rgba(0, 123, 255, 0.8);
  -webkit-animation-name: flash-4;
          animation-name: flash-4;
  -webkit-animation-duration: 1.5s;
          animation-duration: 1.5s;
}
.lightrope li:nth-child(5n+4) {
  background: #a020f0; /* purple */
  box-shadow: 0px 3.3333333333px 16px 7px rgba(160, 32, 240, 0.8);
  -webkit-animation-name: flash-5;
          animation-name: flash-5;
  -webkit-animation-duration: 1.7s;
          animation-duration: 1.7s;
}

.lightrope li:before {
  content: "";
  position: absolute;
  background: #222;
  width: 6px;
  height: 6.6666666667px;
  border-radius: 3px;
  top: -3.3333333333px;
  left: 1px;
}
.lightrope li:after {
  content: "";
  top: -10px;
  left: 5px;
  position: absolute;
  width: 52px;
  height: 13.3333333333px;
  border-bottom: solid #222 2px;
  border-radius: 50%;
}
.lightrope li:last-child:after {
  content: none;
}
.lightrope li:first-child {
  margin-left: -40px;
}

/* ===================== Animations ===================== */

@keyframes flash-1 {
  0%, 100% { background: red; box-shadow: 0px 3px 16px 7px red; }
  50% { background: rgba(255,0,0,0.4); box-shadow: 0px 3px 16px 7px rgba(255,0,0,0.2); }
}

@keyframes flash-2 {
  0%, 100% { background: #00ff00; box-shadow: 0px 3px 16px 7px #00ff00; }
  50% { background: rgba(0,255,0,0.4); box-shadow: 0px 3px 16px 7px rgba(0,255,0,0.2); }
}

@keyframes flash-3 {
  0%, 100% { background: #ffff00; box-shadow: 0px 3px 16px 7px #ffff00; }
  50% { background: rgba(255,255,0,0.4); box-shadow: 0px 3px 16px 7px rgba(255,255,0,0.2); }
}

@keyframes flash-4 {
  0%, 100% { background: #007bff; box-shadow: 0px 3px 16px 7px #007bff; }
  50% { background: rgba(0,123,255,0.4); box-shadow: 0px 3px 16px 7px rgba(0,123,255,0.2); }
}

@keyframes flash-5 {
  0%, 100% { background: #a020f0; box-shadow: 0px 3px 16px 7px #a020f0; }
  50% { background: rgba(160,32,240,0.4); box-shadow: 0px 3px 16px 7px rgba(160,32,240,0.2); }
}

