/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
}

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 100%;
}

.logo img {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
}

.logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #944f1f;
  line-height: 1;
}

.nav-menu {
  display: flex;
  flex-direction: row;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding-left: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #004e92;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* Fully Responsive for All Small Devices */
@media (max-width: 767px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    min-height: 64px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    gap: 8px;
  }

  .logo a {
    display: flex;
    align-items: center;
    max-width: 100%;
  }

   .logo img {
    width: 20%;
    max-width: 10%px;
    height: auto;
    display: block;
  }

  .logo span {
    font-size: 1rem;
    line-height: 1;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu a {
    font-size: 1.1rem;
  }
}

/* Optional animation for mobile menu fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
