.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 71, 0.9);
    border-bottom: 1px rgba(0, 0, 71, 0.9);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background:rgba(0, 0, 71, 0.9); /* Slightly darker blue when scrolled */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: rgb(255, 255, 255);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glass Morphism Base */





/* Navigation Container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.logo-icon {
    margin-right: 0.5rem;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.950rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transform: translateY(-1px);
}

.nav-icon {
    margin-right: 0.5rem;
}

.dropdown-arrow {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: rgba(0, 0, 71, 0.9);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  z-index: 1000;
  pointer-events: none; /* Prevent accidental hover */
}

/* Show dropdown when hovering parent or menu */
.nav-item:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Menu Button */


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: no;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 50vh;
    background: rgba(8, 5, 5, 0.05);
    background-color: #667eea;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 998;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 1rem;
}

/* Mobile Navigation Items */
.mobile-nav-item {
    margin-bottom: 0.25rem;
}

.mobile-nav-link {
    display: none;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-link {
    display: flex;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-icon {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Dropdown */
.mobile-nav-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-text {
    display: flex;
    align-items: center;
}

.mobile-dropdown-arrow {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 1rem;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Submenu */
.mobile-submenu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.mobile-submenu-button:hover {
    background: rgba(1, 0, 0, 0.1);
}

.mobile-submenu.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 1rem;
}

.mobile-submenu.active .mobile-submenu-content {
    max-height: 300px;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.mobile-submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Enhanced mobile backdrop blur */
    
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 5rem 0.75rem 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .features-card {
        padding: 1rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .dropdown-menu {
        min-width: 14rem;
    }
    
    .submenu-content {
        min-width: 12rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    
    
    .dropdown-menu, .submenu-content {
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.submenu-item:focus,
.mobile-nav-link:focus,
.mobile-nav-button:focus,
.mobile-dropdown-item:focus,
.mobile-submenu-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(20px)) {
    
    
    .dropdown-menu, .submenu-content {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mobile-menu {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .features-card {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* === NAVBAR CONSISTENCY & ACCESSIBILITY PATCH (add at end of your main CSS) === */

/* 1) Normalize anchors vs. buttons inside nav so they look IDENTICAL */
.glass-nav .nav-link,
.glass-nav .nav-link:where(a, button) {
  font: inherit;
  color: white;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;     /* unified clickable area */
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Some browsers apply button-specific default padding — force reset */
.glass-nav button.nav-link {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.9rem 1.2rem;
}

/* 2) Unify font-size/weight across all nav items */
.glass-nav .nav-link,
.glass-nav .nav-item > .nav-link,
.glass-nav .dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
}

/* 3) Icons should align & size consistently with text */
.glass-nav .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transform: translateY(1px); /* subtle optical alignment */
}

/* 4) Make every slot in the row equal in height */
.glass-nav .nav-item {
  display: flex;
  align-items: center;
}

/* 5) Active/hover underline kept consistent for both <a> and <button> */
.glass-nav .nav-link { position: relative; }
.glass-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  opacity: .9;
}
.glass-nav .nav-link:hover::after,
.glass-nav .nav-link:focus-visible::after,
.glass-nav .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 6) Dropdown trigger looks the same as other links */
.glass-nav .dropdown > .nav-link.dropdown-toggle {
  display: inline-flex;
  gap: .5rem;
}
.glass-nav .dropdown > .nav-link .chevron {
  width: 14px; height: 14px;
}

/* 7) Dropdown menu spacing & min-width for tidy layout */
.glass-nav .dropdown-menu {
  min-width: 220px;
  padding: .5rem;
}
.glass-nav .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .8rem;
  font-size: .94rem;
}

/* 8) Focus-visible for keyboard users (keeps your colors) */
.glass-nav .nav-link:focus-visible,
.glass-nav .dropdown-menu a:focus-visible {
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 2px;
  border-radius: .5rem;
}

/* 9) Compact touch target on very small screens (keeps visual balance) */
@media (max-width: 420px) {
  .glass-nav .nav-link,
  .glass-nav button.nav-link {
    padding: 0.8rem 1rem;
  }
}

/* 10) Reduced motion users: keep underline but remove animations */
@media (prefers-reduced-motion: reduce) {
  .glass-nav .nav-link::after { transition: none; }
}

/* ========= PATCH 1: BASE NAV NORMALIZATION (Desktop) ========= */
/* Bind the navbar to a font you already load (Montserrat). */
.glass-nav{
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}

/* Equal size/weight for all top-level nav items (links & buttons) */
.glass-nav .nav-link,
.glass-nav .nav-item > .nav-link,
.glass-nav .dropdown-toggle{
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Make <a> and <button> look identical and align content */
.glass-nav .nav-link,
.glass-nav .nav-link:where(a,button){
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border: 0;
  background: none;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.glass-nav button.nav-link{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.9rem 1.2rem;
}

/* Keep each slot in the row equal in height */
.glass-nav .nav-item{
  display: flex;
  align-items: center;
}

/* Icon sizing/alignment */
.glass-nav .nav-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transform: translateY(1px);
}

/* ========= PATCH 2: DESKTOP DROPDOWN PARITY ========= */
.glass-nav .dropdown-menu{
  font-family: inherit; /* match navbar */
}

/* Make dropdown items match main nav size, weight, padding */
.glass-nav .dropdown-menu .dropdown-item,
.glass-nav .dropdown-menu a{
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: white;
  white-space: nowrap;
  background: none;
  border: 0;
}

/* Icons inside dropdown items */
.glass-nav .dropdown-menu .nav-icon,
.glass-nav .dropdown-menu .dropdown-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transform: translateY(1px);
}

/* Chevron next to dropdown triggers (desktop) */
.glass-nav .dropdown-arrow{ width: 14px; height: 14px; }

/* ========= PATCH 3: MOBILE MENU PARITY ========= */
/* Make mobile links and dropdown items match desktop sizing */
.mobile-nav-link,
.mobile-dropdown-item{
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: white;
}

/* Mobile dropdown trigger button matches too */
.mobile-nav-button{
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-nav-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transform: translateY(1px);
}
.mobile-dropdown-arrow{ width: 14px; height: 14px; }

/* ========= OPTIONAL: tiny tweaks ========= */
@media (max-width: 420px){
  .glass-nav .nav-link,
  .glass-nav button.nav-link,
  .glass-nav .dropdown-menu .dropdown-item,
  .glass-nav .dropdown-menu a,
  .mobile-nav-link,
  .mobile-dropdown-item,
  .mobile-nav-button{
    padding: 0.8rem 1rem; /* slightly tighter on very small screens */
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  .glass-nav .nav-link::after{ transition: none; }
}

/* Subtle elevation when scrolled (keeps your colors) */
.glass-nav.scrolled {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  backdrop-filter: saturate(120%) blur(6px); /* optional, remove if you don't use glass effect */
}
/* === NAV COLOR FIX – put at the very end === */
.glass-nav { color: white; }  /* base foreground for everything inside */

.glass-nav a:link,
.glass-nav a:visited,
.glass-nav .nav-link,
.glass-nav .dropdown-item,
.glass-nav .dropdown-menu a {
  color: white;  /* override earlier 'color: white' */
}

/* SVG icons that use currentColor will follow white automatically.
   If any icon is still dark (e.g., inline SVG with hard-coded stroke),
   force it: */
.glass-nav .nav-icon,
.glass-nav .dropdown-icon {
  color: #fff;
  stroke: currentColor;
  fill: none; /* if needed */
}

