/* Header & Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.70rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link i {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.05);
  transform: translateY(-1px);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle .dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 200px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 2rem;
}

.dropdown-item i {
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* CTA Button */
.nav-cta {
  flex-shrink: 0;
}

.header .cta-button,
.nav-cta .cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: var(--white) !important;
  text-decoration: none;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.header .cta-button:hover,
.nav-cta .cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4) !important;
}

.header .cta-button i,
.nav-cta .cta-button i {
  font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.mobile-menu:hover {
  background: rgba(30, 58, 138, 0.1);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Header Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
  
  .logo-img {
    height: 45px;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
  
  .brand-tagline {
    font-size: 0.35rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    margin-top: 0.5rem;
    border-radius: 8px;
  }
  
  .nav-cta {
    order: -1;
  }
  
  .header .cta-button,
  .nav-cta .cta-button {
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem 0.75rem;
  }
  
  .logo-text {
    display: none;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .nav-links {
    padding: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .header .cta-button,
  .nav-cta .cta-button {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
}
