/* =========================
   NAVBAR
========================= */
.navbar{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(6,17,29,0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* =========================
   HEADER BRAND
========================= */
.header-brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-top: 10px;
}

/* =========================
   HEADER LOGO
========================= */
.header-logo{
  width: 52px;
  height: auto;
  object-fit: contain;
}

/* =========================
   LOGO TEXT
========================= */
.logo{
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(
    90deg,
    #58d5ff,
    #ffffff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* =========================
   NAV WRAPPER
========================= */
.nav-wrapper{
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   NAV MENU
========================= */
.nav-menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.nav-menu a{
  color: #dce7f2;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-menu a::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #58d5ff;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after{
  width: 100%;
}

.nav-menu a:hover{
  color: #58d5ff;
}

.nav-menu a.active {
    color: #4b8dff;
}

/* =========================
   NAV BUTTON
========================= */
/*
.nav-btn{
  padding: 14px 24px;
  border-radius: 50px;
  background: linear-gradient(
    135deg,
    #0077B6,
    #00B4D8
  );
  color: white !important;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0,180,216,0.3);
}
*/

.nav-btn {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;

    color: #38bdf8;
    text-decoration: none;

    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 10px;

    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px);

    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
}

/* Container Utama Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Pastikan area hover cukup luas agar tidak terputus saat kursor bergerak ke bawah */
.dropdown::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Box Menu Dropdown */
.dropdown-content {
    display: none; /* Sembunyi secara default */
    position: absolute;
    top: 100%;
    left: 0%;
    transform: translateX(-50%); /* Agar rata tengah terhadap tulisan Products */
    background: #0f172a; /* Warna gelap solid agar teks terbaca */
    min-width: 280px;
    border: 1px solid rgba(88, 213, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* Sangat penting agar tidak tertutup konten lain */
    padding: 10px 0;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

/* Styling Link di dalam Dropdown */
/*
.dropdown-content a {
    text-align: left !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
*/
/* Styling Link di dalam Dropdown - Diperbarui */
.dropdown-content a {
    color: #b7c7d8 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    text-align: left !important; /* Pastikan teks rata kiri */
    line-height: 1.5 !important; /* Beri jarak antar baris agar mudah dibaca */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: normal; /* Izinkan teks turun ke bawah jika terlalu panjang */
}

/* Hilangkan garis bawah animasi default pada link di dalam dropdown */
.dropdown-content a::after {
    display: none;
}

/* Panah kecil di atas box dropdown (opsional) */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(88, 213, 255, 0.2);
}

/* Item terakhir tidak perlu garis bawah */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* Efek Hover */
.dropdown-content a:hover {
    background: rgba(88, 213, 255, 0.1) !important;
    color: #58d5ff !important;
    padding-left: 25px !important; /* Efek geser sedikit ke kanan saat hover */
}

/* Tampilkan menu saat Products di-hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

/* Animasi muncul */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}