body {
    margin: 0;
    background-color: #f5f5f2;
    color: #202124;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}


/* Header */

header {
    border-bottom: 1px solid #d8d8d3;
}

.header-content {
    width: 88%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 22px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #202124;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

nav a {
    margin-left: 28px;

    color: #444;
    font-size: 14px;
    text-decoration: none;
}

nav a:hover {
    color: #315fc4;
}


/* Main */

main {
    width: 88%;
    max-width: 1050px;
    margin: 0 auto;
}


/* Hero */

.hero {
    padding: 30px 0 30px 0;
    border-bottom: 1px solid #d8d8d3;
}

.intro-label {
    margin: 0 0 20px 0;

    color: #315fc4;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero h1 {
    max-width: 800px;
    margin: 0;

    font-size: 58px;
    line-height: 1.1;
    font-weight: normal;
}

.hero h1 span {
    color: #315fc4;
}

.hero-text {
    max-width: 560px;
    margin: 25px 0;

    color: #666;
    font-size: 19px;
}

.hero-link {
    display: inline-block;
    margin-top: 15px;

    color: #202124;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;

    border-bottom: 1px solid #202124;
}

.hero-link:hover {
    color: #315fc4;
    border-color: #315fc4;
}


/* Sections */

section:not(.hero) {
    padding: 30px 0;
    border-bottom: 1px solid #d8d8d3;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 20px;

    margin-bottom: 15px;
}

.section-heading span {
    color: #315fc4;
    font-size: 35px;
    font-weight: bold;
}

.section-heading h2 {
    margin: 0;

    font-size: 32px;
    font-weight: normal;
}

.section-content {
    margin-left: 55px;
    max-width: 700px;
}

/* About Layout */

.about-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-direction: row-reverse;
}
.about-title {
    margin: 0 0 25px 0;
    color: #202124;
    font-size: 64px;
    font-weight: normal;
    line-height: 1.1;
}

.about-title span {
    color: #203d9b;
}
.about-image {
    flex-shrink: 0;
    width: 330px;
    transform: translateX(140px)
}

.about-image img {
    width: 125%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.about-text {
    flex: 2;
}

.section-content p {
    color: #555;
    font-size: 16px;
}


/* Projects */

.project {
    display: flex;
    gap: 30px;

    padding: 28px 0;

    border-top: 1px solid #d8d8d3;
}

.project-number {
    width: 35px;

    color: #888;
    font-size: 45px;
}

.project-image {
    flex-shrink: 0;
    width: 300px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    margin: 0 0 8px 0;

    font-size: 20px;
    font-weight: normal;
}

.project-info p {
    margin: 0 0 15px 0;
    font-size: 15px;
}


/* Contact */

.github-link {
    display: inline-block;

    margin-top: 10px;

    color: #315fc4;
    font-weight: bold;
    text-decoration: none;
}

.github-link:hover {
    text-decoration: underline;
}

.email-link {
    display: inline-block;
    margin-top: 10px;

    color: #315fc4;
    font-weight: bold;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.project-link {
    text-decoration: none;
    color: inherit;
}


/* Mobile */

@media (max-width: 650px) {

    .header-content {
        width: 90%;
    }

    nav a {
        margin-left: 15px;
    }

    main {
        width: 90%;
    }

    section:not(.hero) {
        padding: 60px 0;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .section-content {
        margin-left: 0;
    }

    .about-layout {
        flex-direction: column;
        gap: 20px;
    }

    .about-image {
        width: 100%;
    }

    .project {
        flex-direction: column;
        gap: 15px;
    }

    .project-image {
        width: 100%;
    }
}