*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff-primary: font-family: 'Adamina', serif;;
    --ff-secondary: font-family: 'Jost', sans-serif;;

    --fw-reg: 301;
    --fw-bold: 900;

    --clr-light: white;
    --clr-dark: black;
    --clr-accent: #FF007F;


    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --bs: 0.25em 0.25em 0.75em rgb(0,0,0,.25), 
        0.125em 0.125em 0.25em rgb(0,0,0,.15);
}

@media (min-width: 800px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }
}

/*Fade In*/

.fade-in {
    animation: fadeIn ease 3s;
    -webkit-animation: fadeIn ease 3s;
    -moz-animation: fadeIn ease 3s;
    -o-animation: fadeIn ease 3s;
    -ms-animation: fadeIn ease 3s;
}

@keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}

@-moz-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}

@-o-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}

@-ms-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}

html {
  scroll-behavior: smooth;  
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--clr-light);
    color: var(--clr-dark);
    width: 100%;
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 5em 2em;
}

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

strong {font-weight: bold;}

:focus {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.5em 2.5em;
    background: var(--clr-accent);
    color: var(--clr-dark);
    text-decoration: none;
    cursor: pointer;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;
    max-width: 300px;
    margin: 0 auto;
}

.btn:hover {
    transform: scale(1.1);
}
/* Typography */

h1,
h2,
h3 {
    line-height: 1.0;
    margin: 0;
}

h1 { font-size: var(--fs-h1);}
h2 { font-size: var(--fs-h2);}
h3 { font-size: var(--fs-h3);}




/* header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em;
    background-color: var(--clr-accent);
    border-bottom: solid var(--clr-light) 0.3em;
}

.logo {
    max-width: 130px;
}

.nav {
    background: var(--clr-accent);
    color: var(--clr-dark);
}

.nav__list {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav__item {
    margin: 0 0.5rem;
}

.nav__link {
    color: inherit;
    font-weight: var(--fw-bold);
    font-size: var(--fs-h3);
    text-decoration: none;
}

.nav__link:hover {
    color: var(--clr-light);
}

.nav-toggle {
    padding: .25em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: absolute;
    right: 1em;
    top: 1em;
    z-index: 1000;
}

.nav-open .nav {
    transform: translateX(0);
}

.nav-open .nav-toggle {
    position: fixed;
}

.section__title--intro {
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    color: var(--clr-accent);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.section__subtitle {
    margin: 0;
    font-size: var(--fs-h3);
}
.section__subtitle--intro,
.section__subtitle--about {
    color: var(--clr-light);
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
}
.section__title--work {
    margin-top: 0.5;
    margin-bottom: 0.5em;
}
.section__subtitle--work {
    color: var(--clr-dark);
    font-weight: var(--clr-dark);
    margin-bottom: 2em;
}

.section__subtitle--work a {
    text-decoration: none;
}

.section__title {
    color: var(--clr-accent);
}

/* Intro seaction */

.intro {
    display: grid;
    background-color: var(--clr-light);
    border-bottom: solid black 0.1em;
    background-image: url(../img/pexels-negative-space-34609.jpg);
    background-size: cover;
    border-bottom: solid var(--clr-light) 0.3em;
    height: 60vh;
}

@keyframes fadeAndScale {
    from {
        opacity: 0;
    }
    to {
        opacity: 100;
    }
}

.intro__img {
    box-shadow: var(--bs);
}

.section__title--intro {
    color: var(--clr-dark);
    text-shadow: -0.5px -0.5px 0 white, 0.5px -0.5px 0 white, -0.5px 0.5px 0 white, 0.5px 0.5px 0 white;
}


.section__title--intro__name {
    color: var(--clr-accent);
    text-shadow: none;
}

.section__subtitle--intro {
        max-width: 80%;
        color: var(--clr-dark);
        text-shadow: -0.5px -0.5px 0 white, 0.5px -0.5px 0 white, -0.5px 0.5px 0 white, 0.5px 0.5px 0 white;
    }


@media (min-width: 600px) {
    .intro-container {
        display: grid;
        place-items: center;
        grid-template-areas: 
            "title"
            "subtitle";
        grid-template-rows: min-content min-content;
        grid-row-gap: 0.5em;
    }

    .intro {
        height: 50vh;
    }

    .section__title--intro {
        grid-area: title;
        margin-top: 4rem;
    }


    .section__subtitle--intro {
        align-self: start;
        grid-row: 2;
    }
}

/* My services section */

.my-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--clr-dark);
    background-size: cover;
    color: var(--clr-light);
    text-align: center;
    padding-top: 3em
}

