header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: #0c0e23; /* 고정 배경색 */
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}
header.header-w{
  background: #fff;
  
}
header.header-w nav{background: #fff;}
header.header-w nav a{
  color: #000;
}
header.header-w .lang-selector{
  color: #fff;
  background: #000;
}
header.header-w .burger-btn span{background: #000;}
header.header-w .logo img{filter: invert(1);}
header.scrolled {
  padding: 15px 60px;
  backdrop-filter: blur(15px);
}

.logo img {
  height: 50px;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
  opacity: 0.8;
}
nav a.active,
nav a:hover {
  opacity: 1;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lang-selector {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-sub);
  border: 1.9px solid var(--text-sub);
  padding: 3px 14px;
  border-radius: 10px;
}

.lang-selector span {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-selector span:hover {
  color: #fff;
}

.lang-selector span.active {
  color: #fff;
  font-weight: 700;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
}

.burger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-smooth);
}

/* Burger Open State */
.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  
  header.scrolled {
    padding: 10px 20px;
  }

  .burger-btn {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0c0e23;
    padding: 120px 40px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 30px;
  }

  nav a {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .lang-selector {
    font-size: 11px;
    gap: 10px;
  }

  .logo img {
    height: 35px;
  }
}
