.staggered-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.staggered-menu-wrapper.fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 40;
    overflow: hidden;
}

.staggered-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2em;
    background: transparent;
    pointer-events: none;
    z-index: 2000;
}

.staggered-menu-header>* {
    pointer-events: auto;
}

.sm-logo {
    display: flex;
    align-items: center;
    user-select: none;
}

.sm-logo-img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sm-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    line-height: 1;
    overflow: visible;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    pointer-events: auto;
    z-index: 2000;
    transition: all 0.3s ease;
}

.sm-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sm-toggle:focus-visible {
    outline: 2px solid #ffffffaa;
    outline-offset: 4px;
}

.sm-toggle-textWrap {
    position: relative;
    display: inline-block;
    height: 1em;
    overflow: hidden;
    white-space: nowrap;
    width: var(--sm-toggle-width, auto);
    min-width: var(--sm-toggle-width, auto);
}

.sm-toggle-textInner {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sm-toggle-line {
    display: block;
    height: 1em;
    line-height: 1;
}

.sm-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.sm-panel-itemWrap {
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.sm-icon-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.sm-line {
    display: none !important;
}

.staggered-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(300px, 40vw, 500px);
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 8rem 3rem 3rem 3rem;
    overflow-y: auto;
    z-index: 10;
    transform: translateX(100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[data-position='left'] .staggered-menu-panel {
    right: auto;
    left: 0;
}

.sm-prelayers {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(300px, 40vw, 500px);
    pointer-events: none;
    z-index: 5;
}

[data-position='left'] .sm-prelayers {
    right: auto;
    left: 0;
}

.sm-prelayer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transform: translateX(100%);
}

.sm-panel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sm-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sm-socials {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-socials-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--sm-accent, #ff4757);
}

.sm-socials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sm-socials-item {
    list-style: none;
}

.sm-socials-list .sm-socials-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 1;
}

.sm-socials-list:hover .sm-socials-link {
    opacity: 0.6;
}

.staggered-menu-panel .sm-socials-list .sm-socials-link:hover,
.staggered-menu-panel .sm-socials-list .sm-socials-link:focus-visible {
    opacity: 1;
    color: #ff4757;
    transform: translateY(-2px);
}

.sm-panel-itemLabel {
    display: inline-block;
    will-change: transform;
    transform-origin: 50% 100%;
}

.sm-panel-item {
    position: relative;
    display: block;
    padding: 0.8rem 0;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sm-panel-item:hover {
    color: #ff4757;
}

.sm-panel-item:focus-visible {
    outline: 2px solid #ff4757;
    outline-offset: 4px;
}

.sm-panel-list[data-numbering] {
    counter-reset: smItem;
}

.sm-panel-list[data-numbering] .sm-panel-item::after {
    counter-increment: smItem;
    content: counter(smItem, decimal-leading-zero);
    position: absolute;
    top: 0.1em;
    right: 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--sm-accent, #ff4757);
    letter-spacing: 0;
}

.sm-panel-category {
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    pointer-events: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design - Tablet (768px) */
@media (max-width: 768px) {
    .staggered-menu-header {
        padding: 1.5rem;
    }

    .sm-logo-img {
        height: 35px;
    }

    .sm-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .staggered-menu-panel {
        width: clamp(250px, 60vw, 350px);
        padding: 6rem 2rem 2rem 2rem;
    }

    .sm-prelayers {
        width: clamp(250px, 60vw, 350px);
    }

    .sm-panel-item {
        font-size: 1.1rem;
        padding: 0.6rem 0;
    }

    .sm-panel-itemLabel {
        font-size: 1.1rem;
    }

    .sm-socials-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .sm-panel-category {
        font-size: 0.8rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }
}

/* Responsive Design - Mobile (640px) */
@media (max-width: 640px) {
    .staggered-menu-header {
        padding: 1rem 1.2rem;
    }

    .sm-logo-img {
        height: 32px;
    }

    .sm-toggle {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        min-height: 44px; /* Minimum touch target */
        min-width: 44px;
        gap: 0.3rem;
        position: fixed; /* Ensure it stays visible */
        top: 1rem;
        right: 1rem;
        z-index: 2001; /* Above everything */
    }

    .sm-icon {
        width: 12px;
        height: 12px;
    }

    .sm-icon-line {
        width: 12px;
        height: 1.5px;
    }

    .staggered-menu-panel {
        width: clamp(240px, 70vw, 320px);
        padding: 5rem 1.5rem 1.5rem 1.5rem;
    }

    .sm-prelayers {
        width: clamp(240px, 70vw, 320px);
    }

    .sm-panel-inner {
        gap: 1rem;
    }

    .sm-panel-item {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .sm-panel-itemLabel {
        font-size: 1rem;
    }

    .sm-socials-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .sm-panel-category {
        font-size: 0.75rem;
        margin-top: 1.2rem;
        margin-bottom: 0.6rem;
        letter-spacing: 1.5px;
    }

    .sm-socials-title {
        font-size: 0.9rem;
    }
}

/* Responsive Design - Small Mobile (480px) */
@media (max-width: 480px) {
    .staggered-menu-header {
        padding: 0.8rem 1rem;
    }

    .sm-logo-img {
        height: 30px;
    }

    .sm-toggle {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
        min-height: 44px;
        gap: 0.5rem;
    }

    .sm-toggle-textWrap {
        display: inline-block;
    }

    .sm-icon {
        width: 16px;
        height: 16px;
    }

    .sm-icon-line {
        width: 16px;
        height: 2px;
    }

    .staggered-menu-panel {
        width: clamp(230px, 80vw, 280px);
        padding: 4rem 1.2rem 1rem 1.2rem;
    }

    .sm-prelayers {
        width: clamp(230px, 80vw, 280px);
    }

    .sm-panel-inner {
        gap: 0.8rem;
    }

    .sm-panel-item {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .sm-panel-itemLabel {
        font-size: 1.1rem;
    }

    .sm-socials {
        margin-top: auto;
        padding-top: 1.5rem;
        gap: 0.5rem;
    }

    .sm-socials-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-height: 36px;
        min-width: 36px;
    }

    .sm-panel-category {
        font-size: 0.7rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    .sm-socials-title {
        font-size: 0.85rem;
    }
}