/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Navbar base */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, #2c1446, #7a1d3c, #ff9800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 15px 40px;    
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ff9800;
}

.logo a {
    text-decoration: none; /* removes underline */
    color: inherit;        /* keeps the same color as the div */
  }
.logo a:hover {
    font-size: 2.0rem;       /* or whatever your logo size is */
    font-weight: bold;
    color: #fc9700;       /* ensures color remains the same on hover */
  }

/* Desktop menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  transition: all 0.3s ease;
}

nav ul li a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff9800;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.menu-toggle div {
  width: 100%;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    /* Glass blur effect */
    background: rgba(20, 20, 20, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
  }

  nav ul.show {
    transform: translateY(0);
    opacity: 1;
  }

  nav ul li {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlide 0.5s forwards;
  }

  nav ul.show li:nth-child(1) { animation-delay: 0.2s; }
  nav ul.show li:nth-child(2) { animation-delay: 0.4s; }
  nav ul.show li:nth-child(3) { animation-delay: 0.6s; }
  nav ul.show li:nth-child(4) { animation-delay: 0.8s; }
  nav ul.show li:nth-child(5) { animation-delay: 1s; }

  /* Hamburger transforms into an X */
  .menu-toggle.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-toggle.active div:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* Keyframes for fade + slide */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disable scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}
