/* variabes CSS */
:root{
    --header-heaight: 3rem;
    --font-semi: 600;
}

/* Colors */
:root{
    --first-color: #50ECE9;
    --second-color: #664DCC;
    --third-color: #DF83D0;
    --fourth-color: #E5F61B;
    --fifth-color: #EC2253;
    --sixth-color: #F90505;
    --seventh-color: #06d899e3;
    --head-font-color: #900C3F;
    --body-font-color: #000000;
    --gradiant-color: linear-gradient(to right, #355c7d, #6c5b7b, #c06c84);
    --gradiant-second-color: linear-gradient(to right, #dd3e54, #6be585);
    --gradiant-third-color: linear-gradient(to right, #c31432, #240b36);
    --gradinant-fourth-color: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
}

/* Fonts */
:root{
    --body-font: 'Dosis', 'Inconsolata' sans-serif;
    --header-font: 'Noto Sans JP', 'Raleway';
    --paragraph: 'Roboto Slab', 'Redressed';
    --big-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
}

@media screen and (min-width: 786px){
    :root{
        --big-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
    }
}

/* Margins */
:root{
    --mb-1: 0.5rem;
    --mb-2: 1rem;
    --mb-3: 1.5rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
    --mb-7: 3.5rem;
}

/* Z-Index */
:root{
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    
}

/* Base  */
*, ::before,::after{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    margin: var(--header-heaight) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--body-font-color);
}
h1, h2, p{
    margin: 0;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
img{
    max-width: 95%;
    height: auto;
}
a{
    text-decoration: none;
}

.fstHeader{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: white;
    box-shadow: 0 1px 4px rgb(42, 84, 126, .15);
}

/* Nav */
.nav{
    height: var(--header-heaight);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semi);
}
@media screen and (max-width: 786px){
    .nav__menu{
        position: fixed;
        top: var(--header-heaight);
        right: -100%;
        width: 60%;
        height: 100%;
        padding: 2rem;
        background-color: var(--second-color);
        transition: .5s;
    }
}
.nav__item{
    margin-bottom: var(--mb-4);
}
.nav__link{
    position: relative;
    color: white;
}
.nav__link:hover{
    position: relative;
}
.nav__link:hover::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--fifth-color);
}
.nav__logo{
    color: #292626;
    padding-left: 15px;
}
.nav__toggle{
    color: darkslategrey;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Active menu */
.active::after{
    position: absolute;
    content: "";
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--fifth-color);
}

/* Show Menu */
.show{
    right: 0;
}
body{
    font-family: sans-serif;
}
h1{
    text-align: center;
    color: forestgreen;
    margin: 30px 0px 50px;
}
.gallery{
    margin: 10px 50px;
}
.small_img{
    width: 340px;
    height: 280px;
    padding: 8px;
    transition: all .4s ease-in-out;
}
.small_img:hover{
    transform: scale(1.1); 
}
.gallery img{
    border-radius: 30%;
}

/* Footer */
.footer{
    background-image: var(--gradiant-third-color);
    color: white;
    text-align: center;
    font-weight: var(--font-semi);
    padding: 2rem 0;
    margin: 6rem 0rem 0rem 0rem;
}
.footer .footer__tittle{
    font-size: 2rem;
}
.footer__social .home__social_icons{
    color: white;
    margin: 0 var(--mb-2);
}
.footer__social .home__social_icons:hover{
    color: #ffaf7b;
}

/* Media Queries */
@media screen and (min-width: 768px){
    body{
        margin: 5%;
    }
    .section{
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
    .section-tittle{
        margin-bottom: var(--mb-6);
    }
    .section-tittle::after{
        width: 80px;
        top: 3rem;
    }
    .nav{
        height: calc(var(--header-heaight) + 1rem);
    }
    .nav__list{
        display: flex;
        padding-top: 0;
        padding-right: 15px;
    }
    .nav__item{
        margin-left: var(--mb-6);
        margin-bottom: 0;
    }
    .nav__toggle{
        display: none;
    }
    .nav__link{
        color: var(--second-color);
    }
    .home{
        height: 100vh;
    }
    .home__data{
        align-self: flex-end;
    }
    .home__social{
        padding-right: 1rem;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
        flex-direction: row;
        align-self: flex-end;
    }
    .home__social_icons{
        margin-bottom: 0;
        margin-right: var(--mb-4);
    }
    .home__image{
        width: 400px;
        bottom: 10%;
    }
    .about__container, .skills__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        text-align: initial;
    }
    .about__img img{
        width: 300px;
    }
    .work__container{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }
    .work__img{
        height: fit-content;
    }
    .contact_form{
        width: 360px;
    }
    .contact__container{
        justify-items: center;
    }
}

@media screen and (min-width: 1024px){
    .bd-grid{
        margin-left: auto;
        margin-right: auto;
    }
    .home__image{
        right: 10%;
    }
}
#status{
    width: 90%;
    max-width: 500px;
    text-align: center;
    padding: 10px;
    margin: 0 auto;
    border-radius: 8px;
}
#status.success{
    background-color: rgb(211, 250, 153);
    animation: status 4s ease forwards;
}
#status.error{
    background-color: rgb(250, 129, 92);
    color: white;
    animation: status 4s ease forwards;
}
@keyframes status{
    0%{
        opacity: 1;
        pointer-events: all;
    }
    90%{
        opacity: 1;
        pointer-events: all;
    }
    100%{
        opacity: 0;
        pointer-events: none;
    }
}

/* =============The End=============== */
