.header2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 0 20px;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-header img {
  max-height: 100px;
}

.navbar {
  display: flex;
  font-family: "Permanent Marker";
}

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

.navbar li {
  margin-right: 20px;
  position: relative; /* Ensure the dropdown is positioned relative to the parent */
}

.navbar li:hover .dropdown-content {
  display: block;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 1.2rem;
}

.navbar a:hover {
  text-decoration: underline;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-image: url(/images/bubbles7.png);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-align: left;
  border: 5px solid white;
  border-radius: 10px;
  padding: 10px 0 10px 10px;
  z-index: 1200;
}

.dropdown-content:hover {
  display: block;
}

.dropdown-content a {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
  padding: 5px 0;
}

.dropdown-content a:hover {
  text-decoration: underline;
}

#services {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
}

#services:hover + .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* MOBILE MENU */

.mobile-menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1100;
}

.mobile-menu-icon span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.mobile-menu-icon.open span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 10px;
}

.mobile-menu-icon.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 10px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 120px;
  left: 0;
  width: 100vw;
  max-height: 0; /* Start with zero height */
  opacity: 0; /* Start with zero opacity */
  overflow: hidden; /* Hide content that overflows */
  background-image: url(/images/bubbles7.png);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0; /* Remove padding to control it with transition */
  z-index: 1000;
  border-top: 10px solid white;
  border-bottom: 10px solid white;
  font-family: "Permanent Marker";
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out,
    padding 0.5s ease-out; /* Transition properties */
}

.mobile-menu.open {
  max-height: 100vh; /* Set a max-height larger than the content */
  opacity: 1; /* Fully visible */
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  font-size: 2rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin: 15px 0;
}

.mobile-menu a:hover {
  text-decoration: underline;
}

/* Media query for responsive design */
@media screen and (max-width: 768px) {
  .navbar {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
}
