.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  padding: 20px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s, padding 0.2s;
  z-index: 9999;
}

.navbar-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-section .logo {
  width: 250px;
  cursor: pointer;
}

.navbar .navbar-section {
  border: none;
  background: none;
  padding: 0;
}

.navbar .navbar-section .logo {
  display: block;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar.scrolled ul li {
  margin: 0 15px;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  position: relative;
  transition: color 0.3s ease-in-out;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  border-radius: 10rem;
  background-color: #0404fe;
  top: 100%;
  left: 0;
  transform: scaleX(0);
  transform-origin: 50% 0;
  transition: transform 0.3s ease-in-out;
}

.navbar ul li a.active::after,
.navbar ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: 50% 0;
}

.navbar ul li a.active,
.navbar ul li a:hover {
  color: #0404fe;
}

.navbar.scrolled {
  background-color: #fff;
  padding: 10px 8%;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.342);
}

.navbar.scrolled .navbar-section .logo {
  content: url(../../assets/images/nav\ logo.png);
  width: 200px;
}

.navbar.scrolled ul li a {
  color: black;
  font-size: 1rem;
  font-weight: 600;
}

.navbar.scrolled ul li a:hover,
.navbar.scrolled ul li a.active {
  color: #0404fe;
}