/* ---------------------- Nav bar ---------------------- */
nav {
  position: fixed;
  top: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: var(--header-color);
  box-shadow: 0 2px 14px rgba(0,0,0,0.1);
  z-index: 1000;
}

/* bc logo */
nav img {
  max-height: 40px;
}

/* Social links */
#navbar-social-placeholder {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-links.in-nav {
  display: flex;
}

.social-links.in-nav i {
  font-size: 32px;
}

/* Section nav links */
.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  display: inline;
}

.nav-links li:not(:last-child)::after {
  content: "|";
  color: var(--primary-text-color)
}

.nav-links li a {
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s;
}

/* Section nav links animation */
header img {
  transition: transform 0.5s ease,  0.5s ease;
}

header img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

header nav ul li a {
  display: inline-block; 
  position: relative; 
  padding: 6px 2px;
  color: var(--primary-text-color);
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
  transform-origin: center;
  will-change: transform;
}

header nav ul li a:hover,
header nav ul li a:focus {
  transform: scale(1.06);
  color: var(--accent-color);
}

header nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px; /* distance from the baseline; tweak if needed */
  height: 2px;
  width: 0;
  background: var(--accent-color);
  transition: width .22s ease;
  border-radius: 2px;
}

header nav ul li a:hover::after,
header nav ul li a:focus::after {
  width: 100%;
}

/* ---------------------- Side menu ---------------------- */
.off-screen-menu {
  background-color: var(--side-menu-background-color);
  height: 100vh;
  width: 100%;
  max-width: 450px;
  position: fixed;
  top: 0;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 2rem;
  transition: .3s ease;
}

.off-screen-menu ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: center;
  list-style: none;
}

#side-menu-social-links i {
  font-size: 2rem;
}

.off-screen-menu.active {
  right: 0;
}

.ham-menu {
  height: 50px;
  width: 40px;
  margin-left: auto;
  position: relative;
}

.ham-menu span {
  height: 3px;
  width: 100%;
  background-color: var(--primary-text-color);
  border-radius: 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
}

.ham-menu span:nth-child(1) {
  top: 25%
}

.ham-menu span:nth-child(3) {
  top: 75%
}

.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, 0%) rotate(45deg);
}

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

.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, 0%) rotate(-45deg);
}

/* ---------------------- Footer ---------------------- */
footer {
    margin: 0;
    bottom: 0;
    background-color: var(--footer-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    height: 40px;
}

#copyrights {
    display: flex;
    align-items: end;
    justify-content: center;
    color: var(--primary-text-color);
    font-size: 11px;
    font-weight: 100;
    padding-top: 10px;
}