/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}


h1, h2, h3 {
  font-weight: 700; /* Bold */
}

p, a, li {
  font-weight: 400; /* Normal */
}


/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, #004aad, #00b4d8);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 50px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #ffcc00;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

/* Hero */

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: left;   /* dari center ke kiri */
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* dorong konten ke kiri */
  padding-left: 5%;  /* kasih jarak aman dari sisi kiri */
}


/* Background slideshow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: slideBg 20s infinite;
  z-index: 0;
}

@keyframes slideBg {
  0% {
    background-image: url("../img/slide1.jpg");
  }
  33% {
    background-image: url("../img/slide2.jpg");
  }
  66% {
    background-image: url("../img/slide3.jpg");
  }
  100% {
    background-image: url("../img/slide1.jpg");
  }
}

/* Overlay biar teks lebih jelas */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fafafaee, #f3f6f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f2f2f2;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: #b30000;
  color: #f7f1f1;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #8407eb;
}

.btn-secondary {
  background: #b30000;
  color: #f8f6f6;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #7c47d3;
  color: #f3f0f0;
}

.hero-stats {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #cff10b;
}

.hero-stats div strong {
  font-size: 1.5rem;
  color: #f7f7fa;
}

/* Services */
.services {
  padding: 4rem 2rem;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #070707;
}
.service-boxes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.service-box {
  background: #faf8f8;
  border-radius: 10px;
  padding: 2rem;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.service-box:hover {
  transform: translateY(-5px);
}
.service-box i {
  width: 40px;
  height: 40px;
  color: #b30000;
  margin-bottom: 1rem;
}
.service-box h3 {
  margin-bottom: 1rem;
}
.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: #0a0a0a;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.service-link:hover {
  color: #ff6600;
}

/* About */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 2rem;
}

.about-section img {
  width: 100%;
  max-width: 350px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #070707;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}
/* Contact */
.contact-section {
  padding: 4rem 2rem;
  background: #f2f2f2;
  text-align: center;
}
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #070707;
}
.contact-section p {
  margin: 0.5rem 0;
}
.map-container {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #00b4d8, #004aad);
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Animation */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
}


/* Fix anchor offset supaya nggak nempel navbar */
#layanan,
#tentang,
#kontak {
  scroll-margin-top: 100px; /* sesuaikan tinggi navbar */
}

.contact-section a {
  color: #070707;
  font-weight: bold;
  text-decoration: none;
}

.contact-section a:hover {
  color: #6910df;
}


/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #b30000;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }
  .nav-links a {
    padding: 0.5rem 0;
  }
  .hamburger {
    display: flex;
  }
}

/* 2 kolom pas desktop */
@media (min-width: 992px) {
  .about-section {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .about-section img {
    margin-right: 2rem;
  }
}

/* Saat desktop tampil sejajar (kiri-kanan) */
@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .lottie-container {
    margin-right: 2rem;
  }
}
