/* Menu Button (Hamburger) */
.menu-button {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff99cc;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.menu-button span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Hamburger Animation when Active */
.menu-button.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #000000;
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(100%);
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

/* Menu Content */
.menu-content {
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.menu-overlay.active .menu-content {
    transform: translateY(0);
    opacity: 1;
}

/* Menu Navigation */
.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Menu Links */
.menu-link {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding: 15px 30px;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.menu-overlay.active .menu-link:nth-child(1) {
    animation-delay: 0.3s;
}

.menu-overlay.active .menu-link:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Link Hover Effects */
.menu-link::before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff99cc;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-link:hover::before {
    width: 90%;
}

.menu-link:hover {
    color: #ff99cc;
    transform: scale(1.05) translateY(-5px);
}

/* Active Link State */
.menu-link:active {
    transform: scale(0.98);
}

/* Decorative Elements */
.menu-content::before,
.menu-content::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 153, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.menu-content::before {
    top: -100px;
    left: -100px;
}

.menu-content::after {
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-link {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .menu-button {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .menu-button span {
        width: 24px;
        height: 2.5px;
    }

    .menu-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .menu-link {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }

    .menu-button {
        width: 40px;
        height: 40px;
    }

    .menu-button span {
        width: 20px;
    }
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background: #ff99cc;
    color: #000000;
}

::-moz-selection {
    background: #ff99cc;
    color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #4c454c;
    border-radius: 6px;
    border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff99cc;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid #ff99cc;
    outline-offset: 3px;
}