header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 0%, #334155 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
  height: fit-content;
}
.header-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.header-scrolled .nav-links a {
  color: #333;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  max-width: 1400px;
  margin: 0 auto;
  height: fit-content;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}
.logo i {
  color: #1e40af;
  -webkit-text-fill-color: #1e40af;
}
.logo img {
  width: 50px;
  height: 50px;
  filter: invert(100%);
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-scrolled .logo img {
  filter: invert(0%);
}
.gstin, .gst {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  margin-left: 10px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
}
.nav-links a {
  color: #bbafaf;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem;
}
.nav-links a.active {
  color: #1e40af;
}
.nav-links a.active::after {
  width: 100%;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: #1e40af;
  transform: scale(1.05);
}
/* Dropdown Styles */
.nav-item {
  position: relative;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.nav-item:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown li {
  list-style: none;
}
.dropdown a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #333;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.dropdown a:hover {
  background: #f1f5f9;
  color: #1e40af;
  padding-left: 1.5rem;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1e40af;
  cursor: pointer;
}
.mobile-menu-btn.active i::before {
  content: "\f00d";
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
  .logo {
    font-size: 16px;
  }
}
@media (max-width: 880px) {
  .nav-links {
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  nav {
    padding: 6px 15px;
    gap: 0;
  }
  .logo {
    font-size: 20px;
  }
  .logo img {
    width: 35px;
    height: 35px;
  }
  .gstin,
  .gst {
    font-size: 10px;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-links a {
    color: #333;
    font-size: 1rem;
    padding: 0.8rem 0;
    display: block;
    width: 100%;
  }
  .nav-item:hover .dropdown {
    display: none;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    background: #f8fafc;
    border-radius: 4px;
    margin: 0.5rem 0;
    display: none;
  }
  .nav-item.active .dropdown {
    display: block;
  }
  .dropdown a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #666;
  }
}
@media (max-width: 330px) {
  .logo {
    font-size: 15px;
  }
}
