/* Hamburger button styles */
.hamburger {
  position: fixed;      /* Fixed position to float above content */
  top: 30px;
  right: 30px;
  width: 30px;
  height: 25px;
  cursor: pointer;      /* Show pointer on hover */
  z-index: 1001; /* Above everything */
  display: flex;            /* Use flexbox to stack the lines */
  flex-direction: column;   /* Stack the lines vertically */
  justify-content: space-between;
}

.hamburger span {
  display: block;       /* Each line is a block element */
  height: 4px;          /* Thickness of the lines */
  background-color: #a7a7a7;  /* Line color */
  border-radius: 2px;   /* Rounded edges for a softer look */
  transition: all 0.3s ease;    /* Smooth transition for animation */
}

/* Side menu styles */
.side-menu {
  position: fixed;        /* Fixed position to float above content */
  top: 80px;              /* Push down from the top */
  right: 20px;            /* Push in from the right */
  width: 200px;           /* Slightly narrower */
  height: calc(100vh - 200px); /* Height adjusted for top and bottom margin */
  background-color: #222;
  color: white;         /* Text color */
  padding: 40px 20px;     
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-radius: 15px;    /* Rounded corners */
  transition: right 0.3s ease, opacity 0.3s ease;   /* Smooth slide and fade */
  z-index: 1002;          /* Below hamburger but above content */
  right: -320px; /* Start off-screen */
  opacity: 0;     /* Start invisible */
  backdrop-filter: blur(10px); /* Optional: subtle blur behind menu */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Light border for floating effect */
}
.side-menu ul {
  list-style: none;     /* Remove default list styling */
  padding: 0 20px;      /* Add horizontal padding for better spacing */
  margin: 0;            /* Remove default margin */
}

.side-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Separator line */
  margin: 20px 0;       /* Vertical spacing between items */
  padding: 15px 0; /* Vertical spacing */
}

.side-menu ul li a {
  color: white;       /* Link color */
  text-decoration: none;  /* Remove underline */
  font-size: 18px;
  transition: color 0.2s ease;  /* Smooth color change on hover */ 
  width: 100%;            /* Make links take full width for better clickability */
  padding-left: 5px; /* Slight left padding for better alignment on the separator lines*/
}

.side-menu ul li a:hover {
  color: #00aaff;     /* Change of links color on hover */
}

.side-menu ul li:last-child {
  border-bottom: none; /* Remove line after last item */
}

/* When menu is active */
.side-menu.active {
  right: 20px;            /* Slide in with margin */
  opacity: 1;             /* Fully visible */
  z-index: 1002;
}

/* Optional: Animate hamburger to X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.432); /* Dim effect */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900; /* Below menu */
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}
