*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Custom Properties */

:root {
    --ff-primary: 'Source Sans Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;

    --fw-reg: 300;
    --fw-sub: 600;
    --fw-bold: 900;

    --clr-light: #fff;
    --clr-dark: #303030;
    --clr-accent: #16e0bd;

    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, .25),
        0.125em 0.125em 0.25em rgba(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;
    }
}

/* General styles */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 5em 2em;
}

.section-page {
padding: 1em 1em;
}

img {
    display: block;
    max-width: 100%;
}

.scrollingGif{
    max-width: 600px;
    margin-left: 25%;
    padding: 10px;
    background-color: var(--clr-dark);
    border-radius: 5px;
}

@media (max-width: 900px) {
    .scrollingGif{
        max-width: 300px;
        margin-left: 0;
    }
}

strong {
    font-weight: var(--fw-bold)
}

.btn {
    display: inline-block;
    padding: .5em 1.5em;
    background: var(--clr-accent);
    color: var(--clr-dark);
    text-decoration: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;
    margin-bottom: 10px;
}

.btn:hover{
    background: #11ab90;
}

/* Typography */

h1,
h2,
h3 {
    line-height: 1;
    margin: 0;
}

h1 {
    font-size: var(--fs-h1)
}

h2 {
    font-size: var(--fs-h2)
}

h3 {
    font-size: var(--fs-h3)
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: var(--clr-dark);
}

a.boldLink {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
}


.section__title {
    margin-bottom: .25em;
    position: relative;
}

.section__title--intro {
    font-weight: var(--fw-reg);
}

.section__title--intro strong {
    display: block;
}

.section__subtitle {
    margin: 0;
    font-size: var(--fs-h3);
}

.section__subtitle--intro,
.section__subtitle--intro-page,
.section__subtitle--about {

    /* background: var(--clr-accent); */
    background-image: url("../img/annie-spratt-8mqOw4DBBSg-unsplash.png");

    background-position: center;
    background-repeat: no-repeat;

    padding: .25em 1em;
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
}

.section__subtitle--intro-page {
    margin-bottom: none;
    padding: none;
}

.sectionContainer{
    background-color: #b1fff2;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sectionContainerDk{
    background-color: var(--clr-dark);
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.skills-list {
    list-style: none;
    font-size: var(--fs-h3);
    font-weight: var(--fw-reg);
    white-space: nowrap
}

.skills-list-sm {
    list-style: none;
    font-size: var(--fs-body);
    font-weight: var(--fw-reg);
    white-space: nowrap;
    text-align: center;
}

/* header */

nav {
    display: none;
}

/*  Intro section  */

.intro {
    position: relative;
}

.intro__img {
    box-shadow: var(--bs);
}

.section__subtitle--intro {
    display: inline-block;
}

@media (min-width: 1000px) {
    .intro {
        display: grid;
        width: min-content;
        margin: 0 auto;
        grid-column-gap: 1em;
        grid-template-areas:
            "img title"
            "img subtitle";
        grid-template-columns: min-content max-content;
    }

    .intro__img {
        grid-area: img;
        min-width: 250px;
        position: relative;
        z-index: 2;
    }

    .section__subtitle--intro {
        align-self: start;
        grid-column: -1 / 1;
        grid-row: 2;
        text-align: right;
        position: relative;
        left: -1.5em;
        width: calc(100% + 1.5em);
    }
}



/*  My skills section  */

.my-skills {
    background-color: var(--clr-dark);
    background-image: url(../img/ca-tran-8mhGfRgHB7A-unsplash.jpg);
    background-size: cover;
    background-blend-mode: multiply;
    background-position: center;

    color: var(--clr-light);
    text-align: center;
}

.section__title--skills {
    color: var(--clr-accent);
    position: relative;
}

.section__title--skills::after {
    content: '';
    display: block;
    width: 2em;
    height: 1px;
    margin: 0.5em auto 1em;
    background: var(--clr-light);
    opacity: 0.25;
}

.skills {

    margin-bottom: 4em;
}

.skill-col {
    max-width: 500px;
    margin: 0 auto;
    padding-left: 50px;
}

@media (min-width: 1250px) {
    .skills {
        display: flex;
        max-width: 1000px;
        margin: 0 auto;
    }



    .skill-col+.skill-col {
        margin-left: 2em;
    }
}

/* About Section */

.about-me {
    max-width: 1000px;
    margin: 0 auto;
    grid-template-areas:
        "title img"
        "subtitle img"
        "text img";
    grid-column-gap: 2em;
}

.about-me__img {
    box-shadow: var(--bs);
}

.section__title--about {
    grid-area: title;
    padding-top: 200px;
}

.section__subtitle--about {
    box-shadow: var(--bs);
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    left: -1em;
    width: calc(100% + 2em);
    padding-left: 1em;
    padding-right: calc(200px + 4em);
    font-weight: var(--fw-sub);
    text-shadow: 1px 1px 2px var(--clr-light);
}

@media (min-width: 1600px) {
    .about-me {
        display: grid;
        grid-template-columns: 1fr 200px;
    }

    .about-me__img {
        grid-area: img;
        min-width: 550px;
        position: relative;
        z-index: 2;
    }
}

/* Portfolio */

.portfolio {
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects {
    background-color: var(--clr-dark);
    color: var(--clr-light);
    text-align: center;
}


.section__title--projects {
    grid-area: title;

}

.section__title--projects::after {
    content: '';
    display: block;
    width: 2em;
    height: 1px;
    margin: 0.5em auto 1em;
    background: var(--clr-light);
    opacity: 0.25;
}

.section__subtitle--projects {
    position: relative;
    margin-bottom: 25px;
    font-weight: var(--fw-sub);
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, 550px);
}


.portfolio__item {

    overflow: hidden;
    margin: 0rem 3rem;
}

.portfolio__img {
    transition:
        transform 750ms cubic-bezier(.5, 0, .5, 1),
        opacity 250ms linear;
    max-width: 500px;
    max-height: 800px;

}

.portfolio__item:focus {
    position: relative;
    z-index: 2;
}

.portfolio__img:hover,
.portfolio__item:focus .portfolio__img {
    transform: scale(1.1);
    opacity: .5;
}


.carousel{
    border: solid black;
    background-color: var(--clr-dark);
}

.carousel-right {
    margin-right: 5%;
}

.carousel-img{
    max-width: 800px;
}

@media (max-width:900px){
    .sectionContainer{
        justify-content: center;
    }

    .sectionContainerDk{
        justify-content: center;
    }

    .carousel-right {
        margin-right: 0;
    }
    
    .carousel-img{
        max-width: 500px;
    }
    }

/* footer */

.footer {
    background: #111;
    color: var(--clr-accent);
    text-align: center;
    padding: 2.5em 0;
    font-size: var(--fs-h3);

}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer__link {
    font-weight: var(--fw-bold);
}

.footer__link:hover,
.social-list__link:hover {
    opacity: .7;
}

.footer__link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 2em 0 0;
    padding: 0;
}

.social-list__item {
    margin: 0 .5em;
}

.social-list__link {
    padding: .5em;
}

/* Individual portfolio item styles */

.portfolio-item-individual {
    padding: 0 2em 2em;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item-individual p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Contact styles */

.contact {
    text-align: center;
}
