/* ============================================================
 * Dikembangkan oleh Institut Teknologi Del
 * ============================================================
 * CSS halaman: resources/views/modules/landing/partials/header.blade.php
 * (diekstrak dari blok <style> di dalam view)
 *
 * Dikembangkan oleh Institut Teknologi Del
 * ============================================================ */


        /* CSS sama seperti sebelumnya */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0;
            z-index: 1000;
            background: transparent;
            transition: all 0.3s ease;
        }
        .navbar.scrolled {
            background: rgba(20, 83, 76, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .navbar-inner {
            max-width: 1400px; margin: 0 auto;
            padding: 1rem 2rem;
            display: flex; align-items: center; justify-content: space-between;
            position: relative;
        }
        .navbar-brand { display: flex; align-items: center; gap: 16px; cursor: pointer; z-index: 1002; }
        .navbar-logo { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
        .navbar-divider { width: 2px; height: 44px; background: rgba(255,255,255,0.6); border-radius: 1px; flex-shrink: 0; }
        .navbar-title { display: flex; flex-direction: column; line-height: 1.3; gap: 1px; }
        .navbar-title-main { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
        .navbar-title-sub { font-weight: 600; font-size: 0.8rem; color: #ffffff; letter-spacing: 0.5px; text-transform: uppercase; }
        .navbar-title-region { font-weight: 500; font-size: 0.7rem; color: rgba(255,255,255,0.9); letter-spacing: 0.5px; text-transform: uppercase; }
        .navbar-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
        .nav-link {
            color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.875rem; font-weight: 600;
            padding: 6px 10px; border-radius: 6px; transition: all 0.2s ease; cursor: pointer;
        }
        .nav-link:hover { color: #fff; background: rgba(255,255,255,0.15); }
        /* Label menu aktif: emas di atas navbar teal hanya ~1,2:1 (tak
           terbaca). Label dibuat putih, aksen emas jadi garis bawah. */
        .nav-link.active-link { color: #fff; background: rgba(255, 255, 255, 0.18); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold, #d69e2e); }
        /* justify-content & align-items WAJIB center: di mobile ada aturan
           min-height:44px (target sentuh) di style.css, sehingga tanpa ini
           ketiga garis menempel di atas kotak dan terlihat lebih tinggi
           daripada logo di sebelahnya. */
        .hamburger {
            display: none; flex-direction: column; gap: 5px; cursor: pointer;
            padding: 5px; z-index: 1002; background: none; border: none;
            justify-content: center; align-items: center;
        }
        .hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
        .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
        .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
        .mobile-menu {
            position: absolute; top: 100%; left: 0; right: 0;
            background: rgba(20, 83, 76, 0.98);
            backdrop-filter: blur(15px);
            padding: 1rem 2rem 2rem 2rem;
            border-radius: 0 0 16px 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            opacity: 0; visibility: hidden; transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 999;
            display: flex; flex-direction: column; gap: 0.5rem;
        }
        .mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
        .mobile-menu .nav-link {
            display: block; width: 100%; padding: 12px 15px;
            border-radius: 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 1rem; text-align: left;
        }
        .mobile-menu .nav-link:hover { background: rgba(255,255,255,0.05); }
        @media (max-width: 1100px) {
            .navbar-links { display: none; }
            .hamburger { display: flex; }
            .navbar-title-region { display: none; }
            .navbar-logo { width: 44px; height: 44px; }
            .navbar-divider { height: 36px; }
        }
        @media (min-width: 1101px) {
            .mobile-menu { display: none !important; }
        }

/* Polesan navbar: ritme lebih lega, status interaktif jelas, dan menu
   ponsel nyaman digunakan dengan sentuhan maupun keyboard. */
.navbar {
  border-bottom: 1px solid transparent;
}

/* Lapisan warna di style.css sebelumnya tampil sejak halaman dibuka.
   Sembunyikan sampai event scroll menambahkan .scrolled. */
.navbar::before { opacity: 0; }
.navbar.scrolled::before {
  opacity: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar.scrolled { border-bottom-color: rgba(255, 255, 255, 0.12); }

.navbar::before { transition: opacity 0.28s ease; }

@media (prefers-reduced-motion: reduce) {
  .navbar::before { transition: none !important; }
}

.navbar-inner {
  max-width: 1320px;
  min-height: 64px;
  padding: 0.7rem clamp(1rem, 2.5vw, 2rem);
  gap: 1.5rem;
}

.navbar-brand {
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover { opacity: 0.92; }
.navbar-logo { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2)); }
.navbar-divider { opacity: 0.72; }
.navbar-title { line-height: 1.22; gap: 2px; }
.navbar-title-main { letter-spacing: 0.075em; }
.navbar-title-sub { letter-spacing: 0.045em; }
.navbar-title-region { opacity: 0.82; letter-spacing: 0.055em; }

.navbar-links {
  gap: 3px;
  flex-wrap: nowrap;
}

.navbar .navbar-links .nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.84rem;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar .navbar-links .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.navbar .nav-link:focus-visible,
.hamburger:focus-visible,
.mobile-menu .nav-link:focus-visible {
  outline: 3px solid rgba(255, 220, 128, 0.9);
  outline-offset: 3px;
}

.hamburger {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.hamburger:hover,
.hamburger.active { background: rgba(255, 255, 255, 0.12); }
.hamburger span { width: 22px; }

.mobile-menu {
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  background: rgba(15, 78, 72, 0.98);
  box-shadow: 0 18px 36px rgba(8, 35, 38, 0.24);
}

.mobile-menu .nav-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .navbar-inner { gap: 1rem; }
  .navbar-logo { width: 48px; height: 48px; }
  .navbar-divider { height: 38px; }
}

@media (max-width: 480px) {
  .navbar-inner { padding: 0.65rem 1rem; }
  .navbar-brand { gap: 10px; }
  .navbar-logo { width: 44px; height: 44px; }
  .navbar-divider { height: 34px; }
  .navbar-title-main { font-size: 1.05rem; }
  .navbar-title-sub { font-size: 0.73rem; }
  .mobile-menu { max-height: calc(100dvh - 72px); }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-brand,
  .navbar .navbar-links .nav-link,
  .hamburger,
  .hamburger span,
  .mobile-menu,
  .mobile-menu .nav-link {
    transition: none !important;
  }
}

/* Penanda aktif sederhana: garis bawah tipis, tanpa latar seperti tombol. */
.navbar .navbar-links .nav-link.active-link,
.mobile-menu .nav-link.active-link {
  color: #fff;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-decoration-line: underline;
  text-decoration-color: #d6aa48;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.42em;
}

.navbar .navbar-links .nav-link.active-link:hover,
.mobile-menu .nav-link.active-link:hover {
  background: transparent;
}
    
