/* === GENERAL === */
/* Make width and height calculations more predictable for every element on the page. */
* {
    box-sizing: border-box;
}

/* Body settings. */
body {
    margin: 0;
    font-family: Garamond, serif;
    line-height: 1.6;
    background-color: #101214;
    color: #DCE1E4;
}

/* Make images responsive. */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove the default underline from links.*/
a {
    color: #009999;
    text-decoration: none;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #22262A;
    color: #9966CC;
}

/* === NAVIGATION === */
.main-navigation {
    width: 100%;
    margin: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* My name / site name. */
.site-name {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Navigation list. */
.navigation-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

/* Navigation links. Transition added for smoother hover. */
.navigation-links a {
    color: #009999;
    transition: color 0.2s ease;
}

.navigation-links a:hover {
    color: #33CCCC;
}

/* === INTRODUCTION === */
.intro {
    width: 100%;
    margin: 0;
    padding: 60px 5%;
}

.intro h1 {
    margin: 0;
    font-size: 3rem;
    color: #F2F4F5;
}

.intro h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: normal;
    color: #F2F4F5;
}

.intro-blurb {
    font-size: 1.1rem;
    color: #DCE1E4;
}

/* External links: GitHub / itch.io / YouTube / LinkedIn */
.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.external-links a {
    padding: 10px 18px;
    background-color: #22262A;
    color: #009999;
    border-radius: 5px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.external-links a:hover {
    color: #33CCCC;
}

/* === MAIN === */
main {
    width: 100%;
    margin: 0;
    padding: 40px 5%;
}

section {
    margin-bottom: 100px;
}

section > h2 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #F2F4F5;
}

.section-intro {
    margin-top: 0;
    margin-bottom: 40px;
    color: #DCE1E4;
}

/* === PROJECTS === */
.project {
    margin-bottom: 60px;
    padding: 30px;
    background-color: #22262A;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* Project image. */
.project-image img {
    width: 100%;
    border-radius: 6px;
}

/* Project title. */
.project-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #F2F4F5;
}

/* Short project description. */
.project-short-description {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: #F2F4F5;
}

/* Programming Features heading. */
.project-content h4 {
    margin-bottom: 10px;
    color: #F2F4F5;
}

.project-content {
    margin-bottom: 10px;
    color: #DCE1E4;
}

/* Links to GitHub and itch.io. */
.project-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.project-links a {
    padding: 8px 14px;
    background-color: #101214;
    color: #009999;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: #33CCCC;
}

/* === SKILLS === */
.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #F2F4F5;
}

.skills-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.skills-list li {
    padding: 12px 0;
    border-bottom: 1px solid #009999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.skill-name {
    font-weight: bold;
    color: #DCE1E4;
}

.skill-level {
    color: #D0CDD5;
    font-size: 0.9rem;
}

/* === ABOUT ME === */
.about-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    align-items: start;
}

/* Profile photograph. */
.about-photo img {
    width: 100%;
    border-radius: 8px;
}

/* About text. */
.about-content {
    color: #DCE1E4;
}

/* === FOOTER === */

.site-footer {
    padding: 40px 20px;
    text-align: center;
}

/* Year and name. */
.footer-signature {
    margin: 0;
    color: #009999;
    font-size: 0.9rem;
}

