
/*=========================================================
    LEFT SIDE FLOATING MENU
==========================================================*/

.left-menu {

    position: fixed;

    left: 20px;

    top: 50%;

    transform: translateY(-50%);

    width: 60px;

    z-index: 9998;

}


/*=========================================================
    MENU LABEL
==========================================================*/

.left-menu-label {

    position: absolute;

    left: 0;

    top: -22px;

    width: 50px;

    padding: 5px 8px;

    text-align: center;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.95);

    color: #2f54eb;

    border: 1px solid
        rgba(47, 84, 235, 0.15);

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 600;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.12);

    opacity: 1;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

}


/*=========================================================
    MENU BOX
==========================================================*/

.left-menu-box {

    position: relative;

    width: 60px;

    height: 60px;

}


/*=========================================================
    + / - BUTTON
==========================================================*/

.left-menu-toggle {

    position: absolute;

    left: 0;

    top: 0;

    width: 48px;

    height: 48px;

    padding: 0;

    margin: 0;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #5b8cff
        );

    color: #ffffff;

    font-family:
        Arial,
        sans-serif;

    font-size: 32px;

    font-weight: 400;

    line-height: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    z-index: 100;

    box-shadow:
        0 8px 25px
        rgba(47, 84, 235, 0.35);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.left-menu-toggle:hover {

    transform: scale(1.08);

    box-shadow:
        0 10px 30px
        rgba(47, 84, 235, 0.45);

}


/*=========================================================
    PLUS / MINUS
==========================================================*/

.left-menu-plus,
.left-menu-minus {

    position: absolute;

    left: 50%;

    top: 50%;

    color: #ffffff;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

}


/* PLUS */

.left-menu-plus {

    opacity: 1;

    transform:
        translate(-50%, -50%)
        rotate(0deg)
        scale(1);

}


/* MINUS */

.left-menu-minus {

    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(-90deg)
        scale(0.5);

}


/*=========================================================
    ACTIVE PLUS / MINUS
==========================================================*/

.left-menu-box.active
.left-menu-plus {

    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(90deg)
        scale(0.5);

}


.left-menu-box.active
.left-menu-minus {

    opacity: 1;

    transform:
        translate(-50%, -50%)
        rotate(0deg)
        scale(1);

}


/*=========================================================
    MENU ITEMS CONTAINER
==========================================================*/

.left-menu-items {

    position: absolute;

    left: 0;

    top: 0;

    width: 60px;

    height: 60px;

    pointer-events: none;

}


/*=========================================================
    INDIVIDUAL MENU ITEM
==========================================================*/

.left-menu-item {

    position: absolute;

    left: 0;

    top: 0;

    width: 58px;

    height: 35px;

    padding: 0 12px;

    display: flex;

    align-items: center;

    gap: 10px;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.97);

    border: 1px solid
        rgba(47, 84, 235, 0.12);

    color: #334155;

    text-decoration: none;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(0)
        scale(0.5);

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.15);

    transition:
        transform 0.45s
        cubic-bezier(.68, -0.55, .27, 1.55),
        opacity 0.3s ease,
        visibility 0.3s ease,
        background 0.25s ease,
        color 0.25s ease;

}


/*=========================================================
    MENU ICON
==========================================================*/

.left-menu-item i {

    width: 18px;

    text-align: center;

    color: #2f54eb;

    flex-shrink: 0;

}


/*=========================================================
    EXPANDED MENU
==========================================================*/

.left-menu-box.active
.left-menu-items {

    pointer-events: auto;

}


/*=========================================================
    EXPANDED ITEM POSITIONS
==========================================================*/

/* Home */

.left-menu-box.active
.left-menu-item:nth-child(1) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(-125px)
        scale(1);

}


/* About */

.left-menu-box.active
.left-menu-item:nth-child(2) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(-85px)
        scale(1);

}


/* Services */

.left-menu-box.active
.left-menu-item:nth-child(3) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(-45px)
        scale(1);

}


/* Jobs */

.left-menu-box.active
.left-menu-item:nth-child(4) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(-5px)
        scale(1);

}


/* Blog */

.left-menu-box.active
.left-menu-item:nth-child(5) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(35px)
        scale(1);

}


/* Contact */

.left-menu-box.active
.left-menu-item:nth-child(6) {

    width: 100px;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(68px)
        translateY(75px)
        scale(1);

}


/*=========================================================
    HOVER
==========================================================*/

.left-menu-item:hover {

    background: #2f54eb;

    color: #ffffff;

}


/* Keep icon visible on hover */

.left-menu-item:hover i {

    color: #ffffff;

}


/*=========================================================
    MOBILE
==========================================================*/

@media (max-width: 768px) {

    .left-menu {

        left: 12px;

        width: 32px;

    }


    .left-menu-box {

        width: 32px;

        height: 32px;

    }


    .left-menu-toggle {

        width: 32px;

        height: 32px;

        font-size: 29px;

    }


    .left-menu-label {

        width: 42px;
        padding: 0px 8px;
        font-size: 11px;

        top: -15px;

    }


    .left-menu-item {

        width: 32px;

        height: 30px;

        font-size: 12px;

    }


    .left-menu-box.active
    .left-menu-item:nth-child(1) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(-100px)
            scale(1);

    }


    .left-menu-box.active
    .left-menu-item:nth-child(2) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(-66px)
            scale(1);

    }


    .left-menu-box.active
    .left-menu-item:nth-child(3) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(-32px)
            scale(1);

    }


    .left-menu-box.active
    .left-menu-item:nth-child(4) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(2px)
            scale(1);

    }


    .left-menu-box.active
    .left-menu-item:nth-child(5) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(36px)
            scale(1);

    }


    .left-menu-box.active
    .left-menu-item:nth-child(6) {

        width: 100px;

        transform:
            translateX(50px)
            translateY(70px)
            scale(1);

    }

}


