/* Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #bcd4f8;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
.site-header {
  background: #0d47a1; /* solid blue = more professional */
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  padding: 0px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 15px;
}

.site-header h1 {
  font-size: 1.7rem;
  margin: 0 20px 0 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  flex: 1;
}

nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: #fff;
  background: #ff9800;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #ffc107;
  color: #222;
  transform: translateY(-2px);
}

body.home .hero {
  background: url('images/security-hero.png') center/cover no-repeat;
}

/* Hero Section */
.hero {
  width: 100%;
  height: auto;   /* allow it to grow with video */
  margin: 0;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;   /* ✅ stack instead of side-by-side */
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1976d2;
  position: relative;
}

/* Hanya Home Page */
body.home .hero {
  background: url("images/security-hero.png") center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

body.home .hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 12px;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 15px;
}

.hero-content h2 {
  font-size: 2.6rem;
  margin-bottom: 15px;
  font-weight: 800;
  color: #ffeb3b;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.btn-primary {
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #ffc107, #ff9800);
  color: #222;
  transform: scale(1.05);
}

/* Sections */
section {
  border-radius: 14px;
  margin: 40px 0;
  padding: 45px 30px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

section:nth-child(even) {
  background: #f8fbff;
}

section:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

section h3 {
  color: #0d47a1;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.9rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #1976d2;
  color: #fff;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card i {
  font-size: 2.2rem;
  color: #ffeb3b;
  margin-bottom: 12px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.service-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-card h4 {
  padding: 14px;
  text-align: center;
  background: #1976d2;
  color: #fff;
}

.service-card p {
  padding: 14px;
  text-align: center;
  background: #1976d2;
  color: #fff;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  padding: 60px 20px;
  background: #ff9800;   /* ✅ oren solid untuk semua page */
  color: #000000;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}



.contact-cta a.cta-link {
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #0d47a1;
  text-align: center;
  padding: 18px 0;
  margin-top: 60px;
  font-size: 0.95rem;
  color: #fff;
  border-top: 3px solid #ff9800;
}

/* Responsive */
@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header h1 {
    margin: 8px 0;
    font-size: 1.4rem;
  }
  nav {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  section, .hero {
    padding: 25px 18px;
  }
}

.video-wrapper {
  text-align: center;   /* ✅ fallback centering */
  margin: 30px auto;
}

.video-wrapper video {
  display: block;       /* ✅ makes margin:auto work */
  margin: 0 auto;       /* ✅ centers horizontally */
  max-width: 100%;
  width: 800px;         /* adjust to preferred size */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
