:root {
    --menu-bg: #fe49b0;
    --menu-text: #ffffff;
    --menu-text-hover: #1c006b; /* Dark blue/purple contrast */
    --transition-speed: 0.6s;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Increased gap */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    padding: 1rem; /* Larger touch target */
}

.menu-toggle-text {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 2rem; /* Increased from 1.2rem */
    text-transform: uppercase;
    color: var(--color-text);
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.menu-toggle-lines {
    width: 45px; /* Increased from 30px */
    height: 20px; /* Increased from 14px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.menu-toggle-lines span {
    display: block;
    width: 100%;
    height: 3px; /* Thicker lines */
    background-color: var(--color-text);
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--menu-bg);
    z-index: 990;
    /* Use CSS variables for dynamic origin, fallback to top-right */
    --x: calc(100% - 3rem);
    --y: 3rem;
    clip-path: circle(0% at var(--x) var(--y)); 
    transition: clip-path var(--transition-speed) var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active State */
.menu-open .fullscreen-menu {
    clip-path: circle(150% at var(--x) var(--y));
}

.menu-open .menu-toggle-lines span:first-child {
    transform: translateY(9px) rotate(45deg); /* Adjusted for new height */
    background-color: var(--menu-text);
}

.menu-open .menu-toggle-lines span:last-child {
    transform: translateY(-9px) rotate(-45deg); /* Adjusted for new height */
    background-color: var(--menu-text);
}

.menu-open .menu-toggle-text {
    color: var(--menu-text);
}

/* Menu Content */
.menu-content {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.menu-list li {
    overflow: hidden; /* For reveal animation */
}

.menu-list a {
    display: inline-flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 6rem; /* Big bold type */
    font-weight: 700;
    text-transform: uppercase;
    color: var(--menu-text);
    text-decoration: none;
    line-height: 1.1;
    position: relative;
    transition: color 0.3s ease;
    transform: translateY(100%); /* Initial hidden state */
    transition: transform 0.5s var(--ease-out-expo) 0s, color 0.3s ease;
}

.menu-open .menu-list a {
    transform: translateY(0);
    /* Staggered delay handled by CSS var --i */
    transition-delay: calc(0.1s + (var(--i) * 0.05s));
}

.menu-list a:hover {
    color: var(--menu-text-hover);
    -webkit-text-stroke: 0; /* Solid color on hover */
}

.menu-list a span {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.6;
    transform: translateY(-1rem);
    display: inline-block;
}

/* Special styling for "We Design The World" */
.special-link a {
    color: var(--menu-text-hover); /* Differentiate it slightly or keep white */
    font-style: italic;
    border-bottom: 2px solid transparent;
}

.special-link a:hover {
    border-bottom-color: currentColor;
}

.special-link i {
    font-size: 0.4em;
    vertical-align: super;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-list a {
        font-size: 3.5rem;
    }
    
    .menu-list {
        gap: 1rem;
    }

    .fullscreen-menu {
        clip-path: circle(0% at calc(100% - 1.5rem) 2rem);
    }
    
    .menu-open .fullscreen-menu {
        clip-path: circle(150% at calc(100% - 1.5rem) 2rem);
    }
}
