/* =========================================
   BASE
   ========================================= */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================
   NAVBAR — SLIDE DOWN ON PAGE LOAD
   ========================================= */
.navbar {
  background: linear-gradient(135deg, #0eb31e 0%, #6f42c1 100%) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  animation: navSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Keep gradient on scroll — slightly darker */
.navbar.scrolled {
  background: linear-gradient(135deg, #155fa8 0%, #5a32a3 100%) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* =========================================
   LOGO — POP IN AFTER NAVBAR ARRIVES
   ========================================= */
.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  animation: logoPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both;
}

.navbar-brand:hover {
  transform: scale(1.08);
}

@keyframes logoPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #ffc107, #ff8c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* =========================================
   NAV LINKS — STAGGERED FADE IN
   ========================================= */
.navbar .nav-item {
  animation: linkFadeIn 0.4s ease both;
  opacity: 0;
}

.navbar .nav-item:nth-child(1) { animation-delay: 0.5s; }
.navbar .nav-item:nth-child(2) { animation-delay: 0.6s; }
.navbar .nav-item:nth-child(3) { animation-delay: 0.7s; }
.navbar .nav-item:nth-child(4) { animation-delay: 0.8s; }
.navbar .nav-item:nth-child(5) { animation-delay: 0.9s; }
.navbar .nav-item:nth-child(6) { animation-delay: 1.0s; }

@keyframes linkFadeIn {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ffc107 !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #ffc107 !important;
  background-color: rgba(255, 193, 7, 0.12);
  border-radius: 6px;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #ffc107;
  border-radius: 2px;
}

/* =========================================
   DROPDOWN
   ========================================= */
.dropdown-menu {
  background: linear-gradient(135deg, #1a6fc4 0%, #6f42c1 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: dropFade 0.2s ease forwards;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  color: #fff;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-warning {
  background: linear-gradient(45deg, #ffc107, #ff8c00);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
  animation: linkFadeIn 0.4s ease 1.1s both;
}

.btn-warning:hover {
  background: linear-gradient(45deg, #ff8c00, #e68900);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
}

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, #1a6fc4 0%, #6f42c1 100%);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    padding: 0.5rem 0 !important;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* =========================================
   LANDING PAGE
   ========================================= */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.feature-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-image, .hero-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2.5rem;
  }
}