/* Custom Navigation Styles */
.custom-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 249, 250, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  display: none; /* Hidden by default, shown only on mobile */
}

.custom-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.custom-nav-logo {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.custom-nav-logo:hover {
  transform: scale(1.05);
}

.hamburger-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.hamburger-menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.hamburger-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 1px;
  margin: 3px auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-menu.active {
  background: linear-gradient(135deg, #e63946 0%, #dc2626 100%);
  transform: rotate(180deg);
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.custom-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    rgb(248, 249, 250) 100%
  );
  backdrop-filter: blur(20px);
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  opacity: 0;
  transform: translateY(-20px);
}

.custom-nav-menu.active {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

.custom-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-nav-menu li {
  padding: 0 30px;
  margin: 0;
  opacity: 0;
  transform: translateX(-30px);
  animation-fill-mode: forwards;
}

.custom-nav-menu.active li {
  animation: slideInLeft 0.6s ease forwards;
}

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

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.custom-nav-menu a {
  display: block;
  padding: 18px 0;
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.custom-nav-menu a::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.custom-nav-menu a:hover::before {
  left: 100%;
}

.custom-nav-menu a:hover {
  color: #ff6b35;
  padding-left: 20px;
  background: rgba(255, 107, 53, 0.05);
  border-radius: 12px;
  margin: 0 -15px;
  padding-right: 15px;
}

.custom-nav-menu li:last-child a {
  border-bottom: none;
}

.nav-cta {
  padding: 25px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.05) 0%,
    rgba(247, 147, 30, 0.05) 100%
  );
  margin: 20px 30px;
  border-radius: 16px;
  border: 2px solid rgba(255, 107, 53, 0.1);
}

.nav-cta form {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-btn {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

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

.nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.nav-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Show custom nav only on mobile, hide desktop nav on mobile */
@media (max-width: 991px) {
  .custom-nav-overlay {
    display: block;
  }

  .top {
    display: none;
  }
}

/* Hide custom nav on desktop, show desktop nav */
@media (min-width: 992px) {
  .custom-nav-overlay {
    display: none;
  }

  .top {
    display: block;
  }
}
