* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    height: 200vh;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background: #00f7ff;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 260px;

    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-right: 1px solid rgba(255,255,255,0.08);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 80px 25px;
    gap: 20px;

    transition: 0.4s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 17px;
    font-weight: 500;
    color: #cbd5e1;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    transition: 0.3s;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    transform: translateX(6px);
  }

  .nav-links a.active {
    background: rgba(0, 247, 255, 0.15);
    color: #00f7ff;
  }

  .hamburger {
    display: flex;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
