body.menu-open {
    overflow-y: hidden;
  }

  
  
  /* Header Styles */
  header {
    background-color: transparent;
    padding: 0px;
    padding-top: 3px;
    /* padding-bottom: 15px; */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
    width: 100%;
  }
  
  header.sticky {
    background-color: white;
  }
  
  header .inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
  }
  
  header .logo {
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 0;
  }
  
  header .logo img {
    max-height: 120px;
    width: auto;
  }
  
  header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  
  header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-nav);
    transition: color 0.3s ease;
  }
  
  header nav a.active {
    color: var(--color-highlight);
    text-decoration: underline;
  }
  
  header nav a:hover {
    color: var(--color-accent);
    text-decoration: underline;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-nav a {
    margin: 10px 0;
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-subtitle);
    transition: color 0.3s ease;
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    top: 42px;
    left: 12px;
    width: 36px;
    height: 24px;
    justify-content: space-between;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  /* Hamburger to X transition */
  .hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }
  
  #mobile-search-icon {
    display: none;
    position: absolute;
    top: 35px;
    right: 12px;
    transform: none;
    z-index: 1001;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }
  
  #mobile-search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* For Desktop and Larger Screens */
  .search-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin-left: 10px;
  }

  
  /* Mobile Media Queries */
  @media (max-width: 768px) {
    header {
      position: relative;
      top: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0;
      align-items: center;
      z-index: 1001;
      background: transparent;
    }
  
    header .inner-header {
      justify-content: center;
    }
  
    header .logo {
      margin: 0 auto;
      z-index: 1002;
    }
  
    header nav {
      display: none;
    }
  
    .hamburger {
      display: flex;
    }
  
    #mobile-search-icon {
      display: block;
      right: 6px;
    }
  
    .mobile-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background-color: white;
      transition: right 0.7s ease;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 999;
      margin: 0;
      overflow-y: auto;
    }
  
    .mobile-nav.active {
      right: 0;
    }
  
    .mobile-nav a {
      margin: 10px 0;
      text-decoration: none;
      color: var(--color-text);
      font-size: var(--font-size-nav);
      transition: color 0.3s ease;
    }
  
    .mobile-nav a.active {
      color: var(--color-highlight);
    }
  
    .mobile-nav a:hover {
      color: var(--color-accent);
    }
  

  
    header.hamburger-active {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: white;
      z-index: 1001;
    }
  
    .hamburger-active .mobile-nav {
      padding-top: 120px;
    }
  
    /* Disable scroll when hamburger menu is active */
    body.hamburger-active {
      overflow: hidden;
    }
  }




  
  @media (min-width: 769px) {
    header {
      max-height: 126px;
      overflow: hidden;
    }
  }
  
  @media (max-width: 1063px) {
    header nav {
      margin-top: 0;
    }
  }
  
  @media (max-width: 340px) {
    .hamburger {
      transform: scale(0.7);
      top: 30px;
      left: 6px;
    }
  
    #mobile-search-icon {
      transform: scale(0.7);
      top: 25px;
      right: 6px;
    }
  
    header .logo {
      padding-top: 6px;
    }
  
    header .logo img {
      max-height: 80px;
      width: auto;
    }
  
    .mobile-nav a {
      font-size: var(--font-size-projects-title);
    }
  
    /* Updated X transformation for better alignment under 340px */
    .hamburger.active span:nth-child(1) {
      transform: translateY(10px) rotate(45deg) scale(1.1);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
      transform: scale(0);
    }
  
    .hamburger.active span:nth-child(3) {
      transform: translateY(-10px) rotate(-45deg) scale(1.1);
    }
  
    #search-results div {
      flex-direction: column;
      align-items: flex-start;
    }
  
    #search-results div img {
      width: 100%;
      height: auto;
      margin-right: 0;
      margin-bottom: 10px;
    }
    #search-box {
      width: 95%;
    }
  }
  
  @media (max-width: 440px) {
    /* Update 1 */
    #search-results div {
      flex-direction: column;
      align-items: flex-start;
    }
  
    #search-results div img {
      width: 100%;
      height: auto;
      margin-right: 0;
      margin-bottom: 10px;
    }
  }
  