.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 17px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.logo-container.active {
    opacity: 1;
    transform: translateX(0);
}

.logo-image {
    width: 34px;
    height: 34px;
    margin-right: 8px;
    transition: filter 0.3s ease;
}

.logo-container:hover .logo-image {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.menu-btn {
    width: 26px;
    height: 17px;
    position: relative;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-btn.active-slide {
    opacity: 1;
    transform: translateX(0);
}

.menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 8px; }
.menu-btn span:nth-child(3) { top: 15px; }

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 13;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.menu {
    position: fixed;
    top: 0;
    right: -255px;
    width: 255px;
    min-height: 100vh;
    height: auto;
    background: rgba(0, 0, 0, 0.9);
    z-index: 14;
    transition: all 0.5s ease;
    padding: 68px 17px 17px;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.menu.active {
    right: 0;
}

.menu ul {
    list-style: none;
}

.menu ul li {
    margin: 17px 0;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu ul li a:hover {
    color: #fff;
}

.social-icons-mobile {
    display: none;
    width: 100%;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 1s ease;
}

.social-icons-mobile.active {
    opacity: 1;
}

.social-icons-mobile a {
    color: #fff;
    font-size: 17px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 26px;
    text-decoration: none;
    border-bottom: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.social-icons-mobile a:hover {
    color: #fff;
    transform: translateY(-5px);
}

.social-icons-mobile a i {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .header {
        padding: 8px 17px;
        top: 0;
        padding-top: max(10px, env(safe-area-inset-top, 10px));
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    .social-icons-mobile {
        display: flex;
    }

    .logo-text {
        font-size: 17px;
    }

    .logo-image {
        width: 26px;
        height: 26px;
    }
}
