/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-scrolled {
  background-color: var(--white);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo-icon {
  margin-right: 8px;
  display: flex; /* Changed from default to better handle the image */
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 24px; /* Ensures consistent height with the image */
}

.logo-image {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain; /* Ensures the image maintains its aspect ratio */
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--black);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 70%;
    height: calc(100vh - 70px);
    transition: right 0.3s ease;
    padding: 32px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 16px 0;
  }

  .mobile-toggle {
    display: block;
  }
}