header {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  background: linear-gradient(
    to right,
    #0d3664,
    #0d3664,
    #7c5b1df1
  ); 
  /* background: transparent; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 70px; 
  padding: 0 20px; 
  z-index: 1000; 
}

nav.sticky {
  background: rgba(13, 54, 100, 0.95); /* solid or semi-transparent */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px); /* optional glass effect */
}

/* Other styles remain the same */
header .logo {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}

header .nav-items {
  display: flex;
}

header .nav-items li {
  list-style: none;
  padding: 0 15px;
}

header .nav-items li a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

header .nav-items li a:hover {
  color: #000000;
}

/* Social media icons */
header .social-icons {
  display: flex;
  gap: 15px;
}

header .social-icons a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

header .social-icons a:hover {
  color: #0084ff;
}

/* Hamburger and cancel (cross) button styling */
header .menu-icon,
header .cancel-icon {
  display: none; /* Initially hidden */
  color: white; /* White color for the hamburger and cancel icons */
  font-size: 24px;
  padding: 0 10px;
  cursor: pointer;
}

.hide {
  display: none; /* Hide element */
}

.show {
  display: block; /* Show element */
}

/* Optionally, add transition effects for smooth visibility changes */
.menu-icon span,
.cancel-icon {
  transition: opacity 0.3s ease;
}

header .cancel-icon {
  display: none;
}