/* PERFORMANCE BOOST */
html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0b0b0b;
  color: white;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
}

/* LOGO SECTION */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 55px;   /* small logo */
  height: auto;
  margin-bottom: -10px;
}

.logo {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff0000;
}

/* NAV LINKS CENTERED */
.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  transform: translateX(-40px);  /* move left */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff0000;
}

/* MOBILE NAV */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {

  .menu-toggle { 
    display: block; 
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .nav-links a {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #222;
  }

  .nav-links.active { 
    display: flex; 
  }
}


/* SECTIONS */
.section {
  min-height: 100vh;
  padding: 120px 20px;
  border-bottom: 1px solid #222;
  text-align: center;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("img/Security-Services-Cape-Town-Nzacksi-Security-Services.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.hero-content {
  position: relative;
  max-width: 800px;
  padding: 10px;
}
.hero-content h1 {
  font-size: 32px;
  color: silver;
  letter-spacing: 3px;
  margin-bottom: 15px;
  margin-top: 0px;
}
.hero-content p {
  font-size: 18px;
  color: #ddd;
  margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.btn.primary { background: red; color: white; }
.btn.primary:hover { background: darkred; }
.btn.secondary { border: 2px solid silver; color: silver; }
.btn.secondary:hover { background: silver; color: black; }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 16px; }
}

/* HERO LOGO */
.hero-logo {
  width: 420px;           /* Bigger logo */
  max-width: 80%;
  margin-bottom: -100px;
  /* filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.555)); */
  animation: logoFadeIn 1.5s ease forwards;
  opacity: 0;
}

/* Logo animation */
@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ANIMATIONS */
.animate { opacity: 0; transition: all 1s ease; }
.animate.show { opacity: 1; transform: translateX(0) translateY(0); }
.slide-left { transform: translateX(-80px); }
.slide-right { transform: translateX(80px); }
.fade-up { transform: translateY(40px); }

/* ABOUT */
.about { padding: 100px 20px; background: #0e0e0e; }
.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.about-images {
  flex: 1;
  min-width: 280px;
  height: 350px;
  position: relative;
  overflow: hidden;
  border: 2px solid silver;
  border-radius: 6px;
}
.about-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.about-images img.active { opacity: 1; }
.about-text { flex: 1; min-width: 280px; }
.about-text h2 { font-size: 32px; color: silver; margin-bottom: 15px; }
.about-text .tagline { color: red; font-weight: bold; margin-bottom: 20px; }
.about-text p { color: #ccc; line-height: 1.7; margin-bottom: 15px; }
@media (max-width: 768px) {
  .about { padding: 70px 15px; }
  .about-text h2 { font-size: 26px; }
  .about-images { height: 260px; }
}

/* SERVICES SECTION */
.services-carousel{
background: url("img/Security-Services-Cape-Town-Nzacksi-Security-Services.jpg") center/cover no-repeat;
padding:80px 0;
overflow:hidden;
}


/* SERVICES HEADER */
.services-header{
text-align:center;
margin-bottom:40px;
}

.services-header h2{
color:white;
font-size:32px;
}

.services-header p{
color:#aaa;
}

.services-wrapper{
overflow:hidden;
width:100%;
}


/* MOVING TRACK */
.services-track{
display:flex;
gap:30px;
animation: scrollServices 35s linear infinite;
width:max-content;
}

/* SERVICE CARD */
.service-slide{
background:#111;
border-radius:10px;
padding:20px;
min-width:280px;
text-align:center;
border:1px solid #222;
}

/* IMAGE */
.service-slide img{
width:100%;
height:180px;
object-fit:cover;
border-radius:8px;
margin-bottom:15px;
}

/* TITLE */
.service-slide h3{
color:white;
margin-bottom:10px;
}

/* TEXT */
.service-slide p{
color:#aaa;
font-size:14px;
}

/* CONTINUOUS SCROLL */
@keyframes scrollServices{
0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}
}

/* MOBILE */
@media (max-width: 768px) {
  .service-slide {
    min-width: 260px;
    max-width: 260px;
  }

  .service-slide img {
    height: 160px;
  }
}

/* ==========================
   SERVICE AREAS (LIST STYLE)
========================== */
/* ==========================
   SERVICE AREAS (2 ROW LIST)
========================== */
.service-areas {
  padding: 60px 20px;
  background: #0b0b0b;
  text-align: center;
}

.service-areas h2 {
  color: #ff3300;
  margin-bottom: 30px;
  font-size: 2rem;
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 per row = 2 rows */
  gap: 15px;
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.areas-list li {
  color: #bbb;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  transition: 0.3s;
}

.areas-list li:hover {
  color: #ff5e00;
  border-color: #FFD700;
}

@media (max-width: 768px) {
  .areas-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* CLIENTS SECTION */
.clients-section {
  background: linear-gradient(180deg, #0b0b0b 0%, #111 100%);
  padding: 120px 20px;
  text-align: center;
}

.clients-section h2 {
  color: silver;
  margin-bottom: 15px;
  font-size: 2rem;
}

.clients-section p {
  color: #ccc;
  margin-bottom: 50px;
}

/* LOGO GRID */
.clients-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  align-items: center;
}

.client-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 25px;
  display: flex;
  flex-direction: column;   /* STACK IMAGE + TEXT */
  justify-content: center;
  align-items: center;
  height: 160px;            /* slightly taller */
  transition: all 0.35s ease;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* IMAGE */
.client-card img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 12px;      /* SPACE UNDER LOGO */
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.35s ease;
}

/* CLIENT NAME */
.client-name {
  font-size: 14px;          /* SMALLER */
  font-weight: 500;
  color: #ccc;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* HOVER EFFECT */
.client-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 0 25px rgba(255,0,0,0.25);
}

.client-card:hover img {
  filter: grayscale(0%) brightness(1.1);
}

.clients-grid.fade-mode .client-card {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.clients-grid.fade-mode .client-card.active {
  opacity: 1;
  position: relative;
}

/* CLIENT STATS */
.clients-stats {
  max-width: 900px;
  margin: 0 auto 70px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-box {
  padding: 25px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-box h3 {
  font-size: 2.2rem;
  color: red;
  margin-bottom: 10px;
}

.stat-box p {
  color: #ccc;
  font-size: 0.9rem;
}


/* CAREERS SECTION */

.careers-section{
  background:#0b0b0b;
  padding:120px 20px;
  color:white;
}

.careers-header{
  text-align:center;
  margin-bottom:60px;
}

.careers-header h2{
  color:silver;
  font-size:2rem;
  margin-bottom:10px;
}

.careers-header p{
  color:#ccc;
}

.careers-container{
  max-width:1000px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
}

.careers-info h3{
  color:red;
  margin-bottom:10px;
}

.careers-info p{
  color:#ccc;
  margin-bottom:20px;
}

.careers-info ul{
  list-style:none;
  padding:0;
  margin-bottom:25px;
}

.careers-info li{
  margin-bottom:10px;
  color:#ccc;
}

/* FORM */

.careers-form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.careers-form input,
.careers-form textarea{
  padding:12px;
  border:none;
  border-radius:6px;
  background:#111;
  color:white;
}

.careers-form textarea{
  height:120px;
}

.careers-form button{
  background:red;
  border:none;
  padding:12px;
  color:white;
  cursor:pointer;
  font-weight:bold;
  transition:0.3s;
}

.careers-form button:hover{
  background:#cc0000;
}

/* MOBILE */

@media(max-width:768px){

  .careers-container{
    grid-template-columns:1fr;
  }

}




/* CONTACT SECTION */
/* CONTACT SECTION BACKGROUND */
.contact-section {
  position: relative;
  padding: 120px 20px;
  background-image: url("img/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* nice premium effect */
  overflow: hidden;
}

/* DARK OVERLAY */
.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.85),
    rgba(0,0,0,0.75)
  );
  z-index: 0;
}

/* CONTENT ABOVE OVERLAY */
.contact-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}


.contact-header,
.contact-container {
  position: relative;
  z-index: 1;
}

/* HEADER */
.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: silver;
  margin-bottom: 10px;
}

.contact-header p {
  color: #cfcfcf;
}

/* CONTAINER */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

/* INFO */
.contact-info {
  background: rgba(255,255,255,0.05);
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  color: #cfcfcf;
  margin-bottom: 12px;
}

/* FORM */
.contact-form {
  background: rgba(255,255,255,0.05);
  padding: 35px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(6px);
}

.contact-form input,
.contact-form textarea {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px;
  border-radius: 10px;
  color: #fff;
}

.contact-form button {
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #c9c9c9, #8f8f8f);
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}


.contact-section{
    position:relative;
    background:#0b0b0b;
    padding:80px 20px;
}

.contact-section:hover{
    box-shadow:0 0 40px rgba(255,0,0,0.6);
    transition:0.5s;
}

.contact-section input,
.contact-section textarea{
    transition:0.3s;
}

.contact-section input:focus,
.contact-section textarea:focus{
    border:1px solid red;
    box-shadow:0 0 10px red;
}
/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* WHATSAPP FLOAT */
.whatsapp-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    padding:12px 18px;
    border-radius:40px;
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    font-weight:bold;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    transition:0.3s;
}

.whatsapp-btn:hover{
    transform:scale(1.05);
}

.wa-icon{
    width:20px;
    filter:invert(1);
}

/* RED SPOTLIGHT WITH PULSE */
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 180px at center,
    rgba(255, 0, 0, 0.25),
    rgba(255, 0, 0, 0.12),
    transparent 70%
  );
  opacity: 0;
  z-index: 1;
  animation: spotlightPulse 3.5s ease-in-out infinite;
}

/* SHOW ON HOVER */
.contact-section:hover .spotlight {
  opacity: 1;
}

/* PULSE ANIMATION */
@keyframes spotlightPulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.35);
  }
  100% {
    filter: brightness(1);
  }
}

/* DISABLE ON MOBILE */
@media (max-width: 768px) {
  .spotlight {
    display: none;
  }
}

.contact-form {
  max-width: 500px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: red;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: red;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: darkred;
}

#formStatus {
  margin-top: 15px;
  font-size: 0.9rem;
}
