:root {
  --main-color: #111;
  --gold-color: #E4AD42;
  --underline-transition-speed: .3s;
}

body {
  margin: 0;
  font-family: sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: white;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

.logo {
  flex: 1;
  text-align: center;
}

.logo img {
  width: 150px;
}

nav.main-navbar {
  flex: 5;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

nav.main-navbar a {
  position: relative;
  text-decoration: none;
  color: var(--main-color);
  font-family: 'Myanmar Text Regular', sans-serif;
  font-weight: 400;
  padding-bottom: 0.5rem;
  letter-spacing: .05em;
  margin-top: 0.5rem;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
}

nav.main-navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-color);
  transition: width var(--underline-transition-speed) ease-in-out;
}

nav.main-navbar a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  height: 3px;
  width: 24px;
  background: var(--main-color);
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 6px;
}

.burger span:nth-child(2) {
  top: 12px;
}

.burger span:nth-child(3) {
  top: 18px;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 12px;
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 12px;
}

header .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 998;
}

header .overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.5s ease;
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  padding: 1rem;
  font-size: 1.5rem;
  color: var(--main-color);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}

.mobile-menu.active a {
  animation: fadeIn 0.5s ease forwards;
}

.mobile-menu.active a:nth-child(1) {
  animation-delay: 0.0s;
}

.mobile-menu.active a:nth-child(2) {
  animation-delay: 0.5s;
}

.mobile-menu.active a:nth-child(3) {
  animation-delay: 1s;
}

.mobile-menu.active a:nth-child(4) {
  animation-delay: 1.5s;
}

.mobile-menu.active a:nth-child(5) {
  animation-delay: 2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1050px) {
  nav {
    display: none;
  }

  nav.main-navbar {
    display: none;
  }

  .feature__media {
    width: 100%;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    width: 30rem;
  }

  .mobile-menu a::after {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu {
    width: 100%;
  }
}