
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  background: #44087D;
  height: 100px;
  padding: 0 20px;
}

.nav-center {
  font-weight: bold;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 100px;
}

.nav-right {
  margin-left: auto;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.nav-right a {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid white;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-right: 60px;
}





/* base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

a {
    color: white;
}
a:visited {
    color: white;
}
a:hover {
    color: #6F86FF;
}

body {
    background-color: rgb(0, 0, 0);
    font-family: sans-serif;
}
  


/* off-screen-menu */


.off-screen-menu a {
  text-decoration: none;   /* removes underline */
  color: white;            /* ensures visible on black background */
  border: none;            /* removes bottom borders some frameworks add */
}


.off-screen-menu {
    background-color:  rgb(0, 0, 0);
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    line-height: 1.8; /* ← increase this value for more spacing */


    font-size: 3rem;
    transition: .3s ease;
}


.off-screen-menu.active {
    right: 0;

}


.off-screen-menu {
  z-index: 99999; /* higher than .nav (which is 9999) */
}


/* Default: show full nav, hide hamburger */
.ham-menu {
  display: none;
  height: 50px;
  width: 40px;
  margin-left: auto;
  position: relative;
  z-index: 10000;
  cursor: pointer;
}

/* On small screens (mobile): show hamburger, hide regular nav */
@media (max-width: 768px) {
  .ham-menu {
    display: block;
  }

  .nav-center,
  .nav-right {
    display: none;
    
  }
}


.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}
