* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* гол фон */
  color: #e0e0e0;           /* ерөнхий текст */
}

/* Header */
header {
  background-color: #7318a0; /* үндсэн ягаан */
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

header a img {
  max-width: 180px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #fff;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffcc00; /* шар – тод контраст */
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 30px;
    background: #7318a0;
    border-radius: 8px;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
/* Footer */
footer {
  background: #7318a0;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}
