 /* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 40px; /* decreased height */
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  
  /* Subtle glass effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* straight bottom line */
  border-radius: 0; /* remove round edges */
}

/* Background when scrolled */
.navbar.scrolled {
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px; /* exact height of navbar */
}

/* Logo */
.nav-logo img {
  height: 60px; /* slightly smaller logo to fit reduced navbar */
  width: 70px;
  
}

/* Nav Links */
.nav-links {
  font-family: 'Koulen', sans-serif;
  list-style: none;
  display: flex;
  gap: 40px;
  flex: 1; /* take remaining space opposite logo */
  justify-content: center; /* center links horizontally */
  align-items: center; /* center links vertically */
  margin: 0;
  padding: 0;
  margin-left:300px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #a08be0;
}

/* Hamburger */

/* Hamburger default hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 10001; /* on top of everything */
  margin-top:-20px;
 margin-left:200px;
 
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 3px;
  transition: all 0.3s ease;
  
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Mobile nav links (overlay style) */
/* Mobile nav links as full-screen overlay */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #431871; /* full purple */
    gap: 40px;
    padding: 0;
    margin: 0;
    display: none; /* hidden by default */
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
  }

  .nav-links.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav-links a:hover {
    color: #a08be0; /* highlight on hover */
  }

  .hamburger {
    display: flex;
  }
}

/* Mobile nav links */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between; /* ensures logo left, hamburger right */
    align-items: center;
  }

}


/* Medium Devices (Tablet) */
@media (max-width: 1024px) {
  .navbar {
    padding: 8px 30px;
  }

  .nav-container {
    height: 45px;
  }

  .nav-logo img {
    height: 50px;
    width: auto;

  }

  .nav-links {
    gap: 30px;
    margin-left: 0; /* remove fixed margin for better centering */
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

/* Small Devices (Mobile) */
@media (max-width: 768px) {
  .navbar {
    padding: 6px 20px;
  }

  .nav-container {
    flex-direction: column; /* stack logo and links */
    height: auto;
    gap: 8px;
  }

  .nav-logo img {
    height: 45px;
    width: auto;
    margin-left:-300px;
    align-items: center;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap; /* wrap links if they exceed screen width */
    justify-content: center;
    margin-left: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
  .navbar {
    padding: 5px 15px;
  }

  .nav-logo img {
    height: 40px;
    width: auto;
    margin-left:-150px;
    margin-top:10px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

