/* ========================================================================== 
   Quantum Menu Complete Styles
   ========================================================================== */

/* Base page style */
body {
  /*  background: radial-gradient(ellipse at center, #0f0f23 0%, #000010 100%);*/
  /*font-family: 'Courier New', monospace;*/
}

/* Menu‐item styling and h
over particles */
.menu-item {
  position: relative;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 50px !important;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  color: #ffd700; /* golden text */
  font-weight: 600;
  min-width: 90px;
  width: auto !important;
  max-width: none;
  display: inline-block;
  white-space: nowrap;
  background: transparent;
}

.menu-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,215,0,0.3), rgba(255,215,0,0));
  opacity: 0;
  z-index: -1;
  border-radius: 50rem !important;
  transition: opacity 0.3s ease-in-out;
}
.menu-item:hover::before {
  opacity: 0.2;
}
.menu-item:hover {
  transform: scale(1.05);
  border-color: #ffd700;
  text-shadow: 0 0 8px rgba(255,215,0,0.8);
  background: rgba(255, 215, 0, 0.15);
  color: #fff;
}

/* --- Ensure Quantum Menu is always visible & on top --- */
#quantum-menu,
header#header .menu_items {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  position: relative;
  z-index: 9999 !important;
  overflow: visible !important;
}

/* --- Right-align and horizontal layout --- */
#quantum-menu {
  float: right;
  margin-left: auto;
  margin-right: 0;
  z-index: 99 !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

#quantum-menu .max-w-7xl,
#quantum-menu > div.flex,
#quantum-menu > div {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}

#quantum-menu ul {
  display: flex !important;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
#quantum-menu li {
  flex: 0 0 auto;
  margin-left: 1rem;
}
#quantum-menu a.menu-item {
  display: inline-block !important;
  width: auto !important;
  text-align: center;
}

/* — restore orange hover on desktop quantum menu links — */
#quantum-menu .menu-item-link:hover,
#quantum-menu .menu-item-link:focus {
  color: #FFA500 !important;
}

/* — restore orange hover on mobile menu links — */
#mobile-menu.menu-opened .menu-item-link:hover,
#mobile-menu.menu-opened .menu-item-link:focus {
  color: #FFA500 !important;
}


/* Disable slide-up behavior on header */
header#header {
  transform: none !important;
  opacity: 1 !important;
  top: 0 !important;
}
header#header.menu-link_behavior--slide_up {
  transform: none !important;
}
header#header.menu-link_behavior--slide_up .menu_items {
  display: block !important;
}

/* Prevent any ancestor clipping */
header#header,
header#header .container-root,
header#header .row {
  overflow: visible !important;
}

/* (Do not hide menu-mobile for now; keep as reference) */
/*
#menu-mobile,
ul.menu-mobile {
  display: none !important;
}
*/

.logo_wrapper {
  width: auto !important;
  max-width: 260px !important;
  z-index: 1 !important;
  pointer-events: auto !important;
}
#menu-mobile,
.menu-mobile,
.wrapper {
  float: right !important;
}

/* Hover particle reaction area match */
#quantum-menu li.menu-item {
  display: inline-block;
  margin-left: 1rem;
  position: relative;
  width: auto; /* flexible width */
}
#quantum-menu a.menu-item {
  display: inline-block;
  position: relative;
  padding: 0.5rem 1.2rem;
  box-sizing: border-box;
  color: #ffd700;
  border-radius: 9999px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
#quantum-menu a.menu-item::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  bottom: -0.25rem;
  left: -0.25rem;
  right: -0.25rem;
  z-index: -1;
  border-radius: 9999px;
  background: rgba(255, 215, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
#quantum-menu a.menu-item:hover::before {
  opacity: 1;
}
.menu-item-link {
  padding: 0.5rem 1.2rem; /* smaller padding */
  width: 100%;
  height: 100%;
  display: block;
}

/* Increase logo area */
.logo_wrapper,
.main_logo,
.logo-holder {
  height: 90px; /* increase from 80px */
  display: flex;
  align-items: center;
  padding-top: 5px; /* add top padding */
  box-sizing: border-box;
}
.logo-holder img {
  max-height: 100%;
  height: auto;
  width: auto;
}

/* === Hamburger base styles === */
#mobile-header {
  position: fixed;
  top: 0;
  right: 0;
  pointer-events: none; /* allow clicks only on the icon itself */
  z-index: 10001;       /* above the menu */
}
#mobile-header .hamburger {

  display: none;        /* hidden by default */
  pointer-events: auto; /* make this element clickable */
  cursor: pointer;
  width: 30px;
  height: 25px;
  
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  z-index: 10002;       /* highest layer */
}

/* Show hamburger only on mobile */
@media (max-width: 1270px) {
  #mobile-header .hamburger {
    display: block !important;
  }
}
/* Hover effect */
#mobile-header .hamburger:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Hamburger icon lines */

#mobile-header .hamburger .hamburger-box,
#mobile-header .hamburger .hamburger-box::before,
#mobile-header .hamburger .hamburger-box::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: #ffd700;
  border-radius: 2px;
  transition: all 0.3s ease;
}
#mobile-header .hamburger .hamburger-box {
  top: 50%;
  transform: translateY(-50%);
}
#mobile-header .hamburger .hamburger-box::before {
  top: -10px;
}
#mobile-header .hamburger .hamburger-box::after {
  top: 10px;
}

