html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

/* ========================= NAVBAR ========================= */
.navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(0, 45, 114, 0.9);
  backdrop-filter: blur(10px);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}
.navbar-nav .nav-link {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  color: #fff;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 5px;
  background-color: #fff;
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* ========================= HERO ========================= */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

#hero .parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

#hero .layer-bg {
  background-image: url('/pictures/hero-background.jpg');
  background-attachment: fixed;
  filter: brightness(0.65);
  z-index: 1;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

#hero .layer-overlay {
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

#hero .content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeDown 1.5s ease;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

#hero p {
  font-size: 1.25rem;
  margin-top: 1rem;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================= SECTIONS ========================= */
section {
  padding: 80px 0;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

section h2 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

section .container {
  position: relative;
  z-index: 1;
}

/* background section pakai gambar dari /pictures */
#about::before { background-image: url('/pictures/company-profile.png'); }
#services::before { background-image: url('/pictures/bg-services.jpg'); }
#vision::before { background-image: url('/pictures/bg-vision.jpg'); }
#mission::before { background-image: url('/pictures/bg-mission.jpg'); }

/* ========================= ABOUT COMPANY PROFILE ========================= */
#about .content-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
#about img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
#about .text {
  flex: 1;
  min-width: 300px;
}
#about h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
#about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ========================= PROJECTS ========================= */
#projects .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

#projects .card {
  flex: 1 1 calc(25% - 1.5rem);
  max-width: calc(25% - 1.5rem);
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

#projects .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#projects .card-body {
  padding: 15px;
  text-align: center;
}

#projects .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #002d72;
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  #projects .card {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1.5rem);
  }
}

@media (max-width: 768px) {
  #projects .card {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 576px) {
  #projects .card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ========================= Lazy Load Fade ========================= */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.6s ease;
}
img.lazyloaded {
  opacity: 1;
}

/* ========================= BUTTONS ========================= */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #003399;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s ease;
}
#scrollTop.show { display: flex; animation: fadeIn 0.3s ease; }
#scrollTop:hover { background: #002080; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#wa-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  animation: pulse 1.5s infinite;
  transition: background 0.3s ease;
}
#wa-btn:hover { background: #1ebe57; }

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========================= TYPOGRAPHY ========================= */
h2, h3 {
  letter-spacing: 1px;
}
p {
  line-height: 1.6;
  color: #444;
}
