@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    src: local('IRANSans'), url(../font/IRANSans.ttf)format('truetype');
}

*,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IRANSans;
}

.vh100 {
    height: 100vh;
}

/*------------------------------------------------- main ------------------------------------------------------->*/
/*  page1 */
.pg-1 {
    background-image: url("../img/cool-background.png");
    background-size: cover;
}

header ul.m-right {
    margin-right: 12%;
}

header ul li .nav-link {
    color: white;
    font-size: 24px;
    font-weight: bold;
    /* text-shadow: 0px 5px 12px #000000; */
    text-shadow: 0px 2px 2px #000000;
    transition: 0.3s;
}

header .navbar-brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0px 2px 2px #000000;
    margin-left: 5%;
}

header nav .nav-link:hover {
    color: #ff8466;
    transform: scale(0.9);
    text-shadow: 2px 1px 2px #3b0c00;

}

.pg-1 .fontsize-1 {
    font-size: 77px;
}

.pg-1 .fontsize-2 {
    font-size: 20px;
}

.pg-1 .fontsize-3 {
    font-size: 61px;
}

.pg-1 .m-top {
    margin-top: 10%;
}

.pg-1 .up {
    margin-bottom: 53px;
}

.h-100c {
    height: 100%;
}

/*  page1 */
/*  page2 */
.pg-2 {
    background-image: url("../img/cool-background\ \(1\).png");
    background-size: cover;
}

.pg-2 .mt-c1 {
    margin-top: 70px;
}

.pg-2 .fs-c-1 {
    font-size: 80px;
}

.pg-2 .img-size {
    width: 65%;
    height: 100%;
}

.skills {
    width: 24px !important;
    height: 24px;
    position: relative;

}

.c-skill {
    width: 110px;
    position: absolute;
    visibility: hidden;

}

.v-hidden {
    visibility: hidden;
}

.skills img:nth-child(1) {
    top: -32px;
    left: -301px;
}

.skills img:nth-child(2) {
    top: 230px;
    left: -557px;
    width: 87px;
}

.skills img:nth-child(3) {
    top: 230px;
    left: 504px;
}

.skills img:nth-child(4) {
    top: 402px;
    left: -518px;
}

.skills img:nth-child(5) {
    top: 65px;
    left: -469px;
}

.skills img:nth-child(6) {
    top: 392px;
    left: 433px;
}

.skills img:nth-child(7) {
    top: -32px;
    left: 207px;
}

.skills img:nth-child(8) {
    top: 65px;
    left: 413px;
    width: 90px;
}



/*  page2 */
/*  page3 */
.vh100c{
    height: 100vh;
}
.pg-3 {
    background-image: url("../img/bg-ocean.png");
    background-size: cover;
}

.d-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
   
}
.d-custom img{
    width: 66px;
}
.form{
    width: 85%;
}
.form input {
    margin: 30px 0;
    width: 49%;
    background-color: #0000003b;
    border: 2px solid #ffffff38;
    padding: 9px 8px;
    font-weight: bold;
    font-size: 15px;
    color: white;
}
.form textarea{
    width: 99%;
    color: white;
    background-color: #0000003b;
    border: 2px solid #ffffff38;
    padding: 2px 4px;
}
.form  button{
    background-color: #0000003b;
    border: 2px solid #ffffff38;
}
.h-md-100{
    height: 100%;
}
.d-custom a{
    text-decoration: none;
    FONT-SIZE: 20px;
    font-weight: bold;
    cursor: pointer;

}



/*  page3 */
/*      <<<---------------------------------------------- main -------------------------------------------------------*/








