/* VARIABLES */
:root {
    /* TEXT STYLES */
    --text-dark: #232D3B;
    --text-light: #F4F4F3;
    --body-font: "Zain", sans-serif;
    --heading-font: "Rammetto One", sans-serif;
    --subtitle-font: "Arvo", serif;
    --h1-size: 95px;
    --h1-height: 100px;
    --h2-size: 50px;
    --h2-height: 75px;
    --h3-size: 40px;
    --substitle-size: 40px;
    --subtitle-height: 60px;
    --p-size: 22px;
    --p-height: 26px;
    --button-size: 16px;

    /* SPACING */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --standard-width: 1500px;
    /* COLORS */
    --yellow: #FBAE1D;
    --red: #BD4E13;
    --blue: #4BA4B3;
    --dark-blue: #232D3B;
    --button-hover: #edbd63;
    --bg-white: #fff;
    --bg-light: #F4F4F3;
    --hr-color: #9db7be;
    --standard-box-shadow: 0px 2px 40px rgba(0, 0, 0, 0.15);
}

/* GENERAL ELEMENT STYLES */
body {
    font-family: var(--body-font);
    color: var(--text-dark);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    box-sizing: border-box;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    width: 100%;
}

main {
    width: 100%;
    max-width: var(--standard-width);
    margin: var(--spacing-xl);
    box-sizing: border-box;
}

h1 {
    font-family: var(--heading-font);
    font-size: var(--h1-size);
    margin: 0;
    line-height: var(--h1-height);
    color: var(--red);
    display: inline-block;
}

h2 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--h2-size);
    margin: 0;
}

h3 {
    font-family: var(--subtitle-font);
    font-weight: 500;
    font-size: var(--h3-size);
    margin: 0;
}


/* a {
    text-decoration: none;
    color: var(--purple-1);
    font-weight: 500;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--primary-accent);
} */

p {
    font-size: var(--p-size);
    line-height: var(--p-height);
    font-weight: 400;
    margin: var(--spacing-md) 0;
}

hr {
    width: 90%;
    color: var(--hr-color);
    margin: var(--spacing-lg) var(--spacing-md) var(--spacing-lg) 0;
}


/* LAYOUT STYLES */

