* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: white;
  overflow-x: hidden;
}

header {
  position: absolute;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header-contact {
  position: fixed; /* Ubah dari absolute → fixed biar tetap di atas saat scroll */
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9); /* Tambahkan ini! */
  color: white;
}


.logo {
  font-size: 20px;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav ul li {
  position: relative;
}

nav ul li:not(:first-child)::before {
  content: "•";
  color: white;
  margin-right: 10px;
  position: relative;
  top: -1px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: background-image 1s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.hero h4 {
  font-size: 18px;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 40px;
  margin: 15px 0;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: white;
  color: black;
  border-radius: 20px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: #ddd;
}

.dots {
  margin-top: 30px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.dot.active {
  opacity: 1;
}

.contact-section {
  padding: 100px 20px;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.contact-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-title span {
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: #f1c40f; /* kuning */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  resize: none;
  transition: 0.3s;
}

.contact-form textarea {
  border-radius: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f1c40f;
  box-shadow: 0 0 5px #f1c40f;
}

.contact-form button {
  background-color: #f1c40f;
  border: none;
  border-radius: 30px;
  padding: 15px;
  font-size: 16px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  width: 150px;
  margin: 0 auto;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #e2b607;
}



.traffic-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.traffic-light {
  background: black;
  padding: 10px;
  border-radius: 20px;
  width: 80px;
}

.light {
  width: 60px;
  height: 60px;
  margin: 10px auto;
  border-radius: 50%;
  background-color: gray;
}

.light.red.active { background-color: red; }
.light.yellow.active { background-color: yellow; }
.light.green.active { background-color: green; }

.traffic-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-green {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #28a745;
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-green:hover {
  background-color: #214438;
}

.info-card {
  background-color: white;
  padding: 20px;
  margin: 0 auto 50px;
  width: 600px;
  border-radius: 15px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.body-kendaraan {
  font-family: 'Segoe UI', sans-serif;
  background-color: #e0f9fc;
  margin: 0;
  padding: 0;
  text-align: center;
}


.logo-kendaraan {
  font-size: 24px;
  font-weight: bold;
  color: #00ff00;
}

.traffic-count {
  text-align: justify;
  max-width: 600px;
  margin: auto;
}

