html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body, button, input {
    color: #222;
    font-family: 'Josefin Sans', sans-serif;
}

body {
    background-color: #fcfcfc;
    background-image: url("./Header illustrations.png");
    background-size: 1200px;
    background-position: center 150px;
    background-repeat: no-repeat;
}

.main {
    margin: 0 auto;
    max-width: 1200px;
    overflow: visible;
    width: 80%;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px auto;
    max-width: 480px;
    text-align: center;
}

.navbar-link {
    color: #222;
    padding: 8px;
    text-decoration: none;
}

.header-content {
    font-size: 18px;
    margin-top: 96px;
    overflow: visible;
    padding: 32px 0 120px 0;
    text-align: center;
}

.header-content .headline {
    line-height: 1.3em;
    margin: 0 auto;
    max-width: 540px;
}

.header-content .accent {
    color: #6977F2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

button.cta,
.submit-button {
    background-color: #fcfcfc;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    padding: 20px 48px;
    transition: all .2s;
}

button.cta:hover {
    color: #fff;
    border-color: #6977F2;
    background-color: #6977F2;
}

section {
    text-align: center;
}

.section-title {
    font-size: 30px;
    margin-bottom: 0;
}

section hr {
    background-color: #6977F2;
    height: 2px;
    margin: 8px auto 0 auto;
    width: 80px;
}

.about p {
    color: #555;
    font-weight: 300;
    margin-top: 24px;
}

section.about,
section.skills,
section.work,
section.contact {
    margin-top: 64px;
    padding-top: 32px;
}

.skills-lists {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    text-align: center;
}

.skills-ul {
    list-style: none;
    padding-left: 0;
}

.skills .list-title {
    color: #6977F2;
    font-size: 24px;
    margin-bottom: 12px;
}

.skill-li {
    color: #555;
    font-weight: 300;
    margin: 8px 0;
}

/* Projects list */
.projects-list {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    justify-content: space-around;
}

.project-card {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 8px #c7c7c7;
    max-width: 320px;
    text-align: left;
    padding: 24px;
}

.data-logo {
    align-self: flex-start;
}

.data-logo img {
    height: 48px;
    width: 48px;
}

.project-data {
    align-items: center;
    display: flex;
}

.title-roles {
    margin-left: 12px;
}

.data-title {
    font-size: 24px;
}

.data-roles {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    margin-top: 4px;
}

.project-description {
    color: #333;
    font-size: 15px;
    font-weight: 300;
}

.project-cover {
    border-radius: 16px;
    max-width: 100%;
}

.case-studies-statement {
    color: #777;
    font-size: 24px;
    font-weight: 300;
    margin-top: 48px;
}

.contact-tagline {
    color: #777;
    font-size: 20px;
    font-weight: 300;
    margin: 24px 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

.form-first-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.form-field label {
    color: #555;
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-field input,
.form-field textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
}

.submit-button {
    align-self: center;
    color: #fcfcfc;
    background-color: #8758EA;
    border-color: #8758EA;
}

.contact-email {
    color: #222;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-email h2 {
    margin-top: 32px;
}

footer {
    align-items: flex-end;
    background-color: #1A1627;
    color: #fcfcfc;
    display: flex;
    min-height: 64px;
    justify-content: center;
    margin-top: 100px;
    padding: 32px;
}

@media (max-width: 649px) {
    .cta-buttons, .projects-list, .skills-lists, .form-first-row {
        flex-direction: column;
    }
}