/* ==========================================================================
   Jetfins - Public Navigation Bar Styles
   Premium Dark Glassmorphic Header with Expandable Dropdowns & Mobile Drawer
   ========================================================================== */

.public-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  background: rgba(8, 12, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(158, 240, 26, 0.09);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.public-header.scrolled {
  background: rgba(8, 12, 9, 0.96);
  border-bottom-color: rgba(158, 240, 26, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-container {
  max-width: var(--max-content-width, 1400px);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

/* Brand Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.nav-brand-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(158, 240, 26, 0.25);
  box-shadow: 0 0 15px rgba(158, 240, 26, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-brand:hover .nav-brand-img {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(158, 240, 26, 0.4);
}

.nav-brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand-title .accent-dot {
  color: var(--accent, #9ef01a);
  font-size: 26px;
  line-height: 0;
}

/* Desktop Navigation Menu */
.desktop-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

/* Top-level Nav Links & Dropdown Triggers */
.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: #c2ccc4;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 10px);
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.nav-link-btn:hover,
.nav-item.dropdown-open > .nav-link-btn,
.nav-item.active > .nav-link-btn {
  color: #ffffff;
  background: rgba(158, 240, 26, 0.06);
  border-color: rgba(158, 240, 26, 0.12);
}

/* Plus Dropdown Indicator Icon */
.dropdown-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent, #9ef01a);
  font-size: 10px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease, color 0.22s ease;
}

.nav-link-btn:hover .dropdown-plus-icon,
.nav-item.dropdown-open .dropdown-plus-icon {
  background: rgba(158, 240, 26, 0.2);
  color: #ffffff;
}

.nav-item.dropdown-open .dropdown-plus-icon {
  transform: rotate(45deg);
}

/* Desktop Dropdown Menu Card */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: rgba(14, 18, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(158, 240, 26, 0.16);
  border-radius: var(--radius-md, 16px);
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(158, 240, 26, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s;
  pointer-events: none;
  z-index: 1002;
}

.nav-item.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown Menu Item */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 10px);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: rgba(158, 240, 26, 0.08);
  border-color: rgba(158, 240, 26, 0.15);
  transform: translateX(3px);
}

.dropdown-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(158, 240, 26, 0.08);
  border: 1px solid rgba(158, 240, 26, 0.15);
  color: var(--accent, #9ef01a);
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  background: var(--accent, #9ef01a);
  color: #080c09;
  box-shadow: 0 0 14px rgba(158, 240, 26, 0.4);
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.dropdown-item-desc {
  font-size: 11.5px;
  color: #8a928c;
  line-height: 1.35;
  margin-top: 2px;
}

/* Navigation CTA Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-signin {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-nav-signin:hover {
  border-color: var(--accent, #9ef01a);
  color: var(--accent, #9ef01a);
  background: rgba(158, 240, 26, 0.06);
}

.btn-nav-cta {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #080c09 !important;
  background: var(--accent, #9ef01a);
  border: 1px solid var(--accent, #9ef01a);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 0 16px rgba(158, 240, 26, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-nav-cta:hover {
  background: var(--accent-hover, #b5f543);
  border-color: var(--accent-hover, #b5f543);
  box-shadow: 0 0 25px rgba(158, 240, 26, 0.55);
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(158, 240, 26, 0.18);
  border-radius: 12px;
  color: #ffffff;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
  background: rgba(158, 240, 26, 0.12);
  border-color: rgba(158, 240, 26, 0.35);
  color: var(--accent, #9ef01a);
  transform: scale(1.04);
}

/* Mobile Navigation Drawer & Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  z-index: 998;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: rgba(12, 17, 13, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid rgba(158, 240, 26, 0.18);
  padding: 80px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  z-index: 999;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8), -1px 0 20px rgba(158, 240, 26, 0.08);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2rem;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.mobile-nav-header-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #f0f4f1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
}

.mobile-nav-header-btn:hover,
.mobile-nav-header-btn:active,
.mobile-nav-item.open .mobile-nav-header-btn {
  background: rgba(158, 240, 26, 0.08);
  border-color: rgba(158, 240, 26, 0.22);
  color: var(--accent, #9ef01a);
}

.mobile-plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(158, 240, 26, 0.08);
  font-size: 11px;
  color: var(--accent, #9ef01a);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s;
}

.mobile-nav-item.open .mobile-plus-icon {
  transform: rotate(45deg);
  background: rgba(158, 240, 26, 0.2);
  color: #ffffff;
}

.mobile-sub-list {
  display: none;
  list-style: none;
  padding: 10px 0 6px 12px;
  margin: 0;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item.open .mobile-sub-list {
  display: flex;
  animation: mobileSubFadeIn 0.25s ease-out;
}

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

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #a4aea6;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 44px;
}

.mobile-sub-link:hover,
.mobile-sub-link:active {
  background: rgba(158, 240, 26, 0.08);
  color: #ffffff;
  transform: translateX(3px);
}

.mobile-sub-link i {
  color: var(--accent, #9ef01a);
  font-size: 12px;
  width: 18px;
  text-align: center;
}

.mobile-nav-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-footer > a.btn-outline,
.mobile-nav-footer > a.btn-hero-primary {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mobile-nav-footer > a.btn-outline {
  color: #e5f7ce;
  background: rgba(158, 240, 26, 0.07);
  border: 1px solid rgba(158, 240, 26, 0.48);
}

.mobile-nav-footer > a.btn-outline:hover {
  color: #ffffff;
  background: rgba(158, 240, 26, 0.14);
  border-color: #9ef01a;
}

.mobile-nav-footer > a.btn-hero-primary {
  color: #10170b;
  background: #a8f52a;
  border: 1px solid #c2ff57;
  box-shadow: 0 6px 20px rgba(158, 240, 26, 0.24);
}

.mobile-nav-footer > a.btn-hero-primary:hover {
  color: #10170b;
  background: #c0ff5b;
  box-shadow: 0 8px 26px rgba(158, 240, 26, 0.38);
  transform: translateY(-1px);
}

.mobile-nav-footer > a.btn-outline:focus-visible,
.mobile-nav-footer > a.btn-hero-primary:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .public-header {
    height: 68px;
  }
  .nav-container {
    padding: 0 20px;
  }
  .desktop-nav-menu,
  .nav-actions {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .public-header {
    height: 64px;
  }
  .nav-container {
    padding: 10px 16px;
  }
  .nav-brand-title {
    font-size: 20px;
  }
  .nav-brand-img {
    width: 34px;
    height: 34px;
  }
  .mobile-nav-drawer {
    width: 290px;
    padding: 74px 16px 24px;
  }
}

/* ==========================================================================
   Intersection Observer & Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  margin-top: 1rem;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

