header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0); /* Initially transparent */
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.5cm;
  transition: background-color 0.3s, backdrop-filter 0.3s; /* Smooth transition */
  z-index: 1000; /* Ensure it is above other elements */
  left: 0px;
  bottom: auto;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.7); /* Darker background when scrolled */
  backdrop-filter: blur(5px); /* Apply blur effect */
}
    .menu-icon,
    .search-icon,
    .notify-icon {
      width: 30px;
      height: 30px;
      cursor: pointer;
      fill: #ff0000;
      margin: 0 1em;
    }

    .notify-icon,
    .search-icon {
        margin-top: -2em;
    }

    .title {
      display: flex;
      align-items: flex-start;
      margin-right: auto;
    }

    .logo {
      height: 1.2cm;
      width: auto;
      max-width: 100%;
    }

    @media only screen and (max-width: 767px) {
      /* CSS styles for profile section */

header {
    display: flex;
    justify-content: space-between; 
    padding: 10px; 
    align-items: center; 
    flex-wrap: wrap; 
    height: 3em;
    width: -webkit-fill-available;
  }
  
  .search-icon,
  .notify-icon,
  .menu-icon {
        margin-left: 10px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        margin-top: -1em;
    }

    .search-icon,
    .notify-icon {
      margin-top: -4em;
    }
    .title {
   display: flex;
   align-items: flex-start;
   margin-right: auto;
   margin-top: -5px;
  }
}
