/* ========== RESET ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*:before,
*:after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  font-family: 'Fira Mono', monospace;
  font-size: 16px;
  background-color: #000000; /* Black background */
  color: #EAEAEA;      /* Light gray text */
  line-height: 1.6;
}
/* ========== NAVBAR ========== */
.menu {
  background: rgba(0, 191, 255, 0.1); /* Transparent neon blue */
  height: 4rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  display: flex;
  justify-content: center;
  color: #EAEAEA;
  transition: transform 0.3s ease;
  box-shadow: 0px 0 10px rgba(0,0,0,0.6);
}
.menu ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.menu > ol {
  max-width: 1000px;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.menu > ol > .menu-item {
  position: relative;
  flex: 1 0 auto;
  padding: 0.75rem 0;
  line-height: 2.5rem;
  text-align: center;
}
.menu > ol > .menu-item a {
  display: block;
  color: #EAEAEA;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
  transition: color 0.15s linear, background 0.15s linear;
}
.menu > ol > .menu-item:hover > a {
  color: #00BFFF;
  text-shadow: 0 0 6px #00BFFF;
}
.menu > ol > .menu-item:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #00BFFF;
  transition: transform 0.2s ease;
}
.menu > ol > .menu-item:hover:after {
  transform: translateX(-50%) scale(1);
}

/* Submenu container */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}
.menu > ol > .menu-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sub-menu .menu-item {
  padding: 0.5rem 0;
  background: rgba(0, 191, 255, 0.15);
  opacity: 0;
  transform-origin: bottom;
}
.sub-menu .menu-item a {
  display: block;
  padding: 0 0.75rem;
  color: #EAEAEA;
  text-decoration: none;
}
.sub-menu .menu-item:hover {
  background: #000000;
}
.sub-menu .menu-item:hover a {
  color: #FFFFFF;
}

/* Submenu animation sequence */
.menu > ol > .menu-item:hover > .sub-menu .menu-item {
  animation: enter 0.28s ease forwards;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(2) {
  animation-delay: 0.08s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(3) {
  animation-delay: 0.16s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(4) {
  animation-delay: 0.24s;
}
.menu > ol > .menu-item:hover > .sub-menu .menu-item:nth-child(5) {
  animation-delay: 0.32s;
}
/* Allow submenu to appear on hover */
.menu-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Smooth fade + slide-in animation for submenu items */
@keyframes enter {
  from {
    opacity: 0;
   
  }
  to {
    opacity: 1;

  }
}

/* Hidden navbar */
.menu.hidden {
  transform: translateY(-100%);
}

/* Mobile */
@media screen and (max-width: 600px) {
  .menu {
    position: relative;
  }
  .menu:after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    right: 1rem;
    width: 30px;
    height: 4px;
    background: #EAEAEA;
    box-shadow: 0 10px #EAEAEA, 0 -10px #EAEAEA;
  }
  .menu > ol {
    display: none;
    background: rgba(0, 191, 255, 0.15);
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    animation: fade 0.2s ease-out;
  }
  .menu > ol > .menu-item {
    flex: 0;
    opacity: 0;
    animation: enter 0.3s ease-out forwards;
  }
  .menu > ol > .menu-item + .menu-item {
    margin-top: 0.75rem;
  }
  .menu:hover > ol {
    display: flex;
  }
}
  .menu-item.logo img {
    height: 40px;        /* Adjust as needed (typical: 30–60px) */
    width: auto;         /* Keeps correct aspect ratio */
    vertical-align: middle;
    transition: transform 0.3s ease;
  }

  .menu-item.logo img:hover {
    transform: scale(1.1); /* Small hover zoom effect (optional) */
  }
/* ========== SCROLL PROGRESS BAR ========== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  background: linear-gradient(90deg, #00BFFF, #1CFFFF);
  box-shadow: 0 0 6px #00BFFF;
  z-index: 9999;
  transition: width 0.2s ease;
}
