* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b132b;
  color: #fff;
  overflow-x: hidden;
}

/* =========================
   LOADER
========================= */

.loader-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #08101f;
  z-index: 9999;
  transition: 0.5s ease;
}

.loader {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top: 5px solid #5bc0be;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   PROGRESS BAR
========================= */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #5bc0be;
  z-index: 99999;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-80px);
  will-change: transform, opacity;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #5bc0be;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #5bc0be;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #5bc0be;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  z-index: 0;
}

#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.82)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 22px;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(120px) scale(0.92);
  filter: blur(12px);
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-content p {
  color: #e5e5e5;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 42px;
  opacity: 0;
  transform: translateY(50px);
  filter: blur(8px);
  will-change: transform, opacity;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  will-change: transform, opacity;
}

.btn {
  padding: 15px 34px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s ease;
}

.primary-btn {
  background: #5bc0be;
  color: #08101f;
}

.primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(91, 192, 190, 0.5);
}

.secondary-btn {
  border: 2px solid #5bc0be;
  color: #fff;
}

.secondary-btn:hover {
  background: #5bc0be;
  color: #08101f;
  transform: translateY(-5px);
}

/* =========================
   SERVICES
========================= */

.services {
  position: relative;
  padding: 120px 8%;
  background: linear-gradient(180deg, #111827, #0b132b);
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: #5bc0be;
  opacity: 0.07;
  filter: blur(160px);
}

.services::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: #3b82f6;
  opacity: 0.06;
  filter: blur(160px);
}

.services h2 {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 70px;
}

.servicesSwiper {
  position: relative;
  padding-bottom: 90px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.service-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 500px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.45s ease;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 0 35px rgba(91, 192, 190, 0.28);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: 0.7s ease;
}

.service-card:hover::before {
  transform: scale(1.08);
}

.service-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.2));
}

.service-content {
  position: relative;
  z-index: 2;
  padding: 35px;
}

.service-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.service-content p {
  color: #e5e5e5;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5bc0be;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.service-link i {
  transition: 0.3s ease;
}

.service-card:hover .service-link {
  color: #fff;
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

.armed-card { background-image: url('../assets/images/armed-security.jpeg'); }
.unarmed-card { background-image: url('../assets/images/unarmed-security.jpeg'); }
.residential-card { background-image: url('../assets/images/residential-security.jpeg'); }
.corporate-card { background-image: url('../assets/images/corporate-security.jpeg'); }

.swiper-button-next,
.swiper-button-prev {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #5bc0be;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: #5bc0be;
  opacity: 1;
}

/* =========================
   ABOUT
========================= */

.about {
  padding: 120px 8%;
  text-align: center;
  background: #0f172a;
}

.about-content {
  max-width: 850px;
  margin: auto;
}

.about h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
}

.about p {
  color: #d6d6d6;
  line-height: 1.9;
}

/* ===================================
   TRUSTED BY (INFINITE CONTINUOUS MARQUEE)
   =================================== */

.clients {
  padding: 100px 0 120px;
  overflow: hidden;
  background: #0b132b;
}

.clients h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.marquee {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 50px; /* Spacing between the client cards */
  width: max-content;
  animation: continuousScroll 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused; /* Pause on hover */
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px; /* Uniform width layout spacing */
  text-align: center;
  gap: 14px;
}

.client-logo {
  height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: none; /* No grayscale - keeps natural colors */
  opacity: 1;    /* Full opacity always */
  transition: transform 0.3s ease;
}

.marquee-item:hover .client-logo {
  transform: scale(1.05); /* Slight graphic pop animation */
}

.marquee-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0;
  margin-top: 10px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.marquee-item:hover p {
  color: #5bc0be; /* Highlight color on hover */
}

/* Seamless infinite looping math: translate precisely half the track width */
@keyframes continuousScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   CTA
========================= */

.cta {
  padding: 120px 8%;
  text-align: center;
  background: #08101f;
}

.cta-content {
  max-width: 750px;
  margin: auto;
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta p {
  color: #ddd;
  line-height: 1.9;
  margin-bottom: 40px;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 80px 8% 30px;
  background: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: #a3a3a3;
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav,
.footer-socials {
  display: flex;
  flex-direction: column;
}

.footer-nav h4,
.footer-socials h4 {
  color: #5bc0be;
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav a {
  color: #a3a3a3;
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s ease;
  width: max-content;
}

.footer-nav a:hover {
  color: #5bc0be;
  transform: translateX(4px);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  background: #5bc0be;
  color: #030712;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(91, 192, 190, 0.3);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* =========================
   STICKY BUTTONS
========================= */

.whatsapp-sticky {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  text-decoration: none;
  z-index: 999;
  transition: 0.3s ease;
}

.whatsapp-sticky:hover {
  transform: scale(1.1) translateY(-3px);
}

.back-to-top {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #5bc0be;
  color: #08101f;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: 0.4s ease;
}

.back-to-top.show {
  bottom: 34px;
  opacity: 1;
}

.back-to-top:hover {
  background: #fff;
  transform: translateY(-4px);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {
  .hero-content h1 { font-size: 3.7rem; }
  .service-card { height: 460px; }
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
}

@media(max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 260px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: #08101f;
    border-radius: 20px 0 0 20px;
    transition: 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
  }
  .nav-links.active { right: 0; }
  .hero-content h1 { font-size: 2.9rem; }
  .hero-content p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .services { padding: 100px 5%; }
  .service-card { height: 420px; }
  .service-content { padding: 28px; }
  .whatsapp-sticky { bottom: 20px; left: 20px; width: 48px; height: 48px; font-size: 1.5rem; }
  .back-to-top { right: 20px; width: 42px; height: 42px; }
  .back-to-top.show { bottom: 23px; }
  
  /* Responsive Marquee Adjustments */
  .marquee-content { gap: 40px; }
  .client-logo { height: 45px; }
  .marquee-item { width: 140px; }
}

@media(max-width: 500px) {
  .navbar { padding: 18px 5%; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 0.95rem; }
  .services h2, .about h2, .clients h2, .cta h2 { font-size: 2rem; }
  .service-card { height: 390px; }
  .service-content h3 { font-size: 1.5rem; }
  .service-content p { font-size: 0.92rem; }
  .swiper-button-next, .swiper-button-prev { display: none; }
}