/* === Default visibility === */
.sections.compact {
    display: none;
  }
  
  #mobile-menu {
    display: none;
  }
  
  /* === Mobile styles === */
  @media (max-width: 1023px){ 
    .sections.desktop {
      display: none;
    }
  
    .sections.compact {
      display: flex;
      justify-content: space-between;
      align-items: center;
      /* padding: 1rem; */
    }

    .sections.compact .right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 1rem;
        height: 100%; /* or match nav height */
        position: relative;
      }
  
    .hamburger {
        width: 24px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001; /* stays clickable */
      }
      
      .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: #000;
        border-radius: 6px;
        transition: transform 0.4s ease, top 0.3s ease, opacity 0.3s ease;
      }
      
      /* Top bar */
      .hamburger span:nth-child(1) {
        top: 3px;
      }
      
      /* Bottom bar */
      .hamburger span:nth-child(2) {
        top: 13px;
      }
      
      /* Active (X) State */
      .hamburger.active span:nth-child(1) {
        top: 8px;
        transform: rotate(225deg);/*  Mimer */
        /*transform: rotate(135deg);  Sesame */
      }
      
      .hamburger.active span:nth-child(2) {
        top: 8px;
        transform: rotate(-45deg); /* Mimer */
         /*transform: rotate(225deg); Sesame */
      }
  
      #mobile-menu {
        display: block;               /* always present so height can animate */
        position: fixed;
        top: 70px;                    /* adjust to sit under your header */
        right: 0;
        width: 100%;
        /* background: white; */  
        background: rgba(255, 255, 255, 1); /* semi-transparent white */
        backdrop-filter: blur(20px)!important;
        -webkit-backdrop-filter: blur(20px);    /* or whatever background you need */
        overflow: hidden;             /* hide content when collapsed */
        max-height: 0;
        height: 0;             /* collapsed by default */
        transition: height 0.4s ease-in-out, padding 0.4s ease-in-out;
        padding: 0 1rem;              /* horizontal padding stays */
        z-index: 999;
      }

        /* PSEUDO-ELEMENT FOR FROSTED GLASS */

    
      /* When “open” class is toggled on */
      #mobile-menu.open {
        /* max-height: 300px;  */  
        max-height: 100dvh;
        height: 100dvh;           /* big enough to show all items */
        padding-top: 1rem;            /* vertical padding in expanded state */
        padding-bottom: 1rem;
      }
    
      /* Menu items styling */
      #mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
        
      }
/*       #mobile-menu li {
        padding: 0.5rem 0;
      } */

        /* Prepare each item for fade/slide */
        #mobile-menu li {
            left:0px;
            position: relative;
            padding: 0.5rem 0;
            font-size: 32px;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }

        #mobile-menu.open li {
            padding: 0.5rem 0;
            opacity: 1;
            transform: translateY(0);
          }
        
          /* Stagger delays (adjust intervals as you like) */
          #mobile-menu.open li:nth-child(1) { transition-delay: 0.05s; }
          #mobile-menu.open li:nth-child(2) { transition-delay: 0.10s; }
          #mobile-menu.open li:nth-child(3) { transition-delay: 0.15s; }
          #mobile-menu.open li:nth-child(4) { transition-delay: 0.20s; }
          #mobile-menu.open li:nth-child(5) { transition-delay: 0.25s; }
          #mobile-menu.open li:nth-child(6) { transition-delay: 0.3s; }
          /* Add more nth-child rules if you have more items… */
        

      #mobile-menu a {
        text-decoration: none;
        color: #333;
        font-weight: 600;
      }
  }
  

