/* Universal Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main CSS */
*::selection {
    background: var(--main-color);
    color: #fff;
}

html,
body {
    background-color: #fff;
    color: #373a3c;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 1em;
    line-height: 1.5;
    --main-color: rgb(23, 90, 23);
    --secondary-color: #f6f6f6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: .5rem
}

p {
    margin: .7rem 0;
}

.main-container h2 {
    margin-top: 1em;
}

.main-container hr {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    margin: 1em auto;
    width: 50%;
}

/* Main Nav CSS */
.main-nav {
    color: rgba(255, 255, 255, .8);
    transition: color .3s;
}

.main-nav li:hover {
    color: rgba(255, 255, 255, 1);
    transition: color .3s;
}

.main-header {
    color: #fff;
}

.main-nav {
    background-color: rgba(21, 31, 33, 0.5);
    border-bottom: 1px solid #dedede;
    display: flex;
    font-weight: 100;
    /* -------- COME BACK TO THIS ---- */
    justify-content: space-between;
    padding: 15px 25px;
    position: fixed;
    width: 100%;
    text-transform: uppercase;
    top: 0;
    z-index: 1000;
}

.main-nav img {
    height: auto;
    max-width: 100%;
}

.main-nav ul {
    background-color: rgba(21, 31, 33, 0.5);
    display: none;
    font-size: 1.1em;
    left: 0;
    list-style: none;
    padding: 1em;
    position: absolute;
    top: 70px;
    width: 100%;
}

.main-nav i {
    cursor: pointer;
}

#resume-download-button {
    display: inline-block;
    margin-left: 10px;
}

/* Header CSS */
.main-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/Forest.jpg') center center no-repeat;
    background-size: cover;
    height: 100vh;
    min-height: 300px;
    padding: 35vh 1em 0;
    text-align: center;
}

.main-header img {
    width: 80%;
}

.main-header h1 {
    text-transform: uppercase;
}

.main-header p {
    font-size: 1.25rem;
}

.main-header i {
    margin-top: 2.5rem;
}

/* Main Containers CSS */
.summary,
.social,
.technological-skills-block,
.projects,
.reasons-to-employ,
.client-testimonials,
.project-summary-container,
.technologies-used-container,
.main-footer {
    padding: 3em 1em;
    text-align: center;
}

/* Summary CSS */


.summary img {
    height: auto;
    margin-top: 2em;
    width: 100%;
}


/* Social CSS */
.social-container {
    color: var(--main-color);
    display: flex;
    flex-direction: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .625rem;
}

.social-container i {
    border: 2px solid var(--main-color);
    border-radius: 30%;
    font-size: 1.6rem;
    height: 3.75rem;
    margin: .35rem;
    padding-top: .9375rem;
    transition: background-color .5s, color .5s ease-in-out;
    width: 3.75rem;
}

.social-container i:hover {
    background-color: var(--main-color);
    color: #fff;
}


/* Technological Skills */
.technological-skills {
    background-color: var(--secondary-color);
}

.technological-skills-container {
    align-items: center;
    display: grid;
    grid-gap: 2px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-content: center;
}

.technological-skills-container p {
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    padding: .5em;
    transition: background-color .5s, color .5s;
}

.technological-skills-container p:hover {
    background-color: #fff;
    color: var(--main-color);
    transition: background-color .5s, color .5s;
}

.technological-skills-container i {
    margin-left: 1em;
}

.technological-skills-container p:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3;
}

.technological-skills-container p:nth-child(2) {
    grid-area: 1 / 3 / 2 / 5;
}

.technological-skills-container p:nth-child(3) {
    grid-area: 2 / 1 / 3 / 4;
}

.technological-skills-container p:nth-child(4) {
    grid-area: 2 / 4 / 3 / 5;
}

.technological-skills-container p:nth-child(5) {
    grid-area: 3 / 1 / 4 / 3;
}

.technological-skills-container p:nth-child(6) {
    grid-area: 3 / 3 / 4 / 5;
}

.technological-skills-container p:nth-child(7) {
    grid-area: 4 / 1 / 5 / 3;
}

.technological-skills-container p:nth-child(8) {
    grid-area: 4 / 3 / 5 / 5;
}

/* .technological-skills-container p:nth-child(9) {
    grid-area: 5 / 1 / 6 / 5;
}

.technological-skills-container p:nth-child(10) {
    grid-area: 6 / 3 / 7 / 5;
} */

/* Projects CSS */
.projects-content {
    text-align: left;
}

.projects h2 {
    text-transform: capitalize;
}

.projects hr {
    margin: 1em 0;
}

.projects-item {
    border-radius: 50%;
    /* ------ COME BACK TO THIS ---- */
    margin: 1rem auto;

}

.project-image {
    position: relative;
}

.projects img {
    display: block;
    height: auto;
    width: 100%;
}

