* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
*::selection {
    display: none;
    
}


/* body {
    width: 100%;
    height: 100%;
    background: blue;
} */
.main-nav-container {
    position: absolute;
    opacity: 0;
    top: -100vh;
    width: 100vw;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    z-index: 19;
    transition: all 650ms cubic-bezier(0.215, 0.610, 0.355, 1);


}

.main-nav-container.open {
    top: 0;
    opacity: 1;
    transition: .5s ease;
}
.nav-wrapper {
/*     position: relative; */
    position: absolute;
    width: 96%;
    height: 100vh;
    padding-top: 15%;
    
}
.main-nav-container .nav-wrapper .nav {
    width: 100%;
    height: 70px;
    margin: 35px 0px auto;
    text-align: left;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: all 650ms cubic-bezier(0.215, 0.610, 0.355, 1);

    
}

.nav p {
    position: absolute;
    padding-bottom: 0;
    font-family: Segoe UI;
    font-size: 1.3rem;
    width: 65%;
    right: 0;
    color: #fff;
    transition: all 650ms cubic-bezier(0.215, 0.610, 0.355, 1);

}
.nav p.open {
    animation: scale-in-top 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    transition: .5s ease;
    animation-delay: .1s;
}
@keyframes scale-in-top {
    0%{
        transform: translateY(-50px);
        transform-origin: 100% 0%;
        opacity: 1;
    }
    10%{
        transform: translateY(0px);
        transform-origin: 100% 0%;
        opacity: 1;
    }
}

.nav h2 {
    position: absolute;
    bottom: 0;
    margin-left: 35%;
    margin-bottom: 5px;
    height: 50px;
    font-family: Segoe UI;
    Font-size: 2.4rem;
    color: #fff;
    width: 43%;
    cursor: pointer;
    transition: all 650ms cubic-bezier(0.215, 0.610, 0.355, 1); 
}


