html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 
#########################################
#                HEADER                 #
#########################################
*/

header {
  display: flex;
  align-items: center;
  /* center logo + nav vertically */
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: rgba(94, 94, 94, 0.089) 0px 5px 15px;
  padding: 5px 10px;
  z-index: 10;
  min-height: 60px;
}

header {
  backdrop-filter: blur(6px);
}


.header-logo {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 8px;
  margin-left: 40px;
}

/* 
#########################################
#                  BODY                 #
#########################################
*/

main {
  flex: 1;
  padding-top: 160px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-size: cover;
}

/* 
#########################################
#                FOOTER                 #
#########################################
*/

footer {
  width: 100%;
  bottom: 0;
  color: #000000;
  text-align: center;
  box-shadow: rgba(94, 94, 94, 0.403) 0px 5px 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* 
#########################################
#                  NAV                  #
#########################################
*/

/* push nav to the right side of the header */
nav {
  margin-left: auto;
  margin-right: 40px;
  padding: 20px 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

nav a {
  color: #000000;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin: 0 15px;
}


nav a::before,
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #e2e2e2bb;
  transition: all .5s;
  margin-top: -5px;
  margin-bottom: -5px;
}

nav a::before {
  top: 0;
  left: 0;
}

nav a::after {
  bottom: 0;
  right: 0;
}

nav a:hover::before {
  width: 100%;
  transition: width .5s ease-in-out;
}

nav a:hover::after {
  width: 100%;
  transition: width 0.5s ease-in-out 0.25s;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .header-logo {
    left: 0%;
    margin: 0;
  }
}

main {
  padding-top: 120px;
}

.header-logo {
  left: 50%;
  margin: 0;
  /* kill desktop margin */
}

/* make sure nav itself doesn't push layout around */
.site-nav {
  position: relative;
  z-index: 3000;
  margin-right: 10px;
}

/* checkbox stays invisible but present */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* hamburger/X button must be fixed so it stays top-right */
.hamburger {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 4001;
  /* above menu */
  margin-right: 10px;
  margin: 0 15px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 10px;
  background: #000;
  transition: transform 0.35s ease, opacity 0.2s ease;
  transform-origin: left center;
}

/* the slide-in panel */
.site-nav .nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(80vw, 320px);
  padding: 90px 0 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);

  transform: translateX(110%);
  transition: transform 0.35s ease;
  z-index: 4000;
}

/* override your desktop nav UL flex rules */
.site-nav .nav-links li {
  width: 100%;
  list-style: none;
  padding-left: 24px;
}

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

/* open/close */
.nav-toggle:checked~.nav-links {
  transform: translateX(0);
}

/* animate hamburger into X */
.nav-toggle:checked~.hamburger span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle:checked~.hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked~.hamburger span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Desktop: normal row */
.site-nav .nav-links {
  display: flex;
}

.no-transitions * {
  transition: none !important;
}