@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

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

body{
    font-family: "Montserrat", sans-serif;
}

/* ####################### WELCOME BAR ####################### */

.wellcomebar{
    background-color: rgba(1, 3, 30, 0.87);
    color:rgb(255, 255, 255);
    padding: 0.5rem;
    padding-left: 2rem;
}

.wellcomebar .time{
   float: right;
   margin-right: 30px;
}

/* ####################### HEADER ####################### */

header{
    /* background: linear-gradient(to left, rgb(44, 62, 80), rgb(189, 195, 199)); */
    /* background: linear-gradient(to left, #141414, #f1f1f1); */
    /* background: linear-gradient(to left, #00416a, #e4e5e6); */
    background: linear-gradient(to left, #00416a, #c7d9eb);
    width: 100%;
    height: 6rem;
    z-index: 1000;
}

header img{
    width: auto;
    height: 4rem;
    margin: 1rem;
    margin-left: 2.5rem;
}

/* ####################### NAVIGATION BAR ####################### */

nav .navbar{
    width: 45%;
    float: right;
    position: relative;
    height: 6rem;
    display: flex;
    align-items: center;
    margin-right: 3.6rem;
    justify-content: space-between;
}

nav .navbar  .navbarli{
    margin: auto;
    width: 25%;
    text-align: center;
}

.navbar .main{
    list-style: none;
    display: inline-block;
}

nav .navbar .navbar-link{
    width: 25%;
    height: 100%;
    align-items: center;
    text-align: center;
    position: relative;
}

.navbar .navbar-link label{
    width: 25%;
    height: 100%;
    line-height: 6rem;
    font-size: 18px;
    font-weight: 400;
    padding: 10px;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
}

.navbar .subcategory{
    position: absolute;
    text-align: left;
    top: 6rem;
    left: 25%;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    background: linear-gradient(to right, rgba(91, 136, 171, 0.8), rgba(91, 136, 171, 0.9));
}

#navbar li:hover > .subcategory{
    opacity: 1;
    visibility: visible;
} 

.navbar .subcategory li a{
    color: white;
    line-height: 38px;
    font-size: 18px;
    padding: 8px 15px;
    text-decoration: none;
}

.navbar .subcategory li a i{
    float: right;
    line-height: 38px;
    padding-right: 12px;
    font-size: 12px;
}

.navbar .subcategory li{
    position: relative;
    margin: 0;
    float: none;
    display: list-item;
    transition: all 0.3s ease;
}

.navbar .subcategory li:hover{
    background-color: rgba(65, 49, 168, 0.31); 
    transition: all 0.3s ease;
}

.navbar .subcategory li:hover > a{
    color: rgb(13, 9, 153);
    transition: all 0.3s ease;
}

.navbar .subcategory li:hover > .subsub{
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.subcategory .subsub{
    background: linear-gradient(to right, rgba(91, 136, 171, 0.8), rgba(91, 136, 171, 0.9));
    position: absolute;
    width: 80%;
    top: 0;
    left: 100%;
    opacity: 0;
    visibility: hidden;
}

.subcategory .subsub li{
    position: relative;
    margin: 0 auto;
}

.subcategory .subsub li:hover{
    background-color: rgba(65, 49, 168, 0.31);
}

nav .slider{
    position: absolute;
    height: 100%;
    width: 25%;
    left: 0;
    top: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

nav .under{
    position: absolute;
    height: 7px;
    width: 25%;
    left: 0;
    bottom: 0;
    background-color: rgba(192,32,51,255);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radioslider{
    display: none;
}

#RHome:checked ~ .navbar label.home,
#RProduct:checked ~ .navbar label.product,
#RAbout:checked ~ .navbar label.about,
#RContact:checked ~ .navbar label.contact{
    color: rgb(13, 9, 153);
}

#RProduct:checked ~ .navbar .slider,
#RProduct:checked ~ .navbar .under{
    left: 25%;
}

#RAbout:checked ~ .navbar .slider,
#RAbout:checked ~ .navbar .under{
    left: 50%;
}

