* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===== NON-SELECTABLE ELEMENTS ===== */
button,
a {
  -webkit-user-select: none; /* Chrome, Safari, Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Standard */
  outline: none; /* hilangkan outline saat klik/tab */
}

/* OPTIONAL: hapus highlight saat tap di mobile */
button:active,
a:active {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Outfit", sans-serif;
  background: #0f172a;
  color: white;
  margin: 0;
  padding: 0;
}

.page-header {
  text-align: center;
  padding: 60px 20px 30px;
  margin-top: 100px; /* Menambahkan jarak atas agar page header lebih rendah */
}

.page-header h1 {
  font-family: "Sora", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  opacity: 0.75;
}

/* ===== NAV WRAP ===== */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 5000; /* di atas konten */
  pointer-events: auto;
}

/* ===== NAVBAR ===== */
.navbar {
  width: 92%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  transition: 0.3s;
}

.navbar:hover {
  transform: translateY(-2px);
}

/* ===== LOGO ===== */
/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #5a2ca0;
}

.logo span {
  font-family:
    "Poppins", sans-serif; /* pastikan font Poppins diterapkan di teks logo */
  font-size: 22px;
  font-weight: 700;
  color: #5a2ca0;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 0 6px rgba(255, 255, 255, 0.08);
}

/* ===== NAV LINKS ===== */
.nav-panel {
  display: flex;
  align-items: center;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 50px;
  user-select: none;
}

.nav-links a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 15px;
  padding: 6px 2px;
  position: relative;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: #38bdf8;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
  transition: 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5100; /* pastikan di atas panel */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== OVERLAY ===== */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 4999; /* di bawah panel */
}

#overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* CATEGORY MENU */
.category-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.category-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.category-btn.active,
.category-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: none;
}

/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1150px;
  margin: 0 auto 60px;
  padding: 0 12px;
}

/* PROJECT ITEM ANIMASI */
.project-item {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  display: grid; /* tetap grid */
  order: 0; /* reset posisi untuk semua item agar mulai dari kiri */
}

.project-item.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* PROJECT CARD */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  border-color: rgba(56, 189, 248, 0.45);
}

/* PROJECT IMAGE */
.project-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #1f2937;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

/* Badge versi */
.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 2;
}

/* Deskripsi tambahan */
.card-desc {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Tombol download compact */
/* Menambahkan margin bawah pada tombol download */
.project-card .btn.download-btn {
  margin-top: 12px; /* Menambahkan jarak antara deskripsi dan tombol download */
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card .btn.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.55);
}

/* Card overlay halus (glow) */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.2),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-card:hover::after {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
}

/* ===== RESPONSIVE NAVBAR ===== */
/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 100%;
    max-width: 380px;
    background: rgba(2, 6, 23, 0.96);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .nav-panel.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Menu header mobile */
  /* Menu header */
  .menu-header {
    display: block;
    padding: 26px 24px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .menu-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      inset 0 0 12px rgba(255, 255, 255, 0.03),
      0 6px 16px rgba(0, 0, 0, 0.35);
  }

  .menu-title h2 {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.1;
  }
  .menu-title span {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }
  .menu-sub {
    margin-top: 12px;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
  }

  .nav-links {
    flex-direction: column;
    gap: 28px;
    padding: 20px 24px; /* kiri-kanan sama */
  }

  .nav-links a {
    font-size: 18px;
    letter-spacing: 0.5px;
  }
}

@media (min-width: 769px) {
  .nav-panel {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: none;
    box-shadow: none;
    flex-direction: row;
  }

  .menu-header {
    display: none !important;
  }
}