.project-image-overlay {
    background: rgba(0, 0, 0, .5) url('../img/Eye.png') center center no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-image-overlay:hover {
    opacity: 1;
}

.project-description {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    border-left: 1px solid rgba(0, 0, 0, .1);
    border-right: 1px solid rgba(0, 0, 0, .1);
    margin-top: -2rem;
    padding: 2rem 1rem .5rem 1rem;
}



/* Reasons To Employ */
.reasons-to-employ {
    background-color: var(--secondary-color);
}

.reasons-container {
    margin: 2rem 0.5rem;
}

.reasons-to-employ i {
    color: var(--main-color);
    margin-bottom: .3em;
}

/* Client Testimonials */
.client-testimonials-container {
    overflow: hidden;
}

.client-testimonial-item {
    border-left: 5px solid rgba(125, 125, 125, .1);
    font-size: 1.25rem;
    margin: 1em 0;
    padding: 0 1em;
}

.client-name {
    font-size: 1rem;
}

.client-testimonial-switch {
    background-color: var(--main-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    height: .6rem;
    margin: 0 .2rem;
    outline: none;
    width: .6rem;
}

.active-carousel-switch {
    transform: scale(1.5);
}

/* Project Page CSS */
.project-main-container hr {
    background-color: var(--main-color);
    height: 2px;
}

.project-main-container img {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    height: auto;
    margin: 1em 0 2em;
    max-width: 100%;
    transition: transform .3s;
}

.project-main-container img:hover {
    transform: scale(1.1);
    transition: transform .3s;
}

.project-summary i {
    margin-left: .5rem;
}

.project-main-container .main-button {
    border: none;
    display: inline-block;
    margin: 0 .5rem;
    padding: .5rem
}

.project-summary {
    background-color: #2C3339;
    color: #fff;
}

.project-summary-image-container div {
    display: flex;
}

#hide-element {
    display: none;
}

.technologies-used-content-container ul {
    margin: 0 auto;
    padding-left: 1rem;
    text-align: left;
    width: 140px;
}

.back-to-projects {
    display: inline-block;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: margin-right .3s;
}

.back-to-projects:hover {
    margin-right: 1rem;
    transition: margin-right .3s;
}

.back-to-projects i {
    margin-right: 1rem;
}

/* Main Footer */
.main-footer {
    background-color: #484848;
    color: #fff;
}

.main-footer ul {
    list-style: none;
}


.footer-about-me-content i {
    margin-right: 10px;
}

.footer-social {
    text-align: center;
}

.footer-social i {
    margin: 0 .5em;
    transition: color .3s;
}

.footer-social i:hover {
    color: #d99be9;
    transition: color .3s;
}

.footer-contact {
    margin-top: 1em;
}

.footer-contact-container {
    align-items: center;
    display: flex;
    justify-content: center;
}

.footer-contact i {
    margin-right: .5em;
}

/* Links CSS */
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}

