.navbar {
  height: 70px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  background-color: #050B18;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadedown 1s ease forwards;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #cbd5e1;
  padding: 6px 0;
  position: relative;
  transition: 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #ffffff;
}

.navbar nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  transition: width 0.3s ease;
}

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

.navbar nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  transition: width 0.3s ease;
}

.navbar nav a.active::after {
  width: 100%;
}


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

.menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  visibility: hidden;
  top: 60px;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #050B18;
  padding: 20px 0;
  border-radius: 0 0 8px 8px;
  border-bottom: 2px solid #3CE7FF;

}

.menu.active {
  visibility: visible;
  animation: fadeUp 1s ease forwards;
}

.menu a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 300;
  border-radius: 10px;
  padding: 10px 20px;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu a:active {
  color: cyan;
}


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadedown {
  0% {
    opacity: 0;
    transform: translateY(-25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toright {
  0% {
    opacity: 0;
    transform: translateX(-25px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toleft {
  0% {
    opacity: 0;
    transform: translateX(25px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0 30px;
  }
}

@media (max-width: 780px) {
  .navbar {
    height: 60px;
    padding: 0 20px;
  }

  .navbar nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-right {
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Pushes it to the right */
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
  transition: background 0.3s ease;
}

body.is-scrolling ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3CE7FF, #A367FF);
}

::-webkit-scrollbar-thumb:hover {
  background: #3CE7FF !important;
}

#scrollTopBtn {
  position: fixed;
  top: 80vh;
  right: 30px;
  width: 45px;
  height: 45px;
  background: rgba(5, 11, 24, 0.8);
  border: 1px solid rgba(60, 231, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  transform: translateY(-2px);
  background-color: rgba(176, 171, 171, 0.103);
}

#scrollTopBtn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

#scrollTopBtn:hover img {
  filter: brightness(0);
}

/* Page Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050B18;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 120px;
  height: 22px;
  border-radius: 20px;
  color: #3CE7FF;
  border: 2px solid;
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  margin: 2px;
  inset: 0 100% 0 0;
  border-radius: inherit;
  background: currentColor;
  animation: l6 2s infinite;
}

@keyframes l6 {
  100% {
    inset: 0;
  }
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.5s ease-out !important;
}

/* Global Toast Notification System */
.toast-container {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.toast {
  background: rgba(13, 20, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(60, 231, 255, 0.25);
  padding: 14px 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
  max-width: 380px;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-loader {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(60, 231, 255, 0.2);
  border-top-color: #3CE7FF;
  border-radius: 50%;
  animation: toast-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes toast-spin {
  to { transform: rotate(360deg); }
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3CE7FF, #A367FF);
  width: 100%;
  transform-origin: left;
}

.toast.show .toast-progress {
  animation: toast-progress-bar var(--duration, 3.5s) linear forwards;
}

@keyframes toast-progress-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 600px) {
  .toast-container {
    top: auto;
    bottom: 30px;
    left: 20px;
    right: 20px;
    align-items: center;
  }
  
  .toast {
    width: 100%;
    max-width: 400px;
    transform: translateY(120%) scale(0.9);
    justify-content: center;
    padding: 12px 20px;
  }
  
  .toast.show {
    transform: translateY(0) scale(1);
  }
}