header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
}

header.scrolled .navbar {
  background-color: transparent;
  top: 0;
  position: sticky;
}

header.scrolled .search form {
  border: 2px solid var(--navbar-text-color);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background-color: var(--navbar-bg-color);
  color: var(--navbar-text-color);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo a {
  color: var(--navbar-text-color);
}

.logo h1 {
  color: var(--navbar-text-color);
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 1rem;
}

.nav {
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  align-items: center;
}

.nav ul li {
  list-style: none;
  margin: 0 1rem;
}

.nav ul li a {
  text-decoration: none;
  color: var(--navbar-text-color);
}

.nav ul li a:hover,
.logo h1:hover,
.logo a:hover {
  color: var(--navbar-text-hover-color);
}

.search {
  display: flex;
  align-items: center;
}

.search-icon {
  display: none;
}

.search form {
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

/* TODO: rework on the search bar, need to make it so that the search bar is a button and when clicked or hovered it expands to a search bar */

.search form input {
  padding: 0.5rem;
  border: none;
  background-color: transparent;
  color: var(--navbar-text-color);
  resize: none;
  max-height: 0.6rem;
}

.search form button {
  padding: 0.5rem;
  border: none;
  outline: none;
  border-radius: 0 50% 50% 0;
  background-color: transparent;
  color: var(--navbar-text-color);
  cursor: pointer;
  border: transparent;
}

.search input[type="text"] {
  color: var(--navbar-text-color);
}

.search input::placeholder {
  color: var(--navbar-text-color);
}

.search form input:focus {
  outline: none;
}

.search form button:hover {
  color: var(--navbar-text-hover-color);
}

.menu {
  display: none;
}

@media screen and (max-width: 1000px) {
  .search {
    display: block;
  }

  .navbar {
    padding: 0 1rem;
  }

  .logo h1 {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media screen and (max-width: 600px) {
  .search form input,
  .search form button {
    display: none;
  }

  .search-icon {
    display: block;
    margin: auto;
    cursor: pointer;
  }
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline-end: 10%;
  padding: 0 0 2rem 0;
  margin-top: 50px;
}

.header-text {
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-text h1 {
  font-size: 3rem;
  color: var(--navbar-text-color);
  font-weight: 700;
}

.header-text p {
  font-size: 1.5rem;
  color: var(--navbar-text-color);
  font-weight: 500;
}

.header-img {
  width: 50%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moto {
  font-style: italic;
  text-align: center;
  margin: 0;
  padding: 0;
  display: inline;
}

@media screen and (min-width: 920px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav {
  display: none;
}

.active {
  position: absolute;
  display: block;
  right: 0;
  top: 0;
  height: 92.7vh;
  z-index: 100;
  margin-top: 3.4rem;
  padding-right: 22px;
  font-size: 1.5rem;
  line-height: 4rem;
  background: var(--navbar-active-bg-color);
  backdrop-filter: blur(4px);
}

@keyframes ingoingCall {
  from {
    transform: translate(179px);
  }

  to {
    transform: translate(0);
  }
}

.active ul {
  list-style-type: none;
}

.active ul li a {
  color: var(--navbar-text-color);
  text-decoration-line: unset;
  transition: all 300ms ease;
}

.active ul li a:hover {
  color: var(--navbar-text-hover-color);
  text-decoration-line: unset;
}

@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
  }

  .header-text {
    width: 100%;
    height: 50%;
    margin-top: 15%;
  }

  .header-img {
    width: 100%;
    height: 50%;
  }
}
