* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;

}

::-webkit-scrollbar {
    width: 15px;
    cursor: pointer;
    background: black;
}


::-webkit-scrollbar-track {
    border-radius: 2px;
    background: black;
}


::-webkit-scrollbar-thumb {

    background: #ed1c24;
    border-radius: 2px;
    cursor: pointer;
}


::-webkit-scrollbar-thumb:hover {
    background: whitesmoke;
    cursor: pointer;
}

html {
    transition: all 0.5s ease-in-out;

    background-color: gray;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: 100%;
    /* overflow-y: hidden; */
}

body {
    /*background-image: url('../img/bg.jpg');*/
    background-color: black;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    object-fit: center;
    overflow-x: hidden;
    min-height: 100%;
    max-width: 100%;

}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: hidden;
}

.spinner {
    margin: 100px auto;
    width: 200px;
    height: 200px;
    position: relative;
    text-align: center;

    -webkit-animation: sk-rotate 2.0s infinite linear;
    animation: sk-rotate 2.0s infinite linear;
}

.dot1,
.dot2 {
    width: 60%;
    height: 60%;
    display: inline-block;
    position: absolute;
    top: 0;
    background-color: #ed1c24;
    border-radius: 100%;

    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.dot2 {
    top: auto;
    bottom: 0;
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
    background-color: rgb(68, 67, 67);
}

@-webkit-keyframes sk-rotate {
    100% {
        -webkit-transform: rotate(360deg)
    }
}

@keyframes sk-rotate {
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg)
    }
}

@-webkit-keyframes sk-bounce {

    0%,
    100% {
        -webkit-transform: scale(0.0)
    }

    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bounce {

    0%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}

section {
    width: 100vw;
    height: 100%;
    padding: 10vh;

}

#about {
    padding-top: 10vh;

}

a {
    text-decoration: none;
}

#home {
    padding: 0;
    height: 100vh;
}

nav {

    min-height: 10vh;
    width: 100%;
    background: rgba(0, 0, 0, .9);
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 99;
    padding: 3vh 10vw;
    transition: all 0.5s ease-in-out;


}

.navContent {
    display: flex;
    justify-content: space-around;
    width: 60%;

}


nav.active {

    background-color: rgba(0, 0, 0, .9);
    height: 2%;
    /* padding-left: 10vw; */


}

.navContent a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    /* animation-name: links;
        animation-duration: 2s; */

}

.navContent a.active-1,
.logo.active-1 {
    animation-name: links;
    animation-duration: 1s;
    animation-delay: 0;
    opacity: 1;
}

@keyframes links {
    from {
        opacity: 0;
        transform: translateY(-20px);

    }

    to {
        opacity: 1;
        transform: translateY(0%);
    }
}

.navContent a:hover {
    background-color: rgb(100, 100, 100);




}

.ham {
    display: none;
}

