

html {
    font-size: 5px;
}

main {
    width: 100%;
    height: 100%;
    padding-top: 10vh;
}

a {
    text-decoration: none;
}

body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

#main, #header, #footer {
    visibility: hidden;
}

::-webkit-scrollbar {
    width: 0;
}

/*loader*/
#loader {
    width: 100vw;
    height: 100vh;
    background-color: white;
    position: absolute;
    z-index: 2;
    top: 0;
    border-left: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader > img {
    scale: 40%;
}

/*loader*/

.btn {
    font-size: 2.5rem;
}

.mainSec {
    height: 100vh;
}

.card-img {
    width: 100%;
    height: 50%;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
    cursor: pointer;
    transition-property: all;
    transition-duration: .2s;
}

.card-img:hover {
    scale: 120%;
    transition-property: all;
    transition-duration: .2s;
}

.card-container {
    margin: 2vw 5vw;
    display: flex;
    flex-wrap: wrap;
}

.card {
    width: 22vw;
    height: 24vw;
    margin-left: 7rem;
    display: inline-block;
    margin-bottom: 11rem;

    transition-property: all;
    transition-duration: .2s;
}

.card:hover {
    background-color: rgba(94, 94, 94, 0.16);

    transition-property: all;
    transition-duration: .2s;
}

.card h6 {
    text-align: left !important;
    font-size: 3rem;
    padding-top: 4rem;
}

.card a {
    padding-top: 0.5rem;
    display: inline-block;
}

.assignmentTitles {
    font-family: fantasy;
    font-size: 4rem;
    letter-spacing: 1.2rem;
    background-color: black;
    color: white;
    padding: 1.5rem 0;
}

.assignmentSubTitles {
    text-align: left;
    padding: 2rem 8rem;
    font-size: 4.2rem;
    letter-spacing: 1rem;
}

#call {
    width: 10rem;
    height: 10rem;
    background-color: #181818;
    border-radius: 100%;
    position: fixed;
    right: 5rem;
    bottom: 5rem;
    margin: auto;
    padding: 0;
    z-index: 1;
    cursor: pointer;
}

#call > i {
    position: relative;
    left: 4rem;
    top: 4rem;
    color: chartreuse;
    font-size: 2rem;
}

.water-drop-anim {
    width: 30rem;
    height: 30rem;
    border: 0.4rem solid gray;
    border-radius: 100%;
    position: fixed;
    right: 5rem;
    bottom: 5rem;
    margin: auto;
    padding: 0;

    animation-name: circle_animate;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in;
}

.water-drop-anim2 {
    width: 30rem;
    height: 30rem;
    border: 0.3rem solid gray;
    border-radius: 100%;
    position: fixed;
    right: 5rem;
    bottom: 5rem;
    margin: auto;
    padding: 0;

    animation-name: circle_animate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in;
}

@keyframes circle_animate {
    0% {
        width: 10rem;
        height: 10rem;
    }
    100% {
        opacity: 0;
        border: 0.5rem solid dodgerblue;
        width: 20rem;
        height: 20rem;
    }
}


.btn-view-all {
    position: relative;
    display: block;
    margin: auto;
    width: 44rem;
    height: 9rem;
    font-family: 'Poppins', sans-serif;
    background-color: white;
    border-radius: 3rem;
    border: 0.35rem solid gray;
}

.btn-view-all:hover {
    background-color: #181818;
    color: white;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
}

h1 {
    text-align: left;
    color: #404040;
    font-family: 'Poppins', sans-serif;
    font-size: 9rem;
    padding-left: 17rem;
    margin: 8.1rem;
    margin-left: 0;
}

h3 {
    text-align: center;
    color: #404040;
    font-family: 'Port Lligat Sans', sans-serif;
    font-size: 3rem;
    font-weight: 100;
    margin: 1.1rem 0 0 0;
}

h5 {
    text-align: center;
    color: #404040;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    letter-spacing: 2.5rem;
}

h6 {
    margin: 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
}

/*All sections in the main*/
body > main > section {
    padding-top: 20rem;
}

#header {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.3
    );
    z-index: 2;
    top: 0;
    height: 10vh;
    width: 100%;
}

