/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(26,26,36,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #2a2a3a;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px;
}

.nav-title-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav-title-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #ffffff;
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
  color: #ffffff;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 720px) {
  .nav {
    padding-inline: 16px;
    padding: 12px 16px;
    position: relative;
  }
  
  .nav-title-main {
    font-size: 15px;
  }
  
  .nav-title-sub {
    font-size: 10px;
  }
  
  .nav-logo-mark {
    width: 28px;
    height: 28px;
  }

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

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 36, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 10px 12px;
  }
  
  .nav-title-main {
    font-size: 13px;
    letter-spacing: 0.05em;
  }
  
  .nav-title-sub {
    font-size: 9px;
  }
  
  .nav-logo-mark {
    width: 24px;
    height: 24px;
  }
  
  .nav-left {
    gap: 8px;
  }

  .mobile-menu-toggle {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    top: 60px;
    padding: 16px 0;
  }

  .nav-links a {
    padding: 14px 20px;
    font-size: 14px;
  }
}

