/* Global Menu Styles */
.menu-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.menu-btn:hover {
    background: rgba(127, 255, 241, 0.1);
}

.menu-btn:focus {
    outline: none;
}

.hamburger {
    display: block;
    transition: transform 0.3s ease;
}

.hamburger .line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    fill: #7ffff1;
    transform-box: fill-box;
    will-change: transform;
}

/* Animation when menu is open */
.menu-btn.open .hamburger .top {
    transform: translateY(7px) rotate(45deg);
    transform-origin: center;
}

.menu-btn.open .hamburger .middle {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.open .hamburger .bottom {
    transform: translateY(-7px) rotate(-45deg);
    transform-origin: center;
}

/* Menu Container */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu.active {
    transform: translateX(0);
}

/* Menu Links */
.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.menu-link:hover,
.menu-link.active {
    color: #7ffff1;
    opacity: 1;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7ffff1;
    transition: width 0.3s ease;
}

.menu-link:hover::after,
.menu-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        top: 20px;
        right: 20px;
    }

    .hamburger {
        width: 28px;
        height: 28px;
    }

    .menu-link {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-btn {
        top: 15px;
        right: 15px;
    }

    .menu-link {
        font-size: 1.2rem;
    }
}