@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    
}


header{
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   padding: 3%;
   background-color: rgb(246,246,246);
}
.logo img{
    width: 40%;
    }
    nav{
        border-radius: 5px;
        /* transform: translateX(-150px); */
        display: flex;
        gap: 50px;
    }
    .serch {
        position: relative;
        width: 300px; 
    }
    .serch input[type="search"] {
        width: 100%;
        padding: 10px 40px 10px 10px; 
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 7px;
    }
    .serch .fa-magnifying-glass {
        position: absolute;
        top: 50%;
        right: 10px; 
        transform: translateY(-50%);
        color: #aaa;
    }
        
     /* media querry for header   */
     @media screen and (max-width:768px) {
        nav{
            position: absolute;
            top: 50px;
            right: 0;
            height: 60vh;
            background-color:  rgb(21, 90, 3);
            display: flex;
            opacity: 0.9;
            flex-direction: column;
            width: 100%;
            transition: 1s ease-in-out;
            transform: translateX(-100%);
            justify-content: center;
           text-align: center;
    
        }
        nav a{
            color: white;
            font-size: 1.5rem;
        }
    
        .menu{
            display: flex;
            
        }
        
        nav.hidden{
            transform: translateX(0);
        }
        .log button{
            width: 80px;
            height: 40px;
        }
        .btn button{
            width: 100px;
            height: 40px;
        }
        .serch{
            transform: translateX(-50px);
        }
        .icon{
            display: flex;
            gap: 5px;
        }
    }
    @media screen and (max-width:470px) {
        .logo img{
            width: 50%;
            }
            .log button{
                width: 80px;
                height: 40px;
            }
            .btn button{
                width: 100px;
                height: 40px;
            }
    }

    aside {
        margin-top: 100px;
         width: 200px;
         padding: 20px;
         background-color: white;
         }
         .item a { 
            display: block; 
            margin-bottom: 10px; 
            text-decoration: none; 
            color: #333; 
        }
        aside :hover  {
            color: rgb(4, 82, 4);
        }
        
    .cont{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .active-link {
        color: rgb(5, 91, 5) !important; 
        font-weight: bold; 
    }    
    
    main { flex-grow: 1; 
        padding: 20px; }

        
    .dash-cont{
        width: 100%;
        padding: 3%;
        justify-content: center;
        align-items: center;
        display: flex;
      
    }
    
    .dash-item{
        
        text-align: center;
        margin-top: -220px;
        width: 40%;
        height: 300px;
    }
    .dash-item h1{
        font-size: 2rem;
    }
    .dash-item h1::after{
        content: "METALCONNECT";
        color: rgb(21, 90, 3);
    }
    .dash-item p{
        font-size: 1.2rem;
        margin-top: 10px;
    }

    .btn {
        margin-top: 10px;
        width: 120px;
        height: 45px;
       background-color:  rgb(21, 90, 3);
       font-size: 1.4rem;
       border-radius: 10px;
       border: none;
       box-shadow: -1px -2px 11px 7px rgba(212,197,197,0.64);
    }
    .btn a{
        text-decoration: none;
        color: white;
        
    }
    .btn :hover {
        color: black;
    }
    
    @media screen and (max-width:768px){
        .dash-item{
            margin-top: 60px;
            width: 90%;
            /* transform: translateX(100px); */
        }
    }
    /* dashh styling */
    #dashh{
        
        margin-top: -100px;
    }
    .dashh-cont{
    width: 100%;
    padding: 3%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 30px;
    
}
.dashh-item{
    width: 20%;
    height: 200px;
    text-align: center;
    
    border-radius: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
.dashh-item h3{
    margin-top: 20px;
    font-size: 1.1rem;
    color: rgb(21, 90, 3);
}
.dashh-item p{
    margin-top: 20px;
}

@media screen and (max-width:768px){
    #dashh{
        margin-top: 50px;
    }
    .dashh-cont{
        flex-direction: column;
    }
    .dashh-item{
        width: 90%;
        height:270px;
        
    }
    .dashh-item h3{
        margin-top: 50px;
    }
}