/*CSS reset*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #f9fafb; /* bg-gray-50 */
  color: #1f2937; /* text-gray-800 */
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/*Navbar Styles*/

.nav-transition {
  transition: all 0.3s ease;
}

/* Top Row */
.top-row {
  height: 75px;
  opacity: 1;
  overflow: hidden;
}

.is-scrolled .top-row {
  height: 0px;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Bottom Row */
.bottom-row {
  height: 40px;
}

.is-scrolled .bottom-row {
  height: 52px;
}

/* Nav Links */
.nav-link {
  font-size: 0.875rem;
}

.is-scrolled .nav-link {
  font-size: 0.95rem;
}

/* Shrink Logo */
.shrink-logo {
  max-width: 0;
  opacity: 0;
  margin-right: 0;
  overflow: hidden;
}

.is-scrolled .shrink-logo {
  max-width: 50px;
  opacity: 1;
  margin-right: 1rem;
}

/* Flex Spacers */
.nav-spacer-left {
  flex-grow: 0;
}

.is-scrolled .nav-spacer-left {
  flex-grow: 1;
}

.nav-spacer-right {
  flex-grow: 1;
}

.is-scrolled .nav-spacer-right {
  flex-grow: 0;
  width: 0;
}

/* Gap antara nav links dan tombol Kerjasama saat shrink */
.is-scrolled nav.flex {
  margin-right: 2rem;
}

/* Ensure no shadows or borders on header */
#navbar {
  box-shadow: none;
  border: none;
}