#my-logo {
    background: url("../image/my-logo.png");
    background-size: cover;
    display: inline-block;
    width: 28rem;
    height: 14rem;
    padding-left: 2rem;
}

#mainNavbar {
    position: relative;
    left: 34rem;
    bottom: 5.5rem;
    display: inline-block;
}

#mainNavbar > ul {
    list-style: none;
    padding-top: 1.2rem;
    margin: 0;
}

#mainNavbar > ul > a > li {
    display: inline-block;
    padding-left: 3rem;
    font-size: 3rem;
    color: gray;
    cursor: pointer;
}

#mainNavbar > ul > a > li:hover {
    color: red;
}


/*home*/
.home-bg-video {
    opacity: 50%;
    width: 100%;
    height: 114vh;
    position: absolute;
    z-index: -1;
    top: -14px;
}
#homeSection {
    position: fixed;
    padding: 0;
    width: 100%;
    height: 90vh;
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    grid-template-columns: repeat(10, 1fr);
    z-index: -1;
}

#socialNav {
    grid-column: 1/2;
    grid-row: 1/2;
    position: absolute;
    bottom: 8vh;
    margin: auto;
    left: 4vw;
}

#socialNav img {
    padding-bottom: 1.45rem;
    cursor: pointer;
    transition: all 250ms;
}
#socialNav img:hover{
    scale: 150%;
    transition: all 250ms;
}

#homeTextDiv {
    grid-column: 2/7;
    bottom: 8vh;
    position: absolute;
}

#homeMainImage {
    background: url("../image/my-portrait b&w.png");
    background-size: cover;
    background-position: center;
    width: 100%;
    grid-column: 7/10;
}

#homeSection > div > h3 {
    text-align: left;
}

#homeSection > div > h5 {
    text-align: left;
    margin: 2.45rem 0;
}

#homeSection > div > h1 {
    padding-left: 0;
    margin: 0;
    color: black;
}

/*about me-----------------------------------------start*/

/*article----start*/
#aboutSection {
    margin-top: 100vh;
    height: 85vh;
    background-color: white;
}

#aboutSection > article {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    display: inline-block;
    width: 50vw;
    height: 60rem;
    padding-top: 10rem;
}

#aboutSection > article > p {
    text-align: center;
}

#aboutSection > article > img {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}

/*article--------------end*/

/*about me-------------------------------------------------------------end*/

/*education-----------------------------------------------------------start*/
#sectionEdu{

}

.education_part { /*common to all sections*/
    position: relative;
    display: flex;
    padding: 4.45rem 4rem;
}

.education_part > div { /*common to all image containing divs*/
    display: inline-block;
    position: relative;
    width: 24rem;
}

.education_part > div > img { /*common style to images (logos)*/
    position: absolute;
    left: -12px;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.education_part > section { /*common to all rectangle sections*/
    display: inline-block;
    position: relative;
    width: 23%;
}

.education_part > section > div { /*common to all div(rect)s next to the logo*/
    position: relative;
    border: 0.2rem solid black;
    border-radius: 2.5rem;
    width: 100%;
    height: 19rem;
    margin: 0.8rem;
    box-shadow: rgba(0, 0, 0, 0.2) 0 3rem 10rem -2rem;
}

.education_part > section > div > p { /*common to all p inside divs*/
    text-align: center;
    position: relative;
    top: 5.4rem;
    margin: 0;
}

.education_part > p { /*common to all each articles*/
    position: relative;
    display: inline-block;
    text-align: left;
    width: 37%;
    padding: 2.9rem 3vw 0 3vw;
}

#certificates {
    background-color: #000000d6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#certificates > h1 {
    padding: 0;
    margin: 0.67em 0;
}

#certificate_grid_container {
    width: 100%;
    padding-bottom: 8rem;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 8fr 1fr;
}

#certificate_grid_container img {
    display: block;
    width: 100%;
    max-width: 100%;
}

#certificate_grid_container i {
    color: white;
    font-size: 40px;
    position: relative;
    top: 46%;
    left: 34%;
    cursor: pointer;
}

#certificate_grid_container i:hover {
    color: #ff2f2f;
}


/*row reversed sections*/
.row_reversed_education { /*common to all sections*/
    flex-direction: row-reverse;
}

