/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
}


/* ============================== */
/* DESKTOP NAVIGATION */
/* ============================== */

nav {
  font-family: 'Montserrat', sans-serif;
  background-color: #000036f5;
  position: fixed;
  top: 0;
  width: 100%;
  height: 6rem;
  z-index: 10;
  box-shadow: 0 0.188rem 0.25rem #00000036; /* 3px 4px */
  text-align: center;
  overflow: hidden;
  font-size: 1.25rem;

  display: flex;
  align-items: center;
  justify-content: center;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8f9fa;
  font-weight: 200;
}

nav ul li:hover {
  font-weight: 600;
}

/* Logo sizing */
.nav-logo {
  width: 3.125rem; /* 50px */
}

/* Desktop menu structure */
.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.desktop-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f8f9fa;
  padding: 0.625rem 0.938rem; /* 10px 15px */
}

/* ============================== */
/* MOBILE NAVIGATION */
/* ============================== */

.hamburger-icon {
  display: none;
  font-size: 1.875rem; 
  color: #f8f9fa;
  cursor: pointer;
  align-self: center;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 1.875rem;
  height: 1.25rem;
  margin-right: 0.625rem; 
  margin-top: 1rem;
  cursor: pointer;
  z-index: 20;
}

.line {
  background-color: #d8d5db;
  height: 0.188rem; /* 3px */
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Transform lines into an "X" when menu is open */
.menu-icon.open .line1 {
  transform: translateY(0.063rem) rotate(45deg); /* 1px */
}

.menu-icon.open .line2 {
  transform: translateY(-0.563rem) rotate(-45deg); /* -9px */
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 15.625rem; /* 250px */
  background-color: #1a1a1a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding-top: 2.813rem; /* 45px */
  transition: right 0.3s ease-out;
  z-index: 19;
}

.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  padding: 1.25rem; /* 20px */
  font-size: 1.25rem; /* 20px */
  color: #d8d5db;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

/* ============================== */
/* RESPONSIVE STYLES */
/* ============================== */

@media (max-width: 768px), (orientation: portrait) { /* 768px */
  nav {
    padding: 0.375rem; /* 6px */

  }

  .hamburger-icon {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.625rem 0.938rem; /* 10px 15px */
    position: relative;
    z-index: 20;
    justify-content: space-between;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-menu.hidden {
    display: flex;
  }

  .nav-logo {
    margin-left: 0.625rem; /* 10px */
  }

  .mobile-menu a {
    font-size: 1.5rem; /* larger than 1.2em for better visibility */
  }
}


  


