.header {
    padding: 10px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s;
}

.header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: block;
}
  
.logo img {
    width: 180px;
    transition: filter 0.3s;
}

.menu {
    display: flex;
    align-items: center;
}

.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 40px;
}

.menu li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s;
    letter-spacing: -0.02em;
}

.menu li a:hover {
    color: white;
}

.menu-button {
    margin-left: 40px;
}

.menu-button a {
    display: inline-block;
    padding: 8px 25px;
    background-color: white;
    color: #1d3bb3;
    border-radius: 50px;
    font-weight: 600;
    font-size: 19px;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-button a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.menu-button a.active {
    background-color: #1d3bb3;
    color: white;
}

/* 스크롤 시 스타일 변경 */
.header.scrolled .menu li a {
    color: #333;
}

.header.scrolled .menu li a:hover {
    color: #1d3bb3;
}

.header.scrolled .menu-button a {
    background-color: #1d3bb3;
    color: white;
}

.header.scrolled .menu-button a:hover {
    background-color: #162d8a;
}
