/* Hamburger Menu CSS */
.hamburger-menu {
  display: none;
  position: relative;
  z-index: 1100;
  margin-left: 20px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #E1E1E1;
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: rgba(34, 39, 55, 0.97);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1099;
  padding-top: 80px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu li {
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  font-family: 'EuclidCircular', sans-serif;
  display: block;
  padding: 15px 30px;
  color: #E1E1E1;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-menu a:hover {
  color: #0EE3AE;
  background-color: rgba(14, 227, 174, 0.1);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1098;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button for mobile menu */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.close-menu:before,
.close-menu:after {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #E1E1E1;
}

.close-menu:before {
  transform: rotate(45deg);
}

.close-menu:after {
  transform: rotate(-45deg);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
  
  .page-header .header-text,
  .page-header nav {
    display: none;
  }
  
  .page-header__inner {
    padding: 0 15px;
  }
  
  .page-header__content {
    justify-content: flex-end;
  }
  
  .page-header .buttons {
    margin-left: 0;
    align-items: center;
  }
  
  /* Fix for the header in mobile view */
  .page-header {
    height: 65px;
    padding: 0;
  }
  
  .page-header__inner {
    flex-wrap: nowrap;
  }
  
  .page-header__logo {
    width: auto;
    margin-bottom: 0;
    text-align: left;
    white-space: nowrap; /* Prevent the logo text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Ensure hamburger is right-aligned */
  .page-header__content {
    display: flex;
    justify-content: flex-end;
  }
  
  .page-header .buttons {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
}

/* Additional mobile specific adjustments */
@media (max-width: 480px) {
  .page-header__inner {
    padding: 0 10px;
  }
  
  .page-header .header-btn {
    padding: 0 12px;
    font-size: 14px;
    height: 36px;
  }
}