.logo {
    width: 80px;
    height: 80px;
    background-image: url('../img/my-logo-1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    transition: all 0.5s ease-in-out;
    opacity: 0;

}

.homeContent {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    position: relative;
    padding: 0vh 10vw;

}

.homeText {

    width: 50%;
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;

}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        width: 0;
        height: 0;

    }

    to {
        opacity: 1;
        width: 300px;
        height: 300px;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(300px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes size {
    from {
        opacity: 0;

    }

    to {
        opacity: 1;

    }
}

.homeText h1 {
    color: white;
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 1rem;
    transition: all .5s ease-in-out;
    opacity: 0;
}

.homeText h1.active {
    animation-name: slide-left;
    /* animation-delay: 1s; */
    animation-duration: 2s;
    opacity: 1;

}

.homeText h1 span {
    color: #ed1c24;
    opacity: 0;
    transition: all 1s ease-in 1s;



}

.homeText h1 span.active {
    animation-name: size;
    animation-duration: 3s;
    animation-delay: 1s;
    opacity: 1;

}

.homeText a {
    width: 150px;
    border-style: none;
    background-color: #ed1c24;
    color: black;
    letter-spacing: 1px;
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 700;
    padding: 12px 5px;
    transition: all ease-in-out .4s;
    text-decoration: none;
    text-align: center;
    opacity: 0;
}

.homeText a.active {
    animation-name: slide-up;
    animation-duration: 3s;
    animation-delay: 0s;
    opacity: 1;



}

.homeText a:hover {
    background-color: white;
    transform: scale(1.1);
}

.homeImage {
    width: 300px;
    height: 300px;
    background-image: url('../img/profile.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 70%;
    top: 55%;
    z-index: 2;
    opacity: 0;


}

.homeImage.active {
    animation-name: size;
    animation-duration: 3s;

    opacity: 1;

}

.homeImageBack {
    content: '';
    width: 300px;
    height: 300px;
    background-color: whitesmoke;
    border-radius: 50%;
    position: absolute;
    left: 75%;
    transform: translate(-50%, -50%);
    top: 50%;
    z-index: 0;
    opacity: 0;

}

.homeImageBack.active {
    animation-name: slide-right;
    animation-duration: 3s;


    opacity: 1;
}

#about {
    background-color: rgb(68, 67, 67);
    /*height: 100vh;
        margin-bottom: 2em;
        padding-top: 10vh;*/
}

.aboutContent {
    width: 60%;
    margin: 1em auto;

}

.aboutContent h2,
.skillsContent h2,
.workContent h2,
.contactContent h2 {
    color: #ed1c24;
    font-size: 2.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1em;
}

.aboutContent p {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    text-align: justify;
    line-height: 1.6rem;
    margin-bottom: .5em;
}

.btns {

    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 340px;
    margin: 3em auto;
}

.aboutContent a {
    width: 150px;
    background-color: white;
    color: black;
    letter-spacing: 1px;
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 700;
    padding: 12px 12px;
    transition: all ease-in-out .5s;
    display: block;
    text-align: center;


}

.aboutContent a:last-of-type {
    background-color: black;
    color: white;
}

.aboutContent a:hover {
    color: #ed1c24;
    transform: scale(1.1);

}

.skillsContent,
.workContent,
.contactContent {
    width: 90%;
    margin: 1em auto;

}

.skillsCards {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.card {
    width: 300px;
    height: 450px;
    background-color: rgb(68, 67, 67);
    border: 4px solid #ed1c24;
    border-radius: 2px;
    padding: 0 20px;
    position: relative;
}

.card h3 {
    color: #ed1c24;
    text-align: center;
    margin: 1em auto;
    letter-spacing: 1px;
}

.card p {
    color: white;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8rem;

}

#cardP {
    font-size: .8rem;
    line-height: 1.2rem;
    text-align: justify;
}

#container {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
}

#container_2,
#container_3 {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
}

.workCards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    width: 90%;
    min-height: 1000px;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;

}

