.ats-menu-wrap {
    position: relative;
    display: inline-block;
}

.ats-menu-toggle {
    width: 40px;
    height: 32px;
    position: relative;
    cursor: pointer;
    z-index: 100001;
}

.ats-menu-toggle span {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 3px;
    background: #000;
    border-radius: 50px;
    transition: transform .35s ease, opacity .35s ease;
    transform-origin: center;
}

.ats-menu-toggle span:nth-child(1) {
    transform: translateY(0);
}

.ats-menu-toggle span:nth-child(2) {
    transform: translateY(14px);
}

.ats-menu-toggle span:nth-child(3) {
    transform: translateY(28px);
}

.ats-menu-toggle.active span:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}

.ats-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ats-menu-toggle.active span:nth-child(3) {
    transform: translateY(14px) rotate(-45deg);
}

/* Popup Animation */
.ats-fullscreen-popup {
    position: fixed;
    top: 5.3em;
    right: 56px;
    width: 915px;
    height: auto;
    background: #000;
    padding: 3em 2em;
    z-index: 99999;
    border-radius: 25px;
    
    /* Animated properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-25px) scale(.96);
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.ats-fullscreen-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ats-popup-inner {
    width: 100%;
    height: auto;
    overflow: visible;
}

.ats-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    transition: .3s;
}

.ats-close-btn:hover {
    transform: rotate(90deg);
}

@media(max-width:1024px) {
    .ats-fullscreen-popup {
        width: 90vw;
        max-width: 900px;
        right: 0;
        top: 55px;
        padding: 30px;
    }
}

@media(max-width:767px) {
    .ats-fullscreen-popup {
        width: 95vw;
        right: 0;
        top: 55px;
        padding: 20px;
        border-radius: 18px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .ats-close-btn {
        top: 15px;
        right: 15px;
    }
}