* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button:hover,
a:hover,
.join-btn:hover {
  cursor: url("../pointer.png"), pointer;
}

body {
  cursor: url("../cursor.png"), auto;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: radial-gradient(
    ellipse at top,
    #1a1a2e 0%,
    #16213e 25%,
    #0f0f23 100%
  );
  color: #eee;
  /* padding-top: 120px; */
  overflow-x: hidden;
}

.hamburger {
  width: 30px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 2001;
  position: relative;

  width: 30px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 1500;
  backdrop-filter: blur(0px);
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

/* Enhanced Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  background: linear-gradient(
    165deg,
    rgba(26, 26, 46, 0.98) 0%,
    rgba(22, 33, 62, 0.98) 50%,
    rgba(15, 15, 35, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  padding: 80px 0 30px 0;
  transform: translateX(110%) rotateY(15deg);
  transform-origin: right center;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow: hidden;
  border-left: 2px solid rgba(159, 73, 240, 0.3);
}

.sidebar.open {
  transform: translateX(0) rotateY(0deg);
}

/* Animated Background Elements */
.sidebar::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 0, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: float-orb 8s ease-in-out infinite;
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(159, 73, 240, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float-orb 10s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-30px, 30px) scale(1.1);
  }
  66% {
    transform: translate(20px, -20px) scale(0.9);
  }
}

.sidebar-header {
  padding: 0 30px 30px;
  border-bottom: 1px solid rgba(159, 73, 240, 0.2);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease 0.2s;
}

.sidebar.open .sidebar-header {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00f, #9f49f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.sidebar-tagline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s;
}

.sidebar.open .close-btn {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.close-btn:hover {
  color: #fff;
  background: rgba(159, 73, 240, 0.2);
  transform: rotate(90deg) scale(1.1);
}

.sidebar-nav {
  list-style: none;
  padding: 30px 0;
  position: relative;
  z-index: 2;
}

.sidebar-nav li {
  opacity: 0;
  transform: translateX(50px) rotateY(20deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar.open .sidebar-nav li {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.sidebar.open .sidebar-nav li:nth-child(1) {
  transition-delay: 0.15s;
}
.sidebar.open .sidebar-nav li:nth-child(2) {
  transition-delay: 0.2s;
}
.sidebar.open .sidebar-nav li:nth-child(3) {
  transition-delay: 0.25s;
}
.sidebar.open .sidebar-nav li:nth-child(4) {
  transition-delay: 0.3s;
}
.sidebar.open .sidebar-nav li:nth-child(5) {
  transition-delay: 0.35s;
}
.sidebar.open .sidebar-nav li:nth-child(6) {
  transition-delay: 0.4s;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ccc;
  padding: 18px 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00f, #9f49f0);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before {
  transform: scaleY(1);
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 255, 0.1) 0%,
    rgba(159, 73, 240, 0.1) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.sidebar-nav a:hover::after {
  transform: translateX(0);
}

.sidebar-nav a:hover {
  color: #fff;
  padding-left: 40px;
}

.nav-icon-wrapper {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-right: 18px;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid rgba(159, 73, 240, 0.2);
}

.sidebar-nav a:hover .nav-icon-wrapper {
  transform: rotate(360deg) scale(1.15);
  background: rgba(159, 73, 240, 0.2);
  box-shadow: 0 0 25px rgba(159, 73, 240, 0.4);
}

.nav-icon-wrapper lord-icon {
  width: 28px;
  height: 28px;
}

.nav-text {
  position: relative;
  z-index: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Particle Container */
/* .particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #9f49f0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(159, 73, 240, 0.8);
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .logo {
    margin-left: 15px;
  }

  .hamburger {
    display: flex;
    margin-right: 15px;
  }

  .header {
    width: 94%;
  }

  .sidebar {
    width: 85%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 90%;
  }
}



/*Bounce animation */
@keyframes bounce {
  0% {
    transform: translate(-50%, -2px);
  }

  50% {
    transform: translate(-50%, 0);
  }

  100% {
    transform: translate(-50%, -2px);
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 40px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  animation: bounce 1s infinite;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  background: linear-gradient(90deg, #00f, #9f49f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  justify-content: flex-end;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: #ccc;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #fff;
}

.hamburger {
  width: 30px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  /* padding: 60px 20px; */
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar a {
  display: flex;
  text-decoration: none;
  color: #ccc;
  margin: 20px 0;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.sidebar a:hover {
  color: #fff;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #fff;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Sidebar fluid type openingg*/
.sidebar {
  transform: translateX(100%) scaleX(0.8) scaleY(1.2);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.sidebar.open {
  transform: translateX(0) scaleX(1) scaleY(1);
}

/* fade-in */
.sidebar a {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sidebar.open a {
  opacity: 1;
  transform: translateX(0);
}

.sidebar.open a:nth-child(2) {
  transition-delay: 0.1s;
}
.sidebar.open a:nth-child(3) {
  transition-delay: 0.2s;
}
.sidebar.open a:nth-child(4) {
  transition-delay: 0.3s;
}
.sidebar.open a:nth-child(5) {
  transition-delay: 0.4s;
}
.sidebar.open a:nth-child(6) {
  transition-delay: 0.5s;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .logo {
    margin-left: 15px;
  }

  .hamburger {
    display: flex;
    margin-right: 15px;
  }

  .header {
    width: 94%;
  }
}

body,
html {
  overflow-x: hidden;
}
