/* ------------------------------
   GLOBAL RESET + BASE
--------------------------------*/
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;

  background: #fff;
}

/* ------------------------------
   NAVBAR WRAPPER
--------------------------------*/
#navbar {
  font-family: 'Rubik Mono One', sans-serif;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
}

/* ------------------------------
   HEADER
--------------------------------*/
#header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  position: relative;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#menuOpenBtn {
  position: absolute;
  top: 40px;
  left: 15px;
  background: #fff;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 35%;
}

#menuOpenBtn i {
  font-size: 3rem;
  padding: 1rem;
  background: #fff;
  border-radius: 35%;
}

#menuOpenBtn i:hover {
  background: #000;
  color: #fff;
}

/* ------------------------------
   SITE TITLE
--------------------------------*/
#siteTitle {
  font-size: 7vw;
  font-family: 'Rubik Mono One', sans-serif;
  margin: 0;
  padding-top: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  word-spacing: 1em;
  transform: translateX(1px);
  white-space: nowrap;
  font-weight: 400;
}

#siteTitle a {
  color: #cc0001;
  text-decoration: none;
}

/* ------------------------------
   SIDEBAR
--------------------------------*/
#sidebar {
  position: fixed;
  top: 0;
  left: -100%; /* hidden */
  width: 100%;
  height: 100vh;
  background: #fff;
  padding-top: 80px;
  transition: left 0.4s ease;
  z-index: 3000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

#sidebar.open {
  left: 0;
}

/* Close button */
#sidebarCloseBtn {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  border: none;
  cursor: pointer;
}

#sidebarCloseBtn i {
  font-size: 3rem;
  padding: 1rem;
  background: #fff;
  border-radius: 35%;
}

#sidebarCloseBtn i:hover {
  background: #000;
  color: #fff;
}

/* ------------------------------
   MENU ITEMS
--------------------------------*/
.menu-items {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.menu {
  font-size: 2.5rem;
  padding: 20px 0;
  color: #cc0001;
  text-decoration: none;
  display: block;
  animation: zoomIn 0.6s ease forwards;
}

.menu:hover {
  color: #ffffff;
  background: #000000;
  text-decoration: none;
}

/* Staggered animations */
.menu_a {
  animation-delay: 0.2s;
}
.menu_b {
  animation-delay: 0.5s;
}
.menu_c {
  animation-delay: 0.8s;
}
.menu_d {
  animation-delay: 1.1s;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ------------------------------
   HEADER HIDE/SHOW ON SCROLL
--------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 999; /* visible state */
}

#header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none !important;
  z-index: -1 !important; /* fully behind everything */
}

/* ------------------------------
   RESPONSIVE TYPOGRAPHY
--------------------------------*/
@media (max-width: 1200px) {
  #siteTitle {
    font-size: 7vw;
  }
}

@media (max-width: 900px) {
  #menuOpenBtn {
    top: 15px;
    left: 15px;
  }
  #siteTitle {
    font-size: 6vw;
  }
  #sidebar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  #menuOpenBtn {
    z-index: 4000;
  }

  #siteTitle {
    font-size: 9vw;
    word-spacing: 0;
    white-space: normal;
    padding-top: 80px;
    z-index: 1;
  }

  .menu {
    font-size: 2rem;
  }

  /* FIX: ensure sidebar can open */
  #sidebar {
    left: -100%;
  }

  #sidebar.open {
    left: 0 !important;
  }
}

@media (max-width: 400px) {
  #siteTitle {
    font-size: 9vw;
    letter-spacing: 1px;
  }
  .menu {
    font-size: 1.6rem;
  }
  #sidebar {
    width: 100%;
  }
  #sidebarCloseBtn i,
  #menuOpenBtn i {
    font-size: 2rem;
    padding: 0.5rem;
  }
}
