header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 1;
}

header.scrolled::before {
    opacity: 0;
}

.logo {
    display: flex;
    font-size: 24px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
    gap: 16px;
    align-items: center;
}

.logo img {
    width: 64px;
    height: auto;
    border-radius: 50%;
    margin-left: 8px;
}

.logo span {
    font-size: 14px;
    display: block;
    color: #fff;
    transition: color 0.3s ease;
}

.menu-icon {
    display: inline-block;
}

.menu-icon-wrapper {
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    width: 200px;
    justify-content: flex-end;
}

.menu-icon .bar1, .menu-icon .bar2, .menu-icon .bar3 {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-icon-wrapper:hover .bar1,
.menu-icon-wrapper:hover .bar2,
.menu-icon-wrapper:hover .bar3 {
    background-color: white !important;
    transform: scale(1.2);
}

header.scrolled .logo,
header.scrolled .logo span {
    color: #333;
}

header.scrolled .menu-icon .bar1,
header.scrolled .menu-icon .bar2,
header.scrolled .menu-icon .bar3 {
    background-color: #333;
}

.menu ul li a {
    text-decoration: none;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
    display: block;
    padding: 15px;
    transition: color 0.3s ease, background-color 0.3s ease, line-height 0.3s ease;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.menu ul li a:hover {
    background-color: rgba(200, 225, 204, 1);
    border-radius: 4px;
    line-height: 1.4;
}

header.scrolled .menu ul li a {
    color: #333;
    background-color: rgba(252, 220, 206, 0.6);
}

.menu {
    position: fixed;
    top: 83.5px;
    right: 20px;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 0px 0px 8px 8px;
    transform: translateY(-20px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out, background-color 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
}

.menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

header.scrolled .menu {
    background-color: rgba(0, 0, 0, 0.9);
}

.menu ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
}

.menu ul li {
    text-align: center;
    user-select: none;
}
