/*
 * MODERNE CLEAN NAVIGATIE
 * Voor UxWave Studio - Premium maar niet over the top
 */

/* ===== HEADER UPGRADE ===== */
.header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - subtiel glassmorphism */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo hover effect */
.navbar-brand {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ===== NAV LINKS - MODERNE STYLING ===== */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* Active state met subtiele indicator */
.nav-link.active {
  color: #2563eb;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 2px;
}

/* Underline animation on hover */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-link:hover::before {
  width: calc(100% - 32px);
}

/* Don't show underline if already active */
.nav-link.active::before {
  display: none;
}

/* ===== MOBILE MENU UPGRADE ===== */
#nav-toggle:checked ~ #nav-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

/* Mobile nav links spacing */
@media (max-width: 1023px) {
  .nav-link {
    margin: 4px 0;
    padding: 12px 20px !important;
  }
}

/* ===== HAMBURGER ICON - MODERNE ANIMATIE ===== */
#show-button,
#hide-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

label[for="nav-toggle"]:hover svg {
  color: #2563eb;
  transform: scale(1.1);
}

/* ===== CTA BUTTON STYLING ===== */
.header .btn-primary {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

/* ===== SMOOTH ANIMATIONS ===== */
.navbar-nav {
  animation: fadeInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== BETERE SPACING ===== */
.navbar {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.header.scrolled .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===== LOGO STYLING ===== */
.navbar-brand img {
  transition: filter 0.3s ease;
}

.navbar-brand:hover img {
  filter: brightness(0.95);
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (min-width: 1024px) {
  .navbar-nav {
    gap: 4px;
  }
}

/* ===== SUBTLE GRADIENT BACKGROUND (optioneel) ===== */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(37, 99, 235, 0.1) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header.scrolled::before {
  opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
.nav-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===== MICRO-INTERACTIONS ===== */
.nav-item {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-item:nth-child(8) { animation-delay: 0.4s; }
.nav-item:nth-child(9) { animation-delay: 0.45s; }

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

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.header,
.nav-link,
.navbar-brand {
  will-change: transform;
}

/* Turn off animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
