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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
  padding-top: 60px; /* untuk header fixed */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* perbaikan */
  background-color: #171717;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 255, 251, 0.36);
}
.main-menu {
  position: relative;
}

.menu-icon {
  font-size: 30px;
  font-color: cyan;
  cursor: pointer;
  border-radius: 5px;
  padding: 5px 10px;
  background-color: black;
  box-shadow: 0 2px 5px rgba(0, 255, 251, 0.36);
  user-select: none;
}

.drop {
  position: absolute;
  right: 0;
  top: 45px;
  background-color: black;
  width: 100vw;
  border-radius: 5px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 1s ease, opacity 1s;
  list-style: none;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 255, 251, 0.36);
}
.drop li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.drop li a:hover {
  background-color: #f0f0f0;
}

.drop.active {
  max-height: 500px;
  opacity: 1;
}

/* Bagian hero */
#home {
  text-align: center; /* biar semua elemen di tengah */
  padding: 200px 0px;
}

#home h1 {
  font-size: 2.5em;
  opacity: 0;
  animation: fade-in 2s forwards;
  margin-bottom: 10px;
}

nav a {
  background-color: #128C7E;
  color: cyan;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  margin-bottom: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: inline-block; /* penting biar margin bawah bekerja */
}

nav a:hover {
  background-color: #128C7E;
  transform: scale(1.10);
}

#home p {
  font-size: 1.2em;
  margin-top: 20px;
  border: 2px solid gray;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mcmp {
  font-size: 1.2em;
  margin-top: 20px; 
  border: 2px solid gray;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
@keyframes fade-in {
  to { opacity: 1; 
  }
}


/* Bagian ranks */
#rank {
  padding: 50px 20px;
  text-align: center;
}

.rank {
  margin-bottom: 30px;
}

.ranks {
  display: inline-block;
   padding: 10px 25px;
   background-color: #128C7E; /* Hijau khas WA */
   color: cyan;
   text-decoration: none;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s;
}
.ranks:hover {
    background-color: #128C7E; /* Hijau gelap saat hover */
 }

/* Bagian fitur */
#features {
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

#features h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: cyan;
}

.feature {
  display: inline-block;
  margin: 15px;
  padding: 30px 20px;
  max-width: 250px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  vertical-align: top;
  text-align: center;
}

.feature:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.feature i {
  font-size: 2.5em;
  color: cyan;
  margin-bottom: 15px;
  display: block;
}

.feature h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #111;
}

.feature p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
}

/* Realtime Map Section */
#realtime {
  padding: 100px 20px;
  text-align: center;
  background: #0f172a; /* dark biar adem */
  color: white;
}

#realtime h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: cyan;
}

/* Gambar Map */
#realtime img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.realtime {
  margin-bottom: 30;
}

/* Tombol link */
.realtimes {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background: cyan;
  color: #0f172a;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#realtime .realtime:hover {
  background: #00bcd4;
  transform: scale(1.05);
}
/* Bagian kontak */
#contact {
  padding: 50px 20px;
  text-align: center;
}
#contact p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.whatsapp {
  display: inline-block;
   padding: 10px 25px;
   background-color: #25D366; /* Hijau khas WA */
   color: white;
   text-decoration: none;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s;
    }

.whatsapp:hover {
    background-color: #128C7E; /* Hijau gelap saat hover */
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
}
