/* Header layout: everything in a single line, centered */
.main-header {
  background-color: rgb(237, 247, 246);
  width: 100%;
  display: flex;
  justify-content: center; /* center content horizontally */
  /* allow background to show */
  padding: 15px 0;
}

/* Center container to hold logo + menu */
.header-center {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo and menu */
}

/* Logo in circle with hover effect */
.logo-link {
  display: block;
  gap: 10px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff; /* optional */
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo hover effect */
.logo-link:hover {
  transform: scale(1.1) ;
  box-shadow: 0 5px 20px rgba(19, 18, 18, 0.5);
}

/* Navigation */
.nav-bar {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
  margin: 10px 0 0 0; /* move menu 10px down */
}

.nav-list li a {
  text-decoration: none;
  color: #0b0b0b;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif; /* modern clean font */
  font-size: 16px;
  letter-spacing: 1px; /* adds spacing between letters */
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect: underline animation */
.nav-list li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #f0c040; /* highlight color */
  transition: width 0.3s;
}

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

.nav-list li a:hover {
  color: #f0c040; /* optional color change on hover */
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001; /* make sure it stays on top */
  margin-bottom: 10px;
}

.hamburger span {
  
  display: block;
  height: 3px;
  width: 100%;
  background-color: #013a63;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
    position: absolute;
    top: 30px;
    right: 20px; /* aligns hamburger to top-right corner */
  }

  /* Hide desktop nav-bar by default */
  .nav-bar {
    display: none;
    position: absolute;
    top: 70px; /* below header/logo */
    right: 0;
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  /* Show nav-bar when active */
  .nav-bar.active {
    display: flex;
  }

  /* Nav links column */
  .nav-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-list li a {
    font-size: 16px;
    padding: 5px 0;
  }
}