.section__title--services {
    color: var(--clr-accent);
    position: relative;
}

.section__title--services::after {
    content: '';
    display: block;
    width: 2em;
    height: 1px;
    margin: 0.5em auto 1em;
    background: var(--clr-light);
    opacity: 0.25;
}
.services {
    margin-bottom: 4em;
}
.service {
    max-width: 300px;
    padding: 1rem;
    margin: 20px 0;
    background-color: #292827;
    border-radius: 5%;
}

.service p {
    text-align: center;
}

.skills-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.skill {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    align-items: center;
    background-color:#292827;
    width: 120px;
    height: 120px;
    border-radius: 100%;
    margin: 10px 10px;
}

.experience {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.skill p {
    margin: 0;
}

.skill:hover {
    background-color: var(--clr-accent);
}

@media (min-width: 800px) {

    .intro {
        height: 70vh;
    }

    .services {
        display: flex;
        justify-content: space-evenly;
        margin-left: auto;
        margin-right: auto;
    }

    .service + .service {
        margin-left: 2em;
    }

    .services {
        min-width: 1000px;
    }
    .service {
        width: 300px;
        margin: 0 auto;
    }
    
    .experience {
        margin-bottom: 3em;
    }

}

/* About Me */

.about-me {
    background-size: cover;
    margin: 0 auto;
    background-color: var(--clr-dark);
    color: var(--clr-light);
}

.about-me__img {
    box-shadow: var(--bs);
    width: 350px;
}

@media (min-width: 600px) {
    .about-me {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-areas: 
            "title title"
            "subtitle subtitle"
            "text img";
        grid-column-gap: 2em;
        padding-top: 2em;
    }

    .section__title--about {
        grid-area: title;
    }

    .section__subtitle--about {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        left: -1em;
        width: calc(100% + 1em);
        padding-left: 1em;
        padding-right: calc(200px + 4em);
        color: var(--clr-light);
    }

    .about-me__img {
       grid-area: img;
       position: relative;
       z-index: 2;
    }
}

/* Projects */

.my-work {
    text-align: center;
    padding-top: 1em;
    background-color: var(--clr-light);
    color: var(--clr-dark);
    width: 100%;
}

.projects {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.project {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background: var(--clr-accent);
    border-radius: 5%;
    padding: 1em;
}

.project img {
    margin: 2rem 0;
}

.project:hover {
   cursor: pointer;
   box-shadow: 2px 2px 15px 2px var(--clr-dark);
}

@media (min-width: 800px) {
    .projects {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        flex-wrap: wrap;
        gap: 30px 0px;
    }    

    .project {
        width: 500px;
    }
 
}

.frontend-mentor-link {
    text-decoration: none;
    color: var(--clr-dark);
    border-radius: 5%;
    margin: 20px 0;
}

.frontend-mentor-link:hover {
    cursor: pointer;
    box-shadow: 2px 2px 15px 2px var(--clr-light);
}

.frontend-mentor-tag {
    margin-bottom: 20px;
}
/* Footer */

.footer {
    background-color: var(--clr-accent);
    color: var(--clr-light);
    text-align: center;
    font-size: var(--fs-h3);
    bottom: 0;
    left: 0;
}

.footer a{
    color: inherit;
    text-decoration: none;
}

.footer__link {
    font-weight: var(--fw-bold);
}

.footer__link:hover,
.social-list__link:hover {
    color: var(--clr-dark);
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding: 0;
}

.social-list__item {
    margin: 0 .5em;
}

.social-list__link {
    padding: .5em;
}


.project__body {
    padding: 5em 5em;
    max-width: 100%;
    max-height: 100%;
    display: grid;
    grid-template-areas: 
    "description image"
    "tech  image"
    "code  image";
    grid-column-gap: 4em;
    place-self: center;
    justify-content: center;
}
.section__project--tile {
    margin-top: 0;
    padding: 0;
    color: var(--clr-accent);
    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

.project__body__description {
    width: 25em;
    grid-area: description;
    margin-top: 0;
    align-self: start;
}

.project__body__description--title {
    color: var(--clr-accent);
}
.project__body__technolgies {
    grid-area: tech;
    color: var(--clr-dark);
}

.project__body__technolgies--title {
    color: var(--clr-accent);
}

.project__body__source-code {
    grid-area: code;
    text-decoration: none;
    color:var(--clr-accent);
}

.project__body__image {
    grid-area: image;
    min-width: 400px;
    min-height: 200px;
    max-width: 700px;
    max-height: 400px;
    border: solid 2px var(--clr-dark);
    align-self: flex-start;
    grid-row-start: 1;
}





