/* ===== Enhanced Navbar Styling - More Professional ===== */
.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(71, 183, 73, 0.1);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  font-family: 'Sora', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  color: var(--color-text-secondary) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  padding: 0.6rem 1.25rem !important;
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  /*color: var(--color-primary) !important;*/
  /*background-color: rgba(71, 183, 73, 0.08);*/
  /*transform: translateY(-1px) scale(1.02);*/
  /*box-shadow: 0 4px 12px rgba(71, 183, 73, 0.15);*/
}

.nav-link.active {
  color: var(--color-primary) !important;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 1px;
}

/* ===== Dropdowns - Enhanced ===== */
/* Hover handled by JS for smooth transitions */

.dropdown-menu.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  animation: none;
}

.mega-menu-attend {
  min-width: 650px;
}

@media (min-width: 992px) {
  .mega-menu-attend {
    left: 50% !important;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
  }
}

@media (max-width: 991.98px) {
  .mega-menu-attend {
    min-width: 100% !important;
    margin-top: 0.5rem;
  }
}

.dropdown-item {
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  margin-bottom: 0.25rem;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(71, 183, 73, 0.1), rgba(71, 183, 73, 0.05));
  color: var(--color-primary) !important;
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(71, 183, 73, 0.12);
}

.dropdown-header {
  color: var(--color-primary) !important;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(71, 183, 73, 0.2);
}

/* ===== Navbar Brand/Logo ===== */
.navbar-brand img {
  height: 48px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (min-width: 1200px) {
  .navbar-brand img {
    height: 56px;
  }
}

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

/* ===== Toggler ===== */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(71, 183, 73, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2864, 116, 107, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2871, 183, 73, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6 8 8 8-8m-16 8 8 8 8-8'/%3e%3c/svg%3e");
}

/* ===== Buttons ===== */
.btn-normal {
  position: relative;
  overflow: hidden;
}

.btn-normal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-normal:hover::before {
  left: 100%;
}

/* ===== Collapse Animation ===== */
.navbar-collapse {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Animations ===== */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Focus Visible for Accessibility ===== */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus-visible,
  .dropdown-item:focus-visible,
  /*.navbar-toggler:focus-visible {*/
  /*  outline: 2px solid var(--color-primary);*/
  /*  outline-offset: 2px;*/
  /*}*/
}

/* ===== Scroll Shrink (JS hook) ===== */
@media (min-width: 992px) {
  .navbar:not(.scrolled) .navbar-brand img {
    height: 56px;
  }
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem !important;
    margin: 0.25rem 0;
  }
  
  .dropdown-menu {
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  }
}