.two-col {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.two-col>.col-left {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    box-sizing: border-box;
    padding: 0 var(--spacing-md) 0 0;
}

.two-col>.col-right {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    box-sizing: border-box;
    padding: 0 0 0 var(--spacing-md);
}

/* .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.card h3 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h6-size);
    margin: 0;
    width: 100%;
}

.card .icon {
    height: 50px;
    margin: 0 0 var(--spacing-sm) 0;
} */

.subtitle {
    color: var(--yellow);
    font-family: var(--subtitle-font);
    font-weight: 500;
    font-size: var(--substitle-size);
    line-height: var(--subtitle-height);
}

.subtitle2 {
    color: var(--blue);
    font-family: var(--subtitle-font);
    font-weight: 500;
    font-size: var(--p-size);
    line-height: var(--p-height);
}

/* .secondary-text {
    font-size: var(--secondary-text-size);
    line-height: var(--secondary-text-height);
    color: var(--text-grey);
    letter-spacing: 0.25px;
} */

/* BUTTON STYLES */
.button {
    font-family: var(--body-font);
    font-size: var(--button-size);
    letter-spacing: 1.25px;
    border: none;
    font-weight: 500;
    border-radius: 20px;
    background-color: var(--yellow);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.button a {
    text-decoration: none;
    color: var(--bg-light);
    font-weight: 500;
}

.button:hover {
    background-color: var(--button-hover);
    cursor: pointer;
}

.with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.with-icon>img {
    transition: all 0.25s ease;
}

.with-icon:hover>img {
    transform: translateX(5px)
}

.section-container {
    width: 100%;
    max-width: var(--standard-width);
    padding: calc(2*(var(--spacing-xl))) 0;
}

/* Header styles */
.header {
    width: 100%;
    height: 100vh;
    background-image: url("/images/header-image.jpg");
    background-size: cover;
    position: relative;
}

.header-elements {
    position: absolute;
    top: 60%;
    left: 60%;
    display: flex;
    flex-direction: column;
}

.header-elements h2 {
    display: inline;
}

/* About Me styles */
.about .two-col {
    align-items: center;
}

.about .col-left {
    padding: 0 var(--spacing-xl) 0 0;
}

.about h2 {
    color: var(--red);
}

.about h2::before {
    content: "Who I am";
    font-family: var(--subtitle-font);
    font-weight: 600;
    font-size: var(--p-size);
    line-height: var(--p-height);
    display: block;
    color: var(--blue);
    text-transform: uppercase;

}


.about p {
    width: 80%;
}

.about img {
    width: 100%;
    border-radius: 20px;
}

/* Skills styles */
.skills h2 {
    color: var(--red);
}

.skills h2::before {
    content: "What I can do";
    font-family: var(--subtitle-font);
    font-weight: 600;
    font-size: var(--p-size);
    line-height: var(--p-height);
    display: block;
    color: var(--blue);
    text-transform: uppercase;
}

.skills h3 {
    font-size: var(--p-size);
    color: var(--blue);
    text-transform: uppercase;
    ;
}

.skills ul {
    list-style: none;
    width: 60%;
    padding: 0;
}

.skills li {
    font-size: var(--p-size);
    line-height: var(--p-height);
    font-weight: 400;
    margin: var(--spacing-md) 0;
}

.skills li:nth-of-type(2n) {
    margin-bottom: var(--spacing-xl);
}

.skills li div {
    width: 100%;
    background-color: #b4b0ab;
    height: 30px;
    border-radius: 20px;
    position: relative;
}

.skills li div::before {
    content: "";
    height: 100%;
    background-color: var(--yellow);
    position: absolute;
    border-radius: 20px;
}

.skills li div.ubersuggest::before {
    width: 94%;
}

.skills li div.screaming-frog::before {
    width: 92%;
}

.skills li div.html-css::before {
    width: 80%;
}

.skills li div.creative::before {
    width: 100%;
}

.skills li div.detail::before {
    width: 92%;
}

.skills li div.empathetic::before {
    width: 94%;
}

/* Experience styles */
.experience {
    color: var(--bg-light);
    background-color: var(--dark-blue);
    position: relative;
}

.experience::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 200vw;
    background-color: var(--dark-blue);
    top: -20px;
    left: -800px;
    z-index: -1;
}

.experience .col-left {
    width: 40%;
    margin: 0 var(--spacing-lg) 0 0;
}

.experience .col-right {
    width: 60%;
}

.experience .col-right div {
    margin: var(--spacing-md) 0;
}

.experience h3 {
    font-size: var(--p-size);
    color: var(--yellow);
}

.experience h3 span {
    color: var(--red);
    font-weight: 600;
}


/* Creative Projects Styles */

.creative-projects {
    background-color: var(--dark-blue);
    position: relative;
}

.creative-projects .section-container {
    padding: 0 0 calc(2.5*var(--spacing-xl)) 0;
}

.creative-projects h2 {
    color: var(--bg-light);
    padding-bottom: var(--spacing-lg);
}

.creative-projects::before {
    content: "";
    position: absolute;
    height: 110%;
    width: 200vw;
    background-color: var(--dark-blue);
    top: -32px;
    left: -800px;
    z-index: -2;
}

.projects {
    display: grid;
    gap: var(--spacing-lg);
    width: 100%;
    grid-template-rows: 580px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "hellwach fjallraven";
}


.projects img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}



#fjallraven {
    grid-area: fjallraven;
}

#hellwach {
    grid-area: hellwach;
    object-position: 45% 50%;
    height: 100%;
}


.project {
    position: relative;
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #232d3bd8;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    ;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg) 0;
    box-sizing: border-box;
    ;
    opacity: 0;
    transition: all 0.2s ease;
}

.project .overlay p {
    width: 50%;
    font-size: 1.5rem;
    color: var(--bg-light);
    text-align: center;
    padding-top: var(--spacing-md);
}

.project .overlay span {
    font-weight: 600;
    display: block;
    padding: var(--spacing-sm) 0;
}

.project:hover .overlay {
    opacity: 1;
}

/* Contact Styles */

.contact {
    background-color: var(--red);
    color: var(--bg-light);
    position: relative;
    padding: calc(1.5*var(--spacing-xl)) 0;
    width: 100%;
}

.contact::before {
    content: "";
    position: absolute;
    height: 1000px;
    width: 200vw;
    background-color: var(--red);
    left: -800px;
    top: -32px;
    z-index: -1;
}

.contact img {
    width: 80%;
    object-fit: cover;
    border-radius: 20px;
}

.contact h3 {
    font-weight: 600;
    font-size: var(--p-size);
    line-height: var(--p-height);
}

.contact a.email {
    text-decoration: none;
    color: var(--bg-light);
    font-weight: 500;
}

.contact a.email:hover {
    color: var(--yellow);
}

.contact-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 40%;
}


