/* Import Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body & background */
body {
  width: 100%;
  min-height: 100vh;          /* biar body memanjang sesuai konten */
  overflow-x: hidden;         /* hanya sembunyikan horizontal overflow */
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
}

/* Navbar */
nav {
  width: 100%;
  height: 10vh;
  position: sticky;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.logo span {
  color: rgb(58, 211, 3);
  text-shadow: 0 0 10px rgb(58, 211, 3);
}

.hamburg,
.cancel {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
  color: white;
  cursor: pointer;
  display: none;
}

/* Mobile: show hamburger */
@media (max-width: 884px) {
  .hamburg { display: block; }
  .cancel { display: none; }
}

/* Saat menu terbuka */
.menu-open .hamburg { display: none; }
.menu-open .cancel { display: block; }

/* Navbar links */
.nav-container .links {
  display: flex;
}

.nav-container .links a {
  margin: 0 20px;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  font-weight: 550;
  transition: 0.3s linear;
}

.nav-container .links a:hover {
  color: rgb(58, 211, 3);
  border-bottom: 2px solid rgb(58, 211, 3);
}

.nav-container .links .active {
  color: rgb(58, 211, 3);
  border-bottom: 2px solid rgb(58, 211, 3);
}

/* Dropdown (mobile) */
.dropdown {
  position: absolute;
  top: 60px;
  right: 10px;
  width: 220px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: translateY(-500px);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.dropdown .links {
  display: flex;
  flex-direction: column;
}

.dropdown .links a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s linear;
}

.dropdown .links a:last-child { border-bottom: none; }
.dropdown .links a:hover {
  background-color: rgb(58, 211, 3);
  color: black;
}

/* Dropdown submenu (desktop) */
.link.has-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  min-width: 150px;
  border-radius: 0 0 5px 5px;
  z-index: 500;
}

.dropdown-content a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-content a:hover { background-color: rgb(135, 151, 129); }
.link.has-dropdown:hover .dropdown-content { display: block; }

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(5px);
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #000;
  z-index: 100;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  color: #000;
  text-decoration: none;
  margin: 0 5px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover { color: #007bff; }

/* Section intro & projects */
main {
  max-width: 1000px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.intro h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: rgb(58, 211, 3);
}

.intro p {
  font-size: 16px;
  color: rgba(240, 241, 239, 1);
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(3px);
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  flex: 1 1 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.project-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgb(58, 211, 3);

 }

/* Social icons desain */
.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 15px;
  border: 0.2rem solid rgb(58, 211, 3);
  border-radius: 50%;
  color: rgb(58, 211, 3);
  background-color: transparent;
  font-size: 1.5rem;
  transition: 0.2s linear;
}

.social-links i:hover {
  scale: 1.3;
  color: black;
  background-color: rgb(58, 211, 3);
  filter: drop-shadow(0 0 10px rgb(58, 211, 3));
}

/* Responsive */
@media (max-width: 884px) {
  nav .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }
  .nav-container .links { display: none; }
  .hamburg, .cancel { display: block; }
}

@media (max-width: 884px) {
  main {
    margin: 10px auto 60px; /* sebelumnya margin: 80px auto 60px; */
  }
}

a {
  color: black;
  text-decoration: none;
  font-weight: 550;

}
h2{
  color:rgb(58, 211, 3);
}

.level-filter {
  width: 100%;
  text-align: left;   /* jadi kiri */
  margin: 20px 0 20px 20px;  /* tambahkan margin kiri biar nggak nempel */
}


.dropdown-level {
  display: inline-block;
  position: relative;
}

.dropdown-level button {
  padding: 8px 16px;
  font-size: 0.9rem;
  border: 1px solid rgb(58, 211, 3);
  background: transparent;
  color: rgb(58, 211, 3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-level button:hover {
  background: rgb(58, 211, 3);
  color: black;
}

.level-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: rgba(0,0,0,0.9);
  border-radius: 5px;
  min-width: 120px;
  z-index: 100;
}

.level-options button {
  display: block;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: none;
  text-align: left;
  color: white;
  cursor: pointer;
}

.level-options button:hover {
  background: rgb(58, 211, 3);
  color: black;
}

