* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  scroll-padding-top: 80px;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #000;
  color: white;
  padding-top: 70px;
} /* Navbar */
nav {
  width: 100%;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: space-between; /* brand kiri, menu kanan */
  align-items: center;
  padding: 0.8rem 2rem; /* atas-bawah, kiri-kanan */
  position: fixed;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  font-family: "Poppins";
  margin-left: 2rem;
  color: rgb(255, 255, 255);
}
.navbar-brand span {
  color: yellow;
}
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 2rem; /* jarak antar item */
  margin-right: 6rem;
}
.navbar-menu li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 500;
  transition: 0.2s;
}
.navbar-menu li a:hover {
  color: yellow;
}
.burger-icon {
  display: none;
  align-items: center;
}
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero h1 span {
  color: yellow;
  font-style: italic;
}
.hero p {
  position: absolute;
  z-index: 999;
  top: 55%;
  left: 48%;
} /* Wali Kelas */
.wali {
  margin-top: 100px;
  text-align: center;
}
.wali img {
  margin-top: 30px;
  border-radius: 50%;
  width: 300px;
  border-style: solid;
}
.wali h3 {
  margin-top: 10px;
}
.wali span {
  color: yellow;
} /* Anggota kelas */
.siswa {
  margin-top: 100px;
  text-align: center;
}
.siswa .image-card {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.siswa .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}
.siswa img {
  border-radius: 50%;
  margin-top: 0px;
  margin-bottom: 30px;
  width: 200px;
  border: solid;
  transition: transform 0.3s ease;
}
.siswa img:hover {
  transform: scale(1.1);
}
.siswa span {
  color: yellow;
} /* Moment */

.moment {
  margin-top: 100px;
  text-align: center;
  padding-bottom: 100px;
}

.moment span {
  color: yellow;
}

.moment-card {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 50px;
}

.moment-card .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.moment-card h3 {
  margin-top: 10px;
}

.moment-card img {
  max-width: 350px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.moment-card img:hover {
  transform: scale(1.05);
}

.burger-icon {
  display: none;
  cursor: pointer;
  color: white;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .wali img {
    width: 250px;
  }

  .siswa .image-card {
    gap: 2.5rem;
  }
  .siswa img {
    width: 180px;
  }

  .moment {
    padding-bottom: 100px;
  }
  .moment-card img {
    max-width: 320px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 26vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding: 20px 0;
    gap: 2rem;
    transition: top 0.4s ease;
    margin-right: 0;
    visibility: hidden;
    opacity: 0;
  }

  .navbar-menu li {
    margin-left: 20px;
  }

  .navbar-menu.active {
    top: 60px; /* muncul di bawah navbar */
    visibility: visible;
    opacity: 1;
  }

  .burger-icon {
    display: block; /* muncul di layar kecil */
  }

  /* biar brand gak kejepit */
  .navbar-brand {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 2rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
  }

  .wali img {
    width: 200px;
  }

  .siswa .image-card {
    gap: 2rem;
  }

  .siswa img {
    width: 150px;
  }

  .moment-card img {
    max-width: 300px;
  }
}

/* Mobile zaman now */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .hero p {
    font-size: 0.9rem;
    text-align: center;
  }
  .wali img {
    width: 150px;
  }
  .siswa img {
    width: 120px;
  }
  .moment{
    padding-bottom: 150px;
  }
  .moment-card img {
    max-width: 250px;
  }
}