#RContact:checked ~ .navbar .slider,
#RContact:checked ~ .navbar .under{
    left: 75%;
}

.navbar label:hover,
.navbar label:focus{
    background: rgba(65, 49, 168, 0.31);
}

nav .navbarr{
    display: none;
}

/* ####################### CONTACT LIST ####################### */

.social_media {
    display: flex;
    text-align: center;
    align-items: center;
    float: right;
    margin-right: 0.5rem;
    height: 6rem;

}

.social_media li {
    position: relative;
    display: block;
    font-size: 22px;
    height: 50px;
    width: 50px;
    background: rgba(0, 0, 0, 0.4);
    line-height: 50px;
    border-radius: 50%;
    margin: 0 7px;
    cursor: pointer;
    transition: 0.5s;
}

@keyframes blink{
    50%{
        opacity: 0;
    }
}

.social_media .l1{
    font-size: 23px;
}

.social_media .l3{
    font-size: 25px;
}

.social_media .l4{
    line-height: 50px;
    font-size: 19px;
    width: unset;
    padding: 0 15px;
    border-radius: 3rem;
}

.social_media .l4 i{
    line-height: 50px;
    padding-right: 5px;
    font-size: 22px;
}

.social_media a{
    text-decoration: none;
    color: #b2b4bc;
    border-radius: 50%;
}

.social_medial .li::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    z-index: -1;
    transform: scale(0.9) ;
    transition: 0.5s;
}

.social_medial a:nth-child(1):before{
    background: #158eff;
}

.social_medial a:nth-child(2):before{
    background: rgb(192,0,0);
}

.social_medial a:nth-child(3):before{
    background: rgb(15,184,67);
}

.social_medial a:nth-child(4):before{
    background: rgb(255, 0, 0);
}

.social_media li:hover::before,
.social_media li:focus:before{
    filter: blur(3px);
    transform: scale(1.2);
}

.social_media li:hover,
.social_media li:focus{
    animation: none;
    background: rgba(0, 0, 0, 0.8);
}

.social_media a:nth-child(1):hover,
.social_media a:nth-child(1):focus{
    color: #158eff;
}

.social_media a:nth-child(2):hover,
.social_media a:nth-child(2):focus{
    color: #e1306c;
}

.social_media a:nth-child(3):hover,
.social_media a:nth-child(3):focus{
    color: #72c961;
}

.social_media a:nth-child(4):hover,
.social_media a:nth-child(4):focus{
    color: rgb(255, 0, 0);
}

.checkbtn{
    font-size: 2rem;
    color: white;
    float: right;
    padding: 1.8rem;
    cursor: pointer;
    display: none;
}

#check{
    display: none;
}

/* ####################### CONTACT LIST FOR MOBILE ####################### */

@media(max-width: 1500px){
    nav .social_media .l3{
        display: none;
    }
}

@media(max-width: 1400px){
    nav .social_media .l2{
        display: none;
    }
}

@media(max-width: 1300px){
    nav .social_media .l1,
    nav .social_media .l4{
        display: none;
    }

    nav .navbar{
        width: 60%;
    }
}

/* ####################### HEADER FOR MOBILE ####################### */

@media(max-width: 1000px){
    .checkbtn{
        display: none;
    }

    header img{
        width: auto;
        height: 3rem;
        margin: 1.4rem;
        margin-left: 2rem;
    }

    nav .navbar{
        margin-right: 5rem;
    }

    nav .navbar li{
        display: inline-block;
        line-height: 6rem;
        margin: 0 0.5rem;
    }

    .wellcomebar{
        display: none;
    }

    .navbar .subcategory{
        position: absolute;
        text-align: left;
        top: 6rem;
        left: 25%;
        opacity: 0;
        visibility: hidden;
        background: linear-gradient(to right, rgba(9, 129, 194, 0.908), rgba(9, 129, 194, 0.908));
    }

    .navbar .subcategory li{
        margin: 0%;
        padding: 0%;
    }

    .navbar .subcategory li a i{
        display: none;
    }
}