.row_reversed_education > p {
    text-align: right !important;
}

/*Education ------------------------------------------------------------------end*/

/*Skill and tools ------------------------------------------------------------start*/

#sectionSkills img {
    scale: 100%;
    transition: 0.2s all;
}

#sectionSkills img:hover {
    scale: 150%;
    cursor: pointer;
    transition: 0.3s all;
}

#sectionSkills > section {
    display: flex;
    width: 90vw;
    flex-flow: wrap;
    justify-content: space-evenly;
    left: 0;
    right: 0;
    margin: auto;
    padding-top: 3rem;
}

/*skill and tools ----------------------------------------------------------end*/

/*projects ----------------------------------------------------------------start*/

#sectionProjects > section { /*flex container*/
    display: flex;
    padding-bottom: 30rem;
    flex-direction: row;
    justify-content: space-between;
}

#sectionProjects > section > section { /*flex items*/
    margin-bottom: 14rem;
    position: relative;
}

#sectionProjects > section > section > div { /*all project images*/
    width: 190rem;
    height: 128rem;
    border-radius: 3.5rem;
    box-shadow: 2.1rem 1.2rem 5rem -0.6rem #00000057;
    left: 0;
    right: 0;
    margin: auto;
    transition: all 0.2s;
}

#sectionProjects > section > section > div:hover + article { /*when hover all articles show*/
    opacity: 1;
}

#sectionProjects > section > section > div:hover { /*when hovering all divs*/
    cursor: pointer;
    filter: brightness(0.16);
    transition: all 0.2s;
}

/*project 1*/
#sectionProjects > section > section:nth-child(1) > div {
    background: url("../image/projectsScreenshots/parking system project.png");
    background-size: cover;
}

/*project 2*/
#sectionProjects > section > section:nth-child(2) > div {
    background: url("../image/projectsScreenshots/t4me project.png");
    background-size: cover;
}

/*project 3*/
#sectionProjects > section > section:nth-child(3) > div {
    background: url("../image/projectsScreenshots/d24 project.png");
    background-size: cover;
}

#sectionProjects > section > section > article { /*all description articles*/
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
    color: white;
    position: absolute;
    left: 0;
    right: 0;
    top: 41rem;
    opacity: 0;
}

#sectionProjects > section > section > article > p {
    font-size: 3rem;
}

#sectionProjects > section > section > article > h5 {
    color: white;
    font-size: 8rem;
    margin: 0 0 6rem 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1.2rem;
}

#btnMoreProjects {
    position: relative;
    display: block;
    margin: auto;
    width: 44rem;
    height: 9rem;
    font-family: 'Poppins', sans-serif;
    background-color: white;
    border-radius: 3rem;
    border: 0.35rem solid gray;
}

#btnMoreProjects:hover { /*when hovering btn*/
    background-color: #181818;
    color: white;
}

/*projects ----------------------------------------------------end*/

/*Contact me --------------------------------------------------start*/
#sectionContact > div {
    background: url("../image/map.jpg");
    background-position: center;
    height: 40rem;
    width: 80vw;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 8.3rem;
    margin-bottom: 16rem;
    box-shadow: 1rem 1.5rem 2.5rem -0.5rem #80808099
}

/*Contact me --------------------------------------------------end*/

/*footer --------------------------------------------------start*/
#footer > div:first-child {
    position: absolute;
    z-index: 0;
    height: 77rem;
    width: 100%;
    background-color: #000000e3;
    left: 0;
    right: 0;
    margin: auto;
    border-top-left-radius: 130rem;
    border-top-right-radius: 130rem;
    box-shadow: 0.8rem 0 19rem 1.5rem #808080bf;
}

#footer > section {
    position: relative;
    top: 14rem;
}

#footer > section > p {
    text-align: center;
    color: white;
    padding-top: 3.5rem;
}

#footer > nav {
    position: relative;
    top: 18rem;
    padding-left: 45vw;
}

#footer > nav > img {
    padding-right: 0.8rem;
}

#footer > div:last-child {
    background-color: black;
    height: 8rem;
    position: relative;
    bottom: -25rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#footer > div:last-child > p {
    color: white;
    top: -3rem;
    font-size: 2rem;
}

/*footer --------------------------------------------------end*/