/* Header */
.Header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(20, 20, 20, 0.85);
  box-shadow: 0 2px 24px 0 #e6000033;
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1.5px solid rgba(230, 0, 0, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s;

}

/* Logo and Name Section */
.first {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 40px;
}

.limg {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.first h1 {
  font-size: 2rem;
  color: white;
  font-family: "IBM Plex Sans", serif;
  display: flex;
  gap: 0.5rem;
  margin-left: 20px;
}

.first h1 span {
  margin: 0;
}

.first p {
  color: white;
  font-size: 0.9rem;
  font-style: italic;
  font-family: "IBM Plex Sans", serif;
  margin-left: 200px;
}

/* Navigation Bar */
.second {

  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.Bar a {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.4rem;
  transition: background-color 0.3s, color 0.3s;
}

.Bar a:hover {
  background-color: white;
  color: black;
  border-radius: 0.7rem;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  position: relative;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger .line {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: white;
  left: 0;
  transition: 0.4s ease;
  border-radius: 2px;
}

.hamburger .line:nth-child(1) {
  top: 0;
}

.hamburger .line:nth-child(2) {
  top: 9px;
}

.hamburger .line:nth-child(3) {
  top: 18px;
}

.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile View */
@media (max-width: 768px) {
  .first {
    margin-left: -5px;
  }
  .second {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: black;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 4rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .second.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .Bar a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .Header {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .first {
    gap: 0.5rem;
  }

  .first h1 {
    font-size: 1.4rem;
  }

  .first p {
    font-size: 0.7rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .limg {
    height: 50px;
    width: 50px;
  }

  .first h1 {
    margin-left: 5px;
    margin-top: 10px;
    font-size: 1.3rem;
  }

  .first p {
    margin-left: 55px;
    margin-top: 4px;
    font-size: 0.6rem;
  }

  .hamburger {
    margin-top: -5px;
  }
}
