@font-face {
    font-family: 'my font';
    src: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
}

*{
    padding: 0;
    margin: 0;
    font-family: 'my font', sans-serif;
}

body{
    background-color: white;
    min-height: 100vh;
    /* position: relative; */
}
.container{
    margin: 0 20px;
}

.nav-bar{
    margin-top: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    .logo img{
        width: 2.5rem;
        cursor: pointer;
        
    }
    .logo{
        flex-grow: 1;
        
    }
    ul{
        display: none;
    }
    .toggle-btn{
        height: 15px;
        width: 30px;
        cursor: pointer;
    }
}
/*end of the nav styling*/

.hero-image{
    width: 100%;
    box-sizing: border-box;

    img{
        width: 100%;
        display: block;
    }
}
/*end of hero image styling*/

.hero-text{
    margin-top: 20px;
    h1{
        font-size: 2rem;
        font-weight: 900;
    }
    p{
        font-size: 0.758rem;
        line-height: 25px;
        margin-top: 0.8rem;
        color:hsl(236, 13%, 42%) ;
    }
    button{
        background:  hsl(5, 85%, 63%);
        color:hsl(240, 100%, 5%) ;
        font-weight: bold;
        padding: 0.65rem 1.5rem;
        border: none;
        font-family: inherit;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin: 1.2rem 0;
        cursor: pointer;
        transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    }
    button:hover{
        background: hsl(240, 100%, 5%);
        color: hsl(0, 0%, 100%);
    }
}

.box-section{
    background-color:hsl(240, 100%, 5%) ;
    padding: 1.2rem .8rem;
    color: white;
    margin: 2.6rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);

    h2{
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: 2rem;
        font-weight: 600;
        color: hsl(35, 77%, 62%);
    }
    h3{
        font-size: 0.85rem;
        font-weight: 200;
        font-weight: 900;
        margin-bottom: 0.8rem;
        color: sl(233, 8%, 79%);
        transition: color 0.3s ease-in-out;
    }
    h3:hover{
        color: hsl(35, 77%, 62%);
        cursor: pointer;
    }
    p{
        font-size: 0.75rem;
        line-height: 23px;
        color:hsl(234, 6%, 65%) ;
    }
    .box-section-title{
        margin: 1.3rem 0;
        border-bottom: 1px solid hsl(233, 8%, 79%);
        padding-bottom: 25px;
        
    }

}
.box-section .remove{
    border: none;
    margin-bottom: 0;
}

/***************************/


/*end of box section styling*/

.card{
    display: flex;
    /* align-items: ; */
    justify-content: baseline;
    gap: 20px;
    margin-bottom:30px ;
        img{
            width: 100px;
        }
        .card-text{
            display: flex;
            flex-direction: column;
            /* justify-content: baseline; */
            /* align-items: baseline; */
            gap: 6px;
            text-align: baseline;
            h2{
                font-size: 1.5rem;
                color:hsl(5, 85%, 63%) ;
            }
            h3{
                font-size: 0.8rem;
                font-weight: 900;
                color:hsl(240, 100%, 5%) ;
                margin-bottom: 6px;
                /* margin-bottom: 5px; */
                /* padding-top: .7rem; */
            }
            p{
                font-size: 0.7rem;
                line-height: 15px;
                color:hsl(240, 100%, 5%) ;
            }
        }

}
/*end of card styling*/

.side-bar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 55%;
    background-color:hsl(36, 100%, 99%) ;
    z-index: 1000;
    /* padding: 15px 20px; */
    max-width: 0;
    overflow: hidden;
    animation: maxWidth 1s ease-in-out forwards;
    @keyframes maxWidth{
        0%{
            max-width: 0;
        }
        25%{
            max-width: 20%;
        }
        50%{
            max-width: 30%;
        }
        75%{
            max-width: 40%;
        }
        100%{
            max-width: 55%;
        }
    }
    .logo-1{
        width: 100%;
        text-align: end;
        margin-top: 13px;
        font
        img{
            width: 27px;
        }
       
    }

    ul{
        list-style: none;
        text-decoration: none;
        margin-top: 100px;
        li{
            text-decoration: none;
            list-style: none;
            line-height: 50px;
            cursor: pointer;
            a{
                text-decoration: none;
                color: black;
                font-weight: bold;
            }
        }
    }
}
.side-bar.active{
    padding: 15px 20px;
    max-width:55%;
}
.cover{
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0,.4);
    position: fixed;
    top: 0;
    /* filter: blur(170px); */
}
.cover.active{
    display: block;
    animation: fadeIn 1s ease-in-out forwards;
    @keyframes fadeIn{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }
    }
}

@media screen and (min-width: 768px){
    .container{
        max-width: 80%;
        margin: 0 auto;
    }
   .hero-section{
    display: grid;
    grid-template-columns: repeat(3 ,2fr);
    grid-template-rows: repeat(2 1fr);
    gap: 20px;
    /* border: 1px solid orangered; */
    .box-section{
        margin: 0px;

       }
    .hero-image{
        grid-column: 2 span/ 2 span;
    }
    .box-section{
        grid-row: span 2 / span 2;
        grid-column-start: 3;
        grid-row-start: 1;
        .box-section-title{
            margin-bottom: 50px;
        }
    }
    .hero-text{
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: baseline;
        margin-bottom: 0;
        padding-bottom: 0;
        h1{
            font-size: 2.6rem;
            padding:0 0 20px;
            line-height: 60px;
        }
        p{
            margin-bottom: 20px;
            font-size: 1rem;
        }
    }
    
   }

   .bottom-section{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 90px;

   }
   .nav-bar{
    margin-top: 4rem;
    ul{
        display: flex;
        gap: 3rem;
        list-style: none;
        cursor: pointer;
        
        li{
            a{
                text-decoration: none;
                color: hsl(236, 13%, 42%) ;
                transition: color 200ms ease-in;
            }
        }
        a:hover{
            color:  hsl(5, 85%, 63%);
        }
    }
    .toggle-btn{
        display: none;
    }
   }
   
}