/* ####################### NAVIGATION BAR FOR MOBILE ####################### */

@media(max-width: 866px){

    header{
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    nav .navbar{
        display: none;
    }

    nav .navbarr{
        display: block;
    }

    .checkbtn{
        display: block;
    }

    nav .navbarr{
        position: fixed;
        width: 75%;
        height: 100vh;
        background-color: rgb(3, 9, 45);
        left: -100%;
        transition: all 0.5s ease;
        display: flex;
        z-index: 6;
    }

    .navbarr .vnavbar-list{
        position: relative;
        width: 100%;
        height: 40%;
        display: block;
        margin: 2rem 0;
    }

    .vnavbar-list .list-item{
        text-decoration: none;
        display: flex;
        padding-left: 15px;
        justify-content: center; 
        flex-direction: column;
        height: 25%;
    }

    .vnavbar-list .list-item label{
        color:#b2b4bc;
        font-size: 18px;
        font-weight: 400;
        padding: 5px 10px;
        transition: all 0.3s ease;
    }

    .vnavbar-list .vslider{
        position: absolute;
        height: 25%;
        width: 100%;
        left: 0;
        top: 0; 
        background-color: rgba(65, 49, 168, 0.31);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .vnavbar-list .leftbar{
        position: absolute;
        height: 25%;
        width: 6px;
        top: 0;
        left: 0;
        background-color: rgb(192,32,51);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    #RHome:checked ~ .navbarr label.home,
    #RProduct:checked ~ .navbarr label.product,
    #RAbout:checked ~ .navbarr label.about,
    #RContact:checked ~ .navbarr label.contact{
        color: rgba(0, 166, 255, 0.908);
    }

    #RProduct:checked ~ .navbarr .vslider,
    #RProduct:checked ~ .navbarr .leftbar{
        top: 25%;
    }

    #RAbout:checked ~ .navbarr .vslider,
    #RAbout:checked ~ .navbarr .leftbar{
        top: 50%;
    }

    #RContact:checked ~ .navbarr .vslider,
    #RContact:checked ~ .navbarr .leftbar{
        top: 75%;
    }

    #check:checked ~ .navbarr{
        left: 0;
    }

    nav .social_media{
        display: none;
    }

    .wellcomebar{
        display: none;
    }

    #officeauto,
    #album,
    #acmachin{
        display: none;
    }

    .vnavbar-list .navberr_subcategory{
        margin-left: 45px;
        display: none;
    }

    .vnavbar-list .navberr_subcategory li,
    .vnavbar-list .navberr_subcategory li a{
        line-height: 25px;
        font-size: 16px;
        padding: 5px 0 0;
        color:#b2b4bc;
    }

    .vnavbar-list .navberr_subcategory .navberr_subsub{
        margin: 10px 0 10px 35px;
        display: none;
    }

    .vnavbar-list .navberr_subcategory .navberr_subsub li a{
        color:#b2b4bc;
        font-size: 14px;
        text-decoration: none;
    }

    .vnavbar-list .navberr_subcategory li:focus label{
        color: rgba(0, 166, 255, 0.908);
    }
    

    .vnavbar-list .navberr_subcategory .navberr_subsub li a:focus{
        color: rgba(0, 166, 255, 0.908);
    }

    #RProduct:checked ~ .navbarr .vnavbar-list .navberr_subcategory{
        display: block;
    }

    #officeauto:checked ~ .navberr_subsub,
    #album:checked ~ .navberr_subsub,
    #acmachin:checked ~ .navberr_subsub{
        display: block;    
    }

    .navbarr .vnavbar-list .navberr_subcategory li:focus a{
        color: rgba(0, 166, 255, 0.908);
    }
}