*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html, body{
    height: 100%;
    width: 100%;
}
#body{
    background-color: #3a3939; 
}
#page1{
    height: 100%;
    width: 100%;
    /* background-color: wheat; */
}

#nav{
    height: 120px;
    width: 100%;
    /* background-color: royalblue; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    
}

#nav-part1{
    width: 30%;
    /* background-color: yellow; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#nav-part1 h4{
    font-size: 16px;
    font-weight: 600;
    
}
#nav-part2{
    width: 30%;
    /* background-color: yellow; */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#nav-part2 button{
    padding: 15px 22px;
    font-weight: 600;
    border: none;
    background-color: black;
    color: white;
    border-radius: 50px;
    font-size: 17px;
    /* margin: 0 10px; */
}
#nav-part2 button:nth-child(1){
    background-color: transparent;
    color: black;

}
#nav img{
    height: 60px;

}
#content{
    height: calc(100% - 120px);
    width: 100%;
    /* background-color: crimson; */
    padding-top: 100px;
}

#content h3{
    background-color: #FFD584;
    padding: 10px 16px;
    border-radius: 50px;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 100;
    font-size: 17px;
}
#content h1{
    font-size: 80px;
    text-align: center;
    margin: 25px  0;
    font-family: "Source Serif 4";
    font-weight: 100;
    line-height: 80px;
}

#content h4{
    font-size: 20px;
    text-align: center;
    font-weight: 500;  
}

#content>button{
    padding: 20px 28px;
    font-weight: 600;
    border: none;
    background-color: black;
    color: white;
    border-radius: 50px;
    font-size: 18px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    margin-top: 25px;
}
#bottom{
    height: 380px;
    width: 100%;
    /* background-color: red; */
    margin-top: 25px;
    padding: 5px;
    padding-left: 27px;
    white-space: nowrap;
    overflow-x: auto;
    /* overflow-y: hidden; */
}
#bottom::-webkit-scrollbar{
    display: none;
}
.elem{
    display: inline-block;
    height: 100%;
    width: 300px;
    margin-right: 30px;
    background-color: royalblue;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    animation-name: anime;
    animation-duration: 50s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
@keyframes anime {
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-400%);
    }
}
.elem img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.elem video{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.elem .text-bottom{
    height: 40%;
    width: 100%;
    bottom: 0;
    position: absolute;
    padding: 2vw 1vw;
    /* background-color: black; */
    color: white;
}
.elem .text-bottom h5{
    font-size: 0.9vw;
    font-weight: 600;
    /* padding: 1vw; */
    /* position: absolute; */
    /* top: 50%; */
    /* background-color: gold; */
    align-items: center; 
    /* justify-content: space-between; */
}
.elem .profession-button{
    height: 60%;
    width: 100%;
    /* background-color: #000; */
    /* margin-top: 1.5vh; */
}
.profbutton{
    padding: 7px 10px;
    font-weight: 600;
    border: 0.03px solid rgba(255, 255, 255, 0.41);
    background-color: transparent;
    color: white;
    border-radius: 50px;
    font-size: 15px;
    position: relative;
    /* left: 8%;
    top: 25%; */
    /* transform: translateX(-50%); */
    margin: 0.5vw 0.2vw;
}
#page2{
    height: 100%;
    width: 100%;
    /* background-color: wheat; */
    position: relative;
    padding: 70px;
    padding-top: 100px;
}
#page2 h1{
    text-align: center;
    font-weight: 500;
    font-size: 60px;
    margin-bottom: 50px;
}
.box{
    height: 320px;
    width: 400px;
    /* background-color: red; */
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    margin: 15px;
    position: relative;
    transition: all ease 0.5s;
}
.box img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.box video{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.box-bottom{
    height: 40%;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.599));
    position: absolute;
    bottom: -40%;
    transition: all ease 0.5s;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.box-bottom i{
    background-color: #fff;
    padding: 8px 9px;
    color: black;
    font-size: 19px;
    font-weight: 600;
    border-radius: 50%;
}
.box-bottom h5{
    font-size: 18px;
}
.box:hover .box-bottom{
    bottom: 0;
}
.box:hover{
    box-shadow: 7px 7px 10px rgba(0, 0, 0, 0.495);
    scale: 1.04;
}

/************************************************ Responsive *****************************************/
@media screen and  (max-width: 768px) {
    #nav {
        padding: 0 20px;
    }

    #nav-part1 h4{
        display: none;
    }

    #nav-part2 button{
        display: none;
    }

    #nav-part2 button {
        padding: 10px 15px;
        font-size: 14px;
    }

    #content h1 {
        font-size: 40px;
        line-height: 50px;
    }

    #content h4 {
        font-size: 16px;
    }

    #content>button {
        padding: 15px 20px;
        font-size: 16px;
    }

    #bottom {
        height: 250px;
    }

    .elem {
        width: 200px;
        margin-right: 20px;
    }

    .elem .text-bottom h5 {
        font-size: 12px;
    }

    .profbutton {
        font-size: 12px;
    }

    #page2 {
        padding: 20px;
        padding-top: 50px;
    }

    #page2 h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .box {
        height: 200px;
        width: 100%;
        margin: 10px 0;
    }

    .box-bottom h5 {
        font-size: 14px;
    }

    .box-bottom i {
        font-size: 16px;
    }
}