.workProject:nth-child(1) {
    width: 100%;
    height: 400px;
    background-image: url('../img/spa-mockup.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject:nth-child(2) {
    width: 100%;
    height: 400px;
    background-image: url('../img/mwa-mockup.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject:nth-child(3) {
    width: 100%;
    height: 400px;
    background-image: url('../img/ca-mockup.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject:nth-child(4) {
    width: 100%;
    height: 400px;
    background-image: url('../img/isa-mockup.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject:nth-child(5) {
    width: 100%;
    background-color: whitesmoke;
    height: 400px;
    background-image: url('../img/website.png');
    background-repeat: no-repeat;
    background-position: 90% 50%;
    background-size: contain;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject:nth-child(6) {
    width: 100%;
    background-color: whitesmoke;
    height: 400px;
    background-image: url('../work/ecommerce-dashboard/dashboard-preview.png');
    background-repeat: no-repeat;
    background-position: 90% 50%;
    background-size: contain;
    margin: 0 auto;
    max-width: 100%;
    border: 4px solid #ed1c24;
    border-radius: 3px;

}

.workProject {
    transition: all ease-in-out .5s;
    overflow: hidden;



}

.workProject:nth-child(1).active,
.workProject:nth-child(3).active,
.workProject:nth-child(5).active,
.workProject:nth-child(7).active,
.workProject:nth-child(9).active {
    animation-name: work_1_3;
    animation-duration: 1s;
    animation-timing-function: ease-in;


}

/* .workProject:nth-child(2),.workProject:nth-child(4){
        animation-name: work_2_4;
         animation-duration: 1s;
         animation-timing-function: ease-in;

    } */
.workProject:nth-child(2):hover,
.workProject:nth-child(4):hover {
    cursor: pointer;
    transform: translate(0%, -5%);
    filter: contrast(150%);
}

.workProject:nth-child(1):hover,
.workProject:nth-child(3):hover {
    cursor: pointer;
    transform: translate(0%, -5%);
    filter: contrast(150%);


}

.workProject:hover {
    cursor: pointer;
    transform: scale(1.1);
    /* transform: translate(5%, -5%); */
    filter: contrast(150%);
    border: 4px solid #4e4e4e;
    /* background-size: 120%; */

}

@keyframes work_1_3 {
    from {
        opacity: 0;
        transform: translateX(-20%);

    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes work_2_4 {
    from {
        opacity: 0;
        transform: translateX(20%);

    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}


#work {

    margin-bottom: 2em;



}

#contact {

    /*flex: 1 0 auto;*/
}

.contactForm {
    width: 90%;
    margin: 0 auto;
}

input[type="text"] {
    padding: 0px 5px;
    display: inline-block;
    width: 49%;
    height: 40px;
    background-color: transparent;
    border-style: none;
    border: 2px solid #ed1c24;
    margin: 0 auto;
    margin-bottom: 1.5em;
    color: white;
    outline: none;
    transition: all ease-in-out .5s;
    font-size: 12pt;
    background-color: rgba(0, 0, 0, .7);
}

input[type="text"]:nth-child(1) {
    float: left;
}

input[type="text"]:nth-child(2) {
    float: right;
}

input[type="email"] {
    padding: 0px 5px;
    display: block;
    width: 100%;
    height: 40px;
    background-color: transparent;
    border-style: none;
    border: 2px solid #ed1c24;
    margin: 0 auto;
    margin-bottom: 1.5em;
    color: white;
    outline: none;
    transition: all ease-in-out .5s;
    font-size: 12pt;
    background-color: rgba(0, 0, 0, .7);
}

textarea {
    padding: 5px 5px;
    display: block;
    width: 100%;
    height: 300px;
    background-color: transparent;
    border-style: none;
    border: 2px solid #ed1c24;
    margin: 0 auto;
    margin-bottom: 1.5em;
    color: white;
    outline: none;
    transition: all ease-in-out .5s;
    font-size: 12pt;
    background-color: rgba(0, 0, 0, .7);
    resize: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background-color: rgba(0, 0, 0, .9);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: lightgray;
    letter-spacing: 2px;
    font-size: 12pt;

}

input[type="submit"] {
    border-style: none;
    width: 150px;
    background-color: white;
    color: black;
    letter-spacing: 1px;
    border-radius: 2px;
    font-size: .9rem;
    font-weight: 700;
    padding: 15px 5px;
    transition: all ease-in-out .5s;
    cursor: pointer;





}

input[type="submit"]:hover {
    color: #ed1c24;
    transform: scale(1.1);

}

footer {
    width: 100%;
    min-height: 30vh;
    padding-top: 5vh;
    background-color: gray;

    grid-row-start: 6;
    grid-row-end: 7;

    /* margin-top: -6em; */
}

footer h3 {
    color: white;
    text-align: center;
    margin: 0 auto;

    letter-spacing: 1px;

}

footer div {
    width: 40%;
    height: 30%;
    margin: 2em auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

footer i {
    color: black;
    font-size: 2rem;
    transition: all ease-in-out .5s;
}

footer i:hover {
    color: rgba(0, 0, 0, .7);
    transform: scale(1.1);

}

footer h4 {
    font-size: .8rem;
    color: white;
    text-align: center;
    margin: 0 auto;
    margin-top: 3%;

    letter-spacing: 1px;

}

@media screen and (max-width: 1295px) {
    .aboutContent {
        width: 70%;
        margin: 1em auto;

    }

    .workProject:nth-child(1),
    .workProject:nth-child(2),
    .workProject:nth-child(3),
    .workProject:nth-child(4),
    .workProject:nth-child(5),
    .workProject:nth-child(6),
    .workProject:nth-child(7),
    .workProject:nth-child(8),
    .workProject:nth-child(9) {
        width: 400px;
        height: 300px;
    }

}

@media screen and (max-width: 1061px) {
    .workCards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
        width: 80%;
        height: 640px;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;

    }


    .contactContent {
        width: 100%;
    }

    .skillsContent {
        margin-top: -2em;
    }

    .skillsCards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 50%;

    }

    .card {
        width: 300px;
        height: 450px;
        background-color: rgb(68, 67, 67);
        border: 4px solid #ed1c24;
        border-radius: 2px;
        padding: 0 20px;
        position: relative;
        max-width: 100%;
    }

    .card:nth-child(3) {
        margin-left: 50%;
    }

    /* #work{
        margin-top: 15em;
        margin-bottom: 2em;
        
       

    }
    #contact{
        margin-bottom: 2em;
    }*/
}


@media screen and (max-width: 1024px) {
    /* nav.active{
        
        background-color: rgba(0, 0, 0, .9);
        height: 2%;
         padding-left: 0;
        

    } */

    /* menu */
    .ham {
        display: block;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 400ms;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* position: absolute; */
        text-align: center;
        width: 80px;
        height: 80px;

        /* top: 10%;
  right: 3vw; */
        /* transform: translate(-50%, -50%); */
        z-index: 10000;

    }

    .hamRotate.active {
        transform: rotate(45deg);
    }

    .line {
        fill: none;
        transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
        stroke: white;
        stroke-width: 5.5;
        stroke-linecap: round;
        transition: all ease-in-out .5s;
    }

    .ham:hover .line {
        stroke: #ed1c24;

    }

    .ham4 .top {
        stroke-dasharray: 40 121;
    }

    .ham4 .bottom {
        stroke-dasharray: 40 121;
    }

    .ham4.active .top {
        stroke-dashoffset: -68px;
    }

    .ham4.active .bottom {
        stroke-dashoffset: -68px;
    }






    /*#contact{
        margin-bottom: 2em;
    }*/


    .homeContent {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        position: relative;
        padding: 5vh 10vw;

    }

    .homeImage {
        width: 300px;
        height: 300px;
        background-image: url('../img/profile.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        border-radius: 50%;
        position: absolute;


        transform: translate(-50%, -50%);
        left: 50%;
        top: 45%;

        /* left: 55%;
        bottom: 20%;
        transform: translate(-50%, -50%); */
        z-index: 2;


    }

    .homeImageBack {
        content: '';
        width: 300px;
        height: 300px;
        background-color: rgb(68, 67, 67);
        border-radius: 50%;
        position: absolute;
        left: 55%;
        top: 40%;
        transform: translate(-50%, -50%);
        z-index: 0;

    }

    .homeText {
        width: 80%;
        height: 55%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 55vh;



    }

    .homeText h1 {
        color: white;
        font-size: 1.9rem;
        line-height: 2.2rem;

    }

    .homeText a {
        width: 140px;
        border-style: none;
        background-color: #ed1c24;
        color: black;
        letter-spacing: 1px;
        border-radius: 1px;
        font-size: .8rem;
        text-align: center;
        font-weight: 700;
        padding: 10px 2px;
        transition: all ease-in-out .5s;
        text-decoration: none;

    }

    .logo {
        width: 50px;
        height: 50px;
        max-width: 100%;
        margin-left: 2vw;


    }

    .hamburger {
        display: block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 50%;
        transform: translate(-5%, -50%);
        outline: none;
        z-index: 2;
        color: #358a30;
        font-size: 40px;
        transition: all 0.2s ease 0.2s;


    }

    .hamburger:hover {
        font-size: 45px;
        color: white;

    }

    nav {

        padding: 3vh 0vw;
    }



    .navContent {

        position: absolute;
        top: 0%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, .8);
        height: 100vh;
        width: 100%;
        flex-direction: column;
        transition: all 1s ease-out;

        justify-content: space-around;
        align-content: center;
        align-items: center;
        padding: 2em 0;
        clip-path: circle(10px at 100% -10%);
        -webkit-clip-path: circle(10px at 100% -10%);
        transition: all 1s ease-out;
        pointer-events: none;

    }

    .open {
        height: 100vh;
        width: 100%;

        clip-path: circle(2000px at 100% 100%);
        -webkit-clip-path: circle(2000px at 100% 100%);
        pointer-events: all;
    }

    .navContent a {
        opacity: 0;
        font-size: 1.6rem;
    }

    .navContent a.active {
        opacity: 1;
        font-size: 1.6rem;
    }

    /* .navContent a:hover {
    color: #358a30;
    transition: 0.5s ease 0.2s;
  }
   */



    /*#about{
        background-color: rgb(68, 67, 67);
        height: 100vh;
        
    }*/

    .aboutContent {
        width: 90%;
        margin: 0 auto;

    }

    .aboutContent h2,
    .skillsContent h2,
    .workContent h2,
    .contactContent h2 {
        color: #ed1c24;
        font-size: 2.6rem;
        font-weight: 900;
        text-align: center;
        margin-bottom: 1em;
    }

    .aboutContent p {
        color: white;
        font-size: 1.2rem;
        font-weight: 400;
        text-align: justify;
        line-height: 1.6rem;
        margin-bottom: .5em;
    }

    .btns {

        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 340px;
        margin: 3em auto;
    }

    .aboutContent a {
        width: 150px;
        background-color: white;
        color: black;
        letter-spacing: 1px;
        border-radius: 30px;
        font-size: .9rem;
        font-weight: 700;
        padding: 12px 12px;
        transition: all ease-in-out .5s;
        display: block;
        text-align: center;


    }
}

@media screen and (max-width: 900px) {







    .modal__close {
        z-index: 1100;
        cursor: pointer;
        color: white;
        width: 30px;


        transition: all ease-in-out .7s;
        position: absolute;
        top: 0;
        left: 80%;
        transform: translate(-50%, -50%);



    }

    .modalContentFlex {
        display: flex;
        width: 100%;
        height: 90%;
        margin: 0 auto;

        justify-content: space-between;
        align-content: space-between;
        flex-direction: column;
    }

    .modalContentText {
        width: 90%;
        height: 90%;
        margin: 1em auto;
        margin-bottom: 20%;

    }

    .modalContentText h3 {
        margin-bottom: .5em;
    }

    .modalContentText p {
        margin-bottom: 1em;
        line-height: 1.5rem;
    }

    .modalContentText a {
        font-size: 1.2rem;
        color: #ed1c24;
        cursor: pointer;
        transition: all .5s ease-in;

    }

    .modalContentText a:hover {
        color: white;

    }

    .modalContentImg {
        width: 100%;
        height: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2em;

    }



    .modalContentImg img {
        width: 320px;
        height: auto;
        margin: .5em;
    }

    .workCards {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 20px;
        width: 80%;
        height: auto;
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;

    }

    .workProject:nth-child(1),
    .workProject:nth-child(2),
    .workProject:nth-child(3),
    .workProject:nth-child(4),
    .workProject:nth-child(5),
    .workProject:nth-child(6),
    .workProject:nth-child(7),
    .workProject:nth-child(8),
    .workProject:nth-child(9) {
        width: 500px;
        height: 350px;
        max-width: 100%;
    }

    /*#work{
        margin-top: 15em;
        margin-bottom: 46em;
        
       

    }
    #contact{
        margin-bottom: 2em;
    }*/

    footer h3 {
        font-size: 1.6rem;
        color: white;
        text-align: center;
        margin: 0 auto;
        margin-bottom: 1em;


        letter-spacing: 1px;

    }

    /* footer h4{
         margin-top: 5em;

     }*/

    input[type="text"] {
        display: block;
        width: 100%;
    }


}

@media screen and (max-width: 760px) {
    /* #contact{
        margin-bottom: 2em;
    }

        #skills{
        
        margin-bottom: 38em;
        
       

    }*/

    .skillsCards {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 20px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 50%;

    }

    .card {
        width: 300px;
        height: 450px;
        background-color: rgb(68, 67, 67);
        border: 4px solid #ed1c24;
        border-radius: 2px;
        padding: 0 20px;
        position: relative;
        max-width: 100%;
    }

    .card:nth-child(3) {
        margin-left: 0;
        height: 530px;
    }

    /*footer{
        width: 100%;
        min-height: 30vh;
        
    }*/
    footer i {
        padding-left: 10px;
        padding-right: 10px;
    }

    .aboutContent {
        width: 90%;
        margin: 0 auto;

    }

    .aboutContent h2,
    .skillsContent h2,
    .workContent h2,
    .contactContent h2 {
        color: #ed1c24;
        font-size: 2rem;
        font-weight: 900;
        text-align: center;
        margin-bottom: 1em;
    }

    .aboutContent p {
        color: white;
        font-size: 1rem;
        font-weight: 400;
        text-align: justify;
        line-height: 1.6rem;
        margin-bottom: .5em;
    }

    .btns {

        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 260px;
        margin: 3em auto;
    }

    .aboutContent a {
        width: 120px;
        font-size: .7rem;



    }

    .modalContentText {
        width: 90%;
        height: 90%;
        margin-left: -5%;

    }

    .modalContentText h3 {
        margin-bottom: .5em;
        text-align: left;
    }

}


/* modal */


/**
 * Material Modal CSS
 */
.modal {
    will-change: visibility, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: $modal-delay;
    width: 100vw;
    height: 100vh;
}

.modal--active {
    visibility: visible;
    opacity: 1;
}

.modal--align-top {
    align-items: flex-start;
}

.modal__bg {
    background: rgba(0, 0, 0, 0.9);

}

.modal__dialog {
    max-width: 100vw;
    max-height: 100vh;

    padding: 1.2rem;
}

.modal__content {
    will-change: transform, opacity;
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    background-clip: padding-box;
    box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    color: white;
    width: 100vw;
    height: 100vh;

}

.modal__content--active {
    opacity: 1;
}

.modal__close {
    z-index: 1100;
    cursor: pointer;
    color: white;
    font-size: 2rem;
    margin: 10px;
    text-align: center;
    transition: all ease-in-out .5s;
    position: absolute;
    top: 0;
    left: 85%;



}

.modal__close:hover {
    color: #ed1c24;
    /*transform: scale(1.1) rotate(90deg);*/




}

.modal__trigger {
    position: relative;
    display: inline-block;
    /* padding: 1.2rem 2.4rem; */
    color: white;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    height: 100%;

}

.modal__trigger--active {
    z-index: 10;
    /* width: 100vw;
  height: 100vh; */
}

#modal__temp {
    will-change: transform, opacity;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0,0,0,0.9); */
    transform: scale(1.1);

    filter: contrast(150%);
    border: 4px solid #4e4e4e;
    /* transform: none; */
    opacity: 1;
    transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100vw;
    height: 100vh;
}

img {
    max-width: 100%;
}

.modalContentFlex {
    display: flex;
    width: 90%;
    height: 90%;
    margin: 0 auto;
    justify-content: space-between;
}

.modalContentText {
    width: 90%;
    height: 90%;
    align-self: flex-end;

    /* margin-left: -5%;*/

}

.modalContentText h3 {
    margin-bottom: .5em;
}

.modalContentText p {
    margin-bottom: 1em;
    line-height: 1.5rem;
}

.modalContentText a {
    font-size: 1.2rem;
    color: #ed1c24;
    cursor: pointer;
    transition: all .5s ease-in;

}

.modalContentText a:hover {
    color: white;

}

.modalContentImg {
    width: 100%;
    /* height: 90%; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2em;
    align-self: flex-start;

}

.modalContentImg img {
    width: 320px;
    height: auto;
    margin: .5em;
}

.modalContentImg:has(> :only-child) img {
    width: 100%;
}

@media screen and (max-width: 660px) {

    @keyframes slide-right {
        from {
            opacity: 0;
            width: 0;
            height: 0;

        }

        to {
            opacity: 1;
            width: 250px;
            height: 250px;
        }
    }

    .homeImage {
        width: 250px;
        height: 250px;
        background-image: url('../img/profile.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        border-radius: 50%;
        position: absolute;
        left: 50%;
        bottom: 25%;
        z-index: 2;


    }

    .homeImageBack {
        content: '';
        width: 250px;
        height: 250px;
        background-color: rgb(68, 67, 67);
        border-radius: 50%;
        position: absolute;
        left: 55%;
        bottom: 30%;
        z-index: 0;

    }

    .homeText h1 {

        color: white;
        font-size: 1.5rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
    }

    #about {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .aboutContent {
        width: 100%;
        margin: 1em auto;
        padding: 0;

    }

    .aboutContent p {
        color: white;
        font-size: 1.1rem;
        font-weight: 400;
        text-align: justify;
        line-height: 1.6rem;
        margin-bottom: .5em;
    }

    #cardP {
        font-size: 1rem;
        line-height: 1.4rem;

    }

    .workProject:nth-child(1),
    .workProject:nth-child(2),
    .workProject:nth-child(3),
    .workProject:nth-child(4),
    .workProject:nth-child(5),
    .workProject:nth-child(6),
    .workProject:nth-child(7),
    .workProject:nth-child(8),
    .workProject:nth-child(9) {

        max-width: 100%;
        width: 400px;
        height: 250px;
    }

    .modalContentImg {
        align-self: flex-end;
    }

    /*#skills{
        margin-bottom: 43em;
    }
    #work{
        
        margin-bottom: 24em;
        
       

    }*/
    .workContent {
        width: 90%;
    }

    .workCards {
        max-width: 100%;
    }

    /* .workProject{
        max-width: 100%;
        width: 300px;
        height: 200px;
    }*/

    #contact {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contactForm {
        width: 90%;
        margin: 0 auto;
        z-index: 100;
    }
}