/* Animations CSS */
.fade-in-up {
    animation-name: fade-in-up;
    animation-duration: 1s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.fade-in {
    animation-name: fade-in;
    animation-duration: 1s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.long-fade-in {
    animation-name: long-fade-in;
    animation-duration: 4s;
}

.fade-in-left {
    animation-name: fade-in-left;
    animation-duration: 1s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.fast-fade-in-left {
    animation-name: fast-fade-in-left;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.delayed-fade-in-left {
    animation-name: delayed-fade-in-left;
    animation-duration: .5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    opacity: 0;
}

.fast-fade-in-right {
    animation-name: fast-fade-in-right;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 100ms;
}

.delay-2 {
    animation-delay: 200ms;
}

.delay-3 {
    animation-delay: 300ms;
}

.delay-4 {
    animation-delay: 400ms;
}

.delay-5 {
    animation-delay: 500ms;
}


.swing {
    animation-name: swing;
    animation-duration: 1s;
    animation-delay: 1s;
    transform-origin: top center;
}

.zoom-in {
    animation-name: zoom-in;
    animation-duration: 1s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes long-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-in-left {
    0% {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fast-fade-in-left {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes delayed-fade-in-left {
    0% {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    50% {
        opacity: .25;
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fast-fade-in-right {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


@keyframes swing {
    20% {
        transform: rotate3d(0, 0, 1, 15deg);
    }

    40% {
        transform: rotate3d(0, 0, 1, -10deg);
    }

    60% {
        transform: rotate3d(0, 0, 1, 5deg);
    }

    80% {
        transform: rotate3d(0, 0, 1, -5deg);
    }

    to {
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50%,
    100% {
        opacity: 1;
    }
}

/* Other CSS */
.main-button {
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 3px;
    color: #fff;
    padding: .6rem;
    transition: background-color .5s, color .5s, border-color .5s;
    width: 50%;
}

.main-button:hover {
    background-color: #fff;
    color: var(--main-color);
    border-color: var(--main-color);
}

.heavy {
    font-size: 1.3rem;
    font-weight: 300;
}

.uppercase {
    text-transform: uppercase;
}

.main-header-side-content,
.hide {
    display: none;
}

/* Media Queries */
@media only screen and (min-width: 600px) {
    .main-container hr {
        width: 30%;
    }

    /* Main Header CSS */
    .main-header {
        padding: 24em 2em 0;
    }

    .main-header-container {
        margin: 0 auto;
        max-width: 500px;
    }

    /* Main Nav */
    .main-nav {
        padding: 0;
    }

    .main-nav i {
        display: none;
    }

    .main-nav img {
        padding: 13px 0 0 25px;
    }

    .main-nav ul {
        background: none;
        display: flex;
        flex-wrap: wrap;
        margin-left: auto;
        padding: 15px 25px;
        position: static;
        width: auto;
        top: 0;
    }

    .main-nav li {
        margin: 0 1em;
    }

    /* Containers CSS */
    .summary,
    .social,
    .technological-skills-block,
    .projects,
    .reasons-to-employ,
    .client-testimonials,
    .project-summary-container,
    .technologies-used-container,
    .main-footer {
        padding: 10% 7%;
    }

    /* Summary CSS */
    .summary img {
        margin: 0;
    }

    /* Technological Skills */
    .technological-skills-container p:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3;
    }

    .technological-skills-container p:nth-child(2) {
        grid-area: 1 / 3 / 2 / 5;
    }

    .technological-skills-container p:nth-child(3) {
        grid-area: 2 / 1 / 3 / 3;
    }

    .technological-skills-container p:nth-child(4) {
        grid-area: 2 / 3 / 3 / 4;
    }

    .technological-skills-container p:nth-child(5) {
        grid-area: 2 / 4 / 3 / 5;
    }

    .technological-skills-container p:nth-child(6) {
        grid-area: 3 / 1 / 4 / 3;
    }

    .technological-skills-container p:nth-child(7) {
        grid-area: 3 / 3 / 4 / 5;
    }

    .technological-skills-container p:nth-child(8) {
        grid-area: 4 / 1 / 5 / 3;
    }

    .technological-skills-container p:nth-child(9) {
        grid-area: 4 / 3 / 5 / 5;
    } 
    .technological-skills-container p:nth-child(10) {
        grid-area: 5 / 1 / 6 / 3;
    }
    .technological-skills-container p:nth-child(11) {
        grid-area: 5 / 3 / 6 / 5;
    }

    /* Personal Projects CSS */
    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-gap: 1em;
    }

    /* Project CSS */
    .project-main-container hr {
        background: none;
        border-bottom: 1px solid rgba(0, 0, 0, .1);
    }

    .project-summary hr {
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .project-summary-content-container,
    .technologies-used-content-container {
        display: flex;
        justify-content: space-between;
    }

    .technologies-content-used-container {
        flex-wrap: wrap;
    }

    .project-summary-content-container p,
    .technologies-used-content-container p,
    .technologies-used-content-container ul {
        border-left: 3px solid var(--main-color);
        flex: 1 50%;
        margin-right: .5rem;
        padding-left: 1rem;
        text-align: left;
    }

    .project-summary-image-container,
    .technologies-used-content-container img {
        flex: 1 50%;
    }

    .project-main-container .main-button {
        margin: 0;
    }

    .technologies-used-content-container {
        align-items: center;
        flex-direction: row-reverse;
    }

    .project-summary-content-container p,
    .technologies-used-content-container p,
    .technologies-used-content-container ul {
        display: block;
        height: 3%;
    }

    .technologies-used-content-container ul {
        margin: 0;
        padding-left: 2rem;
    }

    .technologies-used-content-container img {
        margin-right: 1rem;
        max-height: 300px;
        max-width: 100%;
    }

    /* Main Footer CSS */
    .main-footer-container {
        display: flex;
        flex-direction: row;
    }

    .main-footer-content,
    .main-footer-contact {
        flex: 1 50%;
        margin: 0 15px;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0;
    }
}

@media only screen and (min-width: 750px) {

    /* Main CSS */
    .main-container h2 {
        margin: 0;
    }

    /* Container CSS */
    .summary,
    .social-content-container,
    .projects,
    .main-footer-container {
        text-align: left;
    }

    .summary,
    .social,
    .technological-skills-block,
    .projects,
    .reasons-to-employ,
    .client-testimonials,
    .project-summary-container,
    .technologies-used-container,
    .main-footer {
        padding: 10% 9%;
    }

    .summary hr,
    .social hr {
        margin: 1em 0;
        width: 50%;
    }

    /* Main Header CSS */
    .main-header {
        padding: 19rem 2em 0;
    }

    .main-header-container {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        max-width: 1040px;
        text-align: center;
    }

    .main-header-content {
        flex: 1 50%;
    }

    .main-header img {
        max-width: 80%;
    }

    /* Summary CSS */
    .summary-block {
        display: flex;
        justify-content: space-between;
    }

    .summary-container,
    .summary-image-container {
        flex: 1 50%;
    }

    .summary-container {
        margin-right: 1em;
    }

    .summary-more-info {
        border: 5px solid var(--main-color);
        border-radius: 10px;
        height: auto;
        max-width: 90%;
    }

    /* Social CSS */
    .social {
        display: flex;
        justify-content: space-between;
    }

    .social-container {
        margin-top: 0;
    }

    /* Reasons To Employ CSS */
    .reasons-to-employ-block {
        display: flex;
    }

    .reasons-container {
        align-self: flex-end;
        flex: 1 33%;
    }

    .reasons-container h3 {
        font-size: 1.7rem;
    }

    /* Projects CSS */
    .projects-container {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Client Testimonials */
    .client-testimonial-switch {
        height: .5rem;
        width: .5rem;
    }

    /* Project CSS */
    .project-main-container .main-button {
        margin: 0 .5rem;
    }

    .technologies-used-container ul {
        width: 100%;
    }
}

@media only screen and (min-width: 1000px) {

    /* Container CSS */
    .summary,
    .social,
    .technological-skills-block,
    .projects,
    .reasons-to-employ,
    .client-testimonials,
    .project-summary-container,
    .technologies-used-container,
    .main-footer {
        padding: 6% 10%;
    }

    .main-header-container {
        max-width: 1040px;
    }

    .summary-block,
    .social,
    .technological-skills-block,
    .projects-content,
    .projects-container,
    .reasons-to-employ-content,
    .reasons-to-employ-block,
    .client-testimonials,
    .project-summary-container,
    .technologies-used-container,
    .main-footer-container {
        margin: 0 auto;
        max-width: 80%;
    }

    /* Technological Skills */
    .technological-skills-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .technological-skills-container p:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3;
    }

    .technological-skills-container p:nth-child(2) {
        grid-area: 1 / 3 / 2 / 5;
    }

    .technological-skills-container p:nth-child(3) {
        grid-area: 1 / 5 / 2 / 7;
    }

    .technological-skills-container p:nth-child(4) {
        grid-area: 2 / 3 / 3 / 4;
    }

    .technological-skills-container p:nth-child(5) {
        grid-area: 2 / 4 / 3 / 5;
    }

    .technological-skills-container p:nth-child(6) {
        grid-area: 2 / 1 / 3 / 3;
    }

    .technological-skills-container p:nth-child(7) {
        grid-area: 2 / 5 / 3 / 7;
    }

    .technological-skills-container p:nth-child(8) {
        grid-area: 3 / 1 / 4 / 4;
    }

    .technological-skills-container p:nth-child(9) {
        grid-area: 3 / 4 / 4 / 7;
    }

    .technological-skills-container p:nth-child(10) {
        grid-area: 4 / 1 / 5 / 4;
    }

    .technological-skills-container p:nth-child(11) {
        grid-area: 4 / 4 / 5 / 7;
    }

    /* projects CSS */
    .projects-container {
        grid-gap: 25px;
        grid-template-columns: repeat(4, 1fr);
    }

    .project-summary-image-container {
        max-width: 400px;
    }
}

@media only screen and (orientation: landscape) {
    .main-header {
        min-height: 500px;
        padding-top: 35vh;
    }
}

@media only screen and (max-width: 600px) {

    .main-nav {
        padding-bottom: 5px;
    }

.technological-skills-container p:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3;
}

.technological-skills-container p:nth-child(2) {
    grid-area: 1 / 3 / 2 / 5;
}

.technological-skills-container p:nth-child(3) {
    grid-area: 2 / 1 / 3 / 3;
}

.technological-skills-container p:nth-child(4) {
    grid-area: 2 / 3 / 3 / 4;
}

.technological-skills-container p:nth-child(5) {
    grid-area: 2 / 4 / 3 / 5;
}

.technological-skills-container p:nth-child(6) {
    grid-area: 3 / 1 / 4 / 3;
}

.technological-skills-container p:nth-child(7) {
    grid-area: 3 / 3 / 4 / 5;
}

.technological-skills-container p:nth-child(8) {
    grid-area: 4 / 1 / 5 / 3;
}

.technological-skills-container p:nth-child(9) {
    grid-area: 4 / 3 / 5 / 5;
}

.technological-skills-container p:nth-child(10) {
    grid-area: 5 / 1 / 6 / 3;
}
.technological-skills-container p:nth-child(11) {
    grid-area: 5 / 3 / 6 / 5;
}
}