.nav:first-child h2.open {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
    animation: scale-in-bottom 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.nav:nth-child(2) h2.open {
    animation: scale-in-bottom 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: .2s;
    
}
.nav:nth-child(3) h2.open {
    animation: scale-in-bottom 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: .4s;
}
@keyframes scale-in-bottom {
    0%{
        transform: translateY(80px);
        transform-origin: 0% 100%;
        opacity: 1;
    }
    10%{
        transform: translateY(0px);
        transform-origin: 0% 100%;
        opacity: 1;
    }
}
.nav h2:hover {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}
.menu-toggler {
    position: absolute;
    position:  fixed;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 19;
    overflow:  visible;
    transition: transform 550ms ease-out;
}
.menu-toggler::selection {
    display: none;
    
}
.menu-toggler.open {
    transform: rotate(-45deg);
}
.bar {
    width: 100%;
    height: 3px;
    border-radius: .8rem;
    background: #fff;
}
.bar.half {
    width: 50%;
}
.bar.start {
    transform-origin: right;
    transition: transform 650ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.open .bar.start {
    transform: rotate(-450deg) translateX(.8rem);
}
.bar.end {
    align-self: flex-end;
    transform-origin: left;
    transition: transform 650ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.open .bar.end {
    transform: rotate(-450deg) translateX(-.8rem);
}



@media only screen and (max-width: 414px) {
     .menu-toggler {
        top: 1.5rem;
        right: 1.2rem;
        width: 2.7rem;
        height: 1.5rem;
     }
    .nav h2 {
        margin-left: 36%;
        Font-size: 2.3rem;
        height: 44px;
        width: 55%; 
    }
    .main-nav-container .nav-wrapper .nav {
        height: 70px;
        margin: 35px 0px auto;
    }
    .nav p {
        height: 30px;
        font-size: 1.5rem;
        width: 64%;
    }

}

@media only screen and (min-width: 600px) {
     .menu-toggler {
        top: 1.8rem !important;
        right: 1.8rem !important;
        width: 4rem;
        height: 2.6rem;
    }
    .nav h2 {
        margin-left: 36%;
        Font-size: 3rem;
        height: 55px;
    }
    .main-nav-container .nav-wrapper .nav {
        height: 90px;
        margin: 55px 0px auto;
    }
    .nav p {
        height: 40px;
        font-size: 1.9rem;
        width: 64%;
    }

}

/* ====== Tecno Spark Camon ====== */
@media only screen and (min-width: 720px) {
     .menu-toggler {
        top: 2.3rem !important;
        right: 2.3rem !important;
        width: 5rem;
        height: 3.6rem;
    }
    .nav h2 {
        margin-left: 36%;
        Font-size: 4rem;
        height: 80px;
    }
    .main-nav-container .nav-wrapper .nav {
        height: 123px;
        margin: 55px 0px auto;

    }
    .nav p {
        height: 70px;
        font-size: 3rem;
        width: 64%;
    }

}

/*  ====== samsung galaxy A50/ Xiomi note pro === */
@media only screen and (min-width: 1080px) {
    .nav-wrapper {
        padding-top: 25%;

    }

    .nav h2 {
        margin-left: 35%;
        margin-bottom: 0px;
        Font-size: 6.4rem;
        height: 150px;
        
    }
    .main-nav-container .nav-wrapper .nav {
        height: 210px;
        margin: 75px 0px auto;

    }
    .nav p {
        height: 90px;
        font-size: 4.5rem;
        width: 64%;
    }
    .menu-toggler {
        top: 6rem !important;
        right: 6rem !important;
        width: 6rem;
        height: 4.5rem;
    }
    .bar {
        height: 5px;
        border-radius: .8rem;
    }
}

/*  ====== mid screen === */
@media only screen and (min-width: 1236px) {
    .nav-wrapper {
        padding-top: 3%;

    }
    .menu-toggler {
        top: 2rem !important;
        right: 2rem !important;
        width: 4rem;
        height: 2.7rem;
    }
    .bar {
        height: 4px;
        border-radius: .8rem;
    }

    .nav h2 {
        margin-left: 40%;
        Font-size: 4.4rem;
        height: 83px;
        
    }
    .main-nav-container .nav-wrapper .nav {
        height: 110px;
        margin: 75px 0px auto;

    }
    .nav p {
        height: 45px;
        font-size: 2.5rem;
        width: 60%;
    }
}

/*  ====== Iphone Pro Max (1242 * 2688) === */
@media only screen and (min-width: 1242px) {
    .nav-wrapper {
        padding-top: 25% !important;;

    }
    .menu-toggler {
        top: 5rem !important;
        right: 5rem;
        width: 7rem;
        height: 6rem;
    }
    .bar {
        height: 6px;
    }

    .nav h2 {
        margin-left: 40%;
        Font-size: 5.4rem;
        height: 100px;
    }
    .main-nav-container .nav-wrapper .nav {
        height: 150px;
        margin: 115px 0px auto;

    }
    .nav p {
        height: 70px;
        font-size: 3.5rem;
        width: 60%;
    }
}



@media only screen and (min-width: 1280px) {
    .nav-wrapper {
        padding-top: 3% !important;;

    }
    .menu-toggler {
        top: 2rem !important;
        right: 2rem;
        width: 4rem;
        height: 2.5rem;
    }
    .bar {
        height: 6px;
    }

    .nav h2 {
        margin-left: 45%;
        margin-bottom: 0px;
        Font-size: 3.4rem;
        height: 70px;
    }
    .nav p {
        height: 50px;
        font-size: 2.3rem;
        width: 55%;
    }
    .main-nav-container .nav-wrapper .nav {
        height: 100px;
        margin: 75px 0px auto;

    }
    .bar {
        height: 3px !important;
    }
}


/* ==== My Laptop screen ====== */
@media only screen and (min-width: 1366px) {
      .nav-wrapper {
        padding-top: 3% !important;

    }

    .nav h2 {
        margin-left: 45%;
        margin-bottom: 0px;
        Font-size: 3.4rem;
        height: 70px;
        
        
    }
    .main-nav-container .nav-wrapper .nav {
        height: 100px;
        margin: 75px 0px auto;

    }
    .nav p {
        height: 50px;
        font-size: 2.3rem;
        width: 55%;
    }
    .menu-toggler {
        top: 2rem !important;
        right: 2rem;
        width: 4rem;
        height: 2.5rem;
    }
    .bar {
        height: 3.5px;
    }
}