html,
body {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

@media only screen and (max-width: 1600px) {

    main {
        width: 80%;
    }

    footer {
        width: 80%;
    }

    .section-container {
        max-width: 1100px;
    }

    .header-elements {
        left: 44%;
    }

    .creative-projects .projects {
        grid-template-rows: 400px;
    }

    .creative-projects::before {
        z-index: -1;
    }

    .contact::before {
        top: -80px;
        z-index: -2;
    }
}

@media only screen and (max-width: 1100px) {

    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .two-col {
        flex-direction: column;
    }

    .two-col>.col-left,
    .two-col>.col-right {
        width: 80%;
    }

    .section-container {
        padding: var(--spacing-xl) 0;
    }

    .header-elements {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    main {
        max-width: 900px;
    }

    .about .col-left p {
        width: 100%;
        padding-bottom: var(--spacing-lg);
    }

    .skills .two-col {
        flex-direction: row;
    }

    .skills ul {
        width: 80%;
    }

    .skills li:nth-of-type(2n) {
        margin-bottom: var(--spacing-md);
    }

    .experience h2 {
        padding-bottom: var(--spacing-md);
    }


    .projects img {
        object-position: center;
    }

    .project .overlay p {
        width: 80%;
    }

    footer {
        justify-content: center;
    }

    footer .contact img {
        height: 300px;
        width: 300px;
        object-fit: cover;
        margin: var(--spacing-lg) 0;

    }

    .contact {
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact .two-col {
        flex-direction: column;
        align-items: center;
    }

    .contact .col-left {
        align-items: center;
        padding: 0
    }

    .contact .col-right {
        padding: 0;
    }

    .contact hr {
        width: 60%;
    }

    .contact .col-right {
        align-items: center;
    }
}

@media only screen and (max-width: 900px) {
    .header-elements h1 {
        font-size: 70px;
        line-height: 80px;
    }

    .header-elements h2 {
        font-size: 30px;
        line-height: 40px;
    }

    h2 {
        font-size: 40px;
        line-height: 50px;
    }

    .about .col-left {
        padding: 0;
    }

    .about .col-right {
        padding: 0;
    }

    .creative-projects .projects {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* grid-template-areas: "hellwach"
        "fjallraven";
        grid-template-rows: 400px 400px;
        grid-template-columns: 600px; */
    }

    .creative-projects img {
        height: 400px;
        width: 400px;
        object-fit: cover;
    }

    .projects .overlay p {
        opacity: 1;
    }

    .experience::before {
        left: -300px;
    }

    .experience .col-left {
        padding: 0;
    }

    .experience .col-right {
        padding: 0;
    }

    .creative-projects::before {
        left: -300px;
    }

    .creative-projects {
        z-index: -2;
    }

    .contact::before {
        left: -300px;
        z-index: -1;
    }

    .contact .contact-buttons {
        width: 60%;
        justify-content: space-evenly;

    }
}

/* @media only screen and (max-width: 700px) {
    .creative-projects .projects {
        grid-template-columns: 400px;
    }
    
} */

@media only screen and (max-width: 600px) {
    h2 {
        text-align: center;
        font-size: 30px;
        line-height: 40px;
    }

    .about .two-col {
        flex-direction: column;
        align-items: center;
    }

    .about .two-col h2 {
        width: 100%;
    }

    .skills .col-right h3 {
        padding-bottom: 24px;
    }

    .experience .two-col {
        flex-direction: column;
        align-items: center;
    }

    .creative-projects .projects img {
        width: 350px;
        height: 350px;
    }


}

@media only screen and (max-width: 500px) {
    main {
        margin: var(--spacing-xl) var(--spacing-xl) 0 var(--spacing-xl);
        ;
    }

    .header-elements h1 {
        font-size: 50px;
        line-height: 70px;
    }

    .header-elements h2.subtitle {
        text-align: left;
        font-size: 25px;
    }

    .two-col>.col-left,
    .two-col>.col-right {
        width: 92%;
    }

    .skills hr {
        margin: var(--spacing-md) var(--spacing-sm) var(--spacing-md) 0;
    }

    .skills .col-right h3 {
        padding-bottom: 0;
    }

    div.experience p.company {
        font-weight: 800;
    }

    .contact {
        padding: var(--spacing-xl) 0;
        align-items: center;
        ;
    }

    .contact hr {
        margin: var(--spacing-md) var(--spacing-sm) var(--spacing-md) 0;
    }

    .contact .col-right p {
        text-align: center;
    }


    .contact .contact-buttons {
        width: 90%;
    }
}