@media screen and (max-width: 1024px) {

    /* start of large tablet styles */
    .pg-1 .fontsize-1 {
        font-size: 60px;
    }

    .pg-1 .fontsize-2 {
        font-size: 20px;
    }

    .pg-1 .fontsize-3 {
        font-size: 53px;
    }

    /*------------  pg2  -------------*/
    .pg-2 .mt-c1 {
        margin-top: 105px;
    }

    .pg-2 .img-size {
        height: auto;
        width: 70%;
        object-fit: contain;

    }

    .pg-2 .fs-c-1 {
        font-size: 50px;
    }

    .c-skill {
        width: 70px;
        position: absolute;
        visibility: hidden;

    }

    .v-hidden {
        visibility: hidden;
    }

    .skills img:nth-child(1) {
        top: -32px;
        left: -193px;
    }

    .skills img:nth-child(2) {
        top: 187px;
        left: -399px;
    }

    .skills img:nth-child(3) {
        top: 187px;
        left: 363px;
    }

    .skills img:nth-child(4) {
        top: 324px;
        left: -334px;
    }

    .skills img:nth-child(5) {
        top: 55px;
        left: -334px;
    }

    .skills img:nth-child(6) {
        top: 324px;
        left: 314px;
    }

    .skills img:nth-child(7) {
        top: -32px;
        left: 151px;
    }

    .skills img:nth-child(8) {
        top: 55px;
        left: 314px;
    }

    /*------------  pg2  -------------*/
}

/*----------------------------------------------------  md(tablet)  ------------------------------------------------------*/
@media screen and (max-width: 769px) {

    /*page1*/
    .pg-1 .fontsize-1 {
        font-size: 40px;
    }

    .pg-1 .fontsize-2 {
        font-size: 18px;
    }

    .pg-1 .fontsize-3 {
        font-size: 30px;
    }

    header ul.m-right {
        display: flex;
        align-items: center;
    }

    .bg-sm-c {

        background-color: #000000b8;
        box-shadow: 2px 6px 19px black;

    }

    /*page1*/
    /*page2*/
    .pg-2 .img-size {
        height: auto;
        width: 60%;
        object-fit: contain;

    }

    .pg-2 .mt-c1 {
        margin-top: 63px;
    }

    .c-skill,
    .skills {
        display: none;
    }

    .skills-mobile {
        display: flex;
    }

    .pg-2 .m-skill {
        visibility: hidden;
        margin: 12px 0;
        height: 50px;
    }

    .pg-2 .c-skill-m {
        width: 56px;
    }

    .title {
        color: white;
        font-size: 25px;
        margin-right: 10px;
    }

    /*page2*/
}

/*----------------------------------------------------  sm (phone) ------------------------------------------------------*/
@media screen and (max-width: 430px) {

    /*page1*/
    
    .pg-1 nav .container-fluid {
        min-width: 336px;
    }

    .pg-1 img {
        display: none;
    }

    .pg-1 .up {
        margin-bottom: 71px;
    }

    .h-100c {
        height: 94% !important;
    }



    /*page1*/
    /*page2*/
    .pg-2 .img-size {
        height: auto;
        width: 100%;
        object-fit: contain;

    }

    .pg-2 .mt-c1 {
        margin-top: 95px;
    }

    .pg-2 .c-skill-m {
        width: 48px;
    }

    .title {
        font-size: 18px;
        margin-right: 0px;

    }

    /*page2*/
    /*page3*/
    .vh100c{
        height: auto;
    }
    .h-md-100{
        height: auto;
    }
    .form{
        width: 100%;
    }
    .d-custom img {
        width: 50px;
    }
    .mt-sm-c{
        margin-top: 90px !important;
    }
    .form input {
        margin: 10px 0;
        width: 99%;
    }
    .d-custom {
        margin: 18px 0px;
    }
   

    /*page3*/

}

/*---------------------------------------------------  animation  ---------------------------------------------*/
.animation-Sbottom {
    visibility: visible;
    animation: Sbottom 2s ease 0s 1 normal forwards;
}

@keyframes Sbottom {
    0% {
        opacity: 0;
        transform: translateY(250px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation-Stop {
    visibility: visible;
    animation: Stop 2s ease 0s 1 normal forwards;
}

@keyframes Stop {
    0% {
        opacity: 0;
        transform: translateY(-250px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation-Sleft {
    visibility: visible !important;
    animation: Sleft 2s ease 0s 1 normal forwards;
    
}

@keyframes Sleft {
    0% {
        opacity: 0;
        transform: translateX(-250px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animation-Sright {
    visibility: visible;
    animation: Sright 2s ease 0s 1 normal forwards;
}

@keyframes Sright {
    0% {
        opacity: 0;
        transform: translateX(+250px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animation-SFcenter {
    visibility: visible;
    animation: SFcenter 2s ease 0s 1 normal forwards;
}

@keyframes SFcenter {
    0% {
        top: 256px;
        left: -49px;
        opacity: 0;
        transform: rotate(-540deg) scale(0);
    }

    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* animation */