/* =========================
RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
FONT
========================= */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/Nobody Talks.otf') format('opentype');
}

#logo{
  padding-top: 7px;
}

/* =========================
BODY
========================= */
body {
  font-family: 'MyFont', sans-serif;
}

/* =========================
NAV WRAPPER
========================= */
#nav-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* =========================
NAV BAR
========================= */
#nav {
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 72px;

  padding: 0 2rem;
  background-color: #ffffff;
  position: relative;
}

/* =========================
LOGO
========================= */
#nav img {
  width: 130px;
  height: auto;
}

/* =========================
LINKS
========================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  color: rgb(58, 58, 58);
  text-decoration: none;
  transition: transform 0.2s ease;
  position: relative;
}

/* hover */
.nav-links a:hover {
  transform: scale(1.08);
}

/* =========================
ACTIVE LINK
========================= */
.nav-links a.active {
  color: #000;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #000;
}

/* =========================
BURGER
========================= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  height: 3px;
  background: #000;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================
BURGER ANIMATION
========================= */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* =========================
MOBILE
========================= */
@media (max-width: 900px) {

  #nav {
    height: 64px;
    padding: 0 1.5rem;
  }

  #nav img {
    width: 110px;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;

    flex-direction: column;
    align-items: center;
    gap: 1.4rem;

    padding: 1.6rem 0;
    display: none;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links.active {
    display: flex;
  }
}