*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
}

/* Navbar */
.navbar {
  background-color: #081424;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlideDown 0.8s ease forwards;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
  animation: fadeIn 1s ease forwards 0.5s;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  animation: fadeIn 1s ease forwards 0.8s;
}

.nav-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeUp 0.5s ease forwards;
}
.nav-link:nth-child(1) { animation-delay: 1s; }
.nav-link:nth-child(2) { animation-delay: 1.2s; }
.nav-link:nth-child(3) { animation-delay: 1.4s; }
.nav-link:nth-child(4) { animation-delay: 1.6s; }

.nav-link:hover {
  color: #1d9bf0;
  transform: translateY(-2px);
}

/* Hamburger (mobile only) */
.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: none;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 0.6s ease forwards 1.8s;
}

/* Mobile Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 90vh;
  width: 250px;
  background: #0b1a2f;
  transition: right 0.4s ease-in-out;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 20px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu .mobile-link {
  display: block;
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 10px 0;
  transition: 0.3s;
  opacity: 0;
  transform: translateX(20px);
}
.mobile-menu.show {
  padding-top: 120px; /* adjust for more top space */
  margin-top: 8px; /* remove margin-top: 8px if set */
  z-index: 999;
}

.mobile-menu ul li {
  margin-bottom: 20px; /* space between links */
}
.mobile-menu ul li:last-child {
  margin-bottom: 0;
}

.mobile-menu.show .mobile-link {
  animation: slideInRight 0.4s ease forwards;
}
.mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.2s; }
.mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.4s; }
.mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.6s; }
.mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.8s; }

.mobile-menu .mobile-link:hover {
  color: #1d9bf0;
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* ✨ Animations */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
