/* Navbar & Header Styles */
.navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(224, 237, 255, 0.65) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(47, 125, 255, 0.15); /* Glass edge refraktif biru tipis */
  border-radius: 20px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.8), /* Efek bevel pantulan cahaya atas */
    0 10px 30px rgba(47, 125, 255, 0.08); /* Bayangan pendar biru lembut */
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: linear-gradient(135deg, rgba(23, 42, 85, 0.8) 0%, rgba(11, 21, 40, 0.65) 100%);
  border: 1px solid rgba(47, 125, 255, 0.25);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle .chevron-icon {
  transition: transform 0.3s ease;
  margin-left: 4px;
  flex-shrink: 0;
}

.nav-item-dropdown.active .dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  list-style: none;
  padding: 14px;
  margin-top: 12px;
  width: 480px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.active .dropdown-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu .dropdown-item.nav-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border-bottom: none;
}

.dropdown-menu .dropdown-item.nav-link::after {
  display: none !important;
}

.dropdown-menu .dropdown-item.nav-link:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(47, 125, 255, 0.08);
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item.nav-link:hover .dropdown-item-icon {
  background: var(--primary);
  color: #fff;
}

.dropdown-item-icon svg {
  width: 16px;
  height: 16px;
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.dropdown-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100% !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 5px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 15px;
  }
  
  .dropdown-menu .dropdown-item.nav-link {
    padding: 8px;
    gap: 8px;
  }
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Matikan efek garis bawah meluncur di menu dropdown agar rapi */
.dropdown-menu .nav-link::after {
  display: none;
}

.nav-karir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.nav-karir::after {
  display: none !important; /* Nonaktifkan efek garis bawah meluncur */
}

.nav-karir:hover {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(47, 125, 255, 0.15);
  transform: translateY(-1px);
}

.nav-karir.active {
  background: var(--primary);
  color: white !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background: #081325; /* Fixed dark background in light mode */
  color: white;
  padding: 60px 24px 24px;
  margin-top: 80px;
  transition: background 0.3s ease;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h4,
.footer-section h5 {
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Certifications Section */
.certifications-section {
  background: rgba(255, 255, 255, 0.75); /* Frosted white glass background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 40px 24px;
  margin: -60px -24px 60px -24px;
  text-align: center;
}

.cert-label {
  color: var(--text); /* Dark blue color for high contrast on light background */
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cert-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.cert-item img {
  height: 52px;
  max-width: 100px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cert-item:hover img {
  transform: translateY(-4px);
}

.cert-item span {
  font-size: 0.85rem;
  color: var(--text); /* Dark blue color */
  font-weight: 600;
}

/* Mobile Menu */
.nav-links.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 16px;
  gap: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    margin-top: 8px;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-menu .nav-link {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }

  .cert-logos {
    gap: 20px;
  }

  .cert-item img {
    height: 50px;
  }

  .cert-item span {
    font-size: 0.75rem;
  }
}

.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 6px rgba(18, 50, 75, 0.05);
}

.theme-toggle-btn:hover {
  background: var(--border);
  transform: scale(1.05);
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
  color: #ff9800; /* Warm golden sun */
}

.theme-toggle-btn .theme-icon-moon {
  display: block;
  color: #5f7390; /* Soft moon color */
}

[data-theme="dark"] .theme-toggle-btn {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: var(--border);
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* Dark Mode Footer and Certifications Overrides */
[data-theme="dark"] .footer {
  background: #050a14; /* Deep dark blue-black background for dark mode footer */
}

[data-theme="dark"] .certifications-section {
  background: rgba(17, 34, 64, 0.75); /* Frosted dark glass background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cert-label {
  color: #f0f6fc; /* Bright label color */
}

[data-theme="dark"] .cert-item span {
  color: #8b9eb7; /* Soft muted label for cert logos */
}

/* Language Switcher Styles */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 40px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
  background: rgba(47, 125, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-toggle-btn svg {
  color: var(--muted);
  transition: color 0.3s ease;
}

.lang-toggle-btn:hover svg {
  color: var(--primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 170px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 10px 30px rgba(18, 50, 75, 0.08);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option:hover {
  background: var(--bg);
  color: var(--primary);
}

.lang-option.active {
  background: rgba(47, 125, 255, 0.08);
  color: var(--primary);
  font-weight: 700;
}
