/* Custom Navbar CSS - Complete Rebuild */

/* Reset and hide Webflow navbar */
.navbar.w-nav {
  display: none !important;
}

/* Custom Navbar Container */
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(16, 34, 47, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
  z-index: 10000;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.custom-navbar.scrolled {
  background: rgba(16, 34, 47, 0.95) !important;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Navbar Content */
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

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

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

.nav-item {
  position: relative;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  padding: 10px 0 !important;
  transition: color 0.3s ease !important;
  position: relative !important;
}

.custom-navbar .nav-link:hover {
  color: #60a5fa !important;
}

.custom-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: width 0.3s ease;
}

.custom-navbar .nav-link:hover::after {
  width: 100%;
}

.custom-navbar .nav-link.cta {
  background: #60a5fa !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.custom-navbar .nav-link.cta:hover {
  background: #3b82f6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3) !important;
}

.custom-navbar .nav-link.cta::after {
  display: none !important;
}

/* Dropdown Styles */
.custom-navbar .nav-dropdown {
  position: relative;
}

.custom-navbar .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.custom-navbar .dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #ffffff !important;
  transition: transform 0.3s ease;
}

.custom-navbar .nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(16, 34, 47, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 220px;
  padding: 10px 0;
  margin-top: 10px;
}

.custom-navbar .nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-navbar .dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-navbar .dropdown-item:last-child {
  border-bottom: none;
}

.custom-navbar .dropdown-item:hover {
  background: rgba(96, 165, 250, 0.2) !important;
  color: #60a5fa !important;
  padding-left: 25px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #ffffff !important;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 30px 20px;
  z-index: 10001;
}

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

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: 10px;
}

.mobile-nav-link {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #60a5fa;
  padding-left: 10px;
}

.mobile-nav-link.cta {
  background: #60a5fa;
  color: white !important;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
  border-bottom: none;
}

.mobile-nav-link.cta:hover {
  background: #3b82f6;
  padding-left: 20px;
}

/* Mobile Dropdown */
.mobile-dropdown {
  margin-bottom: 10px;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  margin: 10px 0;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 500px;
}

.mobile-dropdown-item {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  padding: 12px 20px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-item:last-child {
  border-bottom: none;
}

.mobile-dropdown-item:hover {
  color: #60a5fa;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 25px;
}

/* Add top margin to body to account for fixed navbar */
body {
  margin-top: 70px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .custom-navbar {
    padding: 0 15px;
  }

  .navbar-logo img {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .custom-navbar {
    height: 60px;
    padding: 0 10px;
  }

  .navbar-logo img {
    height: 30px;
  }

  body {
    margin-top: 60px;
  }

  .mobile-nav {
    top: 60px;
  }
}

/* Smooth scrolling offset for fixed navbar */
html {
  scroll-padding-top: 80px;
}