/* === Mobile menu base state === */
#mobile-menu {
  position: fixed; top:0; left:0;
  width:100vw; height:100vh;
  background:rgba(0,0,0,0.9);
  padding:80px 1rem 1rem;
  box-sizing:border-box;
  transform: translate3d(0, -110%, 0);
  transition: transform 0.3s ease, opacity 0.3s ease;  /*Change that line to a shorter duration, for example*/
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 9998;
}


/* === Mobile menu open state === */
#mobile-menu.menu-opened {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* === Menu list & items === */
#mobile-menu.menu-opened ul.menu-mobile {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
#mobile-menu.menu-opened ul.menu-mobile li.menu-item {
  margin-bottom: 1rem !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#mobile-menu.menu-opened ul.menu-mobile li.menu-item:last-child {
  border-bottom: none;
}
/* Menu links */
#mobile-menu.menu-opened ul.menu-mobile li.menu-item a.menu-item-link {
  display: block !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  text-align: center !important;
  padding: 0.75rem 0 !important;
  text-decoration: none !important;
}

/* Override any parent overflow that might clip the menu */
body,
html,
#page,
.site,
header,
.container-root {
  overflow: visible !important;
}


/*———————————————————————————————
  Mobile Hamburger Toggle & Menu
———————————————————————————————*/

/* Hide on desktop */
@media (min-width: 1271px) {
  #mobile-header,
  #mobile-menu {
    display: none !important;
  }
}
@media (max-width: 1271px) {
  #mobile-header {
    display: block !important;
    position: fixed;
    z-index: 10000 !important;
  }

  /* — Hamburger button styling — */
/* 
  #mobile-header .hamburger {
    float: right;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #ffd700;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
  }
  #mobile-header .hamburger:hover {
    background: rgba(0,0,0,0.8);
  }
  #mobile-header .hamburger-box,
  #mobile-header .hamburger-box::before,
  #mobile-header .hamburger-box::after {
    content: "" ;
    display: block;
    width: 24px;
    height: 4px;
    background: #ffd700;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
  }
  #mobile-header .hamburger-box       { top: 50%; transform: translate(-50%, -50%); }
  #mobile-header .hamburger-box::before { top: 50% - 10px; }
  #mobile-header .hamburger-box::after  { top: 50% + 10px; }
*/
  /* — Off-canvas mobile menu panel — */
  #mobile-menu {
    position: fixed;
    top: 80px;   /* adjust if your header is taller/shorter */
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    /* start hidden, then JS toggles the .menu-opened class */
    display: none;
    transform: translateY(-110%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  #mobile-menu.menu-opened {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* — Menu items — */
  #mobile-menu .menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #mobile-menu .menu-mobile li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  #mobile-menu .menu-mobile li:last-child {
    border-bottom: none;
  }
  #mobile-menu .menu-mobile a {
    display: block;
    padding: 1rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
  }
  #mobile-menu .menu-mobile a:hover {
    color: #FFA500;
  }
}


/*Adjust the top border*/

@media (max-width: 1270px) {
  /* ALWAYS hidden unless .menu-opened */
  #mobile-menu {
    visibility: hidden !important;
    opacity: 0         !important;
    transform: translateY(-110%) !important;
    pointer-events: none !important;
  }

  /* ONLY visible when the user clicked */
  #mobile-menu.menu-opened {
    visibility: visible !important;
    top: 60px !important;
    opacity: 1         !important;
    transform: translateY(0)     !important;
    pointer-events: auto  !important;
  }
}

/* force mobile menu links gold */
#mobile-menu.menu-opened ul.menu-mobile li a {
  color: #ffd700 !important;
  opacity: 1 !important;
}

/*Monile menu back drop*/
/* Mobile menu backdrop + shadow + border */
@media (max-width: 1270px) {
    #mobile-menu,
    #mobile-menu.menu-opened {
        bottom: auto !important;
        height: auto !important;
        padding-bottom: 0px !important;
        padding-top: 20px !important;
        background: #001329 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
        border-bottom: 1px solid #002a4a !important;
    }
}
@media (max-width: 1270px) {
  #mobile-menu.menu-opened ul.menu-mobile li.menu-item,
  #mobile-menu.menu-opened ul.menu-mobile li.menu-item > a {
    border: none !important;
    border-bottom: none !important;
  }
}


@media (max-width: 1270px) {
  body:not(.header-mobile-scheme-dark) #mobile-header {
    background-color: #002144 !important;
    border-bottom: 1px solid #022b4a !important;
  }
}


/*hamburger lines fix*/

#mobile-header .hamburger {
  display: block !important;           /* ensure it’s visible */
  background: transparent !important;  /* force fully transparent background */
  border: none !important;             /* remove any border */
}

@media (max-width: 1270px) {
  #mobile-header .custom-logo-link.mobile-logo {
    display: block !important;
    margin: 8px 0 0 20px !important; /* top & left spacing */
  }
  #mobile-header .custom-logo {
    width: auto !important;
    height: 45px !important;           /* increase height */
  }
}
@media (max-width: 1270px) {
  #mobile-header {
    pointer-events: auto !important;
  }
  #mobile-header .custom-logo-link {
    pointer-events: auto !important;
    z-index: 10002 !important; /* ensures it sits above the hamburger */
  }
}

@media (max-width: 1270px) {
  /* Hide the desktop-brand logo when mobile menu appears */
  #logo {
    display: none !important;
